acl: delete unused types

This commit is contained in:
Pavel Korotkov 2020-07-07 22:16:56 +03:00
parent d0f56e5044
commit f826517207
2 changed files with 0 additions and 73 deletions

View file

@ -1,11 +1,5 @@
package acl package acl
import (
"context"
"github.com/nspcc-dev/neofs-api-go/refs"
)
// OperationType is an enumeration of operation types for extended ACL. // OperationType is an enumeration of operation types for extended ACL.
type OperationType uint32 type OperationType uint32
@ -35,13 +29,6 @@ type TypedHeader interface {
HeaderType() HeaderType 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. // HeaderFilter is an interface of grouped information about filtered header.
type HeaderFilter interface { type HeaderFilter interface {
// Must return match type of filter. // Must return match type of filter.
@ -80,20 +67,6 @@ type ExtendedACLTable interface {
Records() []ExtendedACLRecord 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 ( const (
_ OperationType = iota _ OperationType = iota

View file

@ -1,10 +1,5 @@
package acl package acl
import (
"github.com/nspcc-dev/neofs-api-go/object"
"github.com/nspcc-dev/neofs-api-go/service"
)
const ( const (
_ MatchType = iota _ MatchType = iota
stringEqual stringEqual
@ -75,47 +70,6 @@ const (
HdrObjSysLinkSG = "LINK_SG" 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. // SetMatchType is MatchType field setter.
func (m *EACLRecord_FilterInfo) SetMatchType(v EACLRecord_FilterInfo_MatchType) { func (m *EACLRecord_FilterInfo) SetMatchType(v EACLRecord_FilterInfo_MatchType) {
m.MatchType = v m.MatchType = v