Documentation ¶
Index ¶
- func NewFakeHost(kubeClient clientset.Interface) *fakeNetworkHost
- type FakePortMappingGetter
- type MockNetworkPlugin
- func (_m *MockNetworkPlugin) Capabilities() sets.Int
- func (_m *MockNetworkPlugin) EXPECT() *_MockNetworkPluginRecorder
- func (_m *MockNetworkPlugin) Event(_param0 string, _param1 map[string]interface{})
- func (_m *MockNetworkPlugin) Finish()
- func (_m *MockNetworkPlugin) GetPodNetworkStatus(_param0 string, _param1 string, _param2 container.ContainerID) (*network.PodNetworkStatus, error)
- func (_m *MockNetworkPlugin) Init(_param0 network.Host, _param1 componentconfig.HairpinMode, ...) error
- func (_m *MockNetworkPlugin) Name() string
- func (_m *MockNetworkPlugin) SetUpPod(_param0 string, _param1 string, _param2 container.ContainerID) error
- func (_m *MockNetworkPlugin) Status() error
- func (_m *MockNetworkPlugin) TearDownPod(_param0 string, _param1 string, _param2 container.ContainerID) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFakeHost ¶
Types ¶
type FakePortMappingGetter ¶ added in v1.6.0
type FakePortMappingGetter struct {
// contains filtered or unexported fields
}
func (*FakePortMappingGetter) GetPodPortMappings ¶ added in v1.6.0
func (pm *FakePortMappingGetter) GetPodPortMappings(containerID string) ([]*hostport.PortMapping, error)
type MockNetworkPlugin ¶ added in v1.6.0
type MockNetworkPlugin struct {
// contains filtered or unexported fields
}
Mock of NetworkPlugin interface
func NewMockNetworkPlugin ¶ added in v1.6.0
func NewMockNetworkPlugin(ctrl *gomock.Controller) *MockNetworkPlugin
func (*MockNetworkPlugin) Capabilities ¶ added in v1.6.0
func (_m *MockNetworkPlugin) Capabilities() sets.Int
func (*MockNetworkPlugin) EXPECT ¶ added in v1.6.0
func (_m *MockNetworkPlugin) EXPECT() *_MockNetworkPluginRecorder
func (*MockNetworkPlugin) Event ¶ added in v1.6.0
func (_m *MockNetworkPlugin) Event(_param0 string, _param1 map[string]interface{})
func (*MockNetworkPlugin) Finish ¶ added in v1.6.0
func (_m *MockNetworkPlugin) Finish()
func (*MockNetworkPlugin) GetPodNetworkStatus ¶ added in v1.6.0
func (_m *MockNetworkPlugin) GetPodNetworkStatus(_param0 string, _param1 string, _param2 container.ContainerID) (*network.PodNetworkStatus, error)
func (*MockNetworkPlugin) Init ¶ added in v1.6.0
func (_m *MockNetworkPlugin) Init(_param0 network.Host, _param1 componentconfig.HairpinMode, nonMasqueradeCIDR string, mtu int) error
func (*MockNetworkPlugin) Name ¶ added in v1.6.0
func (_m *MockNetworkPlugin) Name() string
func (*MockNetworkPlugin) SetUpPod ¶ added in v1.6.0
func (_m *MockNetworkPlugin) SetUpPod(_param0 string, _param1 string, _param2 container.ContainerID) error
func (*MockNetworkPlugin) Status ¶ added in v1.6.0
func (_m *MockNetworkPlugin) Status() error
func (*MockNetworkPlugin) TearDownPod ¶ added in v1.6.0
func (_m *MockNetworkPlugin) TearDownPod(_param0 string, _param1 string, _param2 container.ContainerID) error
Click to show internal directories.
Click to hide internal directories.