Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rework Lock API metadata and add missing argument to Unlock #162

Merged
merged 8 commits into from
Jan 26, 2022
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions cs3/storage/provider/v1beta1/provider_api.proto
Original file line number Diff line number Diff line change
Expand Up @@ -878,6 +878,9 @@ message UnlockRequest {
// REQUIRED.
// The reference the lock is associated to.
Reference ref = 2;
// REQUIRED.
// The lock metadata.
Lock lock = 3;
}

message UnlockResponse {
Expand Down
9 changes: 4 additions & 5 deletions cs3/storage/provider/v1beta1/resources.proto
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ enum LockType {
// "type" : "<LOCK_TYPE>",
// "h" : "<holder>",
// "md" : "<metadata>",
// "mtime" : "<Unix timestamp>"
// "exp" : "<Unix timestamp>"
// }
glpatcern marked this conversation as resolved.
Show resolved Hide resolved
message Lock {
// The type of lock.
Expand All @@ -153,11 +153,10 @@ message Lock {
// An application name if the lock is held by an app.
string app_name = 3;
}
// Some arbitrary metadata associated with the lock.
// OPTIONAL. Some arbitrary metadata associated with the lock.
string metadata = 4;
// The last modification time of the lock.
// The value is Unix Epoch timestamp in seconds.
cs3.types.v1beta1.Timestamp mtime = 5;
// OPTIONAL. The time when the lock will expire.
butonic marked this conversation as resolved.
Show resolved Hide resolved
cs3.types.v1beta1.Timestamp expiration = 5;
}

// The available types of resources.
Expand Down