Documentation
¶
Index ¶
- func ApplyCapability(cred *syscall.Credential) error
- func ChangePermission(u string, file string) (err error)
- func CreateDirectory(directoryPath string, perm os.FileMode) error
- func CreateDirectoryNested(directoryPath string, perm os.FileMode) error
- func CreateStateDirs(path string, uid int, gid int) error
- func DBusTimeToUsec(prop *sdbus.Property) (time.Time, error)
- func DisableKeepCapability() error
- func EnableKeepCapability() error
- func ExecAndCapture(cmd string, args ...string) (string, error)
- func ExecAndDisplay(w io.Writer, cmd string, args ...string) error
- func ExecAndRenounce(cmds ...string) error
- func ExecAndShowProgess(cmd string, args ...string) error
- func ExecInteractive(cmd string, args ...string) error
- func ExecRun(cmd string, args ...string) error
- func GetGroupCredentials(grp string) (*user.Group, error)
- func GetUserCredentials(usr string) (*syscall.Credential, error)
- func GetUserCredentialsByUid(uid uint32) (*user.User, error)
- func PathExists(path string) bool
- func ReadFullFile(path string) ([]string, error)
- func ReadOneLineFile(path string) (string, error)
- func SwitchUser(c *syscall.Credential) (err error)
- func TLSFilePathExits() bool
- func UnixMicro(usec int64) time.Time
- func WriteFullFile(path string, lines []string) error
- func WriteOneLineFile(path string, line string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyCapability ¶
func ApplyCapability(cred *syscall.Credential) error
func ChangePermission ¶
func CreateDirectoryNested ¶
func DisableKeepCapability ¶
func DisableKeepCapability() error
func EnableKeepCapability ¶
func EnableKeepCapability() error
func ExecAndRenounce ¶
func ExecAndShowProgess ¶
func ExecInteractive ¶
func GetUserCredentials ¶
func GetUserCredentials(usr string) (*syscall.Credential, error)
func PathExists ¶
func ReadFullFile ¶
func ReadOneLineFile ¶
func SwitchUser ¶
func SwitchUser(c *syscall.Credential) (err error)
func TLSFilePathExits ¶
func TLSFilePathExits() bool
func WriteFullFile ¶
func WriteOneLineFile ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.