Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Chown ¶
func Chown(path string, owner *OwnerConfig)
Chown sets ownership if owner is not nil. Best-effort, ignores errors.
func Create ¶
func Create(path string, owner *OwnerConfig) (*os.File, error)
Create creates file and sets ownership.
Types ¶
type OwnerConfig ¶
OwnerConfig holds parsed UID/GID for file ownership.
func ParseOwner ¶
func ParseOwner(owner string) (*OwnerConfig, error)
ParseOwner parses "UID:GID" string. Returns nil if empty.
Click to show internal directories.
Click to hide internal directories.