2020-10-27 15:11:36 +00:00
|
|
|
package object
|
|
|
|
|
|
|
|
// ReservedFilterPrefix is a prefix of key to object header value or property.
|
|
|
|
const ReservedFilterPrefix = "$Object:"
|
|
|
|
|
|
|
|
const (
|
|
|
|
// FilterHeaderVersion is a filter key to "version" field of the object header.
|
|
|
|
FilterHeaderVersion = ReservedFilterPrefix + "version"
|
|
|
|
|
2020-11-10 10:43:25 +00:00
|
|
|
// FilterHeaderObjectID is a filter key to "object_id" field of the object.
|
|
|
|
FilterHeaderObjectID = ReservedFilterPrefix + "objectID"
|
|
|
|
|
2020-10-27 15:11:36 +00:00
|
|
|
// FilterHeaderContainerID is a filter key to "container_id" field of the object header.
|
|
|
|
FilterHeaderContainerID = ReservedFilterPrefix + "containerID"
|
|
|
|
|
|
|
|
// FilterHeaderOwnerID is a filter key to "owner_id" field of the object header.
|
|
|
|
FilterHeaderOwnerID = ReservedFilterPrefix + "ownerID"
|
|
|
|
|
|
|
|
// FilterHeaderCreationEpoch is a filter key to "creation_epoch" field of the object header.
|
|
|
|
FilterHeaderCreationEpoch = ReservedFilterPrefix + "creationEpoch"
|
|
|
|
|
|
|
|
// FilterHeaderPayloadLength is a filter key to "payload_length" field of the object header.
|
|
|
|
FilterHeaderPayloadLength = ReservedFilterPrefix + "payloadLength"
|
|
|
|
|
|
|
|
// FilterHeaderPayloadHash is a filter key to "payload_hash" field of the object header.
|
|
|
|
FilterHeaderPayloadHash = ReservedFilterPrefix + "payloadHash"
|
|
|
|
|
|
|
|
// FilterHeaderObjectType is a filter key to "object_type" field of the object header.
|
|
|
|
FilterHeaderObjectType = ReservedFilterPrefix + "objectType"
|
|
|
|
|
|
|
|
// FilterHeaderHomomorphicHash is a filter key to "homomorphic_hash" field of the object header.
|
|
|
|
FilterHeaderHomomorphicHash = ReservedFilterPrefix + "homomorphicHash"
|
|
|
|
|
|
|
|
// FilterHeaderParent is a filter key to "split.parent" field of the object header.
|
|
|
|
FilterHeaderParent = ReservedFilterPrefix + "split.parent"
|
2020-11-25 16:32:52 +00:00
|
|
|
|
2022-02-16 12:04:51 +00:00
|
|
|
// FilterHeaderSplitID is a filter key to "split.splitID" field of the object header.
|
2020-11-25 16:32:52 +00:00
|
|
|
FilterHeaderSplitID = ReservedFilterPrefix + "split.splitID"
|
2024-05-03 12:44:53 +00:00
|
|
|
|
|
|
|
// FilterHeaderECParent is a filter key to "ec.parent" field of the object header.
|
|
|
|
FilterHeaderECParent = ReservedFilterPrefix + "ec.parent"
|
2020-10-27 15:11:36 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
const (
|
2020-11-09 12:29:26 +00:00
|
|
|
// FilterPropertyRoot is a filter key to check if regular object is on top of split hierarchy.
|
2020-10-27 15:11:36 +00:00
|
|
|
FilterPropertyRoot = ReservedFilterPrefix + "ROOT"
|
|
|
|
|
2020-11-09 12:29:26 +00:00
|
|
|
// FilterPropertyPhy is a filter key to check if an object physically stored on a node.
|
|
|
|
FilterPropertyPhy = ReservedFilterPrefix + "PHY"
|
2020-10-27 15:11:36 +00:00
|
|
|
)
|
2020-10-27 17:51:27 +00:00
|
|
|
|
|
|
|
const (
|
|
|
|
// BooleanPropertyValueTrue is a true value for boolean property filters.
|
|
|
|
BooleanPropertyValueTrue = "true"
|
|
|
|
|
|
|
|
// BooleanPropertyValueFalse is a false value for boolean property filters.
|
|
|
|
BooleanPropertyValueFalse = ""
|
|
|
|
)
|