mock_cni

package
v1.7.16 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

mock_cni is a mock of the `libcni.CNI` interface. It's a handwritten mock because there are only two functions to deal with.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockCNI

type MockCNI struct {
	mock.Mock
}

func (*MockCNI) AddNetwork

func (m *MockCNI) AddNetwork(net *libcni.NetworkConfig, rt *libcni.RuntimeConf) (types.Result, error)

func (*MockCNI) AddNetworkList added in v1.7.0

func (m *MockCNI) AddNetworkList(net *libcni.NetworkConfigList, rt *libcni.RuntimeConf) (types.Result, error)

func (*MockCNI) DelNetwork

func (m *MockCNI) DelNetwork(net *libcni.NetworkConfig, rt *libcni.RuntimeConf) error

func (*MockCNI) DelNetworkList added in v1.7.0

func (m *MockCNI) DelNetworkList(net *libcni.NetworkConfigList, rt *libcni.RuntimeConf) error

Jump to

Keyboard shortcuts

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