Documentation ¶
Overview ¶
Package testing is a generated GoMock package.
Index ¶
- func NewFakeHost(kubeClient clientset.Interface) *fakeNetworkHost
- type FakePortMappingGetter
- type MockHost
- type MockHostMockRecorder
- type MockNamespaceGetter
- type MockNamespaceGetterMockRecorder
- type MockNetworkPlugin
- func (m *MockNetworkPlugin) Capabilities() sets.Int
- func (m *MockNetworkPlugin) EXPECT() *MockNetworkPluginMockRecorder
- func (m *MockNetworkPlugin) Event(name string, details map[string]interface{})
- func (m *MockNetworkPlugin) GetPodNetworkStatus(namespace, name string, podSandboxID container.ContainerID) (*network.PodNetworkStatus, error)
- func (m *MockNetworkPlugin) Init(host network.Host, hairpinMode config.HairpinMode, nonMasqueradeCIDR string, ...) error
- func (m *MockNetworkPlugin) Name() string
- func (m *MockNetworkPlugin) SetUpPod(namespace, name string, podSandboxID container.ContainerID, ...) error
- func (m *MockNetworkPlugin) Status() error
- func (m *MockNetworkPlugin) TearDownPod(namespace, name string, podSandboxID container.ContainerID) error
- type MockNetworkPluginMockRecorder
- func (mr *MockNetworkPluginMockRecorder) Capabilities() *gomock.Call
- func (mr *MockNetworkPluginMockRecorder) Event(name, details interface{}) *gomock.Call
- func (mr *MockNetworkPluginMockRecorder) GetPodNetworkStatus(namespace, name, podSandboxID interface{}) *gomock.Call
- func (mr *MockNetworkPluginMockRecorder) Init(host, hairpinMode, nonMasqueradeCIDR, mtu interface{}) *gomock.Call
- func (mr *MockNetworkPluginMockRecorder) Name() *gomock.Call
- func (mr *MockNetworkPluginMockRecorder) SetUpPod(namespace, name, podSandboxID, annotations, options interface{}) *gomock.Call
- func (mr *MockNetworkPluginMockRecorder) Status() *gomock.Call
- func (mr *MockNetworkPluginMockRecorder) TearDownPod(namespace, name, podSandboxID interface{}) *gomock.Call
- type MockPortMappingGetter
- type MockPortMappingGetterMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFakeHost ¶
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) 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
func (m *MockNamespaceGetter) EXPECT() *MockNamespaceGetterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
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 ¶
func (m *MockNetworkPlugin) EXPECT() *MockNetworkPluginMockRecorder
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) 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
func (mr *MockNetworkPluginMockRecorder) Name() *gomock.Call
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
func (mr *MockNetworkPluginMockRecorder) Status() *gomock.Call
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
func (m *MockPortMappingGetter) EXPECT() *MockPortMappingGetterMockRecorder
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