mocks

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	mock.Mock
}

Manager is an autogenerated mock type for the Manager type

func (*Manager) ApplyVFConfig

func (_m *Manager) ApplyVFConfig(conf *types.NetConf) error

ApplyVFConfig provides a mock function with given fields: conf

func (*Manager) ReleaseVF

func (_m *Manager) ReleaseVF(conf *types.NetConf, podifName string, cid string, netns ns.NetNS) error

ReleaseVF provides a mock function with given fields: conf, podifName, cid, netns

func (*Manager) ResetVFConfig

func (_m *Manager) ResetVFConfig(conf *types.NetConf) error

ResetVFConfig provides a mock function with given fields: conf

func (*Manager) SetupVF

func (_m *Manager) SetupVF(conf *types.NetConf, podifName string, cid string, netns ns.NetNS) error

SetupVF provides a mock function with given fields: conf, podifName, cid, netns

type NetlinkManager

type NetlinkManager struct {
	mock.Mock
}

NetlinkManager is an autogenerated mock type for the NetlinkManager type

func (*NetlinkManager) LinkByName

func (_m *NetlinkManager) LinkByName(_a0 string) (netlink.Link, error)

LinkByName provides a mock function with given fields: _a0

func (*NetlinkManager) LinkSetDown

func (_m *NetlinkManager) LinkSetDown(_a0 netlink.Link) error

LinkSetDown provides a mock function with given fields: _a0

func (*NetlinkManager) LinkSetName

func (_m *NetlinkManager) LinkSetName(_a0 netlink.Link, _a1 string) error

LinkSetName provides a mock function with given fields: _a0, _a1

func (*NetlinkManager) LinkSetNsFd

func (_m *NetlinkManager) LinkSetNsFd(_a0 netlink.Link, _a1 int) error

LinkSetNsFd provides a mock function with given fields: _a0, _a1

func (*NetlinkManager) LinkSetUp

func (_m *NetlinkManager) LinkSetUp(_a0 netlink.Link) error

LinkSetUp provides a mock function with given fields: _a0

func (*NetlinkManager) LinkSetVfNodeGUID

func (_m *NetlinkManager) LinkSetVfNodeGUID(_a0 netlink.Link, _a1 int, _a2 net.HardwareAddr) error

LinkSetVfNodeGUID provides a mock function with given fields: _a0, _a1, _a2

func (*NetlinkManager) LinkSetVfPortGUID

func (_m *NetlinkManager) LinkSetVfPortGUID(_a0 netlink.Link, _a1 int, _a2 net.HardwareAddr) error

LinkSetVfPortGUID provides a mock function with given fields: _a0, _a1, _a2

func (*NetlinkManager) LinkSetVfState

func (_m *NetlinkManager) LinkSetVfState(_a0 netlink.Link, _a1 int, _a2 uint32) error

LinkSetVfState provides a mock function with given fields: _a0, _a1, _a2

type PciUtils

type PciUtils struct {
	mock.Mock
}

PciUtils is an autogenerated mock type for the PciUtils type

func (*PciUtils) GetPciAddress

func (_m *PciUtils) GetPciAddress(ifName string, vf int) (string, error)

GetPciAddress provides a mock function with given fields: ifName, vf

func (*PciUtils) GetSriovNumVfs

func (_m *PciUtils) GetSriovNumVfs(ifName string) (int, error)

GetSriovNumVfs provides a mock function with given fields: ifName

func (*PciUtils) GetVFLinkNamesFromVFID

func (_m *PciUtils) GetVFLinkNamesFromVFID(pfName string, vfID int) ([]string, error)

GetVFLinkNamesFromVFID provides a mock function with given fields: pfName, vfID

func (*PciUtils) RebindVf

func (_m *PciUtils) RebindVf(pfName string, vfPciAddress string) error

RebindVf provides a mock function with given fields: pfName, vfPciAddress

Jump to

Keyboard shortcuts

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