forked from TrueCloudLab/frostfs-api-go
[#172] Improve the readability of named attribute constants
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
5494d3417f
commit
ad0b01e892
4 changed files with 20 additions and 20 deletions
|
@ -1,11 +1,11 @@
|
||||||
package container
|
package container
|
||||||
|
|
||||||
const (
|
const (
|
||||||
// AttrName is an attribute key that is commonly used to denote
|
// AttributeName is an attribute key that is commonly used to denote
|
||||||
// human-friendly name.
|
// human-friendly name.
|
||||||
AttrName = "Name"
|
AttributeName = "Name"
|
||||||
|
|
||||||
// AttrTimestamp is an attribute key that is commonly used to denote
|
// AttributeTimestamp is an attribute key that is commonly used to denote
|
||||||
// user-defined local time of container creation in Unix Timestamp format.
|
// user-defined local time of container creation in Unix Timestamp format.
|
||||||
AttrTimestamp = "Timestamp"
|
AttributeTimestamp = "Timestamp"
|
||||||
)
|
)
|
||||||
|
|
|
@ -1,15 +1,15 @@
|
||||||
package object
|
package object
|
||||||
|
|
||||||
const (
|
const (
|
||||||
// AttrName is an attribute key that is commonly used to denote
|
// AttributeName is an attribute key that is commonly used to denote
|
||||||
// human-friendly name.
|
// human-friendly name.
|
||||||
AttrName = "Name"
|
AttributeName = "Name"
|
||||||
|
|
||||||
// AttrFileName is an attribute key that is commonly used to denote
|
// AttributeFileName is an attribute key that is commonly used to denote
|
||||||
// file name to be associated with the object on saving.
|
// file name to be associated with the object on saving.
|
||||||
AttrFileName = "FileName"
|
AttributeFileName = "FileName"
|
||||||
|
|
||||||
// AttrTimestamp is an attribute key that is commonly used to denote
|
// AttributeTimestamp is an attribute key that is commonly used to denote
|
||||||
// user-defined local time of object creation in Unix Timestamp format.
|
// user-defined local time of object creation in Unix Timestamp format.
|
||||||
AttrTimestamp = "Timestamp"
|
AttributeTimestamp = "Timestamp"
|
||||||
)
|
)
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
package container
|
package container
|
||||||
|
|
||||||
// SysAttrPrefix is a prefix of key to system attribute.
|
// SysAttributePrefix is a prefix of key to system attribute.
|
||||||
const SysAttrPrefix = "__NEOFS__"
|
const SysAttributePrefix = "__NEOFS__"
|
||||||
|
|
||||||
const (
|
const (
|
||||||
// SysAttrSubnet is a string ID of container's storage subnet.
|
// SysAttributeSubnet is a string ID of container's storage subnet.
|
||||||
SysAttrSubnet = SysAttrPrefix + "SUBNET"
|
SysAttributeSubnet = SysAttributePrefix + "SUBNET"
|
||||||
)
|
)
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
package object
|
package object
|
||||||
|
|
||||||
// SysAttrPrefix is a prefix of key to system attribute.
|
// SysAttributePrefix is a prefix of key to system attribute.
|
||||||
const SysAttrPrefix = "__NEOFS__"
|
const SysAttributePrefix = "__NEOFS__"
|
||||||
|
|
||||||
const (
|
const (
|
||||||
// SysAttrUploadID marks smaller parts of a split bigger object.
|
// SysAttributeUploadID marks smaller parts of a split bigger object.
|
||||||
SysAttrUploadID = SysAttrPrefix + "UPLOAD_ID"
|
SysAttributeUploadID = SysAttributePrefix + "UPLOAD_ID"
|
||||||
|
|
||||||
// SysAttrExpEpoch tells GC to delete object after that epoch.
|
// SysAttributeExpEpoch tells GC to delete object after that epoch.
|
||||||
SysAttrExpEpoch = SysAttrPrefix + "EXPIRATION_EPOCH"
|
SysAttributeExpEpoch = SysAttributePrefix + "EXPIRATION_EPOCH"
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue