accesscontrol

package
v0.27.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateACEPermissions

func ValidateACEPermissions(permissions string) error

ValidateACEPermissions checks the format of the ACE permission string. Returns nil on success.

Types

type ACE

type ACE struct {
	IsDefault    bool
	TagType      TagType
	TagQualifier *uuid.UUID
	Permissions  string // TODO break the rwx into permission flags?
}

func ParseACE

func ParseACE(input string) (ACE, error)

ParseACE parses an ACE string and returns the ACE

func (*ACE) String

func (ace *ACE) String() string

String returns the string form of the ACE - this does not check that it is valid

func (*ACE) Validate

func (ace *ACE) Validate() error

Validate checks the formatting and combination of values in the ACE. Returns nil on success

type ACL

type ACL struct {
	Entries []ACE
}

func ParseACL

func ParseACL(input string) (ACL, error)

ParseACL parses an ACL string

func (*ACL) String

func (acl *ACL) String() string

String returns the string form of the ACL - this does not check that it is valid

func (*ACL) Validate

func (acl *ACL) Validate() error

Validate checks the ACL. Returns nil on success

type TagType

type TagType string
const (
	TagTypeUser  TagType = "user"
	TagTypeGroup TagType = "group"
	TagTypeMask  TagType = "mask"
	TagTypeOther TagType = "other"
)

Jump to

Keyboard shortcuts

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