2020-01-30 11:41:24 +00:00
|
|
|
syntax = "proto3";
|
2020-08-05 22:20:53 +00:00
|
|
|
|
2020-08-12 21:43:51 +00:00
|
|
|
package neo.fs.v2.container;
|
2020-08-05 22:20:53 +00:00
|
|
|
|
2020-08-14 18:27:31 +00:00
|
|
|
option go_package = "github.com/nspcc-dev/neofs-api-go/v2/container/grpc;container";
|
2020-08-12 21:43:51 +00:00
|
|
|
option csharp_namespace = "NeoFS.API.v2.Container";
|
2020-01-30 11:41:24 +00:00
|
|
|
|
2020-07-31 14:18:50 +00:00
|
|
|
import "acl/types.proto";
|
2020-01-30 11:41:24 +00:00
|
|
|
import "container/types.proto";
|
2020-08-05 15:07:56 +00:00
|
|
|
import "refs/types.proto";
|
2020-08-19 14:00:23 +00:00
|
|
|
import "session/types.proto";
|
2020-01-30 11:41:24 +00:00
|
|
|
|
2020-10-14 16:57:36 +00:00
|
|
|
// `ContainerService` provides API to interact with `Container` smart contract
|
|
|
|
// in NeoFS sidechain via other NeoFS nodes. All of those actions can be done
|
|
|
|
// equivalently by directly issuing transactions and RPC calls to sidechain
|
|
|
|
// nodes.
|
2020-08-12 21:43:51 +00:00
|
|
|
service ContainerService {
|
2020-10-14 16:57:36 +00:00
|
|
|
// `Put` invokes `Container` smart contract's `Put` method and returns
|
|
|
|
// response immediately. After a new block is issued in sidechain, request is
|
|
|
|
// verified by Inner Ring nodes. After one more block in sidechain, container
|
|
|
|
// is added into smart contract storage.
|
2020-08-11 09:03:50 +00:00
|
|
|
rpc Put(PutRequest) returns (PutResponse);
|
|
|
|
|
2020-10-14 16:57:36 +00:00
|
|
|
// `Delete` invokes `Container` smart contract's `Delete` method and returns
|
|
|
|
// response immediately. After a new block is issued in sidechain, request is
|
|
|
|
// verified by Inner Ring nodes. After one more block in sidechain, container
|
|
|
|
// is added into smart contract storage.
|
2020-08-11 09:03:50 +00:00
|
|
|
rpc Delete(DeleteRequest) returns (DeleteResponse);
|
|
|
|
|
2020-10-14 16:57:36 +00:00
|
|
|
// Returns container structure from `Container` smart contract storage.
|
2020-08-11 09:03:50 +00:00
|
|
|
rpc Get(GetRequest) returns (GetResponse);
|
|
|
|
|
2020-10-14 16:57:36 +00:00
|
|
|
// Returns all owner's containers from 'Container` smart contract' storage.
|
2020-08-11 09:03:50 +00:00
|
|
|
rpc List(ListRequest) returns (ListResponse);
|
|
|
|
|
2020-10-14 16:57:36 +00:00
|
|
|
// Invokes 'SetEACL' method of 'Container` smart contract and returns response
|
|
|
|
// immediately. After one more block in sidechain, Extended ACL changes are
|
|
|
|
// added into smart contract storage.
|
2020-08-11 09:03:50 +00:00
|
|
|
rpc SetExtendedACL(SetExtendedACLRequest) returns (SetExtendedACLResponse);
|
|
|
|
|
2020-10-14 16:57:36 +00:00
|
|
|
// Returns Extended ACL table and signature from `Container` smart contract
|
|
|
|
// storage.
|
2020-08-11 09:03:50 +00:00
|
|
|
rpc GetExtendedACL(GetExtendedACLRequest) returns (GetExtendedACLResponse);
|
2021-01-20 16:50:29 +00:00
|
|
|
|
|
|
|
// Announce container used space values for P2P synchronization.
|
|
|
|
rpc AnnounceUsedSpace(AnnounceUsedSpaceRequest) returns (AnnounceUsedSpaceResponse);
|
2020-01-30 11:41:24 +00:00
|
|
|
}
|
|
|
|
|
2020-08-12 21:43:51 +00:00
|
|
|
// New NeoFS Container creation request
|
2020-01-30 11:41:24 +00:00
|
|
|
message PutRequest {
|
2020-10-14 16:57:36 +00:00
|
|
|
// Container creation request has container structure's signature as a
|
|
|
|
// separate field. It's not stored in sidechain, just verified on container
|
|
|
|
// creation by `Container` smart contract. `ContainerID` is a SHA256 hash of
|
|
|
|
// the stable-marshalled container strucutre, hence there is no need for
|
|
|
|
// additional signature checks.
|
2020-08-11 08:47:04 +00:00
|
|
|
message Body {
|
2020-10-14 16:57:36 +00:00
|
|
|
// Container structure to register in NeoFS
|
2020-08-11 08:47:04 +00:00
|
|
|
container.Container container = 1;
|
2020-08-05 22:20:53 +00:00
|
|
|
|
2020-10-14 16:57:36 +00:00
|
|
|
// Signature of a stable-marshalled container according to RFC-6979
|
2020-08-18 13:41:47 +00:00
|
|
|
neo.fs.v2.refs.Signature signature =2;
|
2020-08-11 08:47:04 +00:00
|
|
|
}
|
|
|
|
// Body of container put request message.
|
|
|
|
Body body = 1;
|
|
|
|
|
|
|
|
// Carries request meta information. Header data is used only to regulate
|
|
|
|
// message transport and does not affect request execution.
|
2020-08-19 14:00:23 +00:00
|
|
|
neo.fs.v2.session.RequestMetaHeader meta_header = 2;
|
2020-08-11 08:47:04 +00:00
|
|
|
|
|
|
|
// Carries request verification information. This header is used to
|
2020-10-14 16:57:36 +00:00
|
|
|
// authenticate the nodes of the message route and check the correctness of
|
|
|
|
// transmission.
|
2020-08-19 14:00:23 +00:00
|
|
|
neo.fs.v2.session.RequestVerificationHeader verify_header = 3;
|
2020-01-30 11:41:24 +00:00
|
|
|
}
|
|
|
|
|
2020-08-12 21:43:51 +00:00
|
|
|
// New NeoFS Container creation response
|
2020-01-30 11:41:24 +00:00
|
|
|
message PutResponse {
|
2020-10-14 16:57:36 +00:00
|
|
|
// Container put response body contains information about the newly registered
|
|
|
|
// container as seen by `Container` smart contract. `ContainerID` can be
|
|
|
|
// calculated beforehand from the container structure and compared to the one
|
|
|
|
// returned here to make sure everything was done as expected.
|
2020-08-11 08:47:04 +00:00
|
|
|
message Body {
|
2020-10-14 16:57:36 +00:00
|
|
|
// Unique identifier of the newly created container
|
2020-08-12 21:43:51 +00:00
|
|
|
neo.fs.v2.refs.ContainerID container_id = 1;
|
2020-08-11 08:47:04 +00:00
|
|
|
}
|
|
|
|
// Body of container put response message.
|
|
|
|
Body body = 1;
|
|
|
|
|
|
|
|
// Carries response meta information. Header data is used only to regulate
|
|
|
|
// message transport and does not affect request execution.
|
2020-08-19 14:00:23 +00:00
|
|
|
neo.fs.v2.session.ResponseMetaHeader meta_header = 2;
|
2020-08-11 08:47:04 +00:00
|
|
|
|
|
|
|
// Carries response verification information. This header is used to
|
2020-10-14 16:57:36 +00:00
|
|
|
// authenticate the nodes of the message route and check the correctness of
|
|
|
|
// transmission.
|
2020-08-19 14:00:23 +00:00
|
|
|
neo.fs.v2.session.ResponseVerificationHeader verify_header = 3;
|
2020-01-30 11:41:24 +00:00
|
|
|
}
|
|
|
|
|
2020-08-12 21:43:51 +00:00
|
|
|
// Container removal request
|
2020-01-30 11:41:24 +00:00
|
|
|
message DeleteRequest {
|
2020-10-14 16:57:36 +00:00
|
|
|
// Container removal request body has a signed `ContainerID` as a proof of
|
|
|
|
// container owner's intent. The signature will be verified by `Container`
|
|
|
|
// smart contract, so signing algorithm must be supported by NeoVM.
|
2020-08-11 08:47:04 +00:00
|
|
|
message Body {
|
2020-10-14 16:57:36 +00:00
|
|
|
// Identifier of the container to delete from NeoFS
|
2020-08-12 21:43:51 +00:00
|
|
|
neo.fs.v2.refs.ContainerID container_id = 1;
|
2020-08-11 08:47:04 +00:00
|
|
|
|
2020-10-14 16:57:36 +00:00
|
|
|
// `ContainerID` signed with the container owner's key according to RFC-6979
|
2020-08-18 13:41:47 +00:00
|
|
|
neo.fs.v2.refs.Signature signature = 2;
|
2020-08-11 08:47:04 +00:00
|
|
|
}
|
|
|
|
// Body of container delete request message.
|
|
|
|
Body body = 1;
|
2020-08-05 22:20:53 +00:00
|
|
|
|
2020-08-11 08:47:04 +00:00
|
|
|
// Carries request meta information. Header data is used only to regulate
|
|
|
|
// message transport and does not affect request execution.
|
2020-08-19 14:00:23 +00:00
|
|
|
neo.fs.v2.session.RequestMetaHeader meta_header = 2;
|
2020-08-11 08:47:04 +00:00
|
|
|
|
|
|
|
// Carries request verification information. This header is used to
|
2020-10-14 16:57:36 +00:00
|
|
|
// authenticate the nodes of the message route and check the correctness of
|
|
|
|
// transmission.
|
2020-08-19 14:00:23 +00:00
|
|
|
neo.fs.v2.session.RequestVerificationHeader verify_header = 3;
|
2020-01-30 11:41:24 +00:00
|
|
|
}
|
|
|
|
|
2020-10-14 16:57:36 +00:00
|
|
|
// `DeleteResponse` has an empty body because delete operation is asynchronous
|
|
|
|
// and done via consensus in Inner Ring nodes.
|
2020-08-11 08:47:04 +00:00
|
|
|
message DeleteResponse {
|
2020-10-14 16:57:36 +00:00
|
|
|
// `DeleteResponse` has an empty body because delete operation is asynchronous
|
|
|
|
// and done via consensus in Inner Ring nodes.
|
2020-08-11 08:47:04 +00:00
|
|
|
message Body {}
|
|
|
|
// Body of container delete response message.
|
|
|
|
Body body = 1;
|
|
|
|
|
|
|
|
// Carries response meta information. Header data is used only to regulate
|
|
|
|
// message transport and does not affect request execution.
|
2020-08-19 14:00:23 +00:00
|
|
|
neo.fs.v2.session.ResponseMetaHeader meta_header = 2;
|
2020-08-11 08:47:04 +00:00
|
|
|
|
|
|
|
// Carries response verification information. This header is used to
|
2020-10-14 16:57:36 +00:00
|
|
|
// authenticate the nodes of the message route and check the correctness of
|
|
|
|
// transmission.
|
2020-08-19 14:00:23 +00:00
|
|
|
neo.fs.v2.session.ResponseVerificationHeader verify_header = 3;
|
2020-08-11 08:47:04 +00:00
|
|
|
}
|
2020-01-30 11:41:24 +00:00
|
|
|
|
2020-08-12 21:43:51 +00:00
|
|
|
// Get container structure
|
2020-01-30 11:41:24 +00:00
|
|
|
message GetRequest {
|
2020-10-14 16:57:36 +00:00
|
|
|
// Get container structure request body.
|
2020-08-11 08:47:04 +00:00
|
|
|
message Body {
|
2020-10-14 16:57:36 +00:00
|
|
|
// Identifier of the container to get
|
2020-08-12 21:43:51 +00:00
|
|
|
neo.fs.v2.refs.ContainerID container_id = 1;
|
2020-08-11 08:47:04 +00:00
|
|
|
}
|
|
|
|
// Body of container get request message.
|
|
|
|
Body body = 1;
|
|
|
|
|
|
|
|
// Carries request meta information. Header data is used only to regulate
|
|
|
|
// message transport and does not affect request execution.
|
2020-08-19 14:00:23 +00:00
|
|
|
neo.fs.v2.session.RequestMetaHeader meta_header = 2;
|
2020-08-11 08:47:04 +00:00
|
|
|
|
|
|
|
// Carries request verification information. This header is used to
|
2020-10-14 16:57:36 +00:00
|
|
|
// authenticate the nodes of the message route and check the correctness of
|
|
|
|
// transmission.
|
2020-08-19 14:00:23 +00:00
|
|
|
neo.fs.v2.session.RequestVerificationHeader verify_header = 3;
|
2020-01-30 11:41:24 +00:00
|
|
|
}
|
|
|
|
|
2020-08-12 21:43:51 +00:00
|
|
|
// Get container structure
|
2020-01-30 11:41:24 +00:00
|
|
|
message GetResponse {
|
2020-10-14 16:57:36 +00:00
|
|
|
// Get container response body does not have container structure signature. It
|
|
|
|
// was already verified on container creation.
|
2020-08-11 08:47:04 +00:00
|
|
|
message Body {
|
2020-10-14 16:57:36 +00:00
|
|
|
// Requested container structure
|
2020-08-12 21:43:51 +00:00
|
|
|
Container container = 1;
|
2020-08-11 08:47:04 +00:00
|
|
|
}
|
|
|
|
// Body of container get response message.
|
|
|
|
Body body = 1;
|
|
|
|
|
|
|
|
// Carries response meta information. Header data is used only to regulate
|
|
|
|
// message transport and does not affect request execution.
|
2020-08-19 14:00:23 +00:00
|
|
|
neo.fs.v2.session.ResponseMetaHeader meta_header = 2;
|
2020-08-11 08:47:04 +00:00
|
|
|
|
|
|
|
// Carries response verification information. This header is used to
|
2020-10-14 16:57:36 +00:00
|
|
|
// authenticate the nodes of the message route and check the correctness of
|
|
|
|
// transmission.
|
2020-08-19 14:00:23 +00:00
|
|
|
neo.fs.v2.session.ResponseVerificationHeader verify_header = 3;
|
2020-01-30 11:41:24 +00:00
|
|
|
}
|
|
|
|
|
2020-08-12 21:43:51 +00:00
|
|
|
// List containers
|
2020-01-30 11:41:24 +00:00
|
|
|
message ListRequest {
|
2020-10-14 16:57:36 +00:00
|
|
|
// List containers request body.
|
2020-08-11 08:47:04 +00:00
|
|
|
message Body {
|
2020-10-14 16:57:36 +00:00
|
|
|
// Identifier of the container owner
|
2020-08-12 21:43:51 +00:00
|
|
|
neo.fs.v2.refs.OwnerID owner_id = 1;
|
2020-08-11 08:47:04 +00:00
|
|
|
}
|
2020-10-14 16:57:36 +00:00
|
|
|
// Body of list containers request message
|
2020-08-11 08:47:04 +00:00
|
|
|
Body body = 1;
|
|
|
|
|
|
|
|
// Carries request meta information. Header data is used only to regulate
|
|
|
|
// message transport and does not affect request execution.
|
2020-08-19 14:00:23 +00:00
|
|
|
neo.fs.v2.session.RequestMetaHeader meta_header = 2;
|
2020-08-11 08:47:04 +00:00
|
|
|
|
|
|
|
// Carries request verification information. This header is used to
|
2020-10-14 16:57:36 +00:00
|
|
|
// authenticate the nodes of the message route and check the correctness of
|
|
|
|
// transmission.
|
2020-08-19 14:00:23 +00:00
|
|
|
neo.fs.v2.session.RequestVerificationHeader verify_header = 3;
|
2020-01-30 11:41:24 +00:00
|
|
|
}
|
|
|
|
|
2020-08-12 21:43:51 +00:00
|
|
|
// List containers
|
2020-01-30 11:41:24 +00:00
|
|
|
message ListResponse {
|
2020-10-14 16:57:36 +00:00
|
|
|
// List containers response body.
|
2020-08-11 08:47:04 +00:00
|
|
|
message Body {
|
2020-10-14 16:57:36 +00:00
|
|
|
// List of `ContainerID`s belonging to the requested `OwnerID`
|
2020-08-11 08:47:04 +00:00
|
|
|
repeated refs.ContainerID container_ids = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Body of list containers response message.
|
|
|
|
Body body = 1;
|
|
|
|
|
|
|
|
// Carries response meta information. Header data is used only to regulate
|
|
|
|
// message transport and does not affect request execution.
|
2020-08-19 14:00:23 +00:00
|
|
|
neo.fs.v2.session.ResponseMetaHeader meta_header = 2;
|
2020-08-11 08:47:04 +00:00
|
|
|
|
|
|
|
// Carries response verification information. This header is used to
|
2020-10-14 16:57:36 +00:00
|
|
|
// authenticate the nodes of the message route and check the correctness of
|
|
|
|
// transmission.
|
2020-08-19 14:00:23 +00:00
|
|
|
neo.fs.v2.session.ResponseVerificationHeader verify_header = 3;
|
2020-01-30 11:41:24 +00:00
|
|
|
}
|
2020-06-18 07:40:35 +00:00
|
|
|
|
2020-08-12 21:43:51 +00:00
|
|
|
// Set Extended ACL
|
2020-06-18 07:40:35 +00:00
|
|
|
message SetExtendedACLRequest {
|
2020-10-14 16:57:36 +00:00
|
|
|
// Set Extended ACL request body does not have separate `ContainerID`
|
|
|
|
// reference. It will be taken from `EACLTable.container_id` field.
|
2020-08-11 08:47:04 +00:00
|
|
|
message Body {
|
2020-10-14 16:57:36 +00:00
|
|
|
// Extended ACL table to set for container
|
2020-08-12 21:43:51 +00:00
|
|
|
neo.fs.v2.acl.EACLTable eacl = 1;
|
2020-08-11 08:47:04 +00:00
|
|
|
|
2020-10-14 16:57:36 +00:00
|
|
|
// Signature of stable-marshalled Extended ACL table according to RFC-6979
|
2020-08-18 13:41:47 +00:00
|
|
|
neo.fs.v2.refs.Signature signature = 2;
|
2020-08-11 08:47:04 +00:00
|
|
|
}
|
|
|
|
// Body of set extended acl request message.
|
|
|
|
Body body = 1;
|
2020-08-05 22:20:53 +00:00
|
|
|
|
2020-08-11 08:47:04 +00:00
|
|
|
// Carries request meta information. Header data is used only to regulate
|
|
|
|
// message transport and does not affect request execution.
|
2020-08-19 14:00:23 +00:00
|
|
|
neo.fs.v2.session.RequestMetaHeader meta_header = 2;
|
2020-08-11 08:47:04 +00:00
|
|
|
|
|
|
|
// Carries request verification information. This header is used to
|
2020-10-14 16:57:36 +00:00
|
|
|
// authenticate the nodes of the message route and check the correctness of
|
|
|
|
// transmission.
|
2020-08-19 14:00:23 +00:00
|
|
|
neo.fs.v2.session.RequestVerificationHeader verify_header = 3;
|
2020-06-18 07:40:35 +00:00
|
|
|
}
|
|
|
|
|
2020-08-12 21:43:51 +00:00
|
|
|
// Set Extended ACL
|
2020-08-11 08:47:04 +00:00
|
|
|
message SetExtendedACLResponse {
|
2020-10-14 16:57:36 +00:00
|
|
|
// `SetExtendedACLResponse` has an empty body because the operation is
|
|
|
|
// asynchronous and update should be reflected in `Container` smart contract's
|
|
|
|
// storage after next block is issued in sidechain.
|
2020-08-11 08:47:04 +00:00
|
|
|
message Body { }
|
|
|
|
|
|
|
|
// Body of set extended acl response message.
|
|
|
|
Body body = 1;
|
|
|
|
|
|
|
|
// Carries response meta information. Header data is used only to regulate
|
|
|
|
// message transport and does not affect request execution.
|
2020-08-19 14:00:23 +00:00
|
|
|
neo.fs.v2.session.ResponseMetaHeader meta_header = 2;
|
2020-08-11 08:47:04 +00:00
|
|
|
|
|
|
|
// Carries response verification information. This header is used to
|
2020-10-14 16:57:36 +00:00
|
|
|
// authenticate the nodes of the message route and check the correctness of
|
|
|
|
// transmission.
|
2020-08-19 14:00:23 +00:00
|
|
|
neo.fs.v2.session.ResponseVerificationHeader verify_header = 3;
|
2020-08-11 08:47:04 +00:00
|
|
|
}
|
2020-06-18 07:40:35 +00:00
|
|
|
|
2020-08-12 21:43:51 +00:00
|
|
|
// Get Extended ACL
|
2020-06-18 07:40:35 +00:00
|
|
|
message GetExtendedACLRequest {
|
2020-10-14 16:57:36 +00:00
|
|
|
// Get Extended ACL request body
|
2020-08-11 08:47:04 +00:00
|
|
|
message Body {
|
2020-10-14 16:57:36 +00:00
|
|
|
// Identifier of the container having Extended ACL
|
2020-08-12 21:43:51 +00:00
|
|
|
neo.fs.v2.refs.ContainerID container_id = 1;
|
2020-08-11 08:47:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Body of get extended acl request message.
|
|
|
|
Body body = 1;
|
|
|
|
|
|
|
|
// Carries request meta information. Header data is used only to regulate
|
|
|
|
// message transport and does not affect request execution.
|
2020-08-19 14:00:23 +00:00
|
|
|
neo.fs.v2.session.RequestMetaHeader meta_header = 2;
|
2020-08-11 08:47:04 +00:00
|
|
|
|
|
|
|
// Carries request verification information. This header is used to
|
2020-10-14 16:57:36 +00:00
|
|
|
// authenticate the nodes of the message route and check the correctness of
|
|
|
|
// transmission.
|
2020-08-19 14:00:23 +00:00
|
|
|
neo.fs.v2.session.RequestVerificationHeader verify_header = 3;
|
2020-06-18 07:40:35 +00:00
|
|
|
}
|
|
|
|
|
2020-08-12 21:43:51 +00:00
|
|
|
// Get Extended ACL
|
2020-06-18 07:40:35 +00:00
|
|
|
message GetExtendedACLResponse {
|
2020-10-14 16:57:36 +00:00
|
|
|
// Get Extended ACL Response body can be empty if the requested container did
|
|
|
|
// not have Extended ACL Table attached or Extended ACL was not allowed at
|
|
|
|
// container creation.
|
2020-08-11 08:47:04 +00:00
|
|
|
message Body {
|
2020-10-14 16:57:36 +00:00
|
|
|
// Extended ACL requested, if available
|
2020-08-12 21:43:51 +00:00
|
|
|
neo.fs.v2.acl.EACLTable eacl = 1;
|
2020-08-11 08:47:04 +00:00
|
|
|
|
2020-10-14 16:57:36 +00:00
|
|
|
// Signature of stable-marshalled Extended ACL according to RFC-6979
|
2020-08-18 13:41:47 +00:00
|
|
|
neo.fs.v2.refs.Signature signature = 2;
|
2020-08-11 08:47:04 +00:00
|
|
|
}
|
|
|
|
// Body of get extended acl response message.
|
|
|
|
Body body = 1;
|
|
|
|
|
|
|
|
// Carries response meta information. Header data is used only to regulate
|
|
|
|
// message transport and does not affect request execution.
|
2020-08-19 14:00:23 +00:00
|
|
|
neo.fs.v2.session.ResponseMetaHeader meta_header = 2;
|
2020-08-05 22:20:53 +00:00
|
|
|
|
2020-08-11 08:47:04 +00:00
|
|
|
// Carries response verification information. This header is used to
|
2020-10-14 16:57:36 +00:00
|
|
|
// authenticate the nodes of the message route and check the correctness of
|
|
|
|
// transmission.
|
2020-08-19 14:00:23 +00:00
|
|
|
neo.fs.v2.session.ResponseVerificationHeader verify_header = 3;
|
2020-06-18 07:40:35 +00:00
|
|
|
}
|
2021-01-20 16:50:29 +00:00
|
|
|
|
|
|
|
// Announce container used space
|
|
|
|
message AnnounceUsedSpaceRequest {
|
|
|
|
// Container used space announcement body.
|
|
|
|
message Body {
|
|
|
|
// Announcement contains used space information about single container.
|
|
|
|
message Announcement {
|
2021-01-26 18:22:39 +00:00
|
|
|
// Epoch number for which container size estimation was produced.
|
|
|
|
uint64 epoch = 1;
|
2021-01-20 16:50:29 +00:00
|
|
|
|
2021-01-26 18:22:39 +00:00
|
|
|
// Identifier of the container.
|
|
|
|
neo.fs.v2.refs.ContainerID container_id = 2;
|
|
|
|
|
|
|
|
// Used space is a sum of object payload sizes of specified
|
2021-01-20 16:50:29 +00:00
|
|
|
// container, stored in the node. It must not include inhumed objects.
|
2021-01-26 18:22:39 +00:00
|
|
|
uint64 used_space = 3;
|
2021-01-20 16:50:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// List of announcements. If nodes share several containers, then
|
|
|
|
// announcements transferred in a batch.
|
|
|
|
repeated Announcement announcements = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Body of announce used space request message.
|
|
|
|
Body body = 1;
|
|
|
|
|
|
|
|
// Carries request meta information. Header data is used only to regulate
|
|
|
|
// message transport and does not affect request execution.
|
|
|
|
neo.fs.v2.session.RequestMetaHeader meta_header = 2;
|
|
|
|
|
|
|
|
// Carries request verification information. This header is used to
|
|
|
|
// authenticate the nodes of the message route and check the correctness of
|
|
|
|
// transmission.
|
|
|
|
neo.fs.v2.session.RequestVerificationHeader verify_header = 3;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Announce container used space
|
|
|
|
message AnnounceUsedSpaceResponse {
|
|
|
|
// `AnnounceUsedSpaceResponse` has an empty body because announcements are
|
|
|
|
// one way communication.
|
|
|
|
message Body { }
|
|
|
|
|
|
|
|
// Body of announce used space response message.
|
|
|
|
Body body = 1;
|
|
|
|
|
|
|
|
// Carries response meta information. Header data is used only to regulate
|
|
|
|
// message transport and does not affect request execution.
|
|
|
|
neo.fs.v2.session.ResponseMetaHeader meta_header = 2;
|
|
|
|
|
|
|
|
// Carries response verification information. This header is used to
|
|
|
|
// authenticate the nodes of the message route and check the correctness of
|
|
|
|
// transmission.
|
|
|
|
neo.fs.v2.session.ResponseVerificationHeader verify_header = 3;
|
|
|
|
}
|