Documentation ¶
Index ¶
- type MockCNI
- func (_m *MockCNI) AddNetwork(_param0 *libcni.NetworkConfig, _param1 *libcni.RuntimeConf) (types.Result, error)
- func (_m *MockCNI) AddNetworkList(_param0 *libcni.NetworkConfigList, _param1 *libcni.RuntimeConf) (types.Result, error)
- func (_m *MockCNI) DelNetwork(_param0 *libcni.NetworkConfig, _param1 *libcni.RuntimeConf) error
- func (_m *MockCNI) DelNetworkList(_param0 *libcni.NetworkConfigList, _param1 *libcni.RuntimeConf) error
- func (_m *MockCNI) EXPECT() *_MockCNIRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockCNI ¶
type MockCNI struct {
// contains filtered or unexported fields
}
Mock of CNI interface
func NewMockCNI ¶
func NewMockCNI(ctrl *gomock.Controller) *MockCNI
func (*MockCNI) AddNetwork ¶
func (_m *MockCNI) AddNetwork(_param0 *libcni.NetworkConfig, _param1 *libcni.RuntimeConf) (types.Result, error)
func (*MockCNI) AddNetworkList ¶
func (_m *MockCNI) AddNetworkList(_param0 *libcni.NetworkConfigList, _param1 *libcni.RuntimeConf) (types.Result, error)
func (*MockCNI) DelNetwork ¶
func (_m *MockCNI) DelNetwork(_param0 *libcni.NetworkConfig, _param1 *libcni.RuntimeConf) error
func (*MockCNI) DelNetworkList ¶
func (_m *MockCNI) DelNetworkList(_param0 *libcni.NetworkConfigList, _param1 *libcni.RuntimeConf) error
Click to show internal directories.
Click to hide internal directories.