Documentation ¶
Index ¶
- type Checker
- type CheckerPrm
- func (c *CheckerPrm) SetEACLSource(v container.EACLSource) *CheckerPrm
- func (c *CheckerPrm) SetHeaderSource(hs eaclV2.HeaderSource) *CheckerPrm
- func (c *CheckerPrm) SetLocalStorage(v *engine.StorageEngine) *CheckerPrm
- func (c *CheckerPrm) SetNetmapState(v netmap.State) *CheckerPrm
- func (c *CheckerPrm) SetValidator(v *eaclSDK.Validator) *CheckerPrm
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Checker ¶
type Checker struct {
// contains filtered or unexported fields
}
Checker implements v2.ACLChecker interfaces and provides ACL/eACL validation functionality.
func NewChecker ¶
func NewChecker(prm *CheckerPrm) *Checker
NewChecker creates Checker. Panics if at least one of the parameter is nil.
func (*Checker) CheckBasicACL ¶
func (c *Checker) CheckBasicACL(info v2.RequestInfo) bool
CheckBasicACL is a main check function for basic ACL.
func (*Checker) CheckEACL ¶
func (c *Checker) CheckEACL(msg any, reqInfo v2.RequestInfo) error
CheckEACL is a main check function for extended ACL.
func (*Checker) StickyBitCheck ¶
StickyBitCheck validates owner field in the request if sticky bit is enabled.
type CheckerPrm ¶
type CheckerPrm struct {
// contains filtered or unexported fields
}
CheckerPrm groups parameters for Checker constructor.
func (*CheckerPrm) SetEACLSource ¶
func (c *CheckerPrm) SetEACLSource(v container.EACLSource) *CheckerPrm
func (*CheckerPrm) SetHeaderSource ¶
func (c *CheckerPrm) SetHeaderSource(hs eaclV2.HeaderSource) *CheckerPrm
func (*CheckerPrm) SetLocalStorage ¶
func (c *CheckerPrm) SetLocalStorage(v *engine.StorageEngine) *CheckerPrm
func (*CheckerPrm) SetNetmapState ¶
func (c *CheckerPrm) SetNetmapState(v netmap.State) *CheckerPrm
func (*CheckerPrm) SetValidator ¶
func (c *CheckerPrm) SetValidator(v *eaclSDK.Validator) *CheckerPrm
Click to show internal directories.
Click to hide internal directories.