mock_netlink

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package mock_netlink is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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

MockLink is a mock of Link interface.

func NewMockLink(ctrl *gomock.Controller) *MockLink

NewMockLink creates a new mock instance.

func (*MockLink) Attrs

func (m *MockLink) Attrs() *netlink0.LinkAttrs

Attrs mocks base method.

func (*MockLink) EXPECT

func (m *MockLink) EXPECT() *MockLinkMockRecorder

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

func (*MockLink) Type

func (m *MockLink) Type() string

Type mocks base method.

type MockLinkMockRecorder

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

MockLinkMockRecorder is the mock recorder for MockLink.

func (*MockLinkMockRecorder) Attrs

func (mr *MockLinkMockRecorder) Attrs() *gomock.Call

Attrs indicates an expected call of Attrs.

func (*MockLinkMockRecorder) Type

func (mr *MockLinkMockRecorder) Type() *gomock.Call

Type indicates an expected call of Type.

type MockNetlinkLib

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

MockNetlinkLib is a mock of NetlinkLib interface.

func NewMockNetlinkLib

func NewMockNetlinkLib(ctrl *gomock.Controller) *MockNetlinkLib

NewMockNetlinkLib creates a new mock instance.

func (*MockNetlinkLib) DevLinkGetDeviceByName

func (m *MockNetlinkLib) DevLinkGetDeviceByName(bus, device string) (*netlink0.DevlinkDevice, error)

DevLinkGetDeviceByName mocks base method.

func (*MockNetlinkLib) DevLinkSetEswitchMode

func (m *MockNetlinkLib) DevLinkSetEswitchMode(dev *netlink0.DevlinkDevice, newMode string) error

DevLinkSetEswitchMode mocks base method.

func (*MockNetlinkLib) DevlinkGetDeviceParamByName

func (m *MockNetlinkLib) DevlinkGetDeviceParamByName(bus, device, param string) (*netlink0.DevlinkParam, error)

DevlinkGetDeviceParamByName mocks base method.

func (*MockNetlinkLib) DevlinkSetDeviceParam

func (m *MockNetlinkLib) DevlinkSetDeviceParam(bus, device, param string, cmode uint8, value interface{}) error

DevlinkSetDeviceParam mocks base method.

func (*MockNetlinkLib) EXPECT

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

func (*MockNetlinkLib) IsLinkAdminStateUp

func (m *MockNetlinkLib) IsLinkAdminStateUp(link netlink.Link) bool

IsLinkAdminStateUp mocks base method.

func (*MockNetlinkLib) LinkByIndex added in v1.4.0

func (m *MockNetlinkLib) LinkByIndex(index int) (netlink.Link, error)

LinkByIndex mocks base method.

func (*MockNetlinkLib) LinkByName

func (m *MockNetlinkLib) LinkByName(name string) (netlink.Link, error)

LinkByName mocks base method.

func (m *MockNetlinkLib) LinkList() ([]netlink.Link, error)

LinkList mocks base method.

func (*MockNetlinkLib) LinkSetMTU

func (m *MockNetlinkLib) LinkSetMTU(link netlink.Link, mtu int) error

LinkSetMTU mocks base method.

func (*MockNetlinkLib) LinkSetUp

func (m *MockNetlinkLib) LinkSetUp(link netlink.Link) error

LinkSetUp mocks base method.

func (*MockNetlinkLib) LinkSetVfHardwareAddr

func (m *MockNetlinkLib) LinkSetVfHardwareAddr(link netlink.Link, vf int, hwaddr net.HardwareAddr) error

LinkSetVfHardwareAddr mocks base method.

func (*MockNetlinkLib) LinkSetVfNodeGUID

func (m *MockNetlinkLib) LinkSetVfNodeGUID(link netlink.Link, vf int, nodeguid net.HardwareAddr) error

LinkSetVfNodeGUID mocks base method.

func (*MockNetlinkLib) LinkSetVfPortGUID

func (m *MockNetlinkLib) LinkSetVfPortGUID(link netlink.Link, vf int, portguid net.HardwareAddr) error

LinkSetVfPortGUID mocks base method.

func (*MockNetlinkLib) RdmaLinkByName

func (m *MockNetlinkLib) RdmaLinkByName(name string) (*netlink0.RdmaLink, error)

RdmaLinkByName mocks base method.

func (*MockNetlinkLib) VDPADelDev

func (m *MockNetlinkLib) VDPADelDev(name string) error

VDPADelDev mocks base method.

func (*MockNetlinkLib) VDPAGetDevByName

func (m *MockNetlinkLib) VDPAGetDevByName(name string) (*netlink0.VDPADev, error)

VDPAGetDevByName mocks base method.

func (*MockNetlinkLib) VDPANewDev

func (m *MockNetlinkLib) VDPANewDev(name, mgmtBus, mgmtName string, params netlink0.VDPANewDevParams) error

VDPANewDev mocks base method.

type MockNetlinkLibMockRecorder

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

MockNetlinkLibMockRecorder is the mock recorder for MockNetlinkLib.

func (*MockNetlinkLibMockRecorder) DevLinkGetDeviceByName

func (mr *MockNetlinkLibMockRecorder) DevLinkGetDeviceByName(bus, device interface{}) *gomock.Call

DevLinkGetDeviceByName indicates an expected call of DevLinkGetDeviceByName.

func (*MockNetlinkLibMockRecorder) DevLinkSetEswitchMode

func (mr *MockNetlinkLibMockRecorder) DevLinkSetEswitchMode(dev, newMode interface{}) *gomock.Call

DevLinkSetEswitchMode indicates an expected call of DevLinkSetEswitchMode.

func (*MockNetlinkLibMockRecorder) DevlinkGetDeviceParamByName

func (mr *MockNetlinkLibMockRecorder) DevlinkGetDeviceParamByName(bus, device, param interface{}) *gomock.Call

DevlinkGetDeviceParamByName indicates an expected call of DevlinkGetDeviceParamByName.

func (*MockNetlinkLibMockRecorder) DevlinkSetDeviceParam

func (mr *MockNetlinkLibMockRecorder) DevlinkSetDeviceParam(bus, device, param, cmode, value interface{}) *gomock.Call

DevlinkSetDeviceParam indicates an expected call of DevlinkSetDeviceParam.

func (*MockNetlinkLibMockRecorder) IsLinkAdminStateUp

func (mr *MockNetlinkLibMockRecorder) IsLinkAdminStateUp(link interface{}) *gomock.Call

IsLinkAdminStateUp indicates an expected call of IsLinkAdminStateUp.

func (*MockNetlinkLibMockRecorder) LinkByIndex added in v1.4.0

func (mr *MockNetlinkLibMockRecorder) LinkByIndex(index interface{}) *gomock.Call

LinkByIndex indicates an expected call of LinkByIndex.

func (*MockNetlinkLibMockRecorder) LinkByName

func (mr *MockNetlinkLibMockRecorder) LinkByName(name interface{}) *gomock.Call

LinkByName indicates an expected call of LinkByName.

func (mr *MockNetlinkLibMockRecorder) LinkList() *gomock.Call

LinkList indicates an expected call of LinkList.

func (*MockNetlinkLibMockRecorder) LinkSetMTU

func (mr *MockNetlinkLibMockRecorder) LinkSetMTU(link, mtu interface{}) *gomock.Call

LinkSetMTU indicates an expected call of LinkSetMTU.

func (*MockNetlinkLibMockRecorder) LinkSetUp

func (mr *MockNetlinkLibMockRecorder) LinkSetUp(link interface{}) *gomock.Call

LinkSetUp indicates an expected call of LinkSetUp.

func (*MockNetlinkLibMockRecorder) LinkSetVfHardwareAddr

func (mr *MockNetlinkLibMockRecorder) LinkSetVfHardwareAddr(link, vf, hwaddr interface{}) *gomock.Call

LinkSetVfHardwareAddr indicates an expected call of LinkSetVfHardwareAddr.

func (*MockNetlinkLibMockRecorder) LinkSetVfNodeGUID

func (mr *MockNetlinkLibMockRecorder) LinkSetVfNodeGUID(link, vf, nodeguid interface{}) *gomock.Call

LinkSetVfNodeGUID indicates an expected call of LinkSetVfNodeGUID.

func (*MockNetlinkLibMockRecorder) LinkSetVfPortGUID

func (mr *MockNetlinkLibMockRecorder) LinkSetVfPortGUID(link, vf, portguid interface{}) *gomock.Call

LinkSetVfPortGUID indicates an expected call of LinkSetVfPortGUID.

func (*MockNetlinkLibMockRecorder) RdmaLinkByName

func (mr *MockNetlinkLibMockRecorder) RdmaLinkByName(name interface{}) *gomock.Call

RdmaLinkByName indicates an expected call of RdmaLinkByName.

func (*MockNetlinkLibMockRecorder) VDPADelDev

func (mr *MockNetlinkLibMockRecorder) VDPADelDev(name interface{}) *gomock.Call

VDPADelDev indicates an expected call of VDPADelDev.

func (*MockNetlinkLibMockRecorder) VDPAGetDevByName

func (mr *MockNetlinkLibMockRecorder) VDPAGetDevByName(name interface{}) *gomock.Call

VDPAGetDevByName indicates an expected call of VDPAGetDevByName.

func (*MockNetlinkLibMockRecorder) VDPANewDev

func (mr *MockNetlinkLibMockRecorder) VDPANewDev(name, mgmtBus, mgmtName, params interface{}) *gomock.Call

VDPANewDev indicates an expected call of VDPANewDev.

Jump to

Keyboard shortcuts

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