cni

package
v2.3.0+incompatible Latest Latest
Warning

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

Go to latest
Published: May 30, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CNIController

type CNIController struct {
	CNIConfig         libcni.CNI
	NetworkConfigList *libcni.NetworkConfigList
}

func (*CNIController) Down

func (c *CNIController) Down(namespacePath, handle string) error

func (*CNIController) Up

func (c *CNIController) Up(namespacePath, handle string, metadata map[string]interface{}, legacyNetConf map[string]interface{}) (types.Result, error)

type CNILoader

type CNILoader struct {
	PluginDir string
	ConfigDir string
	Logger    io.Writer
}

func (*CNILoader) GetCNIConfig

func (l *CNILoader) GetCNIConfig() *libcni.CNIConfig

func (*CNILoader) GetNetworkConfig

func (l *CNILoader) GetNetworkConfig() (*libcni.NetworkConfigList, error)

Jump to

Keyboard shortcuts

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