forked from TrueCloudLab/frostfs-node
Due to source code relocation from GitHub. Signed-off-by: Alex Vanin <a.vanin@yadro.com>
34 lines
934 B
Protocol Buffer
34 lines
934 B
Protocol Buffer
/**
|
|
* Auxiliary structures to use with tree service.
|
|
*/
|
|
syntax = "proto3";
|
|
|
|
package tree;
|
|
|
|
option go_package = "git.frostfs.info/TrueCloudLab/frostfs-node/pkg/services/tree";
|
|
|
|
// KeyValue represents key-value pair attached to an object.
|
|
message KeyValue {
|
|
// Attribute name.
|
|
string key = 1 [json_name = "key"];
|
|
// Attribute value.
|
|
bytes value = 2 [json_name = "value"];
|
|
}
|
|
|
|
// LogMove represents log-entry for a single move operation.
|
|
message LogMove {
|
|
// ID of the parent node.
|
|
uint64 parent_id = 1 [json_name = "parentID"];
|
|
// Node meta information, including operation timestamp.
|
|
bytes meta = 2 [json_name = "meta"];
|
|
// ID of the node to move.
|
|
uint64 child_id = 3 [json_name = "childID"];
|
|
}
|
|
|
|
// Signature of a message.
|
|
message Signature {
|
|
// Serialized public key as defined in FrostFS API.
|
|
bytes key = 1 [json_name = "key"];
|
|
// Signature of a message body.
|
|
bytes sign = 2 [json_name = "signature"];
|
|
}
|