Documentation ¶
Overview ¶
Package testing is a generated GoMock package.
Index ¶
- type MockClient
- func (m *MockClient) AddPolicyRuleAddress(arg0 uint32, arg1 types.AddressType, arg2 []types.Address) error
- func (m *MockClient) DeletePolicyRuleAddress(arg0 uint32, arg1 types.AddressType, arg2 []types.Address) error
- func (m *MockClient) DeleteStaleFlows() error
- func (m *MockClient) Disconnect() error
- func (m *MockClient) EXPECT() *MockClientMockRecorder
- func (m *MockClient) GetFlowTableStatus() []openflow.TableStatus
- func (m *MockClient) Initialize(arg0 types.RoundInfo, arg1 *config.NodeConfig, ...) (<-chan struct{}, error)
- func (m *MockClient) InstallClusterServiceCIDRFlows(arg0 *net.IPNet, arg1 uint32) error
- func (m *MockClient) InstallDefaultTunnelFlows(arg0 uint32) error
- func (m *MockClient) InstallGatewayFlows(arg0 net.IP, arg1 net.HardwareAddr, arg2 uint32) error
- func (m *MockClient) InstallNodeFlows(arg0 string, arg1 net.HardwareAddr, arg2 net.IPNet, arg3, arg4 net.IP, ...) error
- func (m *MockClient) InstallPodFlows(arg0 string, arg1 net.IP, arg2, arg3 net.HardwareAddr, arg4 uint32) error
- func (m *MockClient) InstallPolicyRuleFlows(arg0 uint32, arg1 *types.PolicyRule) error
- func (m *MockClient) IsConnected() bool
- func (m *MockClient) ReplayFlows()
- func (m *MockClient) UninstallNodeFlows(arg0 string) error
- func (m *MockClient) UninstallPodFlows(arg0 string) error
- func (m *MockClient) UninstallPolicyRuleFlows(arg0 uint32) error
- type MockClientMockRecorder
- func (mr *MockClientMockRecorder) AddPolicyRuleAddress(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) DeletePolicyRuleAddress(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) DeleteStaleFlows() *gomock.Call
- func (mr *MockClientMockRecorder) Disconnect() *gomock.Call
- func (mr *MockClientMockRecorder) GetFlowTableStatus() *gomock.Call
- func (mr *MockClientMockRecorder) Initialize(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) InstallClusterServiceCIDRFlows(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) InstallDefaultTunnelFlows(arg0 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) InstallGatewayFlows(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) InstallNodeFlows(arg0, arg1, arg2, arg3, arg4, arg5, arg6 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) InstallPodFlows(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) InstallPolicyRuleFlows(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) IsConnected() *gomock.Call
- func (mr *MockClientMockRecorder) ReplayFlows() *gomock.Call
- func (mr *MockClientMockRecorder) UninstallNodeFlows(arg0 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) UninstallPodFlows(arg0 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) UninstallPolicyRuleFlows(arg0 interface{}) *gomock.Call
- type MockFlowOperations
- func (m *MockFlowOperations) Add(arg0 openflow.Flow) error
- func (m *MockFlowOperations) AddAll(arg0 []openflow.Flow) error
- func (m *MockFlowOperations) Delete(arg0 openflow.Flow) error
- func (m *MockFlowOperations) DeleteAll(arg0 []openflow.Flow) error
- func (m *MockFlowOperations) EXPECT() *MockFlowOperationsMockRecorder
- func (m *MockFlowOperations) Modify(arg0 openflow.Flow) error
- type MockFlowOperationsMockRecorder
- func (mr *MockFlowOperationsMockRecorder) Add(arg0 interface{}) *gomock.Call
- func (mr *MockFlowOperationsMockRecorder) AddAll(arg0 interface{}) *gomock.Call
- func (mr *MockFlowOperationsMockRecorder) Delete(arg0 interface{}) *gomock.Call
- func (mr *MockFlowOperationsMockRecorder) DeleteAll(arg0 interface{}) *gomock.Call
- func (mr *MockFlowOperationsMockRecorder) Modify(arg0 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockClient ¶
type MockClient struct {
// contains filtered or unexported fields
}
MockClient is a mock of Client interface
func NewMockClient ¶
func NewMockClient(ctrl *gomock.Controller) *MockClient
NewMockClient creates a new mock instance
func (*MockClient) AddPolicyRuleAddress ¶
func (m *MockClient) AddPolicyRuleAddress(arg0 uint32, arg1 types.AddressType, arg2 []types.Address) error
AddPolicyRuleAddress mocks base method
func (*MockClient) DeletePolicyRuleAddress ¶
func (m *MockClient) DeletePolicyRuleAddress(arg0 uint32, arg1 types.AddressType, arg2 []types.Address) error
DeletePolicyRuleAddress mocks base method
func (*MockClient) DeleteStaleFlows ¶ added in v0.3.0
func (m *MockClient) DeleteStaleFlows() error
DeleteStaleFlows mocks base method
func (*MockClient) Disconnect ¶
func (m *MockClient) Disconnect() error
Disconnect mocks base method
func (*MockClient) EXPECT ¶
func (m *MockClient) EXPECT() *MockClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockClient) GetFlowTableStatus ¶
func (m *MockClient) GetFlowTableStatus() []openflow.TableStatus
GetFlowTableStatus mocks base method
func (*MockClient) Initialize ¶
func (m *MockClient) Initialize(arg0 types.RoundInfo, arg1 *config.NodeConfig, arg2 config.TrafficEncapModeType) (<-chan struct{}, error)
Initialize mocks base method
func (*MockClient) InstallClusterServiceCIDRFlows ¶
func (m *MockClient) InstallClusterServiceCIDRFlows(arg0 *net.IPNet, arg1 uint32) error
InstallClusterServiceCIDRFlows mocks base method
func (*MockClient) InstallDefaultTunnelFlows ¶ added in v0.3.0
func (m *MockClient) InstallDefaultTunnelFlows(arg0 uint32) error
InstallDefaultTunnelFlows mocks base method
func (*MockClient) InstallGatewayFlows ¶
func (m *MockClient) InstallGatewayFlows(arg0 net.IP, arg1 net.HardwareAddr, arg2 uint32) error
InstallGatewayFlows mocks base method
func (*MockClient) InstallNodeFlows ¶
func (m *MockClient) InstallNodeFlows(arg0 string, arg1 net.HardwareAddr, arg2 net.IPNet, arg3, arg4 net.IP, arg5, arg6 uint32) error
InstallNodeFlows mocks base method
func (*MockClient) InstallPodFlows ¶
func (m *MockClient) InstallPodFlows(arg0 string, arg1 net.IP, arg2, arg3 net.HardwareAddr, arg4 uint32) error
InstallPodFlows mocks base method
func (*MockClient) InstallPolicyRuleFlows ¶
func (m *MockClient) InstallPolicyRuleFlows(arg0 uint32, arg1 *types.PolicyRule) error
InstallPolicyRuleFlows mocks base method
func (*MockClient) IsConnected ¶ added in v0.3.0
func (m *MockClient) IsConnected() bool
IsConnected mocks base method
func (*MockClient) ReplayFlows ¶ added in v0.3.0
func (m *MockClient) ReplayFlows()
ReplayFlows mocks base method
func (*MockClient) UninstallNodeFlows ¶
func (m *MockClient) UninstallNodeFlows(arg0 string) error
UninstallNodeFlows mocks base method
func (*MockClient) UninstallPodFlows ¶
func (m *MockClient) UninstallPodFlows(arg0 string) error
UninstallPodFlows mocks base method
func (*MockClient) UninstallPolicyRuleFlows ¶
func (m *MockClient) UninstallPolicyRuleFlows(arg0 uint32) error
UninstallPolicyRuleFlows mocks base method
type MockClientMockRecorder ¶
type MockClientMockRecorder struct {
// contains filtered or unexported fields
}
MockClientMockRecorder is the mock recorder for MockClient
func (*MockClientMockRecorder) AddPolicyRuleAddress ¶
func (mr *MockClientMockRecorder) AddPolicyRuleAddress(arg0, arg1, arg2 interface{}) *gomock.Call
AddPolicyRuleAddress indicates an expected call of AddPolicyRuleAddress
func (*MockClientMockRecorder) DeletePolicyRuleAddress ¶
func (mr *MockClientMockRecorder) DeletePolicyRuleAddress(arg0, arg1, arg2 interface{}) *gomock.Call
DeletePolicyRuleAddress indicates an expected call of DeletePolicyRuleAddress
func (*MockClientMockRecorder) DeleteStaleFlows ¶ added in v0.3.0
func (mr *MockClientMockRecorder) DeleteStaleFlows() *gomock.Call
DeleteStaleFlows indicates an expected call of DeleteStaleFlows
func (*MockClientMockRecorder) Disconnect ¶
func (mr *MockClientMockRecorder) Disconnect() *gomock.Call
Disconnect indicates an expected call of Disconnect
func (*MockClientMockRecorder) GetFlowTableStatus ¶
func (mr *MockClientMockRecorder) GetFlowTableStatus() *gomock.Call
GetFlowTableStatus indicates an expected call of GetFlowTableStatus
func (*MockClientMockRecorder) Initialize ¶
func (mr *MockClientMockRecorder) Initialize(arg0, arg1, arg2 interface{}) *gomock.Call
Initialize indicates an expected call of Initialize
func (*MockClientMockRecorder) InstallClusterServiceCIDRFlows ¶
func (mr *MockClientMockRecorder) InstallClusterServiceCIDRFlows(arg0, arg1 interface{}) *gomock.Call
InstallClusterServiceCIDRFlows indicates an expected call of InstallClusterServiceCIDRFlows
func (*MockClientMockRecorder) InstallDefaultTunnelFlows ¶ added in v0.3.0
func (mr *MockClientMockRecorder) InstallDefaultTunnelFlows(arg0 interface{}) *gomock.Call
InstallDefaultTunnelFlows indicates an expected call of InstallDefaultTunnelFlows
func (*MockClientMockRecorder) InstallGatewayFlows ¶
func (mr *MockClientMockRecorder) InstallGatewayFlows(arg0, arg1, arg2 interface{}) *gomock.Call
InstallGatewayFlows indicates an expected call of InstallGatewayFlows
func (*MockClientMockRecorder) InstallNodeFlows ¶
func (mr *MockClientMockRecorder) InstallNodeFlows(arg0, arg1, arg2, arg3, arg4, arg5, arg6 interface{}) *gomock.Call
InstallNodeFlows indicates an expected call of InstallNodeFlows
func (*MockClientMockRecorder) InstallPodFlows ¶
func (mr *MockClientMockRecorder) InstallPodFlows(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
InstallPodFlows indicates an expected call of InstallPodFlows
func (*MockClientMockRecorder) InstallPolicyRuleFlows ¶
func (mr *MockClientMockRecorder) InstallPolicyRuleFlows(arg0, arg1 interface{}) *gomock.Call
InstallPolicyRuleFlows indicates an expected call of InstallPolicyRuleFlows
func (*MockClientMockRecorder) IsConnected ¶ added in v0.3.0
func (mr *MockClientMockRecorder) IsConnected() *gomock.Call
IsConnected indicates an expected call of IsConnected
func (*MockClientMockRecorder) ReplayFlows ¶ added in v0.3.0
func (mr *MockClientMockRecorder) ReplayFlows() *gomock.Call
ReplayFlows indicates an expected call of ReplayFlows
func (*MockClientMockRecorder) UninstallNodeFlows ¶
func (mr *MockClientMockRecorder) UninstallNodeFlows(arg0 interface{}) *gomock.Call
UninstallNodeFlows indicates an expected call of UninstallNodeFlows
func (*MockClientMockRecorder) UninstallPodFlows ¶
func (mr *MockClientMockRecorder) UninstallPodFlows(arg0 interface{}) *gomock.Call
UninstallPodFlows indicates an expected call of UninstallPodFlows
func (*MockClientMockRecorder) UninstallPolicyRuleFlows ¶
func (mr *MockClientMockRecorder) UninstallPolicyRuleFlows(arg0 interface{}) *gomock.Call
UninstallPolicyRuleFlows indicates an expected call of UninstallPolicyRuleFlows
type MockFlowOperations ¶
type MockFlowOperations struct {
// contains filtered or unexported fields
}
MockFlowOperations is a mock of FlowOperations interface
func NewMockFlowOperations ¶
func NewMockFlowOperations(ctrl *gomock.Controller) *MockFlowOperations
NewMockFlowOperations creates a new mock instance
func (*MockFlowOperations) Add ¶
func (m *MockFlowOperations) Add(arg0 openflow.Flow) error
Add mocks base method
func (*MockFlowOperations) AddAll ¶ added in v0.3.0
func (m *MockFlowOperations) AddAll(arg0 []openflow.Flow) error
AddAll mocks base method
func (*MockFlowOperations) Delete ¶
func (m *MockFlowOperations) Delete(arg0 openflow.Flow) error
Delete mocks base method
func (*MockFlowOperations) DeleteAll ¶ added in v0.3.0
func (m *MockFlowOperations) DeleteAll(arg0 []openflow.Flow) error
DeleteAll mocks base method
func (*MockFlowOperations) EXPECT ¶
func (m *MockFlowOperations) EXPECT() *MockFlowOperationsMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockFlowOperationsMockRecorder ¶
type MockFlowOperationsMockRecorder struct {
// contains filtered or unexported fields
}
MockFlowOperationsMockRecorder is the mock recorder for MockFlowOperations
func (*MockFlowOperationsMockRecorder) Add ¶
func (mr *MockFlowOperationsMockRecorder) Add(arg0 interface{}) *gomock.Call
Add indicates an expected call of Add
func (*MockFlowOperationsMockRecorder) AddAll ¶ added in v0.3.0
func (mr *MockFlowOperationsMockRecorder) AddAll(arg0 interface{}) *gomock.Call
AddAll indicates an expected call of AddAll
func (*MockFlowOperationsMockRecorder) Delete ¶
func (mr *MockFlowOperationsMockRecorder) Delete(arg0 interface{}) *gomock.Call
Delete indicates an expected call of Delete
func (*MockFlowOperationsMockRecorder) DeleteAll ¶ added in v0.3.0
func (mr *MockFlowOperationsMockRecorder) DeleteAll(arg0 interface{}) *gomock.Call
DeleteAll indicates an expected call of DeleteAll
func (*MockFlowOperationsMockRecorder) Modify ¶
func (mr *MockFlowOperationsMockRecorder) Modify(arg0 interface{}) *gomock.Call
Modify indicates an expected call of Modify