Documentation
¶
Index ¶
Constants ¶
View Source
const ( NetIPv6Forwarding = "net/ipv6/conf/all/forwarding" NetIPv4Forwarding = "net/ipv4/ip_forward" Ipv4ArpIgnoreAll = "net/ipv4/conf/all/arp_ignore" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interface ¶
type Interface interface { // GetSysctl returns the value for the specified sysctl setting GetSysctl(sysctl string) (int, error) // SetSysctl modifies the specified sysctl flag to the new value SetSysctl(sysctl string, newVal int) error }
Interface is an injectable interface for running sysctl commands.
Click to show internal directories.
Click to hide internal directories.