Versions in this module Expand all Collapse all v0 v0.10.0 Jul 10, 2020 Changes in this version + const DefaultAndFilter + const ErrNilBinaryExtendedACLStore + func MatchFilters(src TypedHeaderSource, filters []acl.HeaderFilter) int + type BasicACLChecker struct + func (c *BasicACLChecker) Action(rule uint32, req object.RequestType, t acl.Target) (bool, error) + func (c *BasicACLChecker) Bearer(rule uint32, req object.RequestType) (bool, error) + func (c *BasicACLChecker) Extended(rule uint32) bool + func (c *BasicACLChecker) Sticky(rule uint32) bool + type BasicChecker interface + Action func(uint32, object.RequestType, acl.Target) (bool, error) + Bearer func(uint32, object.RequestType) (bool, error) + Extended func(uint32) bool + Sticky func(uint32) bool + func NewMaskedBasicACLChecker(or, and uint32) BasicChecker + type BinaryEACLKey struct + func (s *BinaryEACLKey) SetCID(v refs.CID) + func (s BinaryEACLKey) CID() refs.CID + type BinaryEACLValue struct + func (s *BinaryEACLValue) SetEACL(v []byte) + func (s *BinaryEACLValue) SetSignature(v []byte) + func (s *BinaryEACLValue) UnmarshalBinary(data []byte) (err error) + func (s BinaryEACLValue) EACL() []byte + func (s BinaryEACLValue) MarshalBinary() ([]byte, error) + func (s BinaryEACLValue) Signature() []byte + type BinaryExtendedACLSource interface + GetBinaryEACL func(context.Context, BinaryEACLKey) (BinaryEACLValue, error) + type BinaryExtendedACLStore interface + PutBinaryEACL func(context.Context, BinaryEACLKey, BinaryEACLValue) error + type ExtendedACLChecker interface + Action func(acl.ExtendedACLTable, RequestInfo) acl.ExtendedACLAction + func NewExtendedACLChecker() ExtendedACLChecker + type ExtendedACLSource interface + GetExtendedACLTable func(context.Context, refs.CID) (acl.ExtendedACLTable, error) + type ExtendedACLStore interface + PutExtendedACLTable func(context.Context, refs.CID, acl.ExtendedACLTable) error + type MaskedBasicACLChecker struct + func (c MaskedBasicACLChecker) Action(rule uint32, req object.RequestType, t acl.Target) (bool, error) + func (c MaskedBasicACLChecker) Bearer(rule uint32, req object.RequestType) (bool, error) + func (c MaskedBasicACLChecker) Extended(rule uint32) bool + func (c MaskedBasicACLChecker) Sticky(rule uint32) bool + type RequestInfo interface + Key func() []byte + TargetOf func(acl.Target) bool + TypeOf func(acl.OperationType) bool + type TypedHeaderSource interface + HeadersOfType func(acl.HeaderType) ([]acl.Header, bool) + func TypedHeaderSourceFromExtendedHeaders(hdrSrc service.ExtendedHeadersSource) TypedHeaderSource + func TypedHeaderSourceFromObject(obj *object.Object) TypedHeaderSource