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 92975ee..279c781 100644 --- a/v2/container/grpc/types.pb.go +++ b/v2/container/grpc/types.pb.go @@ -134,6 +134,12 @@ func (x *Container) GetPlacementPolicy() *grpc1.PlacementPolicy { // * __NEOFS__SUBNET \ // String ID of container's storage subnet. Container can be attached to // only one subnet. +// * __NEOFS__NAME \ +// String of human-friendly container name registered as the domain in +// NNS contract. +// * __NEOFS__ZONE \ +// String of zone for `__NEOFS__NAME`. Used as TLD of domain name in NNS +// contract. If zone is not specified, use default zone: `container`. // // And some well-known attributes used by applications only: //