From 7348dee623429def2db32411e135fe5409e948f3 Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Mon, 11 Oct 2021 11:04:58 +0300 Subject: [PATCH] [#351] v2/container: Define well-known attributes for NNS integration Define const `SysAttributeName` and `SysAttributeZone` keys to NNS attributes. Signed-off-by: Leonard Lyubich --- v2/container/attributes.go | 6 ++++++ v2/container/grpc/types.pb.go | Bin 12717 -> 12998 bytes 2 files changed, 6 insertions(+) diff --git a/v2/container/attributes.go b/v2/container/attributes.go index b91dcc6..467be48 100644 --- a/v2/container/attributes.go +++ b/v2/container/attributes.go @@ -6,4 +6,10 @@ const SysAttributePrefix = "__NEOFS__" const ( // SysAttributeSubnet is a string ID of container's storage subnet. SysAttributeSubnet = SysAttributePrefix + "SUBNET" + + // SysAttributeName is a string of human-friendly container name registered as the domain in NNS contract. + SysAttributeName = SysAttributePrefix + "NAME" + + // SysAttributeZone is a string of zone for container name. + SysAttributeZone = SysAttributePrefix + "ZONE" ) diff --git a/v2/container/grpc/types.pb.go b/v2/container/grpc/types.pb.go index 92975eee7ddf2b53590a0c8342003dbc2fa6e0e1..279c7818596962a2a9de0fd0e276e41343fee07a 100644 GIT binary patch delta 292 zcmZvXy9xp^5Jh_{JKI}}kKRsDLD02WZA5Ux?nDFbM3QWwjb9`PeuIL4;%Au6iYQnO z%;TOj=k!jONBx8**6V0E8^yl#r$el2-7bLG8O0lDiEWV!ZcC$xv)uuyW+xPr0gIeq zXrrtnLm7mH+Y&OJ`#BU>K~WTk8zWNJDO+E_x;A;kNrBCe1fM7X04!++ZvX%Q