[#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:
Stanislav Bogatyrev 2020-08-14 22:44:32 +03:00 committed by Alex Vanin
parent 7555e166b2
commit 4e908a17b1
4 changed files with 23 additions and 17 deletions

View file

@ -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