grants

package
v2.26.7 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetACLPerm

func GetACLPerm(set *provider.ResourcePermissions) (string, error)

GetACLPerm generates a string representation of CS3APIs' ResourcePermissions TODO(labkode): fine grained permission controls.

func GetACLType

func GetACLType(gt provider.GranteeType) (string, error)

GetACLType returns a char representation of the type of grantee

func GetGrantPermissionSet

func GetGrantPermissionSet(perm string) *provider.ResourcePermissions

GetGrantPermissionSet converts CS3APIs' ResourcePermissions from a string TODO(labkode): add more fine grained controls. EOS acls are a mix of ACLs and POSIX permissions. More details can be found in https://github.com/cern-eos/eos/blob/master/doc/configuration/permission.rst

func GetGranteeType

func GetGranteeType(aclType string) provider.GranteeType

GetGranteeType returns the grantee type from a char

func GranteeEqual

func GranteeEqual(g1, g2 *provider.Grantee) bool

GranteeEqual returns true if the grantee are equal

func PermissionsEqual

func PermissionsEqual(p1, p2 *provider.ResourcePermissions) bool

PermissionsEqual returns true if the permissions are equal

Types

This section is empty.

Jump to

Keyboard shortcuts

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