kubernetes: k8s.io/kubernetes/pkg/kubelet/dockershim/network/cni/testing Index | Files

package mock_cni

import "k8s.io/kubernetes/pkg/kubelet/dockershim/network/cni/testing"

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

Package Files

mock_cni.go

type MockCNI Uses

type MockCNI struct {
    mock.Mock
}

func (*MockCNI) AddNetwork Uses

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

func (*MockCNI) AddNetworkList Uses

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

func (*MockCNI) CheckNetwork Uses

func (m *MockCNI) CheckNetwork(ctx context.Context, net *libcni.NetworkConfig, rt *libcni.RuntimeConf) error

func (*MockCNI) CheckNetworkList Uses

func (m *MockCNI) CheckNetworkList(ctx context.Context, net *libcni.NetworkConfigList, rt *libcni.RuntimeConf) error

func (*MockCNI) DelNetwork Uses

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

func (*MockCNI) DelNetworkList Uses

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

func (*MockCNI) GetNetworkCachedResult Uses

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

func (*MockCNI) GetNetworkListCachedResult Uses

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

func (*MockCNI) ValidateNetwork Uses

func (m *MockCNI) ValidateNetwork(ctx context.Context, net *libcni.NetworkConfig) ([]string, error)

func (*MockCNI) ValidateNetworkList Uses

func (m *MockCNI) ValidateNetworkList(ctx context.Context, net *libcni.NetworkConfigList) ([]string, error)

Package mock_cni imports 4 packages (graph). Updated 2019-07-07. Refresh now. Tools for package owners.