mocks

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NetlinkOps

type NetlinkOps struct {
	mock.Mock
}

NetlinkOps is an autogenerated mock type for the NetlinkOps type

func (*NetlinkOps) DevLinkGetAllPortList

func (_m *NetlinkOps) DevLinkGetAllPortList() ([]*netlink.DevlinkPort, error)

DevLinkGetAllPortList provides a mock function with given fields:

func (*NetlinkOps) DevLinkGetPortByNetdevName

func (_m *NetlinkOps) DevLinkGetPortByNetdevName(netdev string) (*netlink.DevlinkPort, error)

DevLinkGetPortByNetdevName provides a mock function with given fields: netdev

func (*NetlinkOps) LinkByName

func (_m *NetlinkOps) LinkByName(name string) (netlink.Link, error)

LinkByName provides a mock function with given fields: name

func (*NetlinkOps) LinkSetUp

func (_m *NetlinkOps) LinkSetUp(link netlink.Link) error

LinkSetUp provides a mock function with given fields: link

func (*NetlinkOps) LinkSetVfHardwareAddr

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

LinkSetVfHardwareAddr provides a mock function with given fields: link, vf, hwaddr

func (*NetlinkOps) LinkSetVfNodeGUID

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

LinkSetVfNodeGUID provides a mock function with given fields: link, vf, nodeguid

func (*NetlinkOps) LinkSetVfPortGUID

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

LinkSetVfPortGUID provides a mock function with given fields: link, vf, portguid

func (*NetlinkOps) LinkSetVfSpoofchk

func (_m *NetlinkOps) LinkSetVfSpoofchk(link netlink.Link, vf int, check bool) error

LinkSetVfSpoofchk provides a mock function with given fields: link, vf, check

func (*NetlinkOps) LinkSetVfTrust

func (_m *NetlinkOps) LinkSetVfTrust(link netlink.Link, vf int, state bool) error

LinkSetVfTrust provides a mock function with given fields: link, vf, state

func (*NetlinkOps) LinkSetVfVlan

func (_m *NetlinkOps) LinkSetVfVlan(link netlink.Link, vf int, vlan int) error

LinkSetVfVlan provides a mock function with given fields: link, vf, vlan

Jump to

Keyboard shortcuts

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