forked from TrueCloudLab/frostfs-sdk-go
[#223] object: Introduce ec_parent
search filter
Signed-off-by: Airat Arifullin <a.arifullin@yadro.com>
This commit is contained in:
parent
d4e6f4e125
commit
09b79d13f3
2 changed files with 24 additions and 0 deletions
|
@ -120,6 +120,7 @@ const (
|
|||
fKeySplitID
|
||||
fKeyPropRoot
|
||||
fKeyPropPhy
|
||||
fKeyECParent
|
||||
)
|
||||
|
||||
func (k filterKey) String() string {
|
||||
|
@ -152,6 +153,8 @@ func (k filterKey) String() string {
|
|||
return v2object.FilterPropertyRoot
|
||||
case fKeyPropPhy:
|
||||
return v2object.FilterPropertyPhy
|
||||
case fKeyECParent:
|
||||
return v2object.FilterHeaderECParent
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -277,6 +280,10 @@ func (f *SearchFilters) AddSplitIDFilter(m SearchMatchType, id *SplitID) {
|
|||
f.addReservedFilter(m, fKeySplitID, staticStringer(id.String()))
|
||||
}
|
||||
|
||||
func (f *SearchFilters) AddECParentFilter(m SearchMatchType, parentID oid.ID) {
|
||||
f.addReservedFilter(m, fKeyECParent, staticStringer(parentID.String()))
|
||||
}
|
||||
|
||||
// AddTypeFilter adds filter by object type.
|
||||
func (f *SearchFilters) AddTypeFilter(m SearchMatchType, typ Type) {
|
||||
f.addReservedFilter(m, fKeyType, staticStringer(typ.String()))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue