Documentation ¶
Overview ¶
Package sysctl implements reading of system parameters such as system limits
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Int ¶
type Int struct {
// contains filtered or unexported fields
}
Int represents an int sysctl
type IntPair ¶
type IntPair struct {
// contains filtered or unexported fields
}
IntPair represents a sysconfig with a single line with two integer values such as 1234 5678
func NewIntPair ¶
NewIntPair creates a new sysctl.IntPair an IntPair is a sysctl that has two space-separated integer values
`procRoot` points to the procfs root, e.g. /proc `sysctl` is the path for the sysctl, e.g. /proc/sys/<sysctl> `cacheFor` caches the sysctl's value for the given time duration; `0` disables caching
type String ¶
type String struct {
// contains filtered or unexported fields
}
String represents a string sysctl
Click to show internal directories.
Click to hide internal directories.