diff --git a/acl/extended.go b/acl/extended.go index 61ccbcfa..df8402a6 100644 --- a/acl/extended.go +++ b/acl/extended.go @@ -1,11 +1,5 @@ package acl -import ( - "context" - - "github.com/nspcc-dev/neofs-api-go/refs" -) - // OperationType is an enumeration of operation types for extended ACL. type OperationType uint32 @@ -35,13 +29,6 @@ type TypedHeader interface { HeaderType() HeaderType } -// TypedHeaderSource is a various types of header set interface. -type TypedHeaderSource interface { - // Must return list of Header of particular type. - // Must return false if there is no ability to compose header list. - HeadersOfType(HeaderType) ([]Header, bool) -} - // HeaderFilter is an interface of grouped information about filtered header. type HeaderFilter interface { // Must return match type of filter. @@ -80,20 +67,6 @@ type ExtendedACLTable interface { Records() []ExtendedACLRecord } -// ExtendedACLSource is an interface of storage of extended ACL tables with read access. -type ExtendedACLSource interface { - // Must return extended ACL table by container ID key. - GetExtendedACLTable(context.Context, refs.CID) (ExtendedACLTable, error) -} - -// ExtendedACLStore is an interface of storage of extended ACL tables. -type ExtendedACLStore interface { - ExtendedACLSource - - // Must store extended ACL table for container ID key. - PutExtendedACLTable(context.Context, refs.CID, ExtendedACLTable) error -} - const ( _ OperationType = iota diff --git a/acl/types.go b/acl/types.go index 6a418bca..c9bbfd3c 100644 --- a/acl/types.go +++ b/acl/types.go @@ -1,10 +1,5 @@ package acl -import ( - "github.com/nspcc-dev/neofs-api-go/object" - "github.com/nspcc-dev/neofs-api-go/service" -) - const ( _ MatchType = iota stringEqual @@ -75,47 +70,6 @@ const ( HdrObjSysLinkSG = "LINK_SG" ) -type objectHeaderSource struct { - obj *object.Object -} - -type typedHeader struct { - n string - v string - t HeaderType -} - -type extendedHeadersWrapper struct { - hdrSrc service.ExtendedHeadersSource -} - -type typedExtendedHeader struct { - hdr service.ExtendedHeader -} - -func newTypedHeader(name, value string, typ HeaderType) TypedHeader { - return &typedHeader{ - n: name, - v: value, - t: typ, - } -} - -// Name is a name field getter. -func (s typedHeader) Name() string { - return s.n -} - -// Value is a value field getter. -func (s typedHeader) Value() string { - return s.v -} - -// HeaderType is a type field getter. -func (s typedHeader) HeaderType() HeaderType { - return s.t -} - // SetMatchType is MatchType field setter. func (m *EACLRecord_FilterInfo) SetMatchType(v EACLRecord_FilterInfo_MatchType) { m.MatchType = v