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

package testing

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

Index

Package Files

fake_host.go mock_network_plugin.go

func NewFakeHost Uses

func NewFakeHost(kubeClient clientset.Interface) *fakeNetworkHost

type FakePortMappingGetter Uses

type FakePortMappingGetter struct {
    PortMaps map[string][]*hostport.PortMapping
}

func (*FakePortMappingGetter) GetPodPortMappings Uses

func (pm *FakePortMappingGetter) GetPodPortMappings(containerID string) ([]*hostport.PortMapping, error)

type MockNetworkPlugin Uses

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

Mock of NetworkPlugin interface

func NewMockNetworkPlugin Uses

func NewMockNetworkPlugin(ctrl *gomock.Controller) *MockNetworkPlugin

func (*MockNetworkPlugin) Capabilities Uses

func (_m *MockNetworkPlugin) Capabilities() sets.Int

func (*MockNetworkPlugin) EXPECT Uses

func (_m *MockNetworkPlugin) EXPECT() *_MockNetworkPluginRecorder

func (*MockNetworkPlugin) Event Uses

func (_m *MockNetworkPlugin) Event(_param0 string, _param1 map[string]interface{})

func (*MockNetworkPlugin) Finish Uses

func (_m *MockNetworkPlugin) Finish()

func (*MockNetworkPlugin) GetPodNetworkStatus Uses

func (_m *MockNetworkPlugin) GetPodNetworkStatus(_param0 string, _param1 string, _param2 container.ContainerID) (*network.PodNetworkStatus, error)

func (*MockNetworkPlugin) Init Uses

func (_m *MockNetworkPlugin) Init(_param0 network.Host, _param1 kubeletconfig.HairpinMode, nonMasqueradeCIDR string, mtu int) error

func (*MockNetworkPlugin) Name Uses

func (_m *MockNetworkPlugin) Name() string

func (*MockNetworkPlugin) SetUpPod Uses

func (_m *MockNetworkPlugin) SetUpPod(_param0 string, _param1 string, _param2 container.ContainerID, annotations, options map[string]string) error

func (*MockNetworkPlugin) Status Uses

func (_m *MockNetworkPlugin) Status() error

func (*MockNetworkPlugin) TearDownPod Uses

func (_m *MockNetworkPlugin) TearDownPod(_param0 string, _param1 string, _param2 container.ContainerID) error

Package testing imports 8 packages (graph). Updated 2019-03-26. Refresh now. Tools for package owners.