forked from TrueCloudLab/frostfs-api-go
[#209] object: Support splitID
search attribute
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
79c76e87e4
commit
3d08d8140f
8 changed files with 137 additions and 13 deletions
|
@ -70,6 +70,7 @@ const (
|
|||
fKeyType
|
||||
fKeyHomomorphicHash
|
||||
fKeyParent
|
||||
fKeySplitID
|
||||
fKeyPropRoot
|
||||
fKeyPropPhy
|
||||
)
|
||||
|
@ -98,6 +99,8 @@ func (k filterKey) String() string {
|
|||
return v2object.FilterHeaderHomomorphicHash
|
||||
case fKeyParent:
|
||||
return v2object.FilterHeaderParent
|
||||
case fKeySplitID:
|
||||
return v2object.FilterHeaderSplitID
|
||||
case fKeyPropRoot:
|
||||
return v2object.FilterPropertyRoot
|
||||
case fKeyPropPhy:
|
||||
|
@ -224,6 +227,7 @@ func (f *SearchFilters) AddPhyFilter() {
|
|||
f.addPhyFilter()
|
||||
}
|
||||
|
||||
// AddParentIDFilter adds filter by parent identifier.
|
||||
func (f *SearchFilters) AddParentIDFilter(m SearchMatchType, id *ID) {
|
||||
f.addReservedFilter(m, fKeyParent, id)
|
||||
}
|
||||
|
@ -232,3 +236,7 @@ func (f *SearchFilters) AddParentIDFilter(m SearchMatchType, id *ID) {
|
|||
func (f *SearchFilters) AddObjectIDFilter(m SearchMatchType, id *ID) {
|
||||
f.addReservedFilter(m, fKeyObjectID, id)
|
||||
}
|
||||
|
||||
func (f *SearchFilters) AddSplitIDFilter(m SearchMatchType, id *SplitID) {
|
||||
f.addReservedFilter(m, fKeySplitID, id)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue