Documentation ¶
Index ¶
Constants ¶
View Source
const ( NetIPv6Forwarding = "net/ipv6/conf/all/forwarding" NetIPv4Forwarding = "net/ipv4/ip_forward" Ipv4ArpIgnoreAll = "net/ipv4/conf/all/arp_ignore" Ipv4ArpIgnore = "net/ipv4/conf/%s/arp_ignore" PingGroupRange = "net/ipv4/ping_group_range" IPv4RouteLocalNet = "net/ipv4/conf/%s/route_localnet" UnprivilegedPortStart = "net/ipv4/ip_unprivileged_port_start" )
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) (string, error) // SetSysctl modifies the specified sysctl flag to the new value SetSysctl(sysctl string, newVal string) error }
Interface is an injectable interface for running sysctl commands.
Click to show internal directories.
Click to hide internal directories.