2022-02-16 07:13:43 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
|
2024-11-06 11:59:06 +00:00
|
|
|
package frost.fs.lock;
|
2022-02-16 07:13:43 +00:00
|
|
|
|
|
|
|
import "refs/types.proto";
|
|
|
|
|
2022-04-13 06:21:33 +00:00
|
|
|
// Lock objects protects a list of objects from being deleted. The lifetime of a
|
2022-02-21 09:47:21 +00:00
|
|
|
// lock object is limited similar to regular objects in
|
2024-11-06 11:59:06 +00:00
|
|
|
// `__SYSTEM__EXPIRATION_EPOCH`
|
2024-02-28 15:53:04 +00:00
|
|
|
// attribute. Lock object MUST have expiration epoch. It is impossible to delete
|
|
|
|
// a lock object via ObjectService.Delete RPC call.
|
2022-02-16 07:13:43 +00:00
|
|
|
message Lock {
|
2022-02-21 09:47:21 +00:00
|
|
|
// List of objects to lock. Must not be empty or carry empty IDs.
|
|
|
|
// All members must be of the `REGULAR` type.
|
2024-11-06 11:59:06 +00:00
|
|
|
repeated frost.fs.refs.ObjectID members = 1 [ json_name = "members" ];
|
2022-02-16 07:13:43 +00:00
|
|
|
}
|