testing

package
v1.23.17 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package testing is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFakeHost

func NewFakeHost(kubeClient clientset.Interface) *fakeNetworkHost

Types

type FakePortMappingGetter

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

func (*FakePortMappingGetter) GetPodPortMappings

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

type MockHost added in v1.23.0

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

MockHost is a mock of Host interface.

func NewMockHost added in v1.23.0

func NewMockHost(ctrl *gomock.Controller) *MockHost

NewMockHost creates a new mock instance.

func (*MockHost) EXPECT added in v1.23.0

func (m *MockHost) EXPECT() *MockHostMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockHost) GetNetNS added in v1.23.0

func (m *MockHost) GetNetNS(containerID string) (string, error)

GetNetNS mocks base method.

func (*MockHost) GetPodPortMappings added in v1.23.0

func (m *MockHost) GetPodPortMappings(containerID string) ([]*hostport.PortMapping, error)

GetPodPortMappings mocks base method.

type MockHostMockRecorder added in v1.23.0

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

MockHostMockRecorder is the mock recorder for MockHost.

func (*MockHostMockRecorder) GetNetNS added in v1.23.0

func (mr *MockHostMockRecorder) GetNetNS(containerID interface{}) *gomock.Call

GetNetNS indicates an expected call of GetNetNS.

func (*MockHostMockRecorder) GetPodPortMappings added in v1.23.0

func (mr *MockHostMockRecorder) GetPodPortMappings(containerID interface{}) *gomock.Call

GetPodPortMappings indicates an expected call of GetPodPortMappings.

type MockNamespaceGetter added in v1.23.0

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

MockNamespaceGetter is a mock of NamespaceGetter interface.

func NewMockNamespaceGetter added in v1.23.0

func NewMockNamespaceGetter(ctrl *gomock.Controller) *MockNamespaceGetter

NewMockNamespaceGetter creates a new mock instance.

func (*MockNamespaceGetter) EXPECT added in v1.23.0

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockNamespaceGetter) GetNetNS added in v1.23.0

func (m *MockNamespaceGetter) GetNetNS(containerID string) (string, error)

GetNetNS mocks base method.

type MockNamespaceGetterMockRecorder added in v1.23.0

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

MockNamespaceGetterMockRecorder is the mock recorder for MockNamespaceGetter.

func (*MockNamespaceGetterMockRecorder) GetNetNS added in v1.23.0

func (mr *MockNamespaceGetterMockRecorder) GetNetNS(containerID interface{}) *gomock.Call

GetNetNS indicates an expected call of GetNetNS.

type MockNetworkPlugin

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

MockNetworkPlugin is a mock of NetworkPlugin interface.

func NewMockNetworkPlugin

func NewMockNetworkPlugin(ctrl *gomock.Controller) *MockNetworkPlugin

NewMockNetworkPlugin creates a new mock instance.

func (*MockNetworkPlugin) Capabilities

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

Capabilities mocks base method.

func (*MockNetworkPlugin) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockNetworkPlugin) Event

func (m *MockNetworkPlugin) Event(name string, details map[string]interface{})

Event mocks base method.

func (*MockNetworkPlugin) GetPodNetworkStatus

func (m *MockNetworkPlugin) GetPodNetworkStatus(namespace, name string, podSandboxID container.ContainerID) (*network.PodNetworkStatus, error)

GetPodNetworkStatus mocks base method.

func (*MockNetworkPlugin) Init

func (m *MockNetworkPlugin) Init(host network.Host, hairpinMode config.HairpinMode, nonMasqueradeCIDR string, mtu int) error

Init mocks base method.

func (*MockNetworkPlugin) Name

func (m *MockNetworkPlugin) Name() string

Name mocks base method.

func (*MockNetworkPlugin) SetUpPod

func (m *MockNetworkPlugin) SetUpPod(namespace, name string, podSandboxID container.ContainerID, annotations, options map[string]string) error

SetUpPod mocks base method.

func (*MockNetworkPlugin) Status

func (m *MockNetworkPlugin) Status() error

Status mocks base method.

func (*MockNetworkPlugin) TearDownPod

func (m *MockNetworkPlugin) TearDownPod(namespace, name string, podSandboxID container.ContainerID) error

TearDownPod mocks base method.

type MockNetworkPluginMockRecorder added in v1.23.0

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

MockNetworkPluginMockRecorder is the mock recorder for MockNetworkPlugin.

func (*MockNetworkPluginMockRecorder) Capabilities added in v1.23.0

func (mr *MockNetworkPluginMockRecorder) Capabilities() *gomock.Call

Capabilities indicates an expected call of Capabilities.

func (*MockNetworkPluginMockRecorder) Event added in v1.23.0

func (mr *MockNetworkPluginMockRecorder) Event(name, details interface{}) *gomock.Call

Event indicates an expected call of Event.

func (*MockNetworkPluginMockRecorder) GetPodNetworkStatus added in v1.23.0

func (mr *MockNetworkPluginMockRecorder) GetPodNetworkStatus(namespace, name, podSandboxID interface{}) *gomock.Call

GetPodNetworkStatus indicates an expected call of GetPodNetworkStatus.

func (*MockNetworkPluginMockRecorder) Init added in v1.23.0

func (mr *MockNetworkPluginMockRecorder) Init(host, hairpinMode, nonMasqueradeCIDR, mtu interface{}) *gomock.Call

Init indicates an expected call of Init.

func (*MockNetworkPluginMockRecorder) Name added in v1.23.0

Name indicates an expected call of Name.

func (*MockNetworkPluginMockRecorder) SetUpPod added in v1.23.0

func (mr *MockNetworkPluginMockRecorder) SetUpPod(namespace, name, podSandboxID, annotations, options interface{}) *gomock.Call

SetUpPod indicates an expected call of SetUpPod.

func (*MockNetworkPluginMockRecorder) Status added in v1.23.0

Status indicates an expected call of Status.

func (*MockNetworkPluginMockRecorder) TearDownPod added in v1.23.0

func (mr *MockNetworkPluginMockRecorder) TearDownPod(namespace, name, podSandboxID interface{}) *gomock.Call

TearDownPod indicates an expected call of TearDownPod.

type MockPortMappingGetter added in v1.23.0

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

MockPortMappingGetter is a mock of PortMappingGetter interface.

func NewMockPortMappingGetter added in v1.23.0

func NewMockPortMappingGetter(ctrl *gomock.Controller) *MockPortMappingGetter

NewMockPortMappingGetter creates a new mock instance.

func (*MockPortMappingGetter) EXPECT added in v1.23.0

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockPortMappingGetter) GetPodPortMappings added in v1.23.0

func (m *MockPortMappingGetter) GetPodPortMappings(containerID string) ([]*hostport.PortMapping, error)

GetPodPortMappings mocks base method.

type MockPortMappingGetterMockRecorder added in v1.23.0

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

MockPortMappingGetterMockRecorder is the mock recorder for MockPortMappingGetter.

func (*MockPortMappingGetterMockRecorder) GetPodPortMappings added in v1.23.0

func (mr *MockPortMappingGetterMockRecorder) GetPodPortMappings(containerID interface{}) *gomock.Call

GetPodPortMappings indicates an expected call of GetPodPortMappings.

Jump to

Keyboard shortcuts

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