Documentation ¶
Index ¶
- func GetACLPerm(set *provider.ResourcePermissions) (string, error)
- func GetACLType(gt provider.GranteeType) (string, error)
- func GetGrantPermissionSet(perm string) *provider.ResourcePermissions
- func GetGranteeType(aclType string) provider.GranteeType
- func GranteeEqual(g1, g2 *provider.Grantee) bool
- func PermissionsEqual(p1, p2 *provider.ResourcePermissions) bool
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 ¶
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.