Documentation
¶
Overview ¶
Package sysctl inspired by systemd's sysctl source code and kubernetes's sysctl subpackage.
Example:
sysctl.Set("net.ipv6.conf.all.disable_ipv6", "1") // disables all ipv6 value, err := sysctl.Get("net.ipv6.conf.all.disable_ipv6") // retrieves kernel settings value
Index ¶
- func CustomGet(procSysPath, property string) ([]byte, error)
- func CustomSet(procSysPath, property, value string) error
- func Get(property string) ([]byte, error)
- func GetBool(property string) (bool, error)
- func GetInt(property string) (int, error)
- func Normalize(property string) string
- func Set(property, value string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.