Documentation ¶
Overview ¶
Code generated by MockGen. DO NOT EDIT. Source: antrea.io/antrea/pkg/agent/cniserver/ipam (interfaces: IPAMDriver)
Generated by this command:
mockgen -copyright_file hack/boilerplate/license_header.raw.txt -destination pkg/agent/cniserver/ipam/testing/mock_ipam.go -package testing antrea.io/antrea/pkg/agent/cniserver/ipam IPAMDriver
Package testing is a generated GoMock package.
Index ¶
- func GenerateIPAMResult(ipConfig []string, routeConfig []string, dnsConfig []string) *current.Result
- type MockIPAMDriver
- func (m *MockIPAMDriver) Add(arg0 *invoke.Args, arg1 *types.K8sArgs, arg2 []byte) (bool, *ipam.IPAMResult, error)
- func (m *MockIPAMDriver) Check(arg0 *invoke.Args, arg1 *types.K8sArgs, arg2 []byte) (bool, error)
- func (m *MockIPAMDriver) Del(arg0 *invoke.Args, arg1 *types.K8sArgs, arg2 []byte) (bool, error)
- func (m *MockIPAMDriver) EXPECT() *MockIPAMDriverMockRecorder
- type MockIPAMDriverMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MockIPAMDriver ¶
type MockIPAMDriver struct {
// contains filtered or unexported fields
}
MockIPAMDriver is a mock of IPAMDriver interface.
func NewMockIPAMDriver ¶
func NewMockIPAMDriver(ctrl *gomock.Controller) *MockIPAMDriver
NewMockIPAMDriver creates a new mock instance.
func (*MockIPAMDriver) Add ¶
func (m *MockIPAMDriver) Add(arg0 *invoke.Args, arg1 *types.K8sArgs, arg2 []byte) (bool, *ipam.IPAMResult, error)
Add mocks base method.
func (*MockIPAMDriver) EXPECT ¶
func (m *MockIPAMDriver) EXPECT() *MockIPAMDriverMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockIPAMDriverMockRecorder ¶
type MockIPAMDriverMockRecorder struct {
// contains filtered or unexported fields
}
MockIPAMDriverMockRecorder is the mock recorder for MockIPAMDriver.
func (*MockIPAMDriverMockRecorder) Add ¶
func (mr *MockIPAMDriverMockRecorder) Add(arg0, arg1, arg2 any) *gomock.Call
Add indicates an expected call of Add.
Click to show internal directories.
Click to hide internal directories.