testing

package
v1.11.1 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2018 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeCNIPlugin

type FakeCNIPlugin struct {
	StatusErr error
	LoadErr   error
}

FakeCNIPlugin is a fake plugin used for test.

func NewFakeCNIPlugin

func NewFakeCNIPlugin() *FakeCNIPlugin

NewFakeCNIPlugin create a FakeCNIPlugin.

func (*FakeCNIPlugin) Load added in v1.0.0

func (f *FakeCNIPlugin) Load(opts ...cni.CNIOpt) error

Load loads the network config.

func (*FakeCNIPlugin) Remove added in v1.0.0

func (f *FakeCNIPlugin) Remove(id, path string, opts ...cni.NamespaceOpts) error

Remove teardown the network of PodSandbox.

func (*FakeCNIPlugin) Setup added in v1.0.0

func (f *FakeCNIPlugin) Setup(id, path string, opts ...cni.NamespaceOpts) (*cni.CNIResult, error)

Setup setups the network of PodSandbox.

func (*FakeCNIPlugin) Status

func (f *FakeCNIPlugin) Status() error

Status get the status of the plugin.

Jump to

Keyboard shortcuts

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