2020-01-30 11:41:24 +00:00
|
|
|
syntax = "proto3";
|
2020-08-05 08:49:51 +00:00
|
|
|
|
2020-08-12 21:43:51 +00:00
|
|
|
package neo.fs.v2.storagegroup;
|
2020-08-05 08:49:51 +00:00
|
|
|
|
2020-08-14 18:27:31 +00:00
|
|
|
option go_package = "github.com/nspcc-dev/neofs-api-go/v2/storagegroup/grpc;storagegroup";
|
2020-08-12 21:43:51 +00:00
|
|
|
option csharp_namespace = "NeoFS.API.v2.StorageGroup";
|
2020-01-30 11:41:24 +00:00
|
|
|
|
2020-08-04 14:21:44 +00:00
|
|
|
import "refs/types.proto";
|
2020-01-30 11:41:24 +00:00
|
|
|
|
2020-08-05 08:48:26 +00:00
|
|
|
// StorageGroup groups the information about the NeoFS storage group.
|
|
|
|
// The storage group consists of objects from single container.
|
2020-01-30 11:41:24 +00:00
|
|
|
message StorageGroup {
|
2020-08-11 09:03:50 +00:00
|
|
|
// validation_data_size carries the total size of the payloads of the storage
|
|
|
|
// group members.
|
|
|
|
uint64 validation_data_size = 1;
|
2020-08-05 08:49:51 +00:00
|
|
|
|
2020-08-11 09:03:50 +00:00
|
|
|
// validation_hash carries homomorphic hash from the concatenation of the
|
|
|
|
// payloads of the storage group members
|
|
|
|
// The order of concatenation is the same as the order of the members in the
|
|
|
|
// Members field.
|
2020-08-18 15:26:51 +00:00
|
|
|
Checksum validation_hash = 2;
|
2020-01-30 11:41:24 +00:00
|
|
|
|
2020-08-11 09:03:50 +00:00
|
|
|
// expiration_epoch carries last NeoFS epoch number of the storage group
|
|
|
|
// lifetime.
|
|
|
|
uint64 expiration_epoch = 3;
|
2020-08-04 14:21:44 +00:00
|
|
|
|
2020-08-11 09:03:50 +00:00
|
|
|
// Members carries the list of identifiers of the object storage group members.
|
|
|
|
// The list is strictly ordered.
|
2020-08-12 21:43:51 +00:00
|
|
|
repeated neo.fs.v2.refs.ObjectID members = 4;
|
2020-01-30 11:41:24 +00:00
|
|
|
}
|