diff --git a/object/search.go b/object/search.go index 9dc4000..240a65d 100644 --- a/object/search.go +++ b/object/search.go @@ -3,6 +3,7 @@ package object import ( "encoding/json" "fmt" + "strconv" v2object "github.com/nspcc-dev/neofs-api-go/v2/object" cid "github.com/nspcc-dev/neofs-sdk-go/container/id" @@ -231,6 +232,10 @@ func (f *SearchFilters) AddObjectOwnerIDFilter(m SearchMatchType, id *owner.ID) f.addReservedFilter(m, fKeyOwnerID, id) } +func (f *SearchFilters) AddNotificationEpochFilter(epoch uint64) { + f.addFilter(MatchStringEqual, 0, v2object.SysAttributeTickEpoch, staticStringer(strconv.FormatUint(epoch, 10))) +} + func (f SearchFilters) ToV2() []*v2object.SearchFilter { result := make([]*v2object.SearchFilter, 0, len(f))