Documentation ¶
Index ¶
- func CleanUpDanglingVeths(dangling map[string]*netlink.Link) error
- func GetContainersViewVethMapByEnteringNS(dc *client.Client) (map[string]bool, error)
- func GetContainersViewVethMapUsingID(dc *client.Client) (map[string]bool, error)
- func GetDanglingVeths(indexInUse bool, hostVethMap map[string]*netlink.Link, ...) (map[string]*netlink.Link, error)
- func GetHostViewVethMap(vethPrefix string, mc metadata.Client) (map[string]*netlink.Link, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanUpDanglingVeths ¶
CleanUpDanglingVeths deletes the given dangling veths from the host
func GetContainersViewVethMapByEnteringNS ¶
GetContainersViewVethMapByEnteringNS returns a map of veth indices as seen by containers by entering their network namespace.
func GetContainersViewVethMapUsingID ¶
GetContainersViewVethMapUsingID returns a map of peer veth indices as seen by containers by using docker IDs.
func GetDanglingVeths ¶
func GetDanglingVeths( indexInUse bool, hostVethMap map[string]*netlink.Link, containerVethMap map[string]bool) (map[string]*netlink.Link, error)
GetDanglingVeths compares the host view of the veths and the containers view of veths to figure out if there are any dangling veths present
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.