testing

package
v1.15.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 21, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Code generated by MockGen. DO NOT EDIT. Source: antrea.io/antrea/pkg/ovs/ovsconfig (interfaces: OVSBridgeClient)

Generated by this command:

mockgen -copyright_file hack/boilerplate/license_header.raw.txt -destination pkg/ovs/ovsconfig/testing/mock_ovsconfig.go -package testing antrea.io/antrea/pkg/ovs/ovsconfig OVSBridgeClient

Package testing is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockOVSBridgeClient

type MockOVSBridgeClient struct {
	// contains filtered or unexported fields
}

MockOVSBridgeClient is a mock of OVSBridgeClient interface.

func NewMockOVSBridgeClient

func NewMockOVSBridgeClient(ctrl *gomock.Controller) *MockOVSBridgeClient

NewMockOVSBridgeClient creates a new mock instance.

func (*MockOVSBridgeClient) AddBridgeOtherConfig added in v1.5.0

func (m *MockOVSBridgeClient) AddBridgeOtherConfig(arg0 map[string]any) ovsconfig.Error

AddBridgeOtherConfig mocks base method.

func (*MockOVSBridgeClient) AddOVSOtherConfig

func (m *MockOVSBridgeClient) AddOVSOtherConfig(arg0 map[string]any) ovsconfig.Error

AddOVSOtherConfig mocks base method.

func (*MockOVSBridgeClient) AllocateOFPort added in v1.7.1

func (m *MockOVSBridgeClient) AllocateOFPort(arg0 int) (int32, error)

AllocateOFPort mocks base method.

func (*MockOVSBridgeClient) Create

func (m *MockOVSBridgeClient) Create() ovsconfig.Error

Create mocks base method.

func (*MockOVSBridgeClient) CreateAccessPort added in v1.6.0

func (m *MockOVSBridgeClient) CreateAccessPort(arg0, arg1 string, arg2 map[string]any, arg3 uint16) (string, ovsconfig.Error)

CreateAccessPort mocks base method.

func (*MockOVSBridgeClient) CreateInternalPort

func (m *MockOVSBridgeClient) CreateInternalPort(arg0 string, arg1 int32, arg2 string, arg3 map[string]any) (string, ovsconfig.Error)

CreateInternalPort mocks base method.

func (*MockOVSBridgeClient) CreatePort

func (m *MockOVSBridgeClient) CreatePort(arg0, arg1 string, arg2 map[string]any) (string, ovsconfig.Error)

CreatePort mocks base method.

func (*MockOVSBridgeClient) CreateTunnelPort

func (m *MockOVSBridgeClient) CreateTunnelPort(arg0 string, arg1 ovsconfig.TunnelType, arg2 int32) (string, ovsconfig.Error)

CreateTunnelPort mocks base method.

func (*MockOVSBridgeClient) CreateTunnelPortExt

func (m *MockOVSBridgeClient) CreateTunnelPortExt(arg0 string, arg1 ovsconfig.TunnelType, arg2 int32, arg3 bool, arg4, arg5, arg6, arg7 string, arg8, arg9 map[string]any) (string, ovsconfig.Error)

CreateTunnelPortExt mocks base method.

func (*MockOVSBridgeClient) CreateUplinkPort

func (m *MockOVSBridgeClient) CreateUplinkPort(arg0 string, arg1 int32, arg2 map[string]any) (string, ovsconfig.Error)

CreateUplinkPort mocks base method.

func (*MockOVSBridgeClient) Delete

func (m *MockOVSBridgeClient) Delete() ovsconfig.Error

Delete mocks base method.

func (*MockOVSBridgeClient) DeleteOVSOtherConfig

func (m *MockOVSBridgeClient) DeleteOVSOtherConfig(arg0 map[string]any) ovsconfig.Error

DeleteOVSOtherConfig mocks base method.

func (*MockOVSBridgeClient) DeletePort

func (m *MockOVSBridgeClient) DeletePort(arg0 string) ovsconfig.Error

DeletePort mocks base method.

func (*MockOVSBridgeClient) DeletePorts

func (m *MockOVSBridgeClient) DeletePorts(arg0 []string) ovsconfig.Error

DeletePorts mocks base method.

func (*MockOVSBridgeClient) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockOVSBridgeClient) GetBridgeName

func (m *MockOVSBridgeClient) GetBridgeName() string

GetBridgeName mocks base method.

func (*MockOVSBridgeClient) GetDatapathID added in v1.8.0

func (m *MockOVSBridgeClient) GetDatapathID() (string, ovsconfig.Error)

GetDatapathID mocks base method.

func (*MockOVSBridgeClient) GetExternalIDs

func (m *MockOVSBridgeClient) GetExternalIDs() (map[string]string, ovsconfig.Error)

GetExternalIDs mocks base method.

func (*MockOVSBridgeClient) GetInterfaceOptions

func (m *MockOVSBridgeClient) GetInterfaceOptions(arg0 string) (map[string]string, ovsconfig.Error)

GetInterfaceOptions mocks base method.

func (*MockOVSBridgeClient) GetOFPort

func (m *MockOVSBridgeClient) GetOFPort(arg0 string, arg1 bool) (int32, ovsconfig.Error)

GetOFPort mocks base method.

func (*MockOVSBridgeClient) GetOVSDatapathType

func (m *MockOVSBridgeClient) GetOVSDatapathType() ovsconfig.OVSDatapathType

GetOVSDatapathType mocks base method.

func (*MockOVSBridgeClient) GetOVSOtherConfig

func (m *MockOVSBridgeClient) GetOVSOtherConfig() (map[string]string, ovsconfig.Error)

GetOVSOtherConfig mocks base method.

func (*MockOVSBridgeClient) GetOVSVersion

func (m *MockOVSBridgeClient) GetOVSVersion() (string, ovsconfig.Error)

GetOVSVersion mocks base method.

func (*MockOVSBridgeClient) GetPortData

func (m *MockOVSBridgeClient) GetPortData(arg0, arg1 string) (*ovsconfig.OVSPortData, ovsconfig.Error)

GetPortData mocks base method.

func (*MockOVSBridgeClient) GetPortList

GetPortList mocks base method.

func (*MockOVSBridgeClient) IsHardwareOffloadEnabled

func (m *MockOVSBridgeClient) IsHardwareOffloadEnabled() bool

IsHardwareOffloadEnabled mocks base method.

func (*MockOVSBridgeClient) SetDatapathID

func (m *MockOVSBridgeClient) SetDatapathID(arg0 string) ovsconfig.Error

SetDatapathID mocks base method.

func (*MockOVSBridgeClient) SetExternalIDs

func (m *MockOVSBridgeClient) SetExternalIDs(arg0 map[string]any) ovsconfig.Error

SetExternalIDs mocks base method.

func (*MockOVSBridgeClient) SetInterfaceMAC added in v1.7.2

func (m *MockOVSBridgeClient) SetInterfaceMAC(arg0 string, arg1 net.HardwareAddr) ovsconfig.Error

SetInterfaceMAC mocks base method.

func (*MockOVSBridgeClient) SetInterfaceMTU

func (m *MockOVSBridgeClient) SetInterfaceMTU(arg0 string, arg1 int) error

SetInterfaceMTU mocks base method.

func (*MockOVSBridgeClient) SetInterfaceOptions

func (m *MockOVSBridgeClient) SetInterfaceOptions(arg0 string, arg1 map[string]any) ovsconfig.Error

SetInterfaceOptions mocks base method.

func (*MockOVSBridgeClient) SetInterfaceType added in v1.5.0

func (m *MockOVSBridgeClient) SetInterfaceType(arg0, arg1 string) ovsconfig.Error

SetInterfaceType mocks base method.

func (*MockOVSBridgeClient) SetPortExternalIDs added in v1.5.0

func (m *MockOVSBridgeClient) SetPortExternalIDs(arg0 string, arg1 map[string]any) ovsconfig.Error

SetPortExternalIDs mocks base method.

func (*MockOVSBridgeClient) UpdateOVSOtherConfig added in v1.7.0

func (m *MockOVSBridgeClient) UpdateOVSOtherConfig(arg0 map[string]any) ovsconfig.Error

UpdateOVSOtherConfig mocks base method.

type MockOVSBridgeClientMockRecorder

type MockOVSBridgeClientMockRecorder struct {
	// contains filtered or unexported fields
}

MockOVSBridgeClientMockRecorder is the mock recorder for MockOVSBridgeClient.

func (*MockOVSBridgeClientMockRecorder) AddBridgeOtherConfig added in v1.5.0

func (mr *MockOVSBridgeClientMockRecorder) AddBridgeOtherConfig(arg0 any) *gomock.Call

AddBridgeOtherConfig indicates an expected call of AddBridgeOtherConfig.

func (*MockOVSBridgeClientMockRecorder) AddOVSOtherConfig

func (mr *MockOVSBridgeClientMockRecorder) AddOVSOtherConfig(arg0 any) *gomock.Call

AddOVSOtherConfig indicates an expected call of AddOVSOtherConfig.

func (*MockOVSBridgeClientMockRecorder) AllocateOFPort added in v1.7.1

func (mr *MockOVSBridgeClientMockRecorder) AllocateOFPort(arg0 any) *gomock.Call

AllocateOFPort indicates an expected call of AllocateOFPort.

func (*MockOVSBridgeClientMockRecorder) Create

Create indicates an expected call of Create.

func (*MockOVSBridgeClientMockRecorder) CreateAccessPort added in v1.6.0

func (mr *MockOVSBridgeClientMockRecorder) CreateAccessPort(arg0, arg1, arg2, arg3 any) *gomock.Call

CreateAccessPort indicates an expected call of CreateAccessPort.

func (*MockOVSBridgeClientMockRecorder) CreateInternalPort

func (mr *MockOVSBridgeClientMockRecorder) CreateInternalPort(arg0, arg1, arg2, arg3 any) *gomock.Call

CreateInternalPort indicates an expected call of CreateInternalPort.

func (*MockOVSBridgeClientMockRecorder) CreatePort

func (mr *MockOVSBridgeClientMockRecorder) CreatePort(arg0, arg1, arg2 any) *gomock.Call

CreatePort indicates an expected call of CreatePort.

func (*MockOVSBridgeClientMockRecorder) CreateTunnelPort

func (mr *MockOVSBridgeClientMockRecorder) CreateTunnelPort(arg0, arg1, arg2 any) *gomock.Call

CreateTunnelPort indicates an expected call of CreateTunnelPort.

func (*MockOVSBridgeClientMockRecorder) CreateTunnelPortExt

func (mr *MockOVSBridgeClientMockRecorder) CreateTunnelPortExt(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 any) *gomock.Call

CreateTunnelPortExt indicates an expected call of CreateTunnelPortExt.

func (*MockOVSBridgeClientMockRecorder) CreateUplinkPort

func (mr *MockOVSBridgeClientMockRecorder) CreateUplinkPort(arg0, arg1, arg2 any) *gomock.Call

CreateUplinkPort indicates an expected call of CreateUplinkPort.

func (*MockOVSBridgeClientMockRecorder) Delete

Delete indicates an expected call of Delete.

func (*MockOVSBridgeClientMockRecorder) DeleteOVSOtherConfig

func (mr *MockOVSBridgeClientMockRecorder) DeleteOVSOtherConfig(arg0 any) *gomock.Call

DeleteOVSOtherConfig indicates an expected call of DeleteOVSOtherConfig.

func (*MockOVSBridgeClientMockRecorder) DeletePort

func (mr *MockOVSBridgeClientMockRecorder) DeletePort(arg0 any) *gomock.Call

DeletePort indicates an expected call of DeletePort.

func (*MockOVSBridgeClientMockRecorder) DeletePorts

func (mr *MockOVSBridgeClientMockRecorder) DeletePorts(arg0 any) *gomock.Call

DeletePorts indicates an expected call of DeletePorts.

func (*MockOVSBridgeClientMockRecorder) GetBridgeName

func (mr *MockOVSBridgeClientMockRecorder) GetBridgeName() *gomock.Call

GetBridgeName indicates an expected call of GetBridgeName.

func (*MockOVSBridgeClientMockRecorder) GetDatapathID added in v1.8.0

func (mr *MockOVSBridgeClientMockRecorder) GetDatapathID() *gomock.Call

GetDatapathID indicates an expected call of GetDatapathID.

func (*MockOVSBridgeClientMockRecorder) GetExternalIDs

func (mr *MockOVSBridgeClientMockRecorder) GetExternalIDs() *gomock.Call

GetExternalIDs indicates an expected call of GetExternalIDs.

func (*MockOVSBridgeClientMockRecorder) GetInterfaceOptions

func (mr *MockOVSBridgeClientMockRecorder) GetInterfaceOptions(arg0 any) *gomock.Call

GetInterfaceOptions indicates an expected call of GetInterfaceOptions.

func (*MockOVSBridgeClientMockRecorder) GetOFPort

func (mr *MockOVSBridgeClientMockRecorder) GetOFPort(arg0, arg1 any) *gomock.Call

GetOFPort indicates an expected call of GetOFPort.

func (*MockOVSBridgeClientMockRecorder) GetOVSDatapathType

func (mr *MockOVSBridgeClientMockRecorder) GetOVSDatapathType() *gomock.Call

GetOVSDatapathType indicates an expected call of GetOVSDatapathType.

func (*MockOVSBridgeClientMockRecorder) GetOVSOtherConfig

func (mr *MockOVSBridgeClientMockRecorder) GetOVSOtherConfig() *gomock.Call

GetOVSOtherConfig indicates an expected call of GetOVSOtherConfig.

func (*MockOVSBridgeClientMockRecorder) GetOVSVersion

func (mr *MockOVSBridgeClientMockRecorder) GetOVSVersion() *gomock.Call

GetOVSVersion indicates an expected call of GetOVSVersion.

func (*MockOVSBridgeClientMockRecorder) GetPortData

func (mr *MockOVSBridgeClientMockRecorder) GetPortData(arg0, arg1 any) *gomock.Call

GetPortData indicates an expected call of GetPortData.

func (*MockOVSBridgeClientMockRecorder) GetPortList

func (mr *MockOVSBridgeClientMockRecorder) GetPortList() *gomock.Call

GetPortList indicates an expected call of GetPortList.

func (*MockOVSBridgeClientMockRecorder) IsHardwareOffloadEnabled

func (mr *MockOVSBridgeClientMockRecorder) IsHardwareOffloadEnabled() *gomock.Call

IsHardwareOffloadEnabled indicates an expected call of IsHardwareOffloadEnabled.

func (*MockOVSBridgeClientMockRecorder) SetDatapathID

func (mr *MockOVSBridgeClientMockRecorder) SetDatapathID(arg0 any) *gomock.Call

SetDatapathID indicates an expected call of SetDatapathID.

func (*MockOVSBridgeClientMockRecorder) SetExternalIDs

func (mr *MockOVSBridgeClientMockRecorder) SetExternalIDs(arg0 any) *gomock.Call

SetExternalIDs indicates an expected call of SetExternalIDs.

func (*MockOVSBridgeClientMockRecorder) SetInterfaceMAC added in v1.7.2

func (mr *MockOVSBridgeClientMockRecorder) SetInterfaceMAC(arg0, arg1 any) *gomock.Call

SetInterfaceMAC indicates an expected call of SetInterfaceMAC.

func (*MockOVSBridgeClientMockRecorder) SetInterfaceMTU

func (mr *MockOVSBridgeClientMockRecorder) SetInterfaceMTU(arg0, arg1 any) *gomock.Call

SetInterfaceMTU indicates an expected call of SetInterfaceMTU.

func (*MockOVSBridgeClientMockRecorder) SetInterfaceOptions

func (mr *MockOVSBridgeClientMockRecorder) SetInterfaceOptions(arg0, arg1 any) *gomock.Call

SetInterfaceOptions indicates an expected call of SetInterfaceOptions.

func (*MockOVSBridgeClientMockRecorder) SetInterfaceType added in v1.5.0

func (mr *MockOVSBridgeClientMockRecorder) SetInterfaceType(arg0, arg1 any) *gomock.Call

SetInterfaceType indicates an expected call of SetInterfaceType.

func (*MockOVSBridgeClientMockRecorder) SetPortExternalIDs added in v1.5.0

func (mr *MockOVSBridgeClientMockRecorder) SetPortExternalIDs(arg0, arg1 any) *gomock.Call

SetPortExternalIDs indicates an expected call of SetPortExternalIDs.

func (*MockOVSBridgeClientMockRecorder) UpdateOVSOtherConfig added in v1.7.0

func (mr *MockOVSBridgeClientMockRecorder) UpdateOVSOtherConfig(arg0 any) *gomock.Call

UpdateOVSOtherConfig indicates an expected call of UpdateOVSOtherConfig.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL