forked from TrueCloudLab/frostfs-api-go
[#13] *: Rename __FROSTFS__ prefix to __SYSTEM__
Signed-off-by: Denis Kirillov <d.kirillov@yadro.com>
This commit is contained in:
parent
8009022a20
commit
9dc3753467
5 changed files with 20 additions and 6 deletions
|
@ -1,7 +1,7 @@
|
||||||
package container
|
package container
|
||||||
|
|
||||||
// SysAttributePrefix is a prefix of key to system attribute.
|
// SysAttributePrefix is a prefix of key to system attribute.
|
||||||
const SysAttributePrefix = "__FROSTFS__"
|
const SysAttributePrefix = "__SYSTEM__"
|
||||||
|
|
||||||
const (
|
const (
|
||||||
// SysAttributeSubnet is a string ID of container's storage subnet.
|
// SysAttributeSubnet is a string ID of container's storage subnet.
|
||||||
|
@ -18,19 +18,24 @@ const (
|
||||||
)
|
)
|
||||||
|
|
||||||
// SysAttributePrefixNeoFS is a prefix of key to system attribute.
|
// SysAttributePrefixNeoFS is a prefix of key to system attribute.
|
||||||
|
// Deprecated: use SysAttributePrefix
|
||||||
const SysAttributePrefixNeoFS = "__NEOFS__"
|
const SysAttributePrefixNeoFS = "__NEOFS__"
|
||||||
|
|
||||||
const (
|
const (
|
||||||
// SysAttributeSubnetNeoFS is a string ID of container's storage subnet.
|
// SysAttributeSubnetNeoFS is a string ID of container's storage subnet.
|
||||||
|
// Deprecated: use SysAttributeSubnet
|
||||||
SysAttributeSubnetNeoFS = SysAttributePrefixNeoFS + "SUBNET"
|
SysAttributeSubnetNeoFS = SysAttributePrefixNeoFS + "SUBNET"
|
||||||
|
|
||||||
// SysAttributeNameNeoFS is a string of human-friendly container name registered as the domain in NNS contract.
|
// SysAttributeNameNeoFS is a string of human-friendly container name registered as the domain in NNS contract.
|
||||||
|
// Deprecated: use SysAttributeName
|
||||||
SysAttributeNameNeoFS = SysAttributePrefixNeoFS + "NAME"
|
SysAttributeNameNeoFS = SysAttributePrefixNeoFS + "NAME"
|
||||||
|
|
||||||
// SysAttributeZoneNeoFS is a string of zone for container name.
|
// SysAttributeZoneNeoFS is a string of zone for container name.
|
||||||
|
// Deprecated: use SysAttributeZone
|
||||||
SysAttributeZoneNeoFS = SysAttributePrefixNeoFS + "ZONE"
|
SysAttributeZoneNeoFS = SysAttributePrefixNeoFS + "ZONE"
|
||||||
|
|
||||||
// SysAttributeHomomorphicHashingNeoFS is a container's homomorphic hashing state.
|
// SysAttributeHomomorphicHashingNeoFS is a container's homomorphic hashing state.
|
||||||
|
// Deprecated: use SysAttributeHomomorphicHashing
|
||||||
SysAttributeHomomorphicHashingNeoFS = SysAttributePrefixNeoFS + "DISABLE_HOMOMORPHIC_HASHING"
|
SysAttributeHomomorphicHashingNeoFS = SysAttributePrefixNeoFS + "DISABLE_HOMOMORPHIC_HASHING"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -9,9 +9,10 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
// prefix of keys to subnet attributes.
|
// prefix of keys to subnet attributes.
|
||||||
const attrSubnetPrefix = "__FROSTFS__SUBNET_"
|
const attrSubnetPrefix = "__SYSTEM__SUBNET_"
|
||||||
|
|
||||||
// prefix of keys to subnet attributes.
|
// prefix of keys to subnet attributes.
|
||||||
|
// Deprecated: use attrSubnetPrefix
|
||||||
const attrSubnetPrefixNeoFS = "__NEOFS__SUBNET_"
|
const attrSubnetPrefixNeoFS = "__NEOFS__SUBNET_"
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -65,7 +66,7 @@ func subnetAttributeKey(id *refs.SubnetID) string {
|
||||||
// - disables non-zero subnet;
|
// - disables non-zero subnet;
|
||||||
// - enables zero subnet.
|
// - enables zero subnet.
|
||||||
//
|
//
|
||||||
// Attribute key is calculated from ID using format `__FROSTFS__SUBNET_%s`.
|
// Attribute key is calculated from ID using format `__SYSTEM__SUBNET_%s`.
|
||||||
// Attribute Value is:
|
// Attribute Value is:
|
||||||
// - `True` if node enters the subnet;
|
// - `True` if node enters the subnet;
|
||||||
// - `False`, otherwise.
|
// - `False`, otherwise.
|
||||||
|
|
|
@ -11,7 +11,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func subnetAttrKey(val string) string {
|
func subnetAttrKey(val string) string {
|
||||||
return "__FROSTFS__SUBNET_" + val
|
return "__SYSTEM__SUBNET_" + val
|
||||||
}
|
}
|
||||||
|
|
||||||
func assertSubnetAttrKey(t *testing.T, attr *netmap.Attribute, num uint32) {
|
func assertSubnetAttrKey(t *testing.T, attr *netmap.Attribute, num uint32) {
|
||||||
|
|
|
@ -7,7 +7,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
// SysAttributePrefix is a prefix of key to system attribute.
|
// SysAttributePrefix is a prefix of key to system attribute.
|
||||||
const SysAttributePrefix = "__FROSTFS__"
|
const SysAttributePrefix = "__SYSTEM__"
|
||||||
|
|
||||||
const (
|
const (
|
||||||
// SysAttributeUploadID marks smaller parts of a split bigger object.
|
// SysAttributeUploadID marks smaller parts of a split bigger object.
|
||||||
|
@ -26,21 +26,26 @@ const (
|
||||||
)
|
)
|
||||||
|
|
||||||
// SysAttributePrefixNeoFS is a prefix of key to system attribute.
|
// SysAttributePrefixNeoFS is a prefix of key to system attribute.
|
||||||
|
// Deprecated: use SysAttributePrefix
|
||||||
const SysAttributePrefixNeoFS = "__NEOFS__"
|
const SysAttributePrefixNeoFS = "__NEOFS__"
|
||||||
|
|
||||||
const (
|
const (
|
||||||
// SysAttributeUploadIDNeoFS marks smaller parts of a split bigger object.
|
// SysAttributeUploadIDNeoFS marks smaller parts of a split bigger object.
|
||||||
|
// Deprecated: use SysAttributeUploadID
|
||||||
SysAttributeUploadIDNeoFS = SysAttributePrefixNeoFS + "UPLOAD_ID"
|
SysAttributeUploadIDNeoFS = SysAttributePrefixNeoFS + "UPLOAD_ID"
|
||||||
|
|
||||||
// SysAttributeExpEpochNeoFS tells GC to delete object after that epoch.
|
// SysAttributeExpEpochNeoFS tells GC to delete object after that epoch.
|
||||||
|
// Deprecated: use SysAttributeExpEpoch
|
||||||
SysAttributeExpEpochNeoFS = SysAttributePrefixNeoFS + "EXPIRATION_EPOCH"
|
SysAttributeExpEpochNeoFS = SysAttributePrefixNeoFS + "EXPIRATION_EPOCH"
|
||||||
|
|
||||||
// SysAttributeTickEpochNeoFS defines what epoch must produce object
|
// SysAttributeTickEpochNeoFS defines what epoch must produce object
|
||||||
// notification.
|
// notification.
|
||||||
|
// Deprecated: use SysAttributeTickEpoch
|
||||||
SysAttributeTickEpochNeoFS = SysAttributePrefixNeoFS + "TICK_EPOCH"
|
SysAttributeTickEpochNeoFS = SysAttributePrefixNeoFS + "TICK_EPOCH"
|
||||||
|
|
||||||
// SysAttributeTickTopicNeoFS defines what topic object notification
|
// SysAttributeTickTopicNeoFS defines what topic object notification
|
||||||
// must be sent to.
|
// must be sent to.
|
||||||
|
// Deprecated: use SysAttributeTickTopic
|
||||||
SysAttributeTickTopicNeoFS = SysAttributePrefixNeoFS + "TICK_TOPIC"
|
SysAttributeTickTopicNeoFS = SysAttributePrefixNeoFS + "TICK_TOPIC"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
package session
|
package session
|
||||||
|
|
||||||
// ReservedXHeaderPrefix is a prefix of keys to "well-known" X-headers.
|
// ReservedXHeaderPrefix is a prefix of keys to "well-known" X-headers.
|
||||||
const ReservedXHeaderPrefix = "__FROSTFS__"
|
const ReservedXHeaderPrefix = "__SYSTEM__"
|
||||||
|
|
||||||
const (
|
const (
|
||||||
// XHeaderNetmapEpoch is a key to the reserved X-header that specifies netmap epoch
|
// XHeaderNetmapEpoch is a key to the reserved X-header that specifies netmap epoch
|
||||||
|
@ -16,16 +16,19 @@ const (
|
||||||
)
|
)
|
||||||
|
|
||||||
// ReservedXHeaderPrefixNeoFS is a prefix of keys to "well-known" X-headers.
|
// ReservedXHeaderPrefixNeoFS is a prefix of keys to "well-known" X-headers.
|
||||||
|
// Deprecated: use ReservedXHeaderPrefix
|
||||||
const ReservedXHeaderPrefixNeoFS = "__NEOFS__"
|
const ReservedXHeaderPrefixNeoFS = "__NEOFS__"
|
||||||
|
|
||||||
const (
|
const (
|
||||||
// XHeaderNetmapEpochNeoFS is a key to the reserved X-header that specifies netmap epoch
|
// XHeaderNetmapEpochNeoFS is a key to the reserved X-header that specifies netmap epoch
|
||||||
// to use for object placement calculation. If set to '0' or not set, the current
|
// to use for object placement calculation. If set to '0' or not set, the current
|
||||||
// epoch only will be used.
|
// epoch only will be used.
|
||||||
|
// Deprecated: use XHeaderNetmapEpoch
|
||||||
XHeaderNetmapEpochNeoFS = ReservedXHeaderPrefixNeoFS + "NETMAP_EPOCH"
|
XHeaderNetmapEpochNeoFS = ReservedXHeaderPrefixNeoFS + "NETMAP_EPOCH"
|
||||||
|
|
||||||
// XHeaderNetmapLookupDepthNeoFS is a key to the reserved X-header that limits
|
// XHeaderNetmapLookupDepthNeoFS is a key to the reserved X-header that limits
|
||||||
// how many past epochs back the node will can lookup. If set to '0' or not
|
// how many past epochs back the node will can lookup. If set to '0' or not
|
||||||
// set, the current epoch only will be used.
|
// set, the current epoch only will be used.
|
||||||
|
// Deprecated: use XHeaderNetmapLookupDepth
|
||||||
XHeaderNetmapLookupDepthNeoFS = ReservedXHeaderPrefixNeoFS + "NETMAP_LOOKUP_DEPTH"
|
XHeaderNetmapLookupDepthNeoFS = ReservedXHeaderPrefixNeoFS + "NETMAP_LOOKUP_DEPTH"
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue