From 342eeb47a8b5a17271a6336f10123bd528a58df8 Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Thu, 22 Oct 2020 18:41:08 +0300 Subject: [PATCH] [#172] v2/object: Define well-known system attributes Signed-off-by: Leonard Lyubich --- v2/object/attributes.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 v2/object/attributes.go diff --git a/v2/object/attributes.go b/v2/object/attributes.go new file mode 100644 index 0000000..0da07b8 --- /dev/null +++ b/v2/object/attributes.go @@ -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" +)