[#26] object: Rename UserHeader to Attribute

The name of object.UserHeader message implies its use by the user. However,
the attributes of an object can also be set internally by the system. To
generalize the intended purpose of the message, this commit renames it to an
Attribute (like container.Attribute).

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2020-08-04 12:53:33 +03:00 committed by Stanislav Bogatyrev
parent c2b5b6b6ae
commit a76f634e47
2 changed files with 22 additions and 20 deletions

View file

@ -7,10 +7,12 @@ import "refs/types.proto";
import "service/verify.proto";
import "storagegroup/types.proto";
message UserHeader {
// Key of the user's header
string Key = 1;
// Value of the user's header
// Attribute groups the parameters of the object attributes.
message Attribute {
// Key carries the string key to the object attribute.
string Key = 1;
// Value carries the string value of the object attribute.
string Value = 2;
}
@ -20,8 +22,8 @@ message Header {
Link Link = 1;
// Redirect not used yet
refs.Address Redirect = 2;
// UserHeader is a set of KV headers defined by user
UserHeader UserHeader = 3;
// Attribute is a set of K-V object attributes
Attribute Attribute = 3;
// Transform defines transform operation (e.g. payload split)
Transform Transform = 4;
// Tombstone header that set up in deleted objects