frostfs-api-go/pkg/object/wellknown_filters.go
Leonard Lyubich f3bddc2ba5 [#164] sdk/object: Define filters to search virtual objects
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2020-10-01 10:06:30 +03:00

31 lines
721 B
Go

package object
const (
valFalse = "false"
valTrue = "true"
)
// ReservedFilterPrefix is a reserved prefix for system search filter keys.
const ReservedFilterPrefix = "$Object:"
const (
// KeyRoot is a reserved search filter key to source objects.
KeyRoot = ReservedFilterPrefix + "ROOT"
// ValRoot is a value of root object filter.
ValRoot = valTrue
// ValNonRoot is a value of non-root object filter.
ValNonRoot = valFalse
)
const (
// KeyLeaf is a reserved search filter key to physically stored objects.
KeyLeaf = ReservedFilterPrefix + "LEAF"
// ValLeaf is a value of physically stored object filter.
ValLeaf = valTrue
// ValNonLeaf is a value of virtual object filter.
ValNonLeaf = valFalse
)