mocks

package
v0.5.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Netlink struct {
	mock.Mock
}

Netlink is an autogenerated mock type for the Netlink type

func (*Netlink) BridgeVlanAdd added in v0.4.0

func (_m *Netlink) BridgeVlanAdd(_a0 netlink.Link, _a1 uint16, _a2 bool, _a3 bool, _a4 bool, _a5 bool) error

BridgeVlanAdd provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4, _a5

func (*Netlink) BridgeVlanDel added in v0.4.0

func (_m *Netlink) BridgeVlanDel(_a0 netlink.Link, _a1 uint16, _a2 bool, _a3 bool, _a4 bool, _a5 bool) error

BridgeVlanDel provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4, _a5

func (*Netlink) BridgeVlanList added in v0.5.0

func (_m *Netlink) BridgeVlanList() (map[int32][]*nl.BridgeVlanInfo, error)

BridgeVlanList provides a mock function with given fields:

func (*Netlink) LinkByIndex added in v0.4.0

func (_m *Netlink) LinkByIndex(index int) (netlink.Link, error)

LinkByIndex provides a mock function with given fields: index

func (*Netlink) LinkByName added in v0.4.0

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

LinkByName provides a mock function with given fields: _a0

func (_m *Netlink) LinkList() ([]netlink.Link, error)

LinkList provides a mock function with given fields:

func (*Netlink) LinkSetDown added in v0.4.0

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

LinkSetDown provides a mock function with given fields: _a0

func (*Netlink) LinkSetHardwareAddr added in v0.4.0

func (_m *Netlink) LinkSetHardwareAddr(_a0 netlink.Link, _a1 net.HardwareAddr) error

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

func (*Netlink) LinkSetMTU added in v0.4.0

func (_m *Netlink) LinkSetMTU(_a0 netlink.Link, _a1 int) error

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

func (*Netlink) LinkSetMaster added in v0.4.0

func (_m *Netlink) LinkSetMaster(_a0 netlink.Link, _a1 netlink.Link) error

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

func (*Netlink) LinkSetName added in v0.4.0

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

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

func (*Netlink) LinkSetNoMaster added in v0.4.0

func (_m *Netlink) LinkSetNoMaster(_a0 netlink.Link) error

LinkSetNoMaster provides a mock function with given fields: _a0

func (*Netlink) LinkSetNsFd added in v0.4.0

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

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

func (*Netlink) LinkSetUp added in v0.4.0

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

LinkSetUp provides a mock function with given fields: _a0

func (*Netlink) LinkSetVfHardwareAddr added in v0.4.0

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

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

type Sriovnet

type Sriovnet struct {
	mock.Mock
}

Sriovnet is an autogenerated mock type for the Sriovnet type

func (*Sriovnet) GetUplinkRepresentor

func (_m *Sriovnet) GetUplinkRepresentor(_a0 string) (string, error)

GetUplinkRepresentor provides a mock function with given fields: _a0

func (*Sriovnet) GetVfRepresentor

func (_m *Sriovnet) GetVfRepresentor(_a0 string, _a1 int) (string, error)

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

type SriovnetProvider added in v0.5.0

type SriovnetProvider struct {
	mock.Mock
}

SriovnetProvider is an autogenerated mock type for the SriovnetProvider type

func (*SriovnetProvider) GetUplinkRepresentor added in v0.5.0

func (_m *SriovnetProvider) GetUplinkRepresentor(_a0 string) (string, error)

GetUplinkRepresentor provides a mock function with given fields: _a0

func (*SriovnetProvider) GetVfRepresentor added in v0.5.0

func (_m *SriovnetProvider) GetVfRepresentor(_a0 string, _a1 int) (string, error)

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

Jump to

Keyboard shortcuts

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