Documentation ¶
Overview ¶
Package cniutils provides helper functions to parse CNI results.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilterBySandbox ¶
FilterBySandbox returns scans the provided list of interfaces and returns two lists: the first are a list of interfaces with the provided sandboxID, the second are the other interfaces not in that sandboxID.
func IfacesWithName ¶
IfacesWithName scans the provided list of ifaces and returns the ones with the provided name.
func VMTapPair ¶
func VMTapPair(result *types100.Result, vmID string) (vmIface, tapIface *types100.Interface, err error)
VMTapPair takes a CNI result and returns the vm iface and the tap iface corresponding to the provided vmID. See the vmconf package docs for details on the expected vm and tap iface configurations.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.