Documentation ¶
Index ¶
- type Netlink
- func (_m *Netlink) BridgeVlanAdd(_a0 netlink.Link, _a1 uint16, _a2 bool, _a3 bool, _a4 bool, _a5 bool) error
- func (_m *Netlink) BridgeVlanDel(_a0 netlink.Link, _a1 uint16, _a2 bool, _a3 bool, _a4 bool, _a5 bool) error
- func (_m *Netlink) BridgeVlanList() (map[int32][]*nl.BridgeVlanInfo, error)
- func (_m *Netlink) LinkByIndex(index int) (netlink.Link, error)
- func (_m *Netlink) LinkByName(_a0 string) (netlink.Link, error)
- func (_m *Netlink) LinkList() ([]netlink.Link, error)
- func (_m *Netlink) LinkSetDown(_a0 netlink.Link) error
- func (_m *Netlink) LinkSetHardwareAddr(_a0 netlink.Link, _a1 net.HardwareAddr) error
- func (_m *Netlink) LinkSetMTU(_a0 netlink.Link, _a1 int) error
- func (_m *Netlink) LinkSetMaster(_a0 netlink.Link, _a1 netlink.Link) error
- func (_m *Netlink) LinkSetName(_a0 netlink.Link, _a1 string) error
- func (_m *Netlink) LinkSetNoMaster(_a0 netlink.Link) error
- func (_m *Netlink) LinkSetNsFd(_a0 netlink.Link, _a1 int) error
- func (_m *Netlink) LinkSetUp(_a0 netlink.Link) error
- func (_m *Netlink) LinkSetVfHardwareAddr(_a0 netlink.Link, _a1 int, _a2 net.HardwareAddr) error
- type Sriovnet
- type SriovnetProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Netlink ¶ added in v0.4.0
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
LinkByIndex provides a mock function with given fields: index
func (*Netlink) LinkByName ¶ added in v0.4.0
LinkByName provides a mock function with given fields: _a0
func (*Netlink) LinkSetDown ¶ added in v0.4.0
LinkSetDown provides a mock function with given fields: _a0
func (*Netlink) LinkSetHardwareAddr ¶ added in v0.4.0
LinkSetHardwareAddr provides a mock function with given fields: _a0, _a1
func (*Netlink) LinkSetMTU ¶ added in v0.4.0
LinkSetMTU provides a mock function with given fields: _a0, _a1
func (*Netlink) LinkSetMaster ¶ added in v0.4.0
LinkSetMaster provides a mock function with given fields: _a0, _a1
func (*Netlink) LinkSetName ¶ added in v0.4.0
LinkSetName provides a mock function with given fields: _a0, _a1
func (*Netlink) LinkSetNoMaster ¶ added in v0.4.0
LinkSetNoMaster provides a mock function with given fields: _a0
func (*Netlink) LinkSetNsFd ¶ added in v0.4.0
LinkSetNsFd provides a mock function with given fields: _a0, _a1
func (*Netlink) LinkSetUp ¶ added in v0.4.0
LinkSetUp provides a mock function with given fields: _a0
func (*Netlink) LinkSetVfHardwareAddr ¶ added in v0.4.0
LinkSetVfHardwareAddr provides a mock function with given fields: _a0, _a1, _a2
type Sriovnet ¶
Sriovnet is an autogenerated mock type for the Sriovnet type
func (*Sriovnet) GetUplinkRepresentor ¶
GetUplinkRepresentor provides a mock function with given fields: _a0
type SriovnetProvider ¶ added in v0.5.0
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