Documentation ¶
Overview ¶
Code generated by MockGen. DO NOT EDIT. Source: antrea.io/antrea/pkg/agent/ipassigner (interfaces: IPAssigner)
Generated by this command:
mockgen -copyright_file hack/boilerplate/license_header.raw.txt -destination pkg/agent/ipassigner/testing/mock_ipassigner.go -package testing antrea.io/antrea/pkg/agent/ipassigner IPAssigner
Package testing is a generated GoMock package.
Index ¶
- type MockIPAssigner
- func (m *MockIPAssigner) AssignIP(arg0 string, arg1 *v1beta1.SubnetInfo, arg2 bool) (bool, error)
- func (m *MockIPAssigner) AssignedIPs() map[string]*v1beta1.SubnetInfo
- func (m *MockIPAssigner) EXPECT() *MockIPAssignerMockRecorder
- func (m *MockIPAssigner) GetInterfaceID(arg0 *v1beta1.SubnetInfo) (int, bool)
- func (m *MockIPAssigner) InitIPs(arg0 map[string]*v1beta1.SubnetInfo) error
- func (m *MockIPAssigner) Run(arg0 <-chan struct{})
- func (m *MockIPAssigner) UnassignIP(arg0 string) (bool, error)
- type MockIPAssignerMockRecorder
- func (mr *MockIPAssignerMockRecorder) AssignIP(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockIPAssignerMockRecorder) AssignedIPs() *gomock.Call
- func (mr *MockIPAssignerMockRecorder) GetInterfaceID(arg0 any) *gomock.Call
- func (mr *MockIPAssignerMockRecorder) InitIPs(arg0 any) *gomock.Call
- func (mr *MockIPAssignerMockRecorder) Run(arg0 any) *gomock.Call
- func (mr *MockIPAssignerMockRecorder) UnassignIP(arg0 any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockIPAssigner ¶
type MockIPAssigner struct {
// contains filtered or unexported fields
}
MockIPAssigner is a mock of IPAssigner interface.
func NewMockIPAssigner ¶
func NewMockIPAssigner(ctrl *gomock.Controller) *MockIPAssigner
NewMockIPAssigner creates a new mock instance.
func (*MockIPAssigner) AssignIP ¶
func (m *MockIPAssigner) AssignIP(arg0 string, arg1 *v1beta1.SubnetInfo, arg2 bool) (bool, error)
AssignIP mocks base method.
func (*MockIPAssigner) AssignedIPs ¶
func (m *MockIPAssigner) AssignedIPs() map[string]*v1beta1.SubnetInfo
AssignedIPs mocks base method.
func (*MockIPAssigner) EXPECT ¶
func (m *MockIPAssigner) EXPECT() *MockIPAssignerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockIPAssigner) GetInterfaceID ¶ added in v1.15.0
func (m *MockIPAssigner) GetInterfaceID(arg0 *v1beta1.SubnetInfo) (int, bool)
GetInterfaceID mocks base method.
func (*MockIPAssigner) InitIPs ¶ added in v1.7.0
func (m *MockIPAssigner) InitIPs(arg0 map[string]*v1beta1.SubnetInfo) error
InitIPs mocks base method.
func (*MockIPAssigner) Run ¶ added in v1.6.0
func (m *MockIPAssigner) Run(arg0 <-chan struct{})
Run mocks base method.
func (*MockIPAssigner) UnassignIP ¶
func (m *MockIPAssigner) UnassignIP(arg0 string) (bool, error)
UnassignIP mocks base method.
type MockIPAssignerMockRecorder ¶
type MockIPAssignerMockRecorder struct {
// contains filtered or unexported fields
}
MockIPAssignerMockRecorder is the mock recorder for MockIPAssigner.
func (*MockIPAssignerMockRecorder) AssignIP ¶
func (mr *MockIPAssignerMockRecorder) AssignIP(arg0, arg1, arg2 any) *gomock.Call
AssignIP indicates an expected call of AssignIP.
func (*MockIPAssignerMockRecorder) AssignedIPs ¶
func (mr *MockIPAssignerMockRecorder) AssignedIPs() *gomock.Call
AssignedIPs indicates an expected call of AssignedIPs.
func (*MockIPAssignerMockRecorder) GetInterfaceID ¶ added in v1.15.0
func (mr *MockIPAssignerMockRecorder) GetInterfaceID(arg0 any) *gomock.Call
GetInterfaceID indicates an expected call of GetInterfaceID.
func (*MockIPAssignerMockRecorder) InitIPs ¶ added in v1.7.0
func (mr *MockIPAssignerMockRecorder) InitIPs(arg0 any) *gomock.Call
InitIPs indicates an expected call of InitIPs.
func (*MockIPAssignerMockRecorder) Run ¶ added in v1.6.0
func (mr *MockIPAssignerMockRecorder) Run(arg0 any) *gomock.Call
Run indicates an expected call of Run.
func (*MockIPAssignerMockRecorder) UnassignIP ¶
func (mr *MockIPAssignerMockRecorder) UnassignIP(arg0 any) *gomock.Call
UnassignIP indicates an expected call of UnassignIP.