Documentation ¶
Overview ¶
Package testing is a generated GoMock package.
Index ¶
- type MockInterface
- func (m *MockInterface) AddClusterIPRoute(arg0 net.IP) error
- func (m *MockInterface) AddLoadBalancer(arg0 []string) error
- func (m *MockInterface) AddLocalAntreaFlexibleIPAMPodRule(arg0 []net.IP) error
- func (m *MockInterface) AddNodePort(arg0 []net.IP, arg1 uint16, arg2 openflow.Protocol) error
- func (m *MockInterface) AddRoutes(arg0 *net.IPNet, arg1 string, arg2, arg3 net.IP) error
- func (m *MockInterface) AddSNATRule(arg0 net.IP, arg1 uint32) error
- func (m *MockInterface) DeleteClusterIPRoute(arg0 net.IP) error
- func (m *MockInterface) DeleteLoadBalancer(arg0 []string) error
- func (m *MockInterface) DeleteLocalAntreaFlexibleIPAMPodRule(arg0 []net.IP) error
- func (m *MockInterface) DeleteNodePort(arg0 []net.IP, arg1 uint16, arg2 openflow.Protocol) error
- func (m *MockInterface) DeleteRoutes(arg0 *net.IPNet) error
- func (m *MockInterface) DeleteSNATRule(arg0 uint32) error
- func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder
- func (m *MockInterface) Initialize(arg0 *config.NodeConfig, arg1 func()) error
- func (m *MockInterface) MigrateRoutesToGw(arg0 string) error
- func (m *MockInterface) Reconcile(arg0 []string, arg1 map[string]bool) error
- func (m *MockInterface) Run(arg0 <-chan struct{})
- func (m *MockInterface) UnMigrateRoutesFromGw(arg0 *net.IPNet, arg1 string) error
- type MockInterfaceMockRecorder
- func (mr *MockInterfaceMockRecorder) AddClusterIPRoute(arg0 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) AddLoadBalancer(arg0 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) AddLocalAntreaFlexibleIPAMPodRule(arg0 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) AddNodePort(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) AddRoutes(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) AddSNATRule(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) DeleteClusterIPRoute(arg0 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) DeleteLoadBalancer(arg0 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) DeleteLocalAntreaFlexibleIPAMPodRule(arg0 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) DeleteNodePort(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) DeleteRoutes(arg0 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) DeleteSNATRule(arg0 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) Initialize(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) MigrateRoutesToGw(arg0 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) Reconcile(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) Run(arg0 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) UnMigrateRoutesFromGw(arg0, arg1 interface{}) *gomock.Call
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) AddClusterIPRoute ¶ added in v1.4.0
func (m *MockInterface) AddClusterIPRoute(arg0 net.IP) error
AddClusterIPRoute mocks base method
func (*MockInterface) AddLoadBalancer ¶ added in v1.4.0
func (m *MockInterface) AddLoadBalancer(arg0 []string) error
AddLoadBalancer 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
AddNodePort mocks base method
func (*MockInterface) AddSNATRule ¶
func (m *MockInterface) AddSNATRule(arg0 net.IP, arg1 uint32) error
AddSNATRule mocks base method
func (*MockInterface) DeleteClusterIPRoute ¶ added in v1.4.0
func (m *MockInterface) DeleteClusterIPRoute(arg0 net.IP) error
DeleteClusterIPRoute mocks base method
func (*MockInterface) DeleteLoadBalancer ¶ added in v1.4.0
func (m *MockInterface) DeleteLoadBalancer(arg0 []string) error
DeleteLoadBalancer 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) DeleteNodePort ¶ added in v1.4.0
DeleteNodePort 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 ¶
func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder
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, arg1 map[string]bool) error
Reconcile 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) AddClusterIPRoute ¶ added in v1.4.0
func (mr *MockInterfaceMockRecorder) AddClusterIPRoute(arg0 interface{}) *gomock.Call
AddClusterIPRoute indicates an expected call of AddClusterIPRoute
func (*MockInterfaceMockRecorder) AddLoadBalancer ¶ added in v1.4.0
func (mr *MockInterfaceMockRecorder) AddLoadBalancer(arg0 interface{}) *gomock.Call
AddLoadBalancer indicates an expected call of AddLoadBalancer
func (*MockInterfaceMockRecorder) AddLocalAntreaFlexibleIPAMPodRule ¶ added in v1.4.0
func (mr *MockInterfaceMockRecorder) AddLocalAntreaFlexibleIPAMPodRule(arg0 interface{}) *gomock.Call
AddLocalAntreaFlexibleIPAMPodRule indicates an expected call of AddLocalAntreaFlexibleIPAMPodRule
func (*MockInterfaceMockRecorder) AddNodePort ¶ added in v1.4.0
func (mr *MockInterfaceMockRecorder) AddNodePort(arg0, arg1, arg2 interface{}) *gomock.Call
AddNodePort indicates an expected call of AddNodePort
func (*MockInterfaceMockRecorder) AddRoutes ¶
func (mr *MockInterfaceMockRecorder) AddRoutes(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
AddRoutes indicates an expected call of AddRoutes
func (*MockInterfaceMockRecorder) AddSNATRule ¶
func (mr *MockInterfaceMockRecorder) AddSNATRule(arg0, arg1 interface{}) *gomock.Call
AddSNATRule indicates an expected call of AddSNATRule
func (*MockInterfaceMockRecorder) DeleteClusterIPRoute ¶ added in v1.4.0
func (mr *MockInterfaceMockRecorder) DeleteClusterIPRoute(arg0 interface{}) *gomock.Call
DeleteClusterIPRoute indicates an expected call of DeleteClusterIPRoute
func (*MockInterfaceMockRecorder) DeleteLoadBalancer ¶ added in v1.4.0
func (mr *MockInterfaceMockRecorder) DeleteLoadBalancer(arg0 interface{}) *gomock.Call
DeleteLoadBalancer indicates an expected call of DeleteLoadBalancer
func (*MockInterfaceMockRecorder) DeleteLocalAntreaFlexibleIPAMPodRule ¶ added in v1.4.0
func (mr *MockInterfaceMockRecorder) DeleteLocalAntreaFlexibleIPAMPodRule(arg0 interface{}) *gomock.Call
DeleteLocalAntreaFlexibleIPAMPodRule indicates an expected call of DeleteLocalAntreaFlexibleIPAMPodRule
func (*MockInterfaceMockRecorder) DeleteNodePort ¶ added in v1.4.0
func (mr *MockInterfaceMockRecorder) DeleteNodePort(arg0, arg1, arg2 interface{}) *gomock.Call
DeleteNodePort indicates an expected call of DeleteNodePort
func (*MockInterfaceMockRecorder) DeleteRoutes ¶
func (mr *MockInterfaceMockRecorder) DeleteRoutes(arg0 interface{}) *gomock.Call
DeleteRoutes indicates an expected call of DeleteRoutes
func (*MockInterfaceMockRecorder) DeleteSNATRule ¶
func (mr *MockInterfaceMockRecorder) DeleteSNATRule(arg0 interface{}) *gomock.Call
DeleteSNATRule indicates an expected call of DeleteSNATRule
func (*MockInterfaceMockRecorder) Initialize ¶
func (mr *MockInterfaceMockRecorder) Initialize(arg0, arg1 interface{}) *gomock.Call
Initialize indicates an expected call of Initialize
func (*MockInterfaceMockRecorder) MigrateRoutesToGw ¶
func (mr *MockInterfaceMockRecorder) MigrateRoutesToGw(arg0 interface{}) *gomock.Call
MigrateRoutesToGw indicates an expected call of MigrateRoutesToGw
func (*MockInterfaceMockRecorder) Reconcile ¶
func (mr *MockInterfaceMockRecorder) Reconcile(arg0, arg1 interface{}) *gomock.Call
Reconcile indicates an expected call of Reconcile
func (*MockInterfaceMockRecorder) Run ¶
func (mr *MockInterfaceMockRecorder) Run(arg0 interface{}) *gomock.Call
Run indicates an expected call of Run
func (*MockInterfaceMockRecorder) UnMigrateRoutesFromGw ¶
func (mr *MockInterfaceMockRecorder) UnMigrateRoutesFromGw(arg0, arg1 interface{}) *gomock.Call
UnMigrateRoutesFromGw indicates an expected call of UnMigrateRoutesFromGw