[#80] storagegroup: Implement search query generator
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
6245e58d1f
commit
44466f4a29
1 changed files with 14 additions and 0 deletions
14
pkg/services/object_manager/storagegroup/search.go
Normal file
14
pkg/services/object_manager/storagegroup/search.go
Normal file
|
@ -0,0 +1,14 @@
|
|||
package storagegroup
|
||||
|
||||
import (
|
||||
"github.com/nspcc-dev/neofs-api-go/pkg/object"
|
||||
)
|
||||
|
||||
// SearchQuery returns search query to filter
|
||||
// objects with storage group content.
|
||||
func SearchQuery() object.SearchFilters {
|
||||
fs := object.SearchFilters{}
|
||||
fs.AddTypeFilter(object.MatchStringEqual, object.TypeStorageGroup)
|
||||
|
||||
return fs
|
||||
}
|
Loading…
Reference in a new issue