From 300b1d419752ca638a32fe39057c3965328594d3 Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Tue, 4 Aug 2020 17:21:44 +0300 Subject: [PATCH] [#26] storagegroup: Add member list to message To encapsulate the complete information about the storage group in StorageGroup message, this commit adds the missing group member list field. Signed-off-by: Leonard Lyubich --- proto-docs/storagegroup.md | 1 + storagegroup/types.proto | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/proto-docs/storagegroup.md b/proto-docs/storagegroup.md index 7522902..af34ee3 100644 --- a/proto-docs/storagegroup.md +++ b/proto-docs/storagegroup.md @@ -34,6 +34,7 @@ | ValidationDataSize | [uint64](#uint64) | | ValidationDataSize is size of the all object's payloads included into storage group | | ValidationHash | [bytes](#bytes) | | ValidationHash is homomorphic hash of all object's payloads included into storage group | | lifetime | [StorageGroup.Lifetime](#storagegroup.StorageGroup.Lifetime) | | Lifetime is time until storage group is valid | +| Members | [refs.ObjectID](#refs.ObjectID) | repeated | Members carries the list of identifiers of the object storage group members. The list is strictly ordered. | diff --git a/storagegroup/types.proto b/storagegroup/types.proto index fde33aa..711d72c 100644 --- a/storagegroup/types.proto +++ b/storagegroup/types.proto @@ -4,6 +4,7 @@ option go_package = "github.com/nspcc-dev/neofs-api-go/storagegroup"; option csharp_namespace = "NeoFS.API.StorageGroup"; import "github.com/gogo/protobuf/gogoproto/gogo.proto"; +import "refs/types.proto"; option (gogoproto.stable_marshaler_all) = true; @@ -33,4 +34,8 @@ message StorageGroup { // Lifetime is time until storage group is valid Lifetime lifetime = 3 [(gogoproto.customname) = "Lifetime"]; + + // Members carries the list of identifiers of the object storage group members. + // The list is strictly ordered. + repeated refs.ObjectID Members = 4; }