2020-01-30 11:41:24 +00:00
|
|
|
syntax = "proto3";
|
2020-08-05 23:45:39 +00:00
|
|
|
|
2020-08-12 21:43:51 +00:00
|
|
|
package neo.fs.v2.object;
|
2020-08-05 23:45:39 +00:00
|
|
|
|
2020-08-14 18:27:31 +00:00
|
|
|
option go_package = "github.com/nspcc-dev/neofs-api-go/v2/object/grpc;object";
|
2020-08-12 21:43:51 +00:00
|
|
|
option csharp_namespace = "NeoFS.API.v2.Object";
|
2020-01-30 11:41:24 +00:00
|
|
|
|
|
|
|
import "object/types.proto";
|
2020-08-11 08:59:36 +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
|
|
|
|
|
|
|
// Object service provides API for manipulating with the object.
|
2020-08-12 21:43:51 +00:00
|
|
|
service ObjectService {
|
2020-08-11 09:03:50 +00:00
|
|
|
// Get the object from container. Response uses gRPC stream. First response
|
|
|
|
// message carry object of requested address. Chunk messages are parts of
|
|
|
|
// the object's payload if it is needed. All messages except first carry
|
|
|
|
// chunks. Requested object can be restored by concatenation of object
|
|
|
|
// message payload and all chunks keeping receiving order.
|
|
|
|
rpc Get(GetRequest) returns (stream GetResponse);
|
|
|
|
|
|
|
|
// Put the object into container. Request uses gRPC stream. First message
|
|
|
|
// SHOULD BE type of PutHeader. Container id and Owner id of object SHOULD
|
|
|
|
// BE set. Session token SHOULD BE obtained before put operation (see
|
|
|
|
// session package). Chunk messages considered by server as part of object
|
|
|
|
// payload. All messages except first SHOULD BE chunks. Chunk messages
|
|
|
|
// SHOULD BE sent in direct order of fragmentation.
|
|
|
|
rpc Put(stream PutRequest) returns (PutResponse);
|
|
|
|
|
|
|
|
// Delete the object from a container
|
|
|
|
rpc Delete(DeleteRequest) returns (DeleteResponse);
|
|
|
|
|
|
|
|
// Head returns the object without data payload. Object in the
|
|
|
|
// response has system header only. If full headers flag is set, extended
|
|
|
|
// headers are also present.
|
|
|
|
rpc Head(HeadRequest) returns (HeadResponse);
|
|
|
|
|
|
|
|
// Search objects in container. Version of query language format SHOULD BE
|
|
|
|
// set to 1. Search query represented in serialized format (see query
|
|
|
|
// package).
|
|
|
|
rpc Search(SearchRequest) returns (stream SearchResponse);
|
|
|
|
|
|
|
|
// GetRange of data payload. Range is a pair (offset, length).
|
|
|
|
// Requested range can be restored by concatenation of all chunks
|
|
|
|
// keeping receiving order.
|
|
|
|
rpc GetRange(GetRangeRequest) returns (stream GetRangeResponse);
|
|
|
|
|
|
|
|
// GetRangeHash returns homomorphic hash of object payload range after XOR
|
|
|
|
// operation. Ranges are set of pairs (offset, length). Hashes order in
|
|
|
|
// response corresponds to ranges order in request. Homomorphic hash is
|
|
|
|
// calculated for XORed data.
|
|
|
|
rpc GetRangeHash(GetRangeHashRequest) returns (GetRangeHashResponse);
|
2020-01-30 11:41:24 +00:00
|
|
|
}
|
|
|
|
|
2020-08-12 21:43:51 +00:00
|
|
|
// Get object request
|
2020-01-30 11:41:24 +00:00
|
|
|
message GetRequest {
|
2020-08-12 21:43:51 +00:00
|
|
|
// Request body
|
2020-08-11 08:59:36 +00:00
|
|
|
message Body {
|
2020-08-11 10:54:58 +00:00
|
|
|
// Address of the requested object.
|
2020-08-12 21:43:51 +00:00
|
|
|
neo.fs.v2.refs.Address address = 1;
|
2020-08-11 08:59:36 +00:00
|
|
|
|
|
|
|
// Carries the raw option flag of the request.
|
|
|
|
// Raw request is sent to receive only the objects
|
|
|
|
// that are physically stored on the server.
|
|
|
|
bool raw = 2;
|
|
|
|
}
|
|
|
|
// Body of get object request message.
|
|
|
|
Body body = 1;
|
2020-08-05 23:45:39 +00:00
|
|
|
|
2020-08-11 09:03:50 +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-05 23:45:39 +00:00
|
|
|
|
2020-08-11 09:03:50 +00:00
|
|
|
// Carries request verification information. This header is used to 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 object response
|
2020-01-30 11:41:24 +00:00
|
|
|
message GetResponse {
|
2020-08-12 21:43:51 +00:00
|
|
|
// Response body
|
2020-08-11 08:59:36 +00:00
|
|
|
message Body {
|
2020-08-11 10:54:58 +00:00
|
|
|
// Initialization parameters of the object got from NeoFS.
|
|
|
|
message Init {
|
|
|
|
// Object ID
|
2020-08-12 21:43:51 +00:00
|
|
|
neo.fs.v2.refs.ObjectID object_id = 1;
|
|
|
|
|
2020-08-11 10:54:58 +00:00
|
|
|
// Object signature
|
2020-08-23 11:42:01 +00:00
|
|
|
neo.fs.v2.refs.Signature signature = 2;
|
2020-08-12 21:43:51 +00:00
|
|
|
|
2020-08-11 10:54:58 +00:00
|
|
|
// Object header.
|
|
|
|
Header header = 3;
|
|
|
|
}
|
2020-08-11 08:59:36 +00:00
|
|
|
// Carries the single message of the response stream.
|
2020-08-11 15:39:34 +00:00
|
|
|
oneof object_part {
|
2020-08-11 10:54:58 +00:00
|
|
|
// Initialization parameters of the object stream.
|
2020-08-23 11:42:01 +00:00
|
|
|
Init init = 1;
|
2020-08-12 21:43:51 +00:00
|
|
|
|
2020-08-11 10:54:58 +00:00
|
|
|
// Part of the object payload.
|
2020-08-11 08:59:36 +00:00
|
|
|
bytes chunk = 2;
|
|
|
|
}
|
2020-08-11 09:03:50 +00:00
|
|
|
}
|
2020-08-11 08:59:36 +00:00
|
|
|
// Body of get object 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:59:36 +00:00
|
|
|
|
|
|
|
// Carries response verification information. This header is used to
|
|
|
|
// 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
|
|
|
// Put object request
|
2020-01-30 11:41:24 +00:00
|
|
|
message PutRequest {
|
2020-08-12 21:43:51 +00:00
|
|
|
// Request body
|
2020-08-11 08:59:36 +00:00
|
|
|
message Body {
|
|
|
|
// Groups initialization parameters of object placement in NeoFS.
|
|
|
|
message Init {
|
2020-08-11 10:54:58 +00:00
|
|
|
// Object ID, where available
|
2020-08-12 21:43:51 +00:00
|
|
|
neo.fs.v2.refs.ObjectID object_id = 1;
|
|
|
|
|
2020-08-11 10:54:58 +00:00
|
|
|
// Object signature, were available
|
2020-08-23 11:42:01 +00:00
|
|
|
neo.fs.v2.refs.Signature signature = 2;
|
2020-08-12 21:43:51 +00:00
|
|
|
|
2020-08-11 10:54:58 +00:00
|
|
|
// Header of the object to save in the system.
|
|
|
|
Header header = 3;
|
2020-08-12 21:43:51 +00:00
|
|
|
|
2020-08-11 10:54:58 +00:00
|
|
|
// Number of the object copies to store within the RPC call.
|
|
|
|
// Default zero value is processed according to the
|
|
|
|
// container placement rules.
|
|
|
|
uint32 copies_number = 4;
|
2020-08-11 08:59:36 +00:00
|
|
|
}
|
|
|
|
// Carries the single part of the query stream.
|
2020-08-11 15:39:34 +00:00
|
|
|
oneof object_part {
|
2020-08-11 08:59:36 +00:00
|
|
|
// Carries the initialization parameters of the object stream.
|
|
|
|
Init init = 1;
|
2020-08-12 21:43:51 +00:00
|
|
|
|
2020-08-11 08:59:36 +00:00
|
|
|
// Carries part of the object payload.
|
|
|
|
bytes chunk = 2;
|
|
|
|
}
|
2020-08-11 09:03:50 +00:00
|
|
|
}
|
2020-08-11 08:59:36 +00:00
|
|
|
// Body of put object request message.
|
|
|
|
Body body = 1;
|
|
|
|
|
2020-08-11 09:03:50 +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-05 23:45:39 +00:00
|
|
|
|
2020-08-11 09:03:50 +00:00
|
|
|
// Carries request verification information. This header is used to 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
|
|
|
// Put object response
|
2020-01-30 11:41:24 +00:00
|
|
|
message PutResponse {
|
2020-08-12 21:43:51 +00:00
|
|
|
// Response body
|
2020-08-11 08:59:36 +00:00
|
|
|
message Body {
|
|
|
|
// Carries identifier of the saved object.
|
|
|
|
// It is used to access an object in the container.
|
2020-08-12 21:43:51 +00:00
|
|
|
neo.fs.v2.refs.ObjectID object_id = 1;
|
2020-08-11 08:59:36 +00:00
|
|
|
}
|
|
|
|
// Body of put object 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:59:36 +00:00
|
|
|
|
|
|
|
// Carries response verification information. This header is used to
|
|
|
|
// 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-05 23:45:39 +00:00
|
|
|
|
2020-08-12 21:43:51 +00:00
|
|
|
// Object Delete request
|
2020-01-30 11:41:24 +00:00
|
|
|
message DeleteRequest {
|
2020-08-12 21:43:51 +00:00
|
|
|
// Request body
|
2020-08-11 08:59:36 +00:00
|
|
|
message Body {
|
|
|
|
// Carries the address of the object to be deleted.
|
2020-08-12 21:43:51 +00:00
|
|
|
neo.fs.v2.refs.Address address = 1;
|
2020-08-18 11:26:53 +00:00
|
|
|
}
|
2020-08-11 08:59:36 +00:00
|
|
|
// Body of delete object request message.
|
|
|
|
Body body = 1;
|
2020-08-05 23:45:39 +00:00
|
|
|
|
2020-08-11 09:03:50 +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-05 23:45:39 +00:00
|
|
|
|
2020-08-11 09:03:50 +00:00
|
|
|
// Carries request verification information. This header is used to 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
|
|
|
}
|
|
|
|
|
|
|
|
// DeleteResponse is empty because we cannot guarantee permanent object removal
|
|
|
|
// in distributed system.
|
2020-02-13 14:22:25 +00:00
|
|
|
message DeleteResponse {
|
2020-08-12 21:43:51 +00:00
|
|
|
// Response body
|
2020-08-11 08:59:36 +00:00
|
|
|
message Body { }
|
|
|
|
|
|
|
|
// Body of delete object 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:59:36 +00:00
|
|
|
|
|
|
|
// Carries response verification information. This header is used to
|
|
|
|
// 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-02-13 14:22:25 +00:00
|
|
|
}
|
2020-01-30 11:41:24 +00:00
|
|
|
|
2020-08-12 21:43:51 +00:00
|
|
|
// Object head request
|
2020-01-30 11:41:24 +00:00
|
|
|
message HeadRequest {
|
2020-08-12 21:43:51 +00:00
|
|
|
// Request body
|
2020-08-11 08:59:36 +00:00
|
|
|
message Body {
|
2020-08-11 10:54:58 +00:00
|
|
|
// Address of the object with the requested header.
|
2020-08-12 21:43:51 +00:00
|
|
|
neo.fs.v2.refs.Address address = 1;
|
|
|
|
|
2020-08-11 10:54:58 +00:00
|
|
|
// Return only minimal header subset
|
2020-08-11 08:59:36 +00:00
|
|
|
bool main_only = 2;
|
2020-08-12 21:43:51 +00:00
|
|
|
|
2020-08-11 08:59:36 +00:00
|
|
|
// Carries the raw option flag of the request.
|
|
|
|
// Raw request is sent to receive only the headers of the objects
|
|
|
|
// that are physically stored on the server.
|
|
|
|
bool raw = 3;
|
|
|
|
}
|
|
|
|
// Body of head object request message.
|
|
|
|
Body body = 1;
|
2020-08-05 23:45:39 +00:00
|
|
|
|
2020-08-11 09:03:50 +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-05 23:45:39 +00:00
|
|
|
|
2020-08-11 09:03:50 +00:00
|
|
|
// Carries request verification information. This header is used to 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-05 23:45:39 +00:00
|
|
|
|
2020-08-12 21:43:51 +00:00
|
|
|
// Head response
|
2020-01-30 11:41:24 +00:00
|
|
|
message HeadResponse {
|
2020-08-12 21:43:51 +00:00
|
|
|
// Response body
|
2020-08-11 08:59:36 +00:00
|
|
|
message Body {
|
2020-08-11 10:54:58 +00:00
|
|
|
// Carries the requested object header or it's part
|
2020-08-11 15:39:34 +00:00
|
|
|
oneof head{
|
2020-08-12 21:43:51 +00:00
|
|
|
// Full object header
|
2020-08-11 10:54:58 +00:00
|
|
|
Header header = 1;
|
2020-08-12 21:43:51 +00:00
|
|
|
|
|
|
|
// Short object header
|
2020-08-11 10:54:58 +00:00
|
|
|
ShortHeader short_header = 2;
|
2020-09-03 12:55:39 +00:00
|
|
|
|
|
|
|
// Signed object_id to verify full header's authenticity through following steps:
|
|
|
|
// 1. Calculate SHA-256 of marshalled Headers structure.
|
|
|
|
// 2. Check if the resulting hash matched ObjectID
|
|
|
|
// 3. Check if ObjectID's signature in signature field is correct.
|
|
|
|
neo.fs.v2.refs.Signature signature = 3;
|
2020-08-11 10:54:58 +00:00
|
|
|
}
|
2020-08-11 08:59:36 +00:00
|
|
|
}
|
|
|
|
// Body of head object 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:59:36 +00:00
|
|
|
|
|
|
|
// Carries response verification information. This header is used to
|
|
|
|
// 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
|
|
|
// Search objects request
|
2020-01-30 11:41:24 +00:00
|
|
|
message SearchRequest {
|
2020-08-12 21:43:51 +00:00
|
|
|
// Request body
|
2020-08-11 08:59:36 +00:00
|
|
|
message Body {
|
|
|
|
// Carries search container identifier.
|
2020-08-12 21:43:51 +00:00
|
|
|
neo.fs.v2.refs.ContainerID container_id = 1;
|
|
|
|
|
|
|
|
// Version of the Query Language used
|
|
|
|
uint32 version = 2;
|
|
|
|
// Filter structure
|
|
|
|
message Filter {
|
|
|
|
// Match type to use
|
|
|
|
MatchType match_type = 1;
|
2020-08-11 08:59:36 +00:00
|
|
|
|
2020-08-12 21:43:51 +00:00
|
|
|
// Header name to match
|
|
|
|
string name = 2;
|
2020-08-05 18:21:26 +00:00
|
|
|
|
2020-08-12 21:43:51 +00:00
|
|
|
// Header value to match
|
|
|
|
string value = 3;
|
|
|
|
}
|
|
|
|
// List of search expressions
|
|
|
|
repeated Filter filters = 3;
|
2020-08-11 09:03:50 +00:00
|
|
|
}
|
2020-08-11 08:59:36 +00:00
|
|
|
// Body of search object request message.
|
|
|
|
Body body = 1;
|
2020-08-05 18:21:26 +00:00
|
|
|
|
2020-08-11 09:03:50 +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-05 23:45:39 +00:00
|
|
|
|
2020-08-11 09:03:50 +00:00
|
|
|
// Carries request verification information. This header is used to 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
|
|
|
// Search response
|
2020-01-30 11:41:24 +00:00
|
|
|
message SearchResponse {
|
2020-08-12 21:43:51 +00:00
|
|
|
// Response body
|
2020-08-11 08:59:36 +00:00
|
|
|
message Body {
|
2020-08-12 21:43:51 +00:00
|
|
|
// Carries list of object identifiers that match the search query
|
|
|
|
repeated neo.fs.v2.refs.ObjectID id_list = 1;
|
2020-08-11 08:59:36 +00:00
|
|
|
}
|
|
|
|
// Body of search object 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:59:36 +00:00
|
|
|
|
|
|
|
// Carries response verification information. This header is used to
|
|
|
|
// 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-05 23:45:39 +00:00
|
|
|
// Range groups the parameters of object payload range.
|
2020-08-04 08:43:34 +00:00
|
|
|
message Range {
|
2020-08-11 09:03:50 +00:00
|
|
|
// Carries the offset of the range from the object payload start.
|
|
|
|
uint64 offset = 1;
|
2020-08-05 23:45:39 +00:00
|
|
|
|
2020-08-11 09:03:50 +00:00
|
|
|
// Carries the length of the object payload range.
|
|
|
|
uint64 length = 2;
|
2020-08-04 08:43:34 +00:00
|
|
|
}
|
|
|
|
|
2020-08-12 21:43:51 +00:00
|
|
|
// Request to get part of object's payload
|
2020-01-30 11:41:24 +00:00
|
|
|
message GetRangeRequest {
|
2020-08-12 21:43:51 +00:00
|
|
|
// Request Body
|
2020-08-11 08:59:36 +00:00
|
|
|
message Body {
|
|
|
|
// Address carries address of the object that contains the requested payload range.
|
2020-08-12 21:43:51 +00:00
|
|
|
neo.fs.v2.refs.Address address = 1;
|
2020-08-05 23:45:39 +00:00
|
|
|
|
2020-08-11 08:59:36 +00:00
|
|
|
// Range carries the parameters of the requested payload range.
|
|
|
|
Range range = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Body of get range object request message.
|
|
|
|
Body body = 1;
|
2020-08-05 23:45:39 +00:00
|
|
|
|
2020-08-11 09:03:50 +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-05 23:45:39 +00:00
|
|
|
|
2020-08-11 09:03:50 +00:00
|
|
|
// Carries request verification information. This header is used to 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 part of object's payload
|
2020-01-30 11:41:24 +00:00
|
|
|
message GetRangeResponse {
|
2020-08-12 21:43:51 +00:00
|
|
|
// Response body
|
2020-08-11 08:59:36 +00:00
|
|
|
message Body {
|
|
|
|
// Carries part of the object payload.
|
|
|
|
bytes chunk = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Body of get range object 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:59:36 +00:00
|
|
|
|
|
|
|
// Carries response verification information. This header is used to
|
|
|
|
// 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
|
|
|
// Get hash of object's payload part
|
2020-01-30 11:41:24 +00:00
|
|
|
message GetRangeHashRequest {
|
2020-08-12 21:43:51 +00:00
|
|
|
// Request body
|
2020-08-11 08:59:36 +00:00
|
|
|
message Body {
|
|
|
|
// Carries address of the object that contains the requested payload range.
|
2020-08-12 21:43:51 +00:00
|
|
|
neo.fs.v2.refs.Address address = 1;
|
2020-08-05 23:45:39 +00:00
|
|
|
|
2020-08-11 08:59:36 +00:00
|
|
|
// Carries the list of object payload range to calculate homomorphic hash.
|
|
|
|
repeated Range ranges = 2;
|
2020-08-05 23:45:39 +00:00
|
|
|
|
2020-08-11 08:59:36 +00:00
|
|
|
// Carries binary salt to XOR object payload ranges before hash calculation.
|
|
|
|
bytes salt = 3;
|
2020-08-18 15:26:51 +00:00
|
|
|
|
|
|
|
// Checksum algorithm type
|
|
|
|
neo.fs.v2.refs.ChecksumType type = 4;
|
2020-08-11 08:59:36 +00:00
|
|
|
}
|
|
|
|
// Body of get range hash object request message.
|
|
|
|
Body body = 1;
|
2020-08-05 23:45:39 +00:00
|
|
|
|
2020-08-11 09:03:50 +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-05 23:45:39 +00:00
|
|
|
|
2020-08-11 09:03:50 +00:00
|
|
|
// Carries request verification information. This header is used to 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 hash of object's payload part
|
2020-01-30 11:41:24 +00:00
|
|
|
message GetRangeHashResponse {
|
2020-08-12 21:43:51 +00:00
|
|
|
// Response body
|
2020-08-11 08:59:36 +00:00
|
|
|
message Body {
|
2020-08-18 15:26:51 +00:00
|
|
|
// Checksum algorithm type
|
|
|
|
neo.fs.v2.refs.ChecksumType type = 1;
|
|
|
|
|
|
|
|
// List of range hashes in a binary format.
|
|
|
|
repeated bytes hash_list = 2;
|
2020-08-11 08:59:36 +00:00
|
|
|
}
|
|
|
|
// Body of get range hash object 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:59:36 +00:00
|
|
|
|
|
|
|
// Carries response verification information. This header is used to
|
|
|
|
// 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
|
|
|
}
|