Documentation ¶
Index ¶
- Constants
- func CreateUnixSocket(path string) (net.Listener, error)
- func ForceRemoveAll(path string) error
- func GetLocalListener(path string, uid, gid int) (net.Listener, error)
- func SetOOMScore(pid, score int) error
- func StatATimeAsTime(st *syscall.Stat_t) time.Time
- func StatAtime(st *syscall.Stat_t) syscall.Timespec
- func StatCtime(st *syscall.Stat_t) syscall.Timespec
- func StatMtime(st *syscall.Stat_t) syscall.Timespec
- type Exit
Constants ¶
View Source
const OOMScoreMaxKillable = -999
OOMScoreMaxKillable is the maximum score keeping the process killable by the oom killer
Variables ¶
This section is empty.
Functions ¶
func CreateUnixSocket ¶
CreateUnixSocket creates a unix socket and returns the listener
func ForceRemoveAll ¶
ForceRemoveAll on unix is just a wrapper for os.RemoveAll
func GetLocalListener ¶
GetLocalListener returns a listerner out of a unix socket.
func SetOOMScore ¶
SetOOMScore sets the oom score for the provided pid
func StatATimeAsTime ¶
StatATimeAsTime returns the access time as a time.Time
Types ¶
Click to show internal directories.
Click to hide internal directories.