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) GetNetworkPolicyFlowKeys(arg0, arg1 string) []string
- func (m *MockClient) GetPodFlowKeys(arg0 string) []string
- func (m *MockClient) GetTunnelVirtualMAC() net.HardwareAddr
- func (m *MockClient) Initialize(arg0 types.RoundInfo, arg1 *config.NodeConfig, ...) (<-chan struct{}, error)
- func (m *MockClient) InstallBridgeUplinkFlows(arg0, arg1 uint32) error
- func (m *MockClient) InstallClusterServiceCIDRFlows(arg0 *net.IPNet, arg1 net.HardwareAddr, arg2 uint32) error
- func (m *MockClient) InstallDefaultTunnelFlows(arg0 uint32) error
- func (m *MockClient) InstallExternalFlows(arg0 net.IP, arg1 net.IPNet) 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, arg2, arg3 string) 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) GetNetworkPolicyFlowKeys(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) GetPodFlowKeys(arg0 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) GetTunnelVirtualMAC() *gomock.Call
- func (mr *MockClientMockRecorder) Initialize(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) InstallBridgeUplinkFlows(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) InstallClusterServiceCIDRFlows(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) InstallDefaultTunnelFlows(arg0 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) InstallExternalFlows(arg0, arg1 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, arg2, arg3 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 MockOFEntryOperations
- func (m *MockOFEntryOperations) Add(arg0 openflow.Flow) error
- func (m *MockOFEntryOperations) AddAll(arg0 []openflow.Flow) error
- func (m *MockOFEntryOperations) AddOFEntries(arg0 []openflow.OFEntry) error
- func (m *MockOFEntryOperations) Delete(arg0 openflow.Flow) error
- func (m *MockOFEntryOperations) DeleteAll(arg0 []openflow.Flow) error
- func (m *MockOFEntryOperations) DeleteOFEntries(arg0 []openflow.OFEntry) error
- func (m *MockOFEntryOperations) EXPECT() *MockOFEntryOperationsMockRecorder
- func (m *MockOFEntryOperations) Modify(arg0 openflow.Flow) error
- type MockOFEntryOperationsMockRecorder
- func (mr *MockOFEntryOperationsMockRecorder) Add(arg0 interface{}) *gomock.Call
- func (mr *MockOFEntryOperationsMockRecorder) AddAll(arg0 interface{}) *gomock.Call
- func (mr *MockOFEntryOperationsMockRecorder) AddOFEntries(arg0 interface{}) *gomock.Call
- func (mr *MockOFEntryOperationsMockRecorder) Delete(arg0 interface{}) *gomock.Call
- func (mr *MockOFEntryOperationsMockRecorder) DeleteAll(arg0 interface{}) *gomock.Call
- func (mr *MockOFEntryOperationsMockRecorder) DeleteOFEntries(arg0 interface{}) *gomock.Call
- func (mr *MockOFEntryOperationsMockRecorder) 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) GetNetworkPolicyFlowKeys ¶ added in v0.6.0
func (m *MockClient) GetNetworkPolicyFlowKeys(arg0, arg1 string) []string
GetNetworkPolicyFlowKeys mocks base method
func (*MockClient) GetPodFlowKeys ¶ added in v0.6.0
func (m *MockClient) GetPodFlowKeys(arg0 string) []string
GetPodFlowKeys mocks base method
func (*MockClient) GetTunnelVirtualMAC ¶ added in v0.7.0
func (m *MockClient) GetTunnelVirtualMAC() net.HardwareAddr
GetTunnelVirtualMAC mocks base method
func (*MockClient) Initialize ¶
func (m *MockClient) Initialize(arg0 types.RoundInfo, arg1 *config.NodeConfig, arg2 config.TrafficEncapModeType, arg3 uint32) (<-chan struct{}, error)
Initialize mocks base method
func (*MockClient) InstallBridgeUplinkFlows ¶ added in v0.7.0
func (m *MockClient) InstallBridgeUplinkFlows(arg0, arg1 uint32) error
InstallBridgeUplinkFlows mocks base method
func (*MockClient) InstallClusterServiceCIDRFlows ¶
func (m *MockClient) InstallClusterServiceCIDRFlows(arg0 *net.IPNet, arg1 net.HardwareAddr, arg2 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) InstallExternalFlows ¶ added in v0.7.0
InstallExternalFlows 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, arg2, arg3 string) 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) GetNetworkPolicyFlowKeys ¶ added in v0.6.0
func (mr *MockClientMockRecorder) GetNetworkPolicyFlowKeys(arg0, arg1 interface{}) *gomock.Call
GetNetworkPolicyFlowKeys indicates an expected call of GetNetworkPolicyFlowKeys
func (*MockClientMockRecorder) GetPodFlowKeys ¶ added in v0.6.0
func (mr *MockClientMockRecorder) GetPodFlowKeys(arg0 interface{}) *gomock.Call
GetPodFlowKeys indicates an expected call of GetPodFlowKeys
func (*MockClientMockRecorder) GetTunnelVirtualMAC ¶ added in v0.7.0
func (mr *MockClientMockRecorder) GetTunnelVirtualMAC() *gomock.Call
GetTunnelVirtualMAC indicates an expected call of GetTunnelVirtualMAC
func (*MockClientMockRecorder) Initialize ¶
func (mr *MockClientMockRecorder) Initialize(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
Initialize indicates an expected call of Initialize
func (*MockClientMockRecorder) InstallBridgeUplinkFlows ¶ added in v0.7.0
func (mr *MockClientMockRecorder) InstallBridgeUplinkFlows(arg0, arg1 interface{}) *gomock.Call
InstallBridgeUplinkFlows indicates an expected call of InstallBridgeUplinkFlows
func (*MockClientMockRecorder) InstallClusterServiceCIDRFlows ¶
func (mr *MockClientMockRecorder) InstallClusterServiceCIDRFlows(arg0, arg1, arg2 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) InstallExternalFlows ¶ added in v0.7.0
func (mr *MockClientMockRecorder) InstallExternalFlows(arg0, arg1 interface{}) *gomock.Call
InstallExternalFlows indicates an expected call of InstallExternalFlows
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, arg2, arg3 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 MockOFEntryOperations ¶ added in v0.6.0
type MockOFEntryOperations struct {
// contains filtered or unexported fields
}
MockOFEntryOperations is a mock of OFEntryOperations interface
func NewMockOFEntryOperations ¶ added in v0.6.0
func NewMockOFEntryOperations(ctrl *gomock.Controller) *MockOFEntryOperations
NewMockOFEntryOperations creates a new mock instance
func (*MockOFEntryOperations) Add ¶ added in v0.6.0
func (m *MockOFEntryOperations) Add(arg0 openflow.Flow) error
Add mocks base method
func (*MockOFEntryOperations) AddAll ¶ added in v0.6.0
func (m *MockOFEntryOperations) AddAll(arg0 []openflow.Flow) error
AddAll mocks base method
func (*MockOFEntryOperations) AddOFEntries ¶ added in v0.6.0
func (m *MockOFEntryOperations) AddOFEntries(arg0 []openflow.OFEntry) error
AddOFEntries mocks base method
func (*MockOFEntryOperations) Delete ¶ added in v0.6.0
func (m *MockOFEntryOperations) Delete(arg0 openflow.Flow) error
Delete mocks base method
func (*MockOFEntryOperations) DeleteAll ¶ added in v0.6.0
func (m *MockOFEntryOperations) DeleteAll(arg0 []openflow.Flow) error
DeleteAll mocks base method
func (*MockOFEntryOperations) DeleteOFEntries ¶ added in v0.6.0
func (m *MockOFEntryOperations) DeleteOFEntries(arg0 []openflow.OFEntry) error
DeleteOFEntries mocks base method
func (*MockOFEntryOperations) EXPECT ¶ added in v0.6.0
func (m *MockOFEntryOperations) EXPECT() *MockOFEntryOperationsMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockOFEntryOperationsMockRecorder ¶ added in v0.6.0
type MockOFEntryOperationsMockRecorder struct {
// contains filtered or unexported fields
}
MockOFEntryOperationsMockRecorder is the mock recorder for MockOFEntryOperations
func (*MockOFEntryOperationsMockRecorder) Add ¶ added in v0.6.0
func (mr *MockOFEntryOperationsMockRecorder) Add(arg0 interface{}) *gomock.Call
Add indicates an expected call of Add
func (*MockOFEntryOperationsMockRecorder) AddAll ¶ added in v0.6.0
func (mr *MockOFEntryOperationsMockRecorder) AddAll(arg0 interface{}) *gomock.Call
AddAll indicates an expected call of AddAll
func (*MockOFEntryOperationsMockRecorder) AddOFEntries ¶ added in v0.6.0
func (mr *MockOFEntryOperationsMockRecorder) AddOFEntries(arg0 interface{}) *gomock.Call
AddOFEntries indicates an expected call of AddOFEntries
func (*MockOFEntryOperationsMockRecorder) Delete ¶ added in v0.6.0
func (mr *MockOFEntryOperationsMockRecorder) Delete(arg0 interface{}) *gomock.Call
Delete indicates an expected call of Delete
func (*MockOFEntryOperationsMockRecorder) DeleteAll ¶ added in v0.6.0
func (mr *MockOFEntryOperationsMockRecorder) DeleteAll(arg0 interface{}) *gomock.Call
DeleteAll indicates an expected call of DeleteAll
func (*MockOFEntryOperationsMockRecorder) DeleteOFEntries ¶ added in v0.6.0
func (mr *MockOFEntryOperationsMockRecorder) DeleteOFEntries(arg0 interface{}) *gomock.Call
DeleteOFEntries indicates an expected call of DeleteOFEntries
func (*MockOFEntryOperationsMockRecorder) Modify ¶ added in v0.6.0
func (mr *MockOFEntryOperationsMockRecorder) Modify(arg0 interface{}) *gomock.Call
Modify indicates an expected call of Modify