testing

package
v1.15.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 25, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

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

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL