frostfs-node/pkg/services/object_manager/storagegroup/search.go
Leonard Lyubich 44466f4a29 [#80] storagegroup: Implement search query generator
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2020-12-25 16:49:27 +03:00

14 lines
321 B
Go

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
}