Documentation ¶
Index ¶
- Constants
- func AdjustOOMScore(pid, score int) error
- func CreateSequential(name string) (*os.File, error)deprecated
- func GetLocalListener(path string, uid, gid int) (net.Listener, error)
- func GetOOMScoreAdj(pid int) (int, error)
- func MkdirAll(path string, _ os.FileMode) error
- func MkdirAllWithACL(path string, _ os.FileMode) error
- func OpenFileSequential(name string, flag int, perm os.FileMode) (*os.File, error)deprecated
- func OpenSequential(name string) (*os.File, error)deprecated
- func SetOOMScore(pid, score int) error
- func TempFileSequential(dir, prefix string) (f *os.File, err error)deprecated
Constants ¶
const ( // OOMScoreMaxKillable is not implemented on non Linux OOMScoreMaxKillable = 0 // OOMScoreAdjMax is not implemented on non Linux OOMScoreAdjMax = 0 )
const SddlAdministratorsLocalSystem = "D:P(A;OICI;GA;;;BA)(A;OICI;GA;;;SY)"
SddlAdministratorsLocalSystem is local administrators plus NT AUTHORITY\System.
Variables ¶
This section is empty.
Functions ¶
func AdjustOOMScore ¶ added in v1.5.0
AdjustOOMScore sets the oom score for the provided pid. If the provided score is out of range (-1000 - 1000), it is clipped to the min/max value.
Not implemented on Windows
func CreateSequential
deprecated
func GetLocalListener ¶
GetLocalListener returns a Listernet out of a named pipe. `path` must be of the form of `\\.\pipe\<pipename>` (see https://msdn.microsoft.com/en-us/library/windows/desktop/aa365150)
func GetOOMScoreAdj ¶ added in v1.3.0
GetOOMScoreAdj gets the oom score for a process
Not implemented on Windows
func MkdirAll ¶
MkdirAll is a custom version of os.MkdirAll that is volume path aware for Windows. It can be used as a drop-in replacement for os.MkdirAll.
func MkdirAllWithACL ¶
MkdirAllWithACL is a custom version of os.MkdirAll modified for use on Windows so that it is both volume path aware, and to create a directory an appropriate SDDL defined ACL for Builtin Administrators and Local System.
func OpenSequential
deprecated
func TempFileSequential
deprecated
added in
v1.7.0
Types ¶
This section is empty.