Documentation ¶
Overview ¶
Code generated by MockGen. DO NOT EDIT. Source: antrea.io/antrea/pkg/agent/memberlist (interfaces: Interface)
Generated by this command:
mockgen -copyright_file hack/boilerplate/license_header.raw.txt -destination pkg/agent/memberlist/testing/mock_memberlist.go -package testing antrea.io/antrea/pkg/agent/memberlist Interface
Package testing is a generated GoMock package.
Index ¶
- type MockInterface
- func (m *MockInterface) AddClusterEventHandler(arg0 memberlist.ClusterNodeEventHandler)
- func (m *MockInterface) AliveNodes() sets.Set[string]
- func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder
- func (m *MockInterface) SelectNodeForIP(arg0, arg1 string, arg2 ...func(string) bool) (string, error)
- func (m *MockInterface) ShouldSelectIP(arg0, arg1 string, arg2 ...func(string) bool) (bool, error)
- type MockInterfaceMockRecorder
- func (mr *MockInterfaceMockRecorder) AddClusterEventHandler(arg0 any) *gomock.Call
- func (mr *MockInterfaceMockRecorder) AliveNodes() *gomock.Call
- func (mr *MockInterfaceMockRecorder) SelectNodeForIP(arg0, arg1 any, arg2 ...any) *gomock.Call
- func (mr *MockInterfaceMockRecorder) ShouldSelectIP(arg0, arg1 any, arg2 ...any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockInterface ¶ added in v1.11.0
type MockInterface struct {
// contains filtered or unexported fields
}
MockInterface is a mock of Interface interface.
func NewMockInterface ¶ added in v1.11.0
func NewMockInterface(ctrl *gomock.Controller) *MockInterface
NewMockInterface creates a new mock instance.
func (*MockInterface) AddClusterEventHandler ¶ added in v1.11.0
func (m *MockInterface) AddClusterEventHandler(arg0 memberlist.ClusterNodeEventHandler)
AddClusterEventHandler mocks base method.
func (*MockInterface) AliveNodes ¶ added in v1.11.0
func (m *MockInterface) AliveNodes() sets.Set[string]
AliveNodes mocks base method.
func (*MockInterface) EXPECT ¶ added in v1.11.0
func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockInterface) SelectNodeForIP ¶ added in v1.11.0
func (m *MockInterface) SelectNodeForIP(arg0, arg1 string, arg2 ...func(string) bool) (string, error)
SelectNodeForIP mocks base method.
func (*MockInterface) ShouldSelectIP ¶ added in v1.11.0
ShouldSelectIP mocks base method.
type MockInterfaceMockRecorder ¶ added in v1.11.0
type MockInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockInterfaceMockRecorder is the mock recorder for MockInterface.
func (*MockInterfaceMockRecorder) AddClusterEventHandler ¶ added in v1.11.0
func (mr *MockInterfaceMockRecorder) AddClusterEventHandler(arg0 any) *gomock.Call
AddClusterEventHandler indicates an expected call of AddClusterEventHandler.
func (*MockInterfaceMockRecorder) AliveNodes ¶ added in v1.11.0
func (mr *MockInterfaceMockRecorder) AliveNodes() *gomock.Call
AliveNodes indicates an expected call of AliveNodes.
func (*MockInterfaceMockRecorder) SelectNodeForIP ¶ added in v1.11.0
func (mr *MockInterfaceMockRecorder) SelectNodeForIP(arg0, arg1 any, arg2 ...any) *gomock.Call
SelectNodeForIP indicates an expected call of SelectNodeForIP.
func (*MockInterfaceMockRecorder) ShouldSelectIP ¶ added in v1.11.0
func (mr *MockInterfaceMockRecorder) ShouldSelectIP(arg0, arg1 any, arg2 ...any) *gomock.Call
ShouldSelectIP indicates an expected call of ShouldSelectIP.