2022-05-19 11:53:16 +00:00
|
|
|
/**
|
|
|
|
* Auxiliary structures to use with tree service.
|
|
|
|
*/
|
2022-04-22 13:30:20 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
package tree;
|
|
|
|
|
2022-12-23 17:35:35 +00:00
|
|
|
option go_package = "github.com/TrueCloudLab/frostfs-node/pkg/services/tree";
|
2022-04-22 13:30:20 +00:00
|
|
|
|
|
|
|
// KeyValue represents key-value pair attached to an object.
|
|
|
|
message KeyValue {
|
2022-05-19 11:53:16 +00:00
|
|
|
// Attribute name.
|
2022-04-22 13:30:20 +00:00
|
|
|
string key = 1 [json_name = "key"];
|
2022-05-19 11:53:16 +00:00
|
|
|
// Attribute value.
|
2022-04-22 13:30:20 +00:00
|
|
|
bytes value = 2 [json_name = "value"];
|
|
|
|
}
|
|
|
|
|
|
|
|
// LogMove represents log-entry for a single move operation.
|
|
|
|
message LogMove {
|
|
|
|
// ID of the parent node.
|
2022-05-05 08:20:23 +00:00
|
|
|
uint64 parent_id = 1 [json_name = "parentID"];
|
2022-04-22 13:30:20 +00:00
|
|
|
// Node meta information, including operation timestamp.
|
2022-05-05 08:20:23 +00:00
|
|
|
bytes meta = 2 [json_name = "meta"];
|
2022-04-22 13:30:20 +00:00
|
|
|
// ID of the node to move.
|
2022-05-05 08:20:23 +00:00
|
|
|
uint64 child_id = 3 [json_name = "childID"];
|
2022-04-22 13:30:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Signature of a message.
|
|
|
|
message Signature {
|
2023-02-05 15:59:38 +00:00
|
|
|
// Serialized public key as defined in FrostFS API.
|
2022-04-22 13:30:20 +00:00
|
|
|
bytes key = 1 [json_name = "key"];
|
2022-05-19 11:53:16 +00:00
|
|
|
// Signature of a message body.
|
2022-04-22 13:30:20 +00:00
|
|
|
bytes sign = 2 [json_name = "signature"];
|
|
|
|
}
|