acl

package
v0.44.0-rc.5 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2024 License: GPL-3.0 Imports: 21 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(
	state netmap.State,
	eaclSrc container.EACLSource,
	validator *eaclSDK.Validator,
	localStorage *engine.StorageEngine,
) *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.

Directories

Path Synopsis
eacl
v2

Jump to

Keyboard shortcuts

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