Documentation ¶
Rendered for windows/amd64
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Apply ¶
Apply performs both Chmod and Chown at the same time, where the filemode's owner and group will correspond to the provided owner and group (or the current owner and group, if they are set to nil)
func ApplyCustom ¶
func ApplyCustom(name string, owner *windows.SID, group *windows.SID, explicitAccess ...windows.EXPLICIT_ACCESS) error
ApplyCustom performs a Chmod (if owner and group are provided) and sets a custom ACL based on the provided EXPLICIT_ACCESS rules To create EXPLICIT_ACCESS rules, see the helper functions in pkg/access
func Chmod ¶
Chmod changes the file's ACL to match the provided unix permissions. It uses the file's current owner and group to set the ACL permissions.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.