[#80] storagegroup: Implement search query generator

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2020-12-17 19:12:07 +03:00 committed by Alex Vanin
parent 6245e58d1f
commit 44466f4a29

View 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
}