[#31] refs: Use ContainerID message in all services

Change the type of all fields for the container identifier to refs.ContainerID.
This will allow to follow a single format and not duplicate its description.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2020-08-05 18:07:56 +03:00 committed by Stanislav Bogatyrev
parent 2f5f6f8fde
commit fccd753a5d
7 changed files with 26 additions and 24 deletions

View file

@ -5,6 +5,7 @@ option csharp_namespace = "NeoFS.API.Container";
import "acl/types.proto";
import "container/types.proto";
import "refs/types.proto";
import "github.com/gogo/protobuf/gogoproto/gogo.proto";
option (gogoproto.stable_marshaler_all) = true;
@ -52,25 +53,25 @@ message PutRequest {
}
message PutResponse {
// ContainerID of the new container.
bytes ContainerID = 1;
// ContainerID carries identifier of the new container.
refs.ContainerID ContainerID = 1;
}
message DeleteRequest {
// ContainerID of container to delete from NeoFS.
bytes ContainerID = 1;
// ContainerID carries identifier of the container to delete from NeoFS.
refs.ContainerID ContainerID = 1;
// Signature of container id according to RFC-6979.
bytes Signature = 2;
}
// DeleteResponse is empty because delete operation is asynchronous and done
// via consensus in inner ring nodes
message DeleteResponse { }
message DeleteResponse {}
message GetRequest {
// ContainerID of the container to get.
bytes ContainerID = 1;
// ContainerID carries identifier of the container to get.
refs.ContainerID ContainerID = 1;
}
message GetResponse {
@ -84,8 +85,8 @@ message ListRequest {
}
message ListResponse {
// ContainerIDs of containers that belong to the owner.
repeated bytes ContainerIDs = 1;
// ContainerIDs carries list of identifiers of the containers that belong to the owner.
repeated refs.ContainerID ContainerIDs = 1;
}
message SetExtendedACLRequest {
@ -98,8 +99,8 @@ message SetExtendedACLRequest {
message SetExtendedACLResponse {}
message GetExtendedACLRequest {
// ContainerID of the container that has Extended ACL.
bytes ContainerID = 1;
// ContainerID carries identifier of the container that has Extended ACL.
refs.ContainerID ContainerID = 1;
}
message GetExtendedACLResponse {