[#351] v2/container: Define well-known attributes for NNS integration
Define const `SysAttributeName` and `SysAttributeZone` keys to NNS attributes. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
a8fa0f9847
commit
7348dee623
2 changed files with 6 additions and 0 deletions
|
@ -6,4 +6,10 @@ const SysAttributePrefix = "__NEOFS__"
|
||||||
const (
|
const (
|
||||||
// SysAttributeSubnet is a string ID of container's storage subnet.
|
// SysAttributeSubnet is a string ID of container's storage subnet.
|
||||||
SysAttributeSubnet = SysAttributePrefix + "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"
|
||||||
)
|
)
|
||||||
|
|
BIN
v2/container/grpc/types.pb.go
generated
BIN
v2/container/grpc/types.pb.go
generated
Binary file not shown.
Loading…
Reference in a new issue