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