Documentation ¶
Overview ¶
Package sysctl allows to change kernel parameters at runtime.
Index ¶
- func ApplySettings(sysSettings []Setting) error
- func Disable(name string) error
- func Enable(name string) error
- func GetProcfs() string
- func Read(name string) (string, error)
- func ReadInt(name string) (int64, error)
- func SetProcfs(path string)
- func Write(name string, val string) error
- func WriteInt(name string, val int64) error
- type ErrInvalidSysctlParameter
- type Setting
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplySettings ¶
ApplySettings applies all settings in sysSettings.
func GetProcfs ¶
func GetProcfs() string
GetProcfs returns the path set in procFs. Executing SetProcFs after GetProcfs might panic depending. See SetProcfs for more info.
Types ¶
type ErrInvalidSysctlParameter ¶
type ErrInvalidSysctlParameter string
An ErrInvalidSysctlParameter is returned when a parameter is invalid.
func (ErrInvalidSysctlParameter) Error ¶
func (e ErrInvalidSysctlParameter) Error() string
Click to show internal directories.
Click to hide internal directories.