Categorygithub.com/joshlf/go-acl
modulepackage
0.0.0-20200411065538-eae00ae38531
Repository: https://github.com/joshlf/go-acl.git
Documentation: pkg.go.dev

# README

go-acl GoDoc

Go support for Access Control Lists


Minimum Requirements

  • minimum supported compiler version is Go 1.9

# Functions

Add adds the given entries to the ACL on path.
FAdd adds the given entries to the ACL like Add, but on an *os.File.
FGet retrieves the access ACL associated with an *os.File, returning any error encountered.
FGetDefault retrieves the default ACL associated with an *os.File, returning any error encountered.
FromUnix generates an ACL equivalent to the given unix permissions bitmask.
FSet sets the access ACL on an *os.File, returning any error encountered.
FSetDefault sets the default ACL on an *os.File, returning any error encountered.
Get retrieves the access ACL associated with path, returning any error encountered.
GetDefault retrieves the default ACL associated with path, returning any error encountered.
Set sets the access ACL on path, returning any error encountered.
SetDefault sets the default ACL on path, returning any error encountered.
ToUnix returns the unix permissions bitmask encoded by a.

# Constants

Permissions of a specified group.
Permissions of the file group.
Maximum allowed access rights of any entry with the tag TagUser, TagGroupObj, or TagGroup.
Permissions of a process not matching any other entry.
Permissions of a specified user.
Permissions of the file owner.

# Structs

Entry
Entry represents an entry in an ACL.

# Type aliases

ACL represents an access control list as defined in the POSIX.1e draft standard.
Tag is the type of an ACL entry tag.