cni

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2017 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytesToResult

func BytesToResult(data []byte) (*types.Result, error)

func CreateNetNS

func CreateNetNS(name string) error

func DestroyNetNS

func DestroyNetNS(name string) error

func PodNetNSPath

func PodNetNSPath(name string) string

func ReadConfiguration

func ReadConfiguration(configsDir string) (*libcni.NetworkConfig, error)

func ResultToBytes

func ResultToBytes(result *types.Result) ([]byte, error)

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(pluginsDir, configsDir string) (*Client, error)

func (*Client) AddSandboxToNetwork

func (c *Client) AddSandboxToNetwork(podId, podName, podNs string) (*types.Result, error)

func (*Client) RemoveSandboxFromNetwork

func (c *Client) RemoveSandboxFromNetwork(podId, podName, podNs string) error

Jump to

Keyboard shortcuts

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