Skip to content
This repository was archived by the owner on Dec 27, 2024. It is now read-only.

Commit

Permalink
[#351] v2/container: Define well-known attributes for NNS integration
Browse files Browse the repository at this point in the history
Define const `SysAttributeName` and `SysAttributeZone` keys to NNS
attributes.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
  • Loading branch information
Leonard Lyubich committed Oct 11, 2021
1 parent a8fa0f9 commit fba67c6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions v2/container/attributes.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

0 comments on commit fba67c6

Please sign in to comment.