Documentation ¶
Index ¶
- func AddAddress(name string, addrs string) error
- func AddDefaultRoutes(iface config.NetIface) error
- func Clear(c *config.Config)
- func CreateIface(c *config.Config, iface *config.NetIface) error
- func DeleteInterface(name string) error
- func FindFreePodIPs(hostIpsText string) (string, error)
- func SetInterfaceUp(name string) error
- func SetName(c *config.Config, oldName string, newName string) error
- func SetNs(iface config.NetIface, pid int) error
- func WaitInterface(name string) error
- type IP_TYPE
- type Ifname
- type InerfaceType
- type NetInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddAddress ¶
func AddDefaultRoutes ¶
func DeleteInterface ¶
func FindFreePodIPs ¶
func SetInterfaceUp ¶
func WaitInterface ¶ added in v1.3.0
Types ¶
type InerfaceType ¶
type InerfaceType uint8
const ( InterfaceTypeBridge InerfaceType = iota InterfaceTypeVeth InterfaceTypeMacvlan )
type NetInterface ¶
type NetInterface struct { PeerName string netlink.LinkAttrs InterfaceType InerfaceType }
Click to show internal directories.
Click to hide internal directories.