Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var IpsetHandler ipsetHandler
Functions ¶
func GetConfigForDebug ¶
func GetConfigForDebug() map[string]interface{}
not use GetConfigForDebug returns the active values of the configuration env vars (for debugging purposes).
Types ¶
type NetworkAPIs ¶
type NetworkAPIs interface { // SetupNodeNetwork performs node level network configuration SetupHostNetwork(primaryMAC string, primaryAddr *net.IP) error // SetupNICNetwork performs nic level network configuration SetupNICNetwork(nicIP string, mac string, table int, subnetCIDR string) error }
NetworkAPIs defines the host level and the nic level network related operations
func NewFakeNetworkAPI ¶
func NewFakeNetworkAPI(netlink netlinkwrapper.NetLink, iptableIface iptables.IptablesIface, setProcSys func(string, string) error) NetworkAPIs
NewFakeNetworkAPI is used by unit test
Click to show internal directories.
Click to hide internal directories.