Documentation ¶
Overview ¶
Package mock_libcni is a generated GoMock package.
Index ¶
- type MockCNI
- func (m *MockCNI) AddNetwork(arg0 context.Context, arg1 *libcni.NetworkConfig, arg2 *libcni.RuntimeConf) (types.Result, error)
- func (m *MockCNI) AddNetworkList(arg0 context.Context, arg1 *libcni.NetworkConfigList, arg2 *libcni.RuntimeConf) (types.Result, error)
- func (m *MockCNI) CheckNetwork(arg0 context.Context, arg1 *libcni.NetworkConfig, arg2 *libcni.RuntimeConf) error
- func (m *MockCNI) CheckNetworkList(arg0 context.Context, arg1 *libcni.NetworkConfigList, arg2 *libcni.RuntimeConf) error
- func (m *MockCNI) DelNetwork(arg0 context.Context, arg1 *libcni.NetworkConfig, arg2 *libcni.RuntimeConf) error
- func (m *MockCNI) DelNetworkList(arg0 context.Context, arg1 *libcni.NetworkConfigList, arg2 *libcni.RuntimeConf) error
- func (m *MockCNI) EXPECT() *MockCNIMockRecorder
- func (m *MockCNI) GetNetworkCachedConfig(arg0 *libcni.NetworkConfig, arg1 *libcni.RuntimeConf) ([]byte, *libcni.RuntimeConf, error)
- func (m *MockCNI) GetNetworkCachedResult(arg0 *libcni.NetworkConfig, arg1 *libcni.RuntimeConf) (types.Result, error)
- func (m *MockCNI) GetNetworkListCachedConfig(arg0 *libcni.NetworkConfigList, arg1 *libcni.RuntimeConf) ([]byte, *libcni.RuntimeConf, error)
- func (m *MockCNI) GetNetworkListCachedResult(arg0 *libcni.NetworkConfigList, arg1 *libcni.RuntimeConf) (types.Result, error)
- func (m *MockCNI) ValidateNetwork(arg0 context.Context, arg1 *libcni.NetworkConfig) ([]string, error)
- func (m *MockCNI) ValidateNetworkList(arg0 context.Context, arg1 *libcni.NetworkConfigList) ([]string, error)
- type MockCNIMockRecorder
- func (mr *MockCNIMockRecorder) AddNetwork(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockCNIMockRecorder) AddNetworkList(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockCNIMockRecorder) CheckNetwork(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockCNIMockRecorder) CheckNetworkList(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockCNIMockRecorder) DelNetwork(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockCNIMockRecorder) DelNetworkList(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockCNIMockRecorder) GetNetworkCachedConfig(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockCNIMockRecorder) GetNetworkCachedResult(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockCNIMockRecorder) GetNetworkListCachedConfig(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockCNIMockRecorder) GetNetworkListCachedResult(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockCNIMockRecorder) ValidateNetwork(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockCNIMockRecorder) ValidateNetworkList(arg0, arg1 interface{}) *gomock.Call
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
}
MockCNI is a mock of CNI interface.
func NewMockCNI ¶
func NewMockCNI(ctrl *gomock.Controller) *MockCNI
NewMockCNI creates a new mock instance.
func (*MockCNI) AddNetwork ¶
func (m *MockCNI) AddNetwork(arg0 context.Context, arg1 *libcni.NetworkConfig, arg2 *libcni.RuntimeConf) (types.Result, error)
AddNetwork mocks base method.
func (*MockCNI) AddNetworkList ¶
func (m *MockCNI) AddNetworkList(arg0 context.Context, arg1 *libcni.NetworkConfigList, arg2 *libcni.RuntimeConf) (types.Result, error)
AddNetworkList mocks base method.
func (*MockCNI) CheckNetwork ¶ added in v1.28.1
func (m *MockCNI) CheckNetwork(arg0 context.Context, arg1 *libcni.NetworkConfig, arg2 *libcni.RuntimeConf) error
CheckNetwork mocks base method.
func (*MockCNI) CheckNetworkList ¶ added in v1.28.1
func (m *MockCNI) CheckNetworkList(arg0 context.Context, arg1 *libcni.NetworkConfigList, arg2 *libcni.RuntimeConf) error
CheckNetworkList mocks base method.
func (*MockCNI) DelNetwork ¶
func (m *MockCNI) DelNetwork(arg0 context.Context, arg1 *libcni.NetworkConfig, arg2 *libcni.RuntimeConf) error
DelNetwork mocks base method.
func (*MockCNI) DelNetworkList ¶
func (m *MockCNI) DelNetworkList(arg0 context.Context, arg1 *libcni.NetworkConfigList, arg2 *libcni.RuntimeConf) error
DelNetworkList mocks base method.
func (*MockCNI) EXPECT ¶
func (m *MockCNI) EXPECT() *MockCNIMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCNI) GetNetworkCachedConfig ¶ added in v1.43.0
func (m *MockCNI) GetNetworkCachedConfig(arg0 *libcni.NetworkConfig, arg1 *libcni.RuntimeConf) ([]byte, *libcni.RuntimeConf, error)
GetNetworkCachedConfig mocks base method.
func (*MockCNI) GetNetworkCachedResult ¶ added in v1.28.1
func (m *MockCNI) GetNetworkCachedResult(arg0 *libcni.NetworkConfig, arg1 *libcni.RuntimeConf) (types.Result, error)
GetNetworkCachedResult mocks base method.
func (*MockCNI) GetNetworkListCachedConfig ¶ added in v1.43.0
func (m *MockCNI) GetNetworkListCachedConfig(arg0 *libcni.NetworkConfigList, arg1 *libcni.RuntimeConf) ([]byte, *libcni.RuntimeConf, error)
GetNetworkListCachedConfig mocks base method.
func (*MockCNI) GetNetworkListCachedResult ¶ added in v1.43.0
func (m *MockCNI) GetNetworkListCachedResult(arg0 *libcni.NetworkConfigList, arg1 *libcni.RuntimeConf) (types.Result, error)
GetNetworkListCachedResult mocks base method.
func (*MockCNI) ValidateNetwork ¶ added in v1.28.1
func (m *MockCNI) ValidateNetwork(arg0 context.Context, arg1 *libcni.NetworkConfig) ([]string, error)
ValidateNetwork mocks base method.
func (*MockCNI) ValidateNetworkList ¶ added in v1.28.1
func (m *MockCNI) ValidateNetworkList(arg0 context.Context, arg1 *libcni.NetworkConfigList) ([]string, error)
ValidateNetworkList mocks base method.
type MockCNIMockRecorder ¶ added in v1.17.3
type MockCNIMockRecorder struct {
// contains filtered or unexported fields
}
MockCNIMockRecorder is the mock recorder for MockCNI.
func (*MockCNIMockRecorder) AddNetwork ¶ added in v1.17.3
func (mr *MockCNIMockRecorder) AddNetwork(arg0, arg1, arg2 interface{}) *gomock.Call
AddNetwork indicates an expected call of AddNetwork.
func (*MockCNIMockRecorder) AddNetworkList ¶ added in v1.17.3
func (mr *MockCNIMockRecorder) AddNetworkList(arg0, arg1, arg2 interface{}) *gomock.Call
AddNetworkList indicates an expected call of AddNetworkList.
func (*MockCNIMockRecorder) CheckNetwork ¶ added in v1.29.1
func (mr *MockCNIMockRecorder) CheckNetwork(arg0, arg1, arg2 interface{}) *gomock.Call
CheckNetwork indicates an expected call of CheckNetwork.
func (*MockCNIMockRecorder) CheckNetworkList ¶ added in v1.29.1
func (mr *MockCNIMockRecorder) CheckNetworkList(arg0, arg1, arg2 interface{}) *gomock.Call
CheckNetworkList indicates an expected call of CheckNetworkList.
func (*MockCNIMockRecorder) DelNetwork ¶ added in v1.17.3
func (mr *MockCNIMockRecorder) DelNetwork(arg0, arg1, arg2 interface{}) *gomock.Call
DelNetwork indicates an expected call of DelNetwork.
func (*MockCNIMockRecorder) DelNetworkList ¶ added in v1.17.3
func (mr *MockCNIMockRecorder) DelNetworkList(arg0, arg1, arg2 interface{}) *gomock.Call
DelNetworkList indicates an expected call of DelNetworkList.
func (*MockCNIMockRecorder) GetNetworkCachedConfig ¶ added in v1.43.0
func (mr *MockCNIMockRecorder) GetNetworkCachedConfig(arg0, arg1 interface{}) *gomock.Call
GetNetworkCachedConfig indicates an expected call of GetNetworkCachedConfig.
func (*MockCNIMockRecorder) GetNetworkCachedResult ¶ added in v1.29.1
func (mr *MockCNIMockRecorder) GetNetworkCachedResult(arg0, arg1 interface{}) *gomock.Call
GetNetworkCachedResult indicates an expected call of GetNetworkCachedResult.
func (*MockCNIMockRecorder) GetNetworkListCachedConfig ¶ added in v1.43.0
func (mr *MockCNIMockRecorder) GetNetworkListCachedConfig(arg0, arg1 interface{}) *gomock.Call
GetNetworkListCachedConfig indicates an expected call of GetNetworkListCachedConfig.
func (*MockCNIMockRecorder) GetNetworkListCachedResult ¶ added in v1.43.0
func (mr *MockCNIMockRecorder) GetNetworkListCachedResult(arg0, arg1 interface{}) *gomock.Call
GetNetworkListCachedResult indicates an expected call of GetNetworkListCachedResult.
func (*MockCNIMockRecorder) ValidateNetwork ¶ added in v1.29.1
func (mr *MockCNIMockRecorder) ValidateNetwork(arg0, arg1 interface{}) *gomock.Call
ValidateNetwork indicates an expected call of ValidateNetwork.
func (*MockCNIMockRecorder) ValidateNetworkList ¶ added in v1.29.1
func (mr *MockCNIMockRecorder) ValidateNetworkList(arg0, arg1 interface{}) *gomock.Call
ValidateNetworkList indicates an expected call of ValidateNetworkList.