Versions in this module Expand all Collapse all v1 v1.0.1 Jun 23, 2022 Changes in this version + 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