From 44466f4a295613de9bb6a9060a1ed65d34f8aa33 Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Thu, 17 Dec 2020 19:12:07 +0300 Subject: [PATCH] [#80] storagegroup: Implement search query generator Signed-off-by: Leonard Lyubich --- pkg/services/object_manager/storagegroup/search.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 pkg/services/object_manager/storagegroup/search.go diff --git a/pkg/services/object_manager/storagegroup/search.go b/pkg/services/object_manager/storagegroup/search.go new file mode 100644 index 000000000..1cc00aae4 --- /dev/null +++ b/pkg/services/object_manager/storagegroup/search.go @@ -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 +}