forked from TrueCloudLab/frostfs-api
21f51c8c8b
Capacity field is obsolete and removed. Salt field renamed to Nonce so it shows better the purpose of the field. Remaining fields are reorded to have fixed size fields on top. It affects stable-marshaller implementation. Signed-off-by: Alex Vanin <alexey@nspcc.ru>
32 lines
No EOL
1.1 KiB
Protocol Buffer
32 lines
No EOL
1.1 KiB
Protocol Buffer
syntax = "proto3";
|
|
package container;
|
|
option go_package = "github.com/nspcc-dev/neofs-api-go/container";
|
|
option csharp_namespace = "NeoFS.API.Container";
|
|
|
|
import "github.com/nspcc-dev/netmap/selector.proto";
|
|
import "github.com/gogo/protobuf/gogoproto/gogo.proto";
|
|
|
|
option (gogoproto.stable_marshaler_all) = true;
|
|
|
|
// The Container service definition.
|
|
message Container {
|
|
// OwnerID is a 25 byte NEO3.0 wallet address.
|
|
bytes OwnerID = 1;
|
|
// Nonce is a 16 byte UUID, used to avoid collisions of container id.
|
|
bytes Nonce = 2;
|
|
// BasicACL contains access control rules for owner, system, others groups and
|
|
// permission bits for bearer token and Extended ACL.
|
|
uint32 BasicACL = 3;
|
|
// Attributes define any immutable characteristics of container.
|
|
repeated Attribute Attributes = 4;
|
|
// Rules define storage policy for the object inside the container.
|
|
netmap.PlacementRule Rules = 5;
|
|
}
|
|
|
|
// Attribute is a key-value pair of strings.
|
|
message Attribute {
|
|
// Key of immutable container attribute.
|
|
string Key = 1;
|
|
// Value of immutable container attribute.
|
|
string Value = 2;
|
|
} |