forked from TrueCloudLab/frostfs-api
[#50] Add version fields where it makes sense
Some pieces of data (container, object, etc) may be stored for a long time and there will be a need in the future to understand which obscure format from the past was used to create it. Signed-off-by: Stanislav Bogatyrev <stanislav@nspcc.ru>
This commit is contained in:
parent
7555e166b2
commit
4e908a17b1
4 changed files with 23 additions and 17 deletions
|
@ -50,18 +50,18 @@ message ShortHeader {
|
|||
|
||||
// Object Headers
|
||||
message Header {
|
||||
// Object's container
|
||||
neo.fs.v2.refs.ContainerID container_id = 1;
|
||||
|
||||
// Object's owner
|
||||
neo.fs.v2.refs.OwnerID owner_id = 2;
|
||||
|
||||
// Epoch when the object was created
|
||||
uint64 creation_epoch = 3;
|
||||
|
||||
// Object format version.
|
||||
// Effectively the version of API library used to create particular object
|
||||
neo.fs.v2.service.Version version = 4;
|
||||
neo.fs.v2.service.Version version = 1;
|
||||
|
||||
// Object's container
|
||||
neo.fs.v2.refs.ContainerID container_id = 2;
|
||||
|
||||
// Object's owner
|
||||
neo.fs.v2.refs.OwnerID owner_id = 3;
|
||||
|
||||
// Object creation Epoch
|
||||
uint64 creation_epoch = 4;
|
||||
|
||||
// Size of payload in bytes.
|
||||
// 0xFFFFFFFFFFFFFFFF means `payload_length` is unknown
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue