utils

package
v0.8.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 30, 2017 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanUpDanglingVeths

func CleanUpDanglingVeths(dangling map[string]*netlink.Link) error

CleanUpDanglingVeths deletes the given dangling veths from the host

func GetContainersViewVethMapByEnteringNS

func GetContainersViewVethMapByEnteringNS(dc *client.Client) (map[string]bool, error)

GetContainersViewVethMapByEnteringNS returns a map of veth indices as seen by containers by entering their network namespace.

func GetContainersViewVethMapUsingID

func GetContainersViewVethMapUsingID(dc *client.Client) (map[string]bool, error)

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

func GetHostViewVethMap

func GetHostViewVethMap(vethPrefix string, mc metadata.Client) (map[string]*netlink.Link, error)

GetHostViewVethMap returns a map of veths as seen from host

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL