mock_networkhelper

package
v0.1.0-latest-stable Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package mock_networkhelper is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockNetworkHelper

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

MockNetworkHelper is a mock of NetworkHelper interface.

func NewMockNetworkHelper

func NewMockNetworkHelper(ctrl *gomock.Controller) *MockNetworkHelper

NewMockNetworkHelper creates a new mock instance.

func (m *MockNetworkHelper) AddDummyLink(link string) error

AddDummyLink mocks base method.

func (*MockNetworkHelper) AddRoute

func (m *MockNetworkHelper) AddRoute(network *net.IPNet, gateway net.IP, device string, metric, table *int) error

AddRoute mocks base method.

func (*MockNetworkHelper) AddRule

func (m *MockNetworkHelper) AddRule(src *net.IPNet, table, priority int) error

AddRule mocks base method.

func (*MockNetworkHelper) DelLinkByName

func (m *MockNetworkHelper) DelLinkByName(name string) error

DelLinkByName mocks base method.

func (*MockNetworkHelper) DeleteLinkIPAddress

func (m *MockNetworkHelper) DeleteLinkIPAddress(link string, ipNet *net.IPNet) error

DeleteLinkIPAddress mocks base method.

func (*MockNetworkHelper) DeleteNeighbor

func (m *MockNetworkHelper) DeleteNeighbor(ip net.IP, device string) error

DeleteNeighbor mocks base method.

func (*MockNetworkHelper) DeleteRoute

func (m *MockNetworkHelper) DeleteRoute(network *net.IPNet, gateway net.IP, device string) error

DeleteRoute mocks base method.

func (*MockNetworkHelper) DevlinkPortList

func (m *MockNetworkHelper) DevlinkPortList() ([]*netlink.DevlinkPort, error)

DevlinkPortList mocks base method.

func (*MockNetworkHelper) DummyLinkExists

func (m *MockNetworkHelper) DummyLinkExists(link string) (bool, error)

DummyLinkExists mocks base method.

func (*MockNetworkHelper) EXPECT

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

func (*MockNetworkHelper) GetGateway

func (m *MockNetworkHelper) GetGateway(network *net.IPNet) (net.IP, error)

GetGateway mocks base method.

func (*MockNetworkHelper) GetHostPFMACAddressDPU

func (m *MockNetworkHelper) GetHostPFMACAddressDPU(pfID string) (net.HardwareAddr, error)

GetHostPFMACAddressDPU mocks base method.

func (*MockNetworkHelper) GetLinkHardwareAddr

func (m *MockNetworkHelper) GetLinkHardwareAddr(link string) (net.HardwareAddr, error)

GetLinkHardwareAddr mocks base method.

func (*MockNetworkHelper) GetLinkIPAddresses

func (m *MockNetworkHelper) GetLinkIPAddresses(link string, family networkhelper.IPFamily) ([]*net.IPNet, error)

GetLinkIPAddresses mocks base method.

func (*MockNetworkHelper) GetLinkIndex

func (m *MockNetworkHelper) GetLinkIndex(link string) (int, error)

GetLinkIndex mocks base method.

func (*MockNetworkHelper) GetNS

func (m *MockNetworkHelper) GetNS(nspath string) (ns.NetNS, error)

GetNS mocks base method.

func (*MockNetworkHelper) GetPFRepresentorDPU

func (m *MockNetworkHelper) GetPFRepresentorDPU(pfID string) (string, error)

GetPFRepresentorDPU mocks base method.

func (*MockNetworkHelper) GetPfRepresentorFromPortParams

func (m *MockNetworkHelper) GetPfRepresentorFromPortParams(pp *sriovnet.RepresentorPortParams) (string, error)

GetPfRepresentorFromPortParams mocks base method.

func (*MockNetworkHelper) GetUplinkRepresentor

func (m *MockNetworkHelper) GetUplinkRepresentor(pciAddress string) (string, error)

GetUplinkRepresentor mocks base method.

func (*MockNetworkHelper) GetVFRepresentorDPU

func (m *MockNetworkHelper) GetVFRepresentorDPU(pfID, vfIndex string) (string, error)

GetVFRepresentorDPU mocks base method.

func (*MockNetworkHelper) GetVfRepresentorFromPortParams

func (m *MockNetworkHelper) GetVfRepresentorFromPortParams(pp *sriovnet.RepresentorPortParams, vfIndex uint32) (string, error)

GetVfRepresentorFromPortParams mocks base method.

func (*MockNetworkHelper) IsLinkVeth

func (m *MockNetworkHelper) IsLinkVeth(link string) (bool, error)

IsLinkVeth mocks base method.

func (*MockNetworkHelper) LinkExists

func (m *MockNetworkHelper) LinkExists(link string) (bool, error)

LinkExists mocks base method.

func (*MockNetworkHelper) LinkIPAddressExists

func (m *MockNetworkHelper) LinkIPAddressExists(link string, ipNet *net.IPNet) (bool, error)

LinkIPAddressExists mocks base method.

func (*MockNetworkHelper) NeighborExists

func (m *MockNetworkHelper) NeighborExists(ip net.IP, device string) (bool, error)

NeighborExists mocks base method.

func (m *MockNetworkHelper) RenameLink(link, newName string) error

RenameLink mocks base method.

func (*MockNetworkHelper) RouteExists

func (m *MockNetworkHelper) RouteExists(network *net.IPNet, gateway net.IP, device string, table *int) (bool, error)

RouteExists mocks base method.

func (*MockNetworkHelper) RouteList

func (m *MockNetworkHelper) RouteList(device string, family networkhelper.IPFamily, table *int) ([]netlink.Route, error)

RouteList mocks base method.

func (*MockNetworkHelper) RouteListAll

func (m *MockNetworkHelper) RouteListAll(family networkhelper.IPFamily, table *int) ([]netlink.Route, error)

RouteListAll mocks base method.

func (*MockNetworkHelper) RuleExists

func (m *MockNetworkHelper) RuleExists(src *net.IPNet, table, priority int) (bool, error)

RuleExists mocks base method.

func (*MockNetworkHelper) SetLinkDown

func (m *MockNetworkHelper) SetLinkDown(link string) error

SetLinkDown mocks base method.

func (*MockNetworkHelper) SetLinkHardwareAddr

func (m *MockNetworkHelper) SetLinkHardwareAddr(link string, hwaddr net.HardwareAddr) error

SetLinkHardwareAddr mocks base method.

func (*MockNetworkHelper) SetLinkIPAddress

func (m *MockNetworkHelper) SetLinkIPAddress(link string, ipNet *net.IPNet) error

SetLinkIPAddress mocks base method.

func (*MockNetworkHelper) SetLinkUp

func (m *MockNetworkHelper) SetLinkUp(link string) error

SetLinkUp mocks base method.

func (*MockNetworkHelper) SetupVeth

func (m *MockNetworkHelper) SetupVeth(contIfaceName string, mtu int, requestedMac string, hostNS ns.NetNS) (net.Interface, net.Interface, error)

SetupVeth mocks base method.

func (*MockNetworkHelper) ValidateExpectedInterfaceIPs

func (m *MockNetworkHelper) ValidateExpectedInterfaceIPs(ifName string, expectedIPs []*types100.IPConfig) error

ValidateExpectedInterfaceIPs mocks base method.

func (*MockNetworkHelper) ValidateExpectedRoute

func (m *MockNetworkHelper) ValidateExpectedRoute(expectedRoutes []*types.Route) error

ValidateExpectedRoute mocks base method.

func (*MockNetworkHelper) WithNetNSPath

func (m *MockNetworkHelper) WithNetNSPath(nspath string, toRun func(ns.NetNS) error) error

WithNetNSPath mocks base method.

type MockNetworkHelperMockRecorder

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

MockNetworkHelperMockRecorder is the mock recorder for MockNetworkHelper.

func (mr *MockNetworkHelperMockRecorder) AddDummyLink(link any) *gomock.Call

AddDummyLink indicates an expected call of AddDummyLink.

func (*MockNetworkHelperMockRecorder) AddRoute

func (mr *MockNetworkHelperMockRecorder) AddRoute(network, gateway, device, metric, table any) *gomock.Call

AddRoute indicates an expected call of AddRoute.

func (*MockNetworkHelperMockRecorder) AddRule

func (mr *MockNetworkHelperMockRecorder) AddRule(src, table, priority any) *gomock.Call

AddRule indicates an expected call of AddRule.

func (*MockNetworkHelperMockRecorder) DelLinkByName

func (mr *MockNetworkHelperMockRecorder) DelLinkByName(name any) *gomock.Call

DelLinkByName indicates an expected call of DelLinkByName.

func (*MockNetworkHelperMockRecorder) DeleteLinkIPAddress

func (mr *MockNetworkHelperMockRecorder) DeleteLinkIPAddress(link, ipNet any) *gomock.Call

DeleteLinkIPAddress indicates an expected call of DeleteLinkIPAddress.

func (*MockNetworkHelperMockRecorder) DeleteNeighbor

func (mr *MockNetworkHelperMockRecorder) DeleteNeighbor(ip, device any) *gomock.Call

DeleteNeighbor indicates an expected call of DeleteNeighbor.

func (*MockNetworkHelperMockRecorder) DeleteRoute

func (mr *MockNetworkHelperMockRecorder) DeleteRoute(network, gateway, device any) *gomock.Call

DeleteRoute indicates an expected call of DeleteRoute.

func (*MockNetworkHelperMockRecorder) DevlinkPortList

func (mr *MockNetworkHelperMockRecorder) DevlinkPortList() *gomock.Call

DevlinkPortList indicates an expected call of DevlinkPortList.

func (*MockNetworkHelperMockRecorder) DummyLinkExists

func (mr *MockNetworkHelperMockRecorder) DummyLinkExists(link any) *gomock.Call

DummyLinkExists indicates an expected call of DummyLinkExists.

func (*MockNetworkHelperMockRecorder) GetGateway

func (mr *MockNetworkHelperMockRecorder) GetGateway(network any) *gomock.Call

GetGateway indicates an expected call of GetGateway.

func (*MockNetworkHelperMockRecorder) GetHostPFMACAddressDPU

func (mr *MockNetworkHelperMockRecorder) GetHostPFMACAddressDPU(pfID any) *gomock.Call

GetHostPFMACAddressDPU indicates an expected call of GetHostPFMACAddressDPU.

func (*MockNetworkHelperMockRecorder) GetLinkHardwareAddr

func (mr *MockNetworkHelperMockRecorder) GetLinkHardwareAddr(link any) *gomock.Call

GetLinkHardwareAddr indicates an expected call of GetLinkHardwareAddr.

func (*MockNetworkHelperMockRecorder) GetLinkIPAddresses

func (mr *MockNetworkHelperMockRecorder) GetLinkIPAddresses(link, family any) *gomock.Call

GetLinkIPAddresses indicates an expected call of GetLinkIPAddresses.

func (*MockNetworkHelperMockRecorder) GetLinkIndex

func (mr *MockNetworkHelperMockRecorder) GetLinkIndex(link any) *gomock.Call

GetLinkIndex indicates an expected call of GetLinkIndex.

func (*MockNetworkHelperMockRecorder) GetNS

func (mr *MockNetworkHelperMockRecorder) GetNS(nspath any) *gomock.Call

GetNS indicates an expected call of GetNS.

func (*MockNetworkHelperMockRecorder) GetPFRepresentorDPU

func (mr *MockNetworkHelperMockRecorder) GetPFRepresentorDPU(pfID any) *gomock.Call

GetPFRepresentorDPU indicates an expected call of GetPFRepresentorDPU.

func (*MockNetworkHelperMockRecorder) GetPfRepresentorFromPortParams

func (mr *MockNetworkHelperMockRecorder) GetPfRepresentorFromPortParams(pp any) *gomock.Call

GetPfRepresentorFromPortParams indicates an expected call of GetPfRepresentorFromPortParams.

func (*MockNetworkHelperMockRecorder) GetUplinkRepresentor

func (mr *MockNetworkHelperMockRecorder) GetUplinkRepresentor(pciAddress any) *gomock.Call

GetUplinkRepresentor indicates an expected call of GetUplinkRepresentor.

func (*MockNetworkHelperMockRecorder) GetVFRepresentorDPU

func (mr *MockNetworkHelperMockRecorder) GetVFRepresentorDPU(pfID, vfIndex any) *gomock.Call

GetVFRepresentorDPU indicates an expected call of GetVFRepresentorDPU.

func (*MockNetworkHelperMockRecorder) GetVfRepresentorFromPortParams

func (mr *MockNetworkHelperMockRecorder) GetVfRepresentorFromPortParams(pp, vfIndex any) *gomock.Call

GetVfRepresentorFromPortParams indicates an expected call of GetVfRepresentorFromPortParams.

func (*MockNetworkHelperMockRecorder) IsLinkVeth

func (mr *MockNetworkHelperMockRecorder) IsLinkVeth(link any) *gomock.Call

IsLinkVeth indicates an expected call of IsLinkVeth.

func (*MockNetworkHelperMockRecorder) LinkExists

func (mr *MockNetworkHelperMockRecorder) LinkExists(link any) *gomock.Call

LinkExists indicates an expected call of LinkExists.

func (*MockNetworkHelperMockRecorder) LinkIPAddressExists

func (mr *MockNetworkHelperMockRecorder) LinkIPAddressExists(link, ipNet any) *gomock.Call

LinkIPAddressExists indicates an expected call of LinkIPAddressExists.

func (*MockNetworkHelperMockRecorder) NeighborExists

func (mr *MockNetworkHelperMockRecorder) NeighborExists(ip, device any) *gomock.Call

NeighborExists indicates an expected call of NeighborExists.

func (mr *MockNetworkHelperMockRecorder) RenameLink(link, newName any) *gomock.Call

RenameLink indicates an expected call of RenameLink.

func (*MockNetworkHelperMockRecorder) RouteExists

func (mr *MockNetworkHelperMockRecorder) RouteExists(network, gateway, device, table any) *gomock.Call

RouteExists indicates an expected call of RouteExists.

func (*MockNetworkHelperMockRecorder) RouteList

func (mr *MockNetworkHelperMockRecorder) RouteList(device, family, table any) *gomock.Call

RouteList indicates an expected call of RouteList.

func (*MockNetworkHelperMockRecorder) RouteListAll

func (mr *MockNetworkHelperMockRecorder) RouteListAll(family, table any) *gomock.Call

RouteListAll indicates an expected call of RouteListAll.

func (*MockNetworkHelperMockRecorder) RuleExists

func (mr *MockNetworkHelperMockRecorder) RuleExists(src, table, priority any) *gomock.Call

RuleExists indicates an expected call of RuleExists.

func (*MockNetworkHelperMockRecorder) SetLinkDown

func (mr *MockNetworkHelperMockRecorder) SetLinkDown(link any) *gomock.Call

SetLinkDown indicates an expected call of SetLinkDown.

func (*MockNetworkHelperMockRecorder) SetLinkHardwareAddr

func (mr *MockNetworkHelperMockRecorder) SetLinkHardwareAddr(link, hwaddr any) *gomock.Call

SetLinkHardwareAddr indicates an expected call of SetLinkHardwareAddr.

func (*MockNetworkHelperMockRecorder) SetLinkIPAddress

func (mr *MockNetworkHelperMockRecorder) SetLinkIPAddress(link, ipNet any) *gomock.Call

SetLinkIPAddress indicates an expected call of SetLinkIPAddress.

func (*MockNetworkHelperMockRecorder) SetLinkUp

func (mr *MockNetworkHelperMockRecorder) SetLinkUp(link any) *gomock.Call

SetLinkUp indicates an expected call of SetLinkUp.

func (*MockNetworkHelperMockRecorder) SetupVeth

func (mr *MockNetworkHelperMockRecorder) SetupVeth(contIfaceName, mtu, requestedMac, hostNS any) *gomock.Call

SetupVeth indicates an expected call of SetupVeth.

func (*MockNetworkHelperMockRecorder) ValidateExpectedInterfaceIPs

func (mr *MockNetworkHelperMockRecorder) ValidateExpectedInterfaceIPs(ifName, expectedIPs any) *gomock.Call

ValidateExpectedInterfaceIPs indicates an expected call of ValidateExpectedInterfaceIPs.

func (*MockNetworkHelperMockRecorder) ValidateExpectedRoute

func (mr *MockNetworkHelperMockRecorder) ValidateExpectedRoute(expectedRoutes any) *gomock.Call

ValidateExpectedRoute indicates an expected call of ValidateExpectedRoute.

func (*MockNetworkHelperMockRecorder) WithNetNSPath

func (mr *MockNetworkHelperMockRecorder) WithNetNSPath(nspath, toRun any) *gomock.Call

WithNetNSPath indicates an expected call of WithNetNSPath.

Jump to

Keyboard shortcuts

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