Documentation
¶
Index ¶
- Variables
- func Author() string
- func Exec(cmd string, args ...string) (stdout, stderr string, err error)
- func GetProcPwd() string
- func GetPwd() string
- func Getenv(name, def string) string
- func License() string
- func LookupUser(name string) (uid, gid int, err error)
- func SetGid(gid int) (err error)
- func SetUid(uid int) (err error)
- func SetUser(user string) (err error)
- func TimeoutExec(timeout int, cmd string, args ...string) (stdout, stderr string, err error)
- func Version() string
- type Pidx
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrPidExists is pid file exists ErrPidExists = errors.New("xos: process is running") // ErrPidLockFailed is pid lock failed ErrPidLockFailed = errors.New("xos: lock pid file failed") )
Functions ¶
func LookupUser ¶
LookupUser returns the uid and gid of user
func TimeoutExec ¶
TimeoutExec exec command with timeout and returns
Types ¶
Click to show internal directories.
Click to hide internal directories.