forked from TrueCloudLab/frostfs-api
Add more well-known attributes
Resolves nspcc-dev/neofs-api-go#172 Signed-off-by: Stanislav Bogatyrev <stanislav@nspcc.ru>
This commit is contained in:
parent
bcc6f68eda
commit
31e1801c4a
2 changed files with 21 additions and 3 deletions
|
@ -33,9 +33,16 @@ message Container {
|
||||||
//
|
//
|
||||||
// There are some "well-known" attributes affecting system behaviour:
|
// There are some "well-known" attributes affecting system behaviour:
|
||||||
//
|
//
|
||||||
// * Subnet \
|
// * __NEOFS__SUBNET \
|
||||||
// String ID of container's storage subnet. Container can be attached to
|
// String ID of container's storage subnet. Container can be attached to
|
||||||
// only one subnet.
|
// only one subnet.
|
||||||
|
//
|
||||||
|
// And some well-known attributes used by applications only:
|
||||||
|
//
|
||||||
|
// * Name \
|
||||||
|
// Human-friendly name
|
||||||
|
// * Timestamp \
|
||||||
|
// User-defined local time of container creation in Unix Timestamp format
|
||||||
message Attribute {
|
message Attribute {
|
||||||
// Attribute name key
|
// Attribute name key
|
||||||
string key = 1 [json_name = "key"];
|
string key = 1 [json_name = "key"];
|
||||||
|
|
|
@ -87,8 +87,19 @@ message Header {
|
||||||
// There are some "well-known" attributes starting with `__NEOFS__` prefix
|
// There are some "well-known" attributes starting with `__NEOFS__` prefix
|
||||||
// that affect system behaviour:
|
// that affect system behaviour:
|
||||||
//
|
//
|
||||||
// * __NEOFS__UPLOAD_ID
|
// * __NEOFS__UPLOAD_ID \
|
||||||
// * __NEOFS__EXPIRATION_EPOCH
|
// Marks smaller parts of a split bigger object
|
||||||
|
// * __NEOFS__EXPIRATION_EPOCH \
|
||||||
|
// Tells GC to delete object after that epoch
|
||||||
|
//
|
||||||
|
// And some well-known attributes used by applications only:
|
||||||
|
//
|
||||||
|
// * Name \
|
||||||
|
// Human-friendly name
|
||||||
|
// * FileName \
|
||||||
|
// File name to be associated with the object on saving
|
||||||
|
// * Timestamp \
|
||||||
|
// User-defined local time of object creation in Unix Timestamp format
|
||||||
//
|
//
|
||||||
// For detailed description of each well-known attribute please see the
|
// For detailed description of each well-known attribute please see the
|
||||||
// corresponding section in NeoFS Technical specification.
|
// corresponding section in NeoFS Technical specification.
|
||||||
|
|
Loading…
Reference in a new issue