utils

package
v0.8.6 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2017 License: Apache-2.0 Imports: 11 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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