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: 6 Imported by: 0

Documentation

Overview

Code generated by MockGen. DO NOT EDIT. Source: antrea.io/antrea/pkg/agent/route (interfaces: Interface)

Generated by this command:

mockgen -copyright_file hack/boilerplate/license_header.raw.txt -destination pkg/agent/route/testing/mock_route.go -package testing antrea.io/antrea/pkg/agent/route Interface

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 MockInterface

type MockInterface struct {
	// contains filtered or unexported fields
}

MockInterface is a mock of Interface interface.

func NewMockInterface

func NewMockInterface(ctrl *gomock.Controller) *MockInterface

NewMockInterface creates a new mock instance.

func (*MockInterface) AddEgressRoutes added in v1.15.0

func (m *MockInterface) AddEgressRoutes(arg0 uint32, arg1 int, arg2 net.IP, arg3 int) error

AddEgressRoutes mocks base method.

func (*MockInterface) AddEgressRule added in v1.15.0

func (m *MockInterface) AddEgressRule(arg0, arg1 uint32) error

AddEgressRule mocks base method.

func (*MockInterface) AddExternalIPRoute added in v1.12.0

func (m *MockInterface) AddExternalIPRoute(arg0 net.IP) error

AddExternalIPRoute mocks base method.

func (*MockInterface) AddLocalAntreaFlexibleIPAMPodRule added in v1.4.0

func (m *MockInterface) AddLocalAntreaFlexibleIPAMPodRule(arg0 []net.IP) error

AddLocalAntreaFlexibleIPAMPodRule mocks base method.

func (*MockInterface) AddNodePort added in v1.4.0

func (m *MockInterface) AddNodePort(arg0 []net.IP, arg1 uint16, arg2 openflow.Protocol) error

AddNodePort mocks base method.

func (*MockInterface) AddOrUpdateNodeNetworkPolicyIPSet added in v1.15.0

func (m *MockInterface) AddOrUpdateNodeNetworkPolicyIPSet(arg0 string, arg1 sets.Set[string], arg2 bool) error

AddOrUpdateNodeNetworkPolicyIPSet mocks base method.

func (*MockInterface) AddOrUpdateNodeNetworkPolicyIPTables added in v1.15.0

func (m *MockInterface) AddOrUpdateNodeNetworkPolicyIPTables(arg0 []string, arg1 [][]string, arg2 bool) error

AddOrUpdateNodeNetworkPolicyIPTables mocks base method.

func (m *MockInterface) AddRouteForLink(arg0 *net.IPNet, arg1 int) error

AddRouteForLink mocks base method.

func (*MockInterface) AddRoutes

func (m *MockInterface) AddRoutes(arg0 *net.IPNet, arg1 string, arg2, arg3 net.IP) error

AddRoutes mocks base method.

func (*MockInterface) AddSNATRule

func (m *MockInterface) AddSNATRule(arg0 net.IP, arg1 uint32) error

AddSNATRule mocks base method.

func (*MockInterface) ClearConntrackEntryForService added in v1.13.0

func (m *MockInterface) ClearConntrackEntryForService(arg0 net.IP, arg1 uint16, arg2 net.IP, arg3 openflow.Protocol) error

ClearConntrackEntryForService mocks base method.

func (*MockInterface) DeleteEgressRoutes added in v1.15.0

func (m *MockInterface) DeleteEgressRoutes(arg0 uint32) error

DeleteEgressRoutes mocks base method.

func (*MockInterface) DeleteEgressRule added in v1.15.0

func (m *MockInterface) DeleteEgressRule(arg0, arg1 uint32) error

DeleteEgressRule mocks base method.

func (*MockInterface) DeleteExternalIPRoute added in v1.12.0

func (m *MockInterface) DeleteExternalIPRoute(arg0 net.IP) error

DeleteExternalIPRoute mocks base method.

func (*MockInterface) DeleteLocalAntreaFlexibleIPAMPodRule added in v1.4.0

func (m *MockInterface) DeleteLocalAntreaFlexibleIPAMPodRule(arg0 []net.IP) error

DeleteLocalAntreaFlexibleIPAMPodRule mocks base method.

func (*MockInterface) DeleteNodeNetworkPolicyIPSet added in v1.15.0

func (m *MockInterface) DeleteNodeNetworkPolicyIPSet(arg0 string, arg1 bool) error

DeleteNodeNetworkPolicyIPSet mocks base method.

func (*MockInterface) DeleteNodeNetworkPolicyIPTables added in v1.15.0

func (m *MockInterface) DeleteNodeNetworkPolicyIPTables(arg0 []string, arg1 bool) error

DeleteNodeNetworkPolicyIPTables mocks base method.

func (*MockInterface) DeleteNodePort added in v1.4.0

func (m *MockInterface) DeleteNodePort(arg0 []net.IP, arg1 uint16, arg2 openflow.Protocol) error

DeleteNodePort mocks base method.

func (m *MockInterface) DeleteRouteForLink(arg0 *net.IPNet, arg1 int) error

DeleteRouteForLink mocks base method.

func (*MockInterface) DeleteRoutes

func (m *MockInterface) DeleteRoutes(arg0 *net.IPNet) error

DeleteRoutes mocks base method.

func (*MockInterface) DeleteSNATRule

func (m *MockInterface) DeleteSNATRule(arg0 uint32) error

DeleteSNATRule mocks base method.

func (*MockInterface) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockInterface) Initialize

func (m *MockInterface) Initialize(arg0 *config.NodeConfig, arg1 func()) error

Initialize mocks base method.

func (*MockInterface) MigrateRoutesToGw

func (m *MockInterface) MigrateRoutesToGw(arg0 string) error

MigrateRoutesToGw mocks base method.

func (*MockInterface) Reconcile

func (m *MockInterface) Reconcile(arg0 []string) error

Reconcile mocks base method.

func (*MockInterface) RestoreEgressRoutesAndRules added in v1.15.0

func (m *MockInterface) RestoreEgressRoutesAndRules(arg0, arg1 int) error

RestoreEgressRoutesAndRules mocks base method.

func (*MockInterface) Run

func (m *MockInterface) Run(arg0 <-chan struct{})

Run mocks base method.

func (*MockInterface) UnMigrateRoutesFromGw

func (m *MockInterface) UnMigrateRoutesFromGw(arg0 *net.IPNet, arg1 string) error

UnMigrateRoutesFromGw mocks base method.

type MockInterfaceMockRecorder

type MockInterfaceMockRecorder struct {
	// contains filtered or unexported fields
}

MockInterfaceMockRecorder is the mock recorder for MockInterface.

func (*MockInterfaceMockRecorder) AddEgressRoutes added in v1.15.0

func (mr *MockInterfaceMockRecorder) AddEgressRoutes(arg0, arg1, arg2, arg3 any) *gomock.Call

AddEgressRoutes indicates an expected call of AddEgressRoutes.

func (*MockInterfaceMockRecorder) AddEgressRule added in v1.15.0

func (mr *MockInterfaceMockRecorder) AddEgressRule(arg0, arg1 any) *gomock.Call

AddEgressRule indicates an expected call of AddEgressRule.

func (*MockInterfaceMockRecorder) AddExternalIPRoute added in v1.12.0

func (mr *MockInterfaceMockRecorder) AddExternalIPRoute(arg0 any) *gomock.Call

AddExternalIPRoute indicates an expected call of AddExternalIPRoute.

func (*MockInterfaceMockRecorder) AddLocalAntreaFlexibleIPAMPodRule added in v1.4.0

func (mr *MockInterfaceMockRecorder) AddLocalAntreaFlexibleIPAMPodRule(arg0 any) *gomock.Call

AddLocalAntreaFlexibleIPAMPodRule indicates an expected call of AddLocalAntreaFlexibleIPAMPodRule.

func (*MockInterfaceMockRecorder) AddNodePort added in v1.4.0

func (mr *MockInterfaceMockRecorder) AddNodePort(arg0, arg1, arg2 any) *gomock.Call

AddNodePort indicates an expected call of AddNodePort.

func (*MockInterfaceMockRecorder) AddOrUpdateNodeNetworkPolicyIPSet added in v1.15.0

func (mr *MockInterfaceMockRecorder) AddOrUpdateNodeNetworkPolicyIPSet(arg0, arg1, arg2 any) *gomock.Call

AddOrUpdateNodeNetworkPolicyIPSet indicates an expected call of AddOrUpdateNodeNetworkPolicyIPSet.

func (*MockInterfaceMockRecorder) AddOrUpdateNodeNetworkPolicyIPTables added in v1.15.0

func (mr *MockInterfaceMockRecorder) AddOrUpdateNodeNetworkPolicyIPTables(arg0, arg1, arg2 any) *gomock.Call

AddOrUpdateNodeNetworkPolicyIPTables indicates an expected call of AddOrUpdateNodeNetworkPolicyIPTables.

func (mr *MockInterfaceMockRecorder) AddRouteForLink(arg0, arg1 any) *gomock.Call

AddRouteForLink indicates an expected call of AddRouteForLink.

func (*MockInterfaceMockRecorder) AddRoutes

func (mr *MockInterfaceMockRecorder) AddRoutes(arg0, arg1, arg2, arg3 any) *gomock.Call

AddRoutes indicates an expected call of AddRoutes.

func (*MockInterfaceMockRecorder) AddSNATRule

func (mr *MockInterfaceMockRecorder) AddSNATRule(arg0, arg1 any) *gomock.Call

AddSNATRule indicates an expected call of AddSNATRule.

func (*MockInterfaceMockRecorder) ClearConntrackEntryForService added in v1.13.0

func (mr *MockInterfaceMockRecorder) ClearConntrackEntryForService(arg0, arg1, arg2, arg3 any) *gomock.Call

ClearConntrackEntryForService indicates an expected call of ClearConntrackEntryForService.

func (*MockInterfaceMockRecorder) DeleteEgressRoutes added in v1.15.0

func (mr *MockInterfaceMockRecorder) DeleteEgressRoutes(arg0 any) *gomock.Call

DeleteEgressRoutes indicates an expected call of DeleteEgressRoutes.

func (*MockInterfaceMockRecorder) DeleteEgressRule added in v1.15.0

func (mr *MockInterfaceMockRecorder) DeleteEgressRule(arg0, arg1 any) *gomock.Call

DeleteEgressRule indicates an expected call of DeleteEgressRule.

func (*MockInterfaceMockRecorder) DeleteExternalIPRoute added in v1.12.0

func (mr *MockInterfaceMockRecorder) DeleteExternalIPRoute(arg0 any) *gomock.Call

DeleteExternalIPRoute indicates an expected call of DeleteExternalIPRoute.

func (*MockInterfaceMockRecorder) DeleteLocalAntreaFlexibleIPAMPodRule added in v1.4.0

func (mr *MockInterfaceMockRecorder) DeleteLocalAntreaFlexibleIPAMPodRule(arg0 any) *gomock.Call

DeleteLocalAntreaFlexibleIPAMPodRule indicates an expected call of DeleteLocalAntreaFlexibleIPAMPodRule.

func (*MockInterfaceMockRecorder) DeleteNodeNetworkPolicyIPSet added in v1.15.0

func (mr *MockInterfaceMockRecorder) DeleteNodeNetworkPolicyIPSet(arg0, arg1 any) *gomock.Call

DeleteNodeNetworkPolicyIPSet indicates an expected call of DeleteNodeNetworkPolicyIPSet.

func (*MockInterfaceMockRecorder) DeleteNodeNetworkPolicyIPTables added in v1.15.0

func (mr *MockInterfaceMockRecorder) DeleteNodeNetworkPolicyIPTables(arg0, arg1 any) *gomock.Call

DeleteNodeNetworkPolicyIPTables indicates an expected call of DeleteNodeNetworkPolicyIPTables.

func (*MockInterfaceMockRecorder) DeleteNodePort added in v1.4.0

func (mr *MockInterfaceMockRecorder) DeleteNodePort(arg0, arg1, arg2 any) *gomock.Call

DeleteNodePort indicates an expected call of DeleteNodePort.

func (mr *MockInterfaceMockRecorder) DeleteRouteForLink(arg0, arg1 any) *gomock.Call

DeleteRouteForLink indicates an expected call of DeleteRouteForLink.

func (*MockInterfaceMockRecorder) DeleteRoutes

func (mr *MockInterfaceMockRecorder) DeleteRoutes(arg0 any) *gomock.Call

DeleteRoutes indicates an expected call of DeleteRoutes.

func (*MockInterfaceMockRecorder) DeleteSNATRule

func (mr *MockInterfaceMockRecorder) DeleteSNATRule(arg0 any) *gomock.Call

DeleteSNATRule indicates an expected call of DeleteSNATRule.

func (*MockInterfaceMockRecorder) Initialize

func (mr *MockInterfaceMockRecorder) Initialize(arg0, arg1 any) *gomock.Call

Initialize indicates an expected call of Initialize.

func (*MockInterfaceMockRecorder) MigrateRoutesToGw

func (mr *MockInterfaceMockRecorder) MigrateRoutesToGw(arg0 any) *gomock.Call

MigrateRoutesToGw indicates an expected call of MigrateRoutesToGw.

func (*MockInterfaceMockRecorder) Reconcile

func (mr *MockInterfaceMockRecorder) Reconcile(arg0 any) *gomock.Call

Reconcile indicates an expected call of Reconcile.

func (*MockInterfaceMockRecorder) RestoreEgressRoutesAndRules added in v1.15.0

func (mr *MockInterfaceMockRecorder) RestoreEgressRoutesAndRules(arg0, arg1 any) *gomock.Call

RestoreEgressRoutesAndRules indicates an expected call of RestoreEgressRoutesAndRules.

func (*MockInterfaceMockRecorder) Run

func (mr *MockInterfaceMockRecorder) Run(arg0 any) *gomock.Call

Run indicates an expected call of Run.

func (*MockInterfaceMockRecorder) UnMigrateRoutesFromGw

func (mr *MockInterfaceMockRecorder) UnMigrateRoutesFromGw(arg0, arg1 any) *gomock.Call

UnMigrateRoutesFromGw indicates an expected call of UnMigrateRoutesFromGw.

Jump to

Keyboard shortcuts

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