acl

package
v0.0.0-...-79ba347 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 1, 2023 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

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

func (c *Checker) StickyBitCheck(info v2.RequestInfo, owner user.ID) bool

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) 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

Directories

Path Synopsis
eacl
v2

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL