Documentation ¶
Overview ¶
Package mock_ovsclient is a generated GoMock package.
Index ¶
- type MockOVSClient
- func (m *MockOVSClient) AddBridgeIfNotExists(name string) error
- func (m *MockOVSClient) AddPortIfNotExists(bridge, port string) error
- func (m *MockOVSClient) AddPortWithMetadata(bridge, port string, portType ovsclient.PortType, ...) error
- func (m *MockOVSClient) BridgeExists(name string) (bool, error)
- func (m *MockOVSClient) DeleteBridgeIfExists(name string) error
- func (m *MockOVSClient) DeletePort(port string) error
- func (m *MockOVSClient) EXPECT() *MockOVSClientMockRecorder
- func (m *MockOVSClient) GetInterfaceExternalIDs(iface string) (map[string]string, error)
- func (m *MockOVSClient) GetInterfaceOfPort(port string) (int, error)
- func (m *MockOVSClient) GetInterfacesWithPMDRXQueue() (map[string]any, error)
- func (m *MockOVSClient) GetPortExternalIDs(port string) (map[string]string, error)
- func (m *MockOVSClient) InterfaceToBridge(iface string) (string, error)
- func (m *MockOVSClient) ListInterfaces(portType ovsclient.PortType) (map[string]any, error)
- func (m *MockOVSClient) SetBridgeController(bridge, controller string) error
- func (m *MockOVSClient) SetBridgeDataPathType(bridge string, bridgeType ovsclient.BridgeDataPathType) error
- func (m *MockOVSClient) SetBridgeHostToServicePort(bridge, port string) error
- func (m *MockOVSClient) SetBridgeMAC(bridge string, mac net.HardwareAddr) error
- func (m *MockOVSClient) SetBridgeUplinkPort(bridge, port string) error
- func (m *MockOVSClient) SetDOCAInit(enable bool) error
- func (m *MockOVSClient) SetKubernetesHostNodeName(name string) error
- func (m *MockOVSClient) SetOVNEncapIP(ip net.IP) error
- func (m *MockOVSClient) SetPatchPortPeer(port, peer string) error
- func (m *MockOVSClient) SetPortType(port string, portType ovsclient.PortType) error
- type MockOVSClientMockRecorder
- func (mr *MockOVSClientMockRecorder) AddBridgeIfNotExists(name any) *gomock.Call
- func (mr *MockOVSClientMockRecorder) AddPortIfNotExists(bridge, port any) *gomock.Call
- func (mr *MockOVSClientMockRecorder) AddPortWithMetadata(bridge, port, portType, portExternalIDs, interfaceExternalIDs, ofport any) *gomock.Call
- func (mr *MockOVSClientMockRecorder) BridgeExists(name any) *gomock.Call
- func (mr *MockOVSClientMockRecorder) DeleteBridgeIfExists(name any) *gomock.Call
- func (mr *MockOVSClientMockRecorder) DeletePort(port any) *gomock.Call
- func (mr *MockOVSClientMockRecorder) GetInterfaceExternalIDs(iface any) *gomock.Call
- func (mr *MockOVSClientMockRecorder) GetInterfaceOfPort(port any) *gomock.Call
- func (mr *MockOVSClientMockRecorder) GetInterfacesWithPMDRXQueue() *gomock.Call
- func (mr *MockOVSClientMockRecorder) GetPortExternalIDs(port any) *gomock.Call
- func (mr *MockOVSClientMockRecorder) InterfaceToBridge(iface any) *gomock.Call
- func (mr *MockOVSClientMockRecorder) ListInterfaces(portType any) *gomock.Call
- func (mr *MockOVSClientMockRecorder) SetBridgeController(bridge, controller any) *gomock.Call
- func (mr *MockOVSClientMockRecorder) SetBridgeDataPathType(bridge, bridgeType any) *gomock.Call
- func (mr *MockOVSClientMockRecorder) SetBridgeHostToServicePort(bridge, port any) *gomock.Call
- func (mr *MockOVSClientMockRecorder) SetBridgeMAC(bridge, mac any) *gomock.Call
- func (mr *MockOVSClientMockRecorder) SetBridgeUplinkPort(bridge, port any) *gomock.Call
- func (mr *MockOVSClientMockRecorder) SetDOCAInit(enable any) *gomock.Call
- func (mr *MockOVSClientMockRecorder) SetKubernetesHostNodeName(name any) *gomock.Call
- func (mr *MockOVSClientMockRecorder) SetOVNEncapIP(ip any) *gomock.Call
- func (mr *MockOVSClientMockRecorder) SetPatchPortPeer(port, peer any) *gomock.Call
- func (mr *MockOVSClientMockRecorder) SetPortType(port, portType any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockOVSClient ¶
type MockOVSClient struct {
// contains filtered or unexported fields
}
MockOVSClient is a mock of OVSClient interface.
func NewMockOVSClient ¶
func NewMockOVSClient(ctrl *gomock.Controller) *MockOVSClient
NewMockOVSClient creates a new mock instance.
func (*MockOVSClient) AddBridgeIfNotExists ¶
func (m *MockOVSClient) AddBridgeIfNotExists(name string) error
AddBridgeIfNotExists mocks base method.
func (*MockOVSClient) AddPortIfNotExists ¶
func (m *MockOVSClient) AddPortIfNotExists(bridge, port string) error
AddPortIfNotExists mocks base method.
func (*MockOVSClient) AddPortWithMetadata ¶
func (m *MockOVSClient) AddPortWithMetadata(bridge, port string, portType ovsclient.PortType, portExternalIDs, interfaceExternalIDs map[string]string, ofport int) error
AddPortWithMetadata mocks base method.
func (*MockOVSClient) BridgeExists ¶
func (m *MockOVSClient) BridgeExists(name string) (bool, error)
BridgeExists mocks base method.
func (*MockOVSClient) DeleteBridgeIfExists ¶
func (m *MockOVSClient) DeleteBridgeIfExists(name string) error
DeleteBridgeIfExists mocks base method.
func (*MockOVSClient) DeletePort ¶
func (m *MockOVSClient) DeletePort(port string) error
DeletePort mocks base method.
func (*MockOVSClient) EXPECT ¶
func (m *MockOVSClient) EXPECT() *MockOVSClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockOVSClient) GetInterfaceExternalIDs ¶
func (m *MockOVSClient) GetInterfaceExternalIDs(iface string) (map[string]string, error)
GetInterfaceExternalIDs mocks base method.
func (*MockOVSClient) GetInterfaceOfPort ¶
func (m *MockOVSClient) GetInterfaceOfPort(port string) (int, error)
GetInterfaceOfPort mocks base method.
func (*MockOVSClient) GetInterfacesWithPMDRXQueue ¶
func (m *MockOVSClient) GetInterfacesWithPMDRXQueue() (map[string]any, error)
GetInterfacesWithPMDRXQueue mocks base method.
func (*MockOVSClient) GetPortExternalIDs ¶
func (m *MockOVSClient) GetPortExternalIDs(port string) (map[string]string, error)
GetPortExternalIDs mocks base method.
func (*MockOVSClient) InterfaceToBridge ¶
func (m *MockOVSClient) InterfaceToBridge(iface string) (string, error)
InterfaceToBridge mocks base method.
func (*MockOVSClient) ListInterfaces ¶
ListInterfaces mocks base method.
func (*MockOVSClient) SetBridgeController ¶
func (m *MockOVSClient) SetBridgeController(bridge, controller string) error
SetBridgeController mocks base method.
func (*MockOVSClient) SetBridgeDataPathType ¶
func (m *MockOVSClient) SetBridgeDataPathType(bridge string, bridgeType ovsclient.BridgeDataPathType) error
SetBridgeDataPathType mocks base method.
func (*MockOVSClient) SetBridgeHostToServicePort ¶
func (m *MockOVSClient) SetBridgeHostToServicePort(bridge, port string) error
SetBridgeHostToServicePort mocks base method.
func (*MockOVSClient) SetBridgeMAC ¶
func (m *MockOVSClient) SetBridgeMAC(bridge string, mac net.HardwareAddr) error
SetBridgeMAC mocks base method.
func (*MockOVSClient) SetBridgeUplinkPort ¶
func (m *MockOVSClient) SetBridgeUplinkPort(bridge, port string) error
SetBridgeUplinkPort mocks base method.
func (*MockOVSClient) SetDOCAInit ¶
func (m *MockOVSClient) SetDOCAInit(enable bool) error
SetDOCAInit mocks base method.
func (*MockOVSClient) SetKubernetesHostNodeName ¶
func (m *MockOVSClient) SetKubernetesHostNodeName(name string) error
SetKubernetesHostNodeName mocks base method.
func (*MockOVSClient) SetOVNEncapIP ¶
func (m *MockOVSClient) SetOVNEncapIP(ip net.IP) error
SetOVNEncapIP mocks base method.
func (*MockOVSClient) SetPatchPortPeer ¶
func (m *MockOVSClient) SetPatchPortPeer(port, peer string) error
SetPatchPortPeer mocks base method.
func (*MockOVSClient) SetPortType ¶
func (m *MockOVSClient) SetPortType(port string, portType ovsclient.PortType) error
SetPortType mocks base method.
type MockOVSClientMockRecorder ¶
type MockOVSClientMockRecorder struct {
// contains filtered or unexported fields
}
MockOVSClientMockRecorder is the mock recorder for MockOVSClient.
func (*MockOVSClientMockRecorder) AddBridgeIfNotExists ¶
func (mr *MockOVSClientMockRecorder) AddBridgeIfNotExists(name any) *gomock.Call
AddBridgeIfNotExists indicates an expected call of AddBridgeIfNotExists.
func (*MockOVSClientMockRecorder) AddPortIfNotExists ¶
func (mr *MockOVSClientMockRecorder) AddPortIfNotExists(bridge, port any) *gomock.Call
AddPortIfNotExists indicates an expected call of AddPortIfNotExists.
func (*MockOVSClientMockRecorder) AddPortWithMetadata ¶
func (mr *MockOVSClientMockRecorder) AddPortWithMetadata(bridge, port, portType, portExternalIDs, interfaceExternalIDs, ofport any) *gomock.Call
AddPortWithMetadata indicates an expected call of AddPortWithMetadata.
func (*MockOVSClientMockRecorder) BridgeExists ¶
func (mr *MockOVSClientMockRecorder) BridgeExists(name any) *gomock.Call
BridgeExists indicates an expected call of BridgeExists.
func (*MockOVSClientMockRecorder) DeleteBridgeIfExists ¶
func (mr *MockOVSClientMockRecorder) DeleteBridgeIfExists(name any) *gomock.Call
DeleteBridgeIfExists indicates an expected call of DeleteBridgeIfExists.
func (*MockOVSClientMockRecorder) DeletePort ¶
func (mr *MockOVSClientMockRecorder) DeletePort(port any) *gomock.Call
DeletePort indicates an expected call of DeletePort.
func (*MockOVSClientMockRecorder) GetInterfaceExternalIDs ¶
func (mr *MockOVSClientMockRecorder) GetInterfaceExternalIDs(iface any) *gomock.Call
GetInterfaceExternalIDs indicates an expected call of GetInterfaceExternalIDs.
func (*MockOVSClientMockRecorder) GetInterfaceOfPort ¶
func (mr *MockOVSClientMockRecorder) GetInterfaceOfPort(port any) *gomock.Call
GetInterfaceOfPort indicates an expected call of GetInterfaceOfPort.
func (*MockOVSClientMockRecorder) GetInterfacesWithPMDRXQueue ¶
func (mr *MockOVSClientMockRecorder) GetInterfacesWithPMDRXQueue() *gomock.Call
GetInterfacesWithPMDRXQueue indicates an expected call of GetInterfacesWithPMDRXQueue.
func (*MockOVSClientMockRecorder) GetPortExternalIDs ¶
func (mr *MockOVSClientMockRecorder) GetPortExternalIDs(port any) *gomock.Call
GetPortExternalIDs indicates an expected call of GetPortExternalIDs.
func (*MockOVSClientMockRecorder) InterfaceToBridge ¶
func (mr *MockOVSClientMockRecorder) InterfaceToBridge(iface any) *gomock.Call
InterfaceToBridge indicates an expected call of InterfaceToBridge.
func (*MockOVSClientMockRecorder) ListInterfaces ¶
func (mr *MockOVSClientMockRecorder) ListInterfaces(portType any) *gomock.Call
ListInterfaces indicates an expected call of ListInterfaces.
func (*MockOVSClientMockRecorder) SetBridgeController ¶
func (mr *MockOVSClientMockRecorder) SetBridgeController(bridge, controller any) *gomock.Call
SetBridgeController indicates an expected call of SetBridgeController.
func (*MockOVSClientMockRecorder) SetBridgeDataPathType ¶
func (mr *MockOVSClientMockRecorder) SetBridgeDataPathType(bridge, bridgeType any) *gomock.Call
SetBridgeDataPathType indicates an expected call of SetBridgeDataPathType.
func (*MockOVSClientMockRecorder) SetBridgeHostToServicePort ¶
func (mr *MockOVSClientMockRecorder) SetBridgeHostToServicePort(bridge, port any) *gomock.Call
SetBridgeHostToServicePort indicates an expected call of SetBridgeHostToServicePort.
func (*MockOVSClientMockRecorder) SetBridgeMAC ¶
func (mr *MockOVSClientMockRecorder) SetBridgeMAC(bridge, mac any) *gomock.Call
SetBridgeMAC indicates an expected call of SetBridgeMAC.
func (*MockOVSClientMockRecorder) SetBridgeUplinkPort ¶
func (mr *MockOVSClientMockRecorder) SetBridgeUplinkPort(bridge, port any) *gomock.Call
SetBridgeUplinkPort indicates an expected call of SetBridgeUplinkPort.
func (*MockOVSClientMockRecorder) SetDOCAInit ¶
func (mr *MockOVSClientMockRecorder) SetDOCAInit(enable any) *gomock.Call
SetDOCAInit indicates an expected call of SetDOCAInit.
func (*MockOVSClientMockRecorder) SetKubernetesHostNodeName ¶
func (mr *MockOVSClientMockRecorder) SetKubernetesHostNodeName(name any) *gomock.Call
SetKubernetesHostNodeName indicates an expected call of SetKubernetesHostNodeName.
func (*MockOVSClientMockRecorder) SetOVNEncapIP ¶
func (mr *MockOVSClientMockRecorder) SetOVNEncapIP(ip any) *gomock.Call
SetOVNEncapIP indicates an expected call of SetOVNEncapIP.
func (*MockOVSClientMockRecorder) SetPatchPortPeer ¶
func (mr *MockOVSClientMockRecorder) SetPatchPortPeer(port, peer any) *gomock.Call
SetPatchPortPeer indicates an expected call of SetPatchPortPeer.
func (*MockOVSClientMockRecorder) SetPortType ¶
func (mr *MockOVSClientMockRecorder) SetPortType(port, portType any) *gomock.Call
SetPortType indicates an expected call of SetPortType.