Documentation ¶
Overview ¶
Package mock_nl is a generated GoMock package.
Index ¶
- type MockToolkitInterface
- func (m *MockToolkitInterface) AddrAdd(arg0 netlink.Link, arg1 *netlink.Addr) error
- func (m *MockToolkitInterface) AddrDel(arg0 netlink.Link, arg1 *netlink.Addr) error
- func (m *MockToolkitInterface) AddrList(arg0 netlink.Link, arg1 int) ([]netlink.Addr, error)
- func (m *MockToolkitInterface) EXPECT() *MockToolkitInterfaceMockRecorder
- func (m *MockToolkitInterface) ExecuteNetlinkRequest(arg0 *nl.NetlinkRequest, arg1 int, arg2 uint16) ([][]byte, error)
- func (m *MockToolkitInterface) LinkAdd(arg0 netlink.Link) error
- func (m *MockToolkitInterface) LinkByIndex(arg0 int) (netlink.Link, error)
- func (m *MockToolkitInterface) LinkByName(arg0 string) (netlink.Link, error)
- func (m *MockToolkitInterface) LinkDel(arg0 netlink.Link) error
- func (m *MockToolkitInterface) LinkGetProtinfo(arg0 netlink.Link) (netlink.Protinfo, error)
- func (m *MockToolkitInterface) LinkList() ([]netlink.Link, error)
- func (m *MockToolkitInterface) LinkSetDown(arg0 netlink.Link) error
- func (m *MockToolkitInterface) LinkSetHairpin(arg0 netlink.Link, arg1 bool) error
- func (m *MockToolkitInterface) LinkSetHardwareAddr(arg0 netlink.Link, arg1 net.HardwareAddr) error
- func (m *MockToolkitInterface) LinkSetLearning(arg0 netlink.Link, arg1 bool) error
- func (m *MockToolkitInterface) LinkSetMTU(arg0 netlink.Link, arg1 int) error
- func (m *MockToolkitInterface) LinkSetMaster(arg0, arg1 netlink.Link) error
- func (m *MockToolkitInterface) LinkSetMasterByIndex(arg0 netlink.Link, arg1 int) error
- func (m *MockToolkitInterface) LinkSetNoMaster(arg0 netlink.Link) error
- func (m *MockToolkitInterface) LinkSetUp(arg0 netlink.Link) error
- func (m *MockToolkitInterface) NeighList(arg0, arg1 int) ([]netlink.Neigh, error)
- func (m *MockToolkitInterface) NewIPNet(arg0 net.IP) *net.IPNet
- func (m *MockToolkitInterface) ParseAddr(arg0 string) (*netlink.Addr, error)
- func (m *MockToolkitInterface) RouteAdd(arg0 *netlink.Route) error
- func (m *MockToolkitInterface) RouteDel(arg0 *netlink.Route) error
- func (m *MockToolkitInterface) RouteListFiltered(arg0 int, arg1 *netlink.Route, arg2 uint64) ([]netlink.Route, error)
- func (m *MockToolkitInterface) VethPeerIndex(arg0 *netlink.Veth) (int, error)
- type MockToolkitInterfaceMockRecorder
- func (mr *MockToolkitInterfaceMockRecorder) AddrAdd(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockToolkitInterfaceMockRecorder) AddrDel(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockToolkitInterfaceMockRecorder) AddrList(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockToolkitInterfaceMockRecorder) ExecuteNetlinkRequest(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockToolkitInterfaceMockRecorder) LinkAdd(arg0 interface{}) *gomock.Call
- func (mr *MockToolkitInterfaceMockRecorder) LinkByIndex(arg0 interface{}) *gomock.Call
- func (mr *MockToolkitInterfaceMockRecorder) LinkByName(arg0 interface{}) *gomock.Call
- func (mr *MockToolkitInterfaceMockRecorder) LinkDel(arg0 interface{}) *gomock.Call
- func (mr *MockToolkitInterfaceMockRecorder) LinkGetProtinfo(arg0 interface{}) *gomock.Call
- func (mr *MockToolkitInterfaceMockRecorder) LinkList() *gomock.Call
- func (mr *MockToolkitInterfaceMockRecorder) LinkSetDown(arg0 interface{}) *gomock.Call
- func (mr *MockToolkitInterfaceMockRecorder) LinkSetHairpin(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockToolkitInterfaceMockRecorder) LinkSetHardwareAddr(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockToolkitInterfaceMockRecorder) LinkSetLearning(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockToolkitInterfaceMockRecorder) LinkSetMTU(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockToolkitInterfaceMockRecorder) LinkSetMaster(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockToolkitInterfaceMockRecorder) LinkSetMasterByIndex(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockToolkitInterfaceMockRecorder) LinkSetNoMaster(arg0 interface{}) *gomock.Call
- func (mr *MockToolkitInterfaceMockRecorder) LinkSetUp(arg0 interface{}) *gomock.Call
- func (mr *MockToolkitInterfaceMockRecorder) NeighList(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockToolkitInterfaceMockRecorder) NewIPNet(arg0 interface{}) *gomock.Call
- func (mr *MockToolkitInterfaceMockRecorder) ParseAddr(arg0 interface{}) *gomock.Call
- func (mr *MockToolkitInterfaceMockRecorder) RouteAdd(arg0 interface{}) *gomock.Call
- func (mr *MockToolkitInterfaceMockRecorder) RouteDel(arg0 interface{}) *gomock.Call
- func (mr *MockToolkitInterfaceMockRecorder) RouteListFiltered(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockToolkitInterfaceMockRecorder) VethPeerIndex(arg0 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockToolkitInterface ¶
type MockToolkitInterface struct {
// contains filtered or unexported fields
}
MockToolkitInterface is a mock of ToolkitInterface interface.
func NewMockToolkitInterface ¶
func NewMockToolkitInterface(ctrl *gomock.Controller) *MockToolkitInterface
NewMockToolkitInterface creates a new mock instance.
func (*MockToolkitInterface) EXPECT ¶
func (m *MockToolkitInterface) EXPECT() *MockToolkitInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockToolkitInterface) ExecuteNetlinkRequest ¶
func (m *MockToolkitInterface) ExecuteNetlinkRequest(arg0 *nl.NetlinkRequest, arg1 int, arg2 uint16) ([][]byte, error)
ExecuteNetlinkRequest mocks base method.
func (*MockToolkitInterface) LinkAdd ¶
func (m *MockToolkitInterface) LinkAdd(arg0 netlink.Link) error
LinkAdd mocks base method.
func (*MockToolkitInterface) LinkByIndex ¶
func (m *MockToolkitInterface) LinkByIndex(arg0 int) (netlink.Link, error)
LinkByIndex mocks base method.
func (*MockToolkitInterface) LinkByName ¶
func (m *MockToolkitInterface) LinkByName(arg0 string) (netlink.Link, error)
LinkByName mocks base method.
func (*MockToolkitInterface) LinkDel ¶
func (m *MockToolkitInterface) LinkDel(arg0 netlink.Link) error
LinkDel mocks base method.
func (*MockToolkitInterface) LinkGetProtinfo ¶
LinkGetProtinfo mocks base method.
func (*MockToolkitInterface) LinkList ¶
func (m *MockToolkitInterface) LinkList() ([]netlink.Link, error)
LinkList mocks base method.
func (*MockToolkitInterface) LinkSetDown ¶
func (m *MockToolkitInterface) LinkSetDown(arg0 netlink.Link) error
LinkSetDown mocks base method.
func (*MockToolkitInterface) LinkSetHairpin ¶
func (m *MockToolkitInterface) LinkSetHairpin(arg0 netlink.Link, arg1 bool) error
LinkSetHairpin mocks base method.
func (*MockToolkitInterface) LinkSetHardwareAddr ¶
func (m *MockToolkitInterface) LinkSetHardwareAddr(arg0 netlink.Link, arg1 net.HardwareAddr) error
LinkSetHardwareAddr mocks base method.
func (*MockToolkitInterface) LinkSetLearning ¶
func (m *MockToolkitInterface) LinkSetLearning(arg0 netlink.Link, arg1 bool) error
LinkSetLearning mocks base method.
func (*MockToolkitInterface) LinkSetMTU ¶
func (m *MockToolkitInterface) LinkSetMTU(arg0 netlink.Link, arg1 int) error
LinkSetMTU mocks base method.
func (*MockToolkitInterface) LinkSetMaster ¶
func (m *MockToolkitInterface) LinkSetMaster(arg0, arg1 netlink.Link) error
LinkSetMaster mocks base method.
func (*MockToolkitInterface) LinkSetMasterByIndex ¶
func (m *MockToolkitInterface) LinkSetMasterByIndex(arg0 netlink.Link, arg1 int) error
LinkSetMasterByIndex mocks base method.
func (*MockToolkitInterface) LinkSetNoMaster ¶
func (m *MockToolkitInterface) LinkSetNoMaster(arg0 netlink.Link) error
LinkSetNoMaster mocks base method.
func (*MockToolkitInterface) LinkSetUp ¶
func (m *MockToolkitInterface) LinkSetUp(arg0 netlink.Link) error
LinkSetUp mocks base method.
func (*MockToolkitInterface) NeighList ¶
func (m *MockToolkitInterface) NeighList(arg0, arg1 int) ([]netlink.Neigh, error)
NeighList mocks base method.
func (*MockToolkitInterface) NewIPNet ¶
func (m *MockToolkitInterface) NewIPNet(arg0 net.IP) *net.IPNet
NewIPNet mocks base method.
func (*MockToolkitInterface) ParseAddr ¶
func (m *MockToolkitInterface) ParseAddr(arg0 string) (*netlink.Addr, error)
ParseAddr mocks base method.
func (*MockToolkitInterface) RouteAdd ¶
func (m *MockToolkitInterface) RouteAdd(arg0 *netlink.Route) error
RouteAdd mocks base method.
func (*MockToolkitInterface) RouteDel ¶
func (m *MockToolkitInterface) RouteDel(arg0 *netlink.Route) error
RouteDel mocks base method.
func (*MockToolkitInterface) RouteListFiltered ¶
func (m *MockToolkitInterface) RouteListFiltered(arg0 int, arg1 *netlink.Route, arg2 uint64) ([]netlink.Route, error)
RouteListFiltered mocks base method.
func (*MockToolkitInterface) VethPeerIndex ¶
func (m *MockToolkitInterface) VethPeerIndex(arg0 *netlink.Veth) (int, error)
VethPeerIndex mocks base method.
type MockToolkitInterfaceMockRecorder ¶
type MockToolkitInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockToolkitInterfaceMockRecorder is the mock recorder for MockToolkitInterface.
func (*MockToolkitInterfaceMockRecorder) AddrAdd ¶
func (mr *MockToolkitInterfaceMockRecorder) AddrAdd(arg0, arg1 interface{}) *gomock.Call
AddrAdd indicates an expected call of AddrAdd.
func (*MockToolkitInterfaceMockRecorder) AddrDel ¶
func (mr *MockToolkitInterfaceMockRecorder) AddrDel(arg0, arg1 interface{}) *gomock.Call
AddrDel indicates an expected call of AddrDel.
func (*MockToolkitInterfaceMockRecorder) AddrList ¶
func (mr *MockToolkitInterfaceMockRecorder) AddrList(arg0, arg1 interface{}) *gomock.Call
AddrList indicates an expected call of AddrList.
func (*MockToolkitInterfaceMockRecorder) ExecuteNetlinkRequest ¶
func (mr *MockToolkitInterfaceMockRecorder) ExecuteNetlinkRequest(arg0, arg1, arg2 interface{}) *gomock.Call
ExecuteNetlinkRequest indicates an expected call of ExecuteNetlinkRequest.
func (*MockToolkitInterfaceMockRecorder) LinkAdd ¶
func (mr *MockToolkitInterfaceMockRecorder) LinkAdd(arg0 interface{}) *gomock.Call
LinkAdd indicates an expected call of LinkAdd.
func (*MockToolkitInterfaceMockRecorder) LinkByIndex ¶
func (mr *MockToolkitInterfaceMockRecorder) LinkByIndex(arg0 interface{}) *gomock.Call
LinkByIndex indicates an expected call of LinkByIndex.
func (*MockToolkitInterfaceMockRecorder) LinkByName ¶
func (mr *MockToolkitInterfaceMockRecorder) LinkByName(arg0 interface{}) *gomock.Call
LinkByName indicates an expected call of LinkByName.
func (*MockToolkitInterfaceMockRecorder) LinkDel ¶
func (mr *MockToolkitInterfaceMockRecorder) LinkDel(arg0 interface{}) *gomock.Call
LinkDel indicates an expected call of LinkDel.
func (*MockToolkitInterfaceMockRecorder) LinkGetProtinfo ¶
func (mr *MockToolkitInterfaceMockRecorder) LinkGetProtinfo(arg0 interface{}) *gomock.Call
LinkGetProtinfo indicates an expected call of LinkGetProtinfo.
func (*MockToolkitInterfaceMockRecorder) LinkList ¶
func (mr *MockToolkitInterfaceMockRecorder) LinkList() *gomock.Call
LinkList indicates an expected call of LinkList.
func (*MockToolkitInterfaceMockRecorder) LinkSetDown ¶
func (mr *MockToolkitInterfaceMockRecorder) LinkSetDown(arg0 interface{}) *gomock.Call
LinkSetDown indicates an expected call of LinkSetDown.
func (*MockToolkitInterfaceMockRecorder) LinkSetHairpin ¶
func (mr *MockToolkitInterfaceMockRecorder) LinkSetHairpin(arg0, arg1 interface{}) *gomock.Call
LinkSetHairpin indicates an expected call of LinkSetHairpin.
func (*MockToolkitInterfaceMockRecorder) LinkSetHardwareAddr ¶
func (mr *MockToolkitInterfaceMockRecorder) LinkSetHardwareAddr(arg0, arg1 interface{}) *gomock.Call
LinkSetHardwareAddr indicates an expected call of LinkSetHardwareAddr.
func (*MockToolkitInterfaceMockRecorder) LinkSetLearning ¶
func (mr *MockToolkitInterfaceMockRecorder) LinkSetLearning(arg0, arg1 interface{}) *gomock.Call
LinkSetLearning indicates an expected call of LinkSetLearning.
func (*MockToolkitInterfaceMockRecorder) LinkSetMTU ¶
func (mr *MockToolkitInterfaceMockRecorder) LinkSetMTU(arg0, arg1 interface{}) *gomock.Call
LinkSetMTU indicates an expected call of LinkSetMTU.
func (*MockToolkitInterfaceMockRecorder) LinkSetMaster ¶
func (mr *MockToolkitInterfaceMockRecorder) LinkSetMaster(arg0, arg1 interface{}) *gomock.Call
LinkSetMaster indicates an expected call of LinkSetMaster.
func (*MockToolkitInterfaceMockRecorder) LinkSetMasterByIndex ¶
func (mr *MockToolkitInterfaceMockRecorder) LinkSetMasterByIndex(arg0, arg1 interface{}) *gomock.Call
LinkSetMasterByIndex indicates an expected call of LinkSetMasterByIndex.
func (*MockToolkitInterfaceMockRecorder) LinkSetNoMaster ¶
func (mr *MockToolkitInterfaceMockRecorder) LinkSetNoMaster(arg0 interface{}) *gomock.Call
LinkSetNoMaster indicates an expected call of LinkSetNoMaster.
func (*MockToolkitInterfaceMockRecorder) LinkSetUp ¶
func (mr *MockToolkitInterfaceMockRecorder) LinkSetUp(arg0 interface{}) *gomock.Call
LinkSetUp indicates an expected call of LinkSetUp.
func (*MockToolkitInterfaceMockRecorder) NeighList ¶
func (mr *MockToolkitInterfaceMockRecorder) NeighList(arg0, arg1 interface{}) *gomock.Call
NeighList indicates an expected call of NeighList.
func (*MockToolkitInterfaceMockRecorder) NewIPNet ¶
func (mr *MockToolkitInterfaceMockRecorder) NewIPNet(arg0 interface{}) *gomock.Call
NewIPNet indicates an expected call of NewIPNet.
func (*MockToolkitInterfaceMockRecorder) ParseAddr ¶
func (mr *MockToolkitInterfaceMockRecorder) ParseAddr(arg0 interface{}) *gomock.Call
ParseAddr indicates an expected call of ParseAddr.
func (*MockToolkitInterfaceMockRecorder) RouteAdd ¶
func (mr *MockToolkitInterfaceMockRecorder) RouteAdd(arg0 interface{}) *gomock.Call
RouteAdd indicates an expected call of RouteAdd.
func (*MockToolkitInterfaceMockRecorder) RouteDel ¶
func (mr *MockToolkitInterfaceMockRecorder) RouteDel(arg0 interface{}) *gomock.Call
RouteDel indicates an expected call of RouteDel.
func (*MockToolkitInterfaceMockRecorder) RouteListFiltered ¶
func (mr *MockToolkitInterfaceMockRecorder) RouteListFiltered(arg0, arg1, arg2 interface{}) *gomock.Call
RouteListFiltered indicates an expected call of RouteListFiltered.
func (*MockToolkitInterfaceMockRecorder) VethPeerIndex ¶
func (mr *MockToolkitInterfaceMockRecorder) VethPeerIndex(arg0 interface{}) *gomock.Call
VethPeerIndex indicates an expected call of VethPeerIndex.