[#172] v2/object: Define well-known system attributes

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2020-10-22 18:41:08 +03:00 committed by Leonard Lyubich
parent 634f7e92e8
commit 342eeb47a8

12
v2/object/attributes.go Normal file
View file

@ -0,0 +1,12 @@
package object
// SysAttrPrefix is a prefix of key to system attribute.
const SysAttrPrefix = "__NEOFS__"
const (
// SysAttrUploadID marks smaller parts of a split bigger object.
SysAttrUploadID = SysAttrPrefix + "UPLOAD_ID"
// SysAttrExpEpoch tells GC to delete object after that epoch.
SysAttrExpEpoch = SysAttrPrefix + "EXPIRATION_EPOCH"
)