Documentation ¶
Overview ¶
Code generated by MockGen. DO NOT EDIT. Source: antrea.io/antrea/pkg/agent/util/netlink (interfaces: Interface)
Generated by this command:
mockgen -copyright_file hack/boilerplate/license_header.raw.txt -destination pkg/agent/util/netlink/testing/mock_netlink_linux.go -package testing antrea.io/antrea/pkg/agent/util/netlink Interface
Package testing is a generated GoMock package.
Index ¶
- type MockInterface
- func (m *MockInterface) AddrAdd(arg0 netlink.Link, arg1 *netlink.Addr) error
- func (m *MockInterface) AddrDel(arg0 netlink.Link, arg1 *netlink.Addr) error
- func (m *MockInterface) AddrList(arg0 netlink.Link, arg1 int) ([]netlink.Addr, error)
- func (m *MockInterface) AddrReplace(arg0 netlink.Link, arg1 *netlink.Addr) error
- func (m *MockInterface) ConntrackDeleteFilter(arg0 netlink.ConntrackTableType, arg1 netlink.InetFamily, ...) (uint, error)
- func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder
- func (m *MockInterface) LinkByIndex(arg0 int) (netlink.Link, error)
- func (m *MockInterface) LinkByName(arg0 string) (netlink.Link, error)
- func (m *MockInterface) LinkSetDown(arg0 netlink.Link) error
- func (m *MockInterface) LinkSetHardwareAddr(arg0 netlink.Link, arg1 net.HardwareAddr) error
- func (m *MockInterface) LinkSetMTU(arg0 netlink.Link, arg1 int) error
- func (m *MockInterface) LinkSetName(arg0 netlink.Link, arg1 string) error
- func (m *MockInterface) LinkSetNsFd(arg0 netlink.Link, arg1 int) error
- func (m *MockInterface) LinkSetUp(arg0 netlink.Link) error
- func (m *MockInterface) NeighDel(arg0 *netlink.Neigh) error
- func (m *MockInterface) NeighList(arg0, arg1 int) ([]netlink.Neigh, error)
- func (m *MockInterface) NeighSet(arg0 *netlink.Neigh) error
- func (m *MockInterface) RouteDel(arg0 *netlink.Route) error
- func (m *MockInterface) RouteList(arg0 netlink.Link, arg1 int) ([]netlink.Route, error)
- func (m *MockInterface) RouteListFiltered(arg0 int, arg1 *netlink.Route, arg2 uint64) ([]netlink.Route, error)
- func (m *MockInterface) RouteReplace(arg0 *netlink.Route) error
- type MockInterfaceMockRecorder
- func (mr *MockInterfaceMockRecorder) AddrAdd(arg0, arg1 any) *gomock.Call
- func (mr *MockInterfaceMockRecorder) AddrDel(arg0, arg1 any) *gomock.Call
- func (mr *MockInterfaceMockRecorder) AddrList(arg0, arg1 any) *gomock.Call
- func (mr *MockInterfaceMockRecorder) AddrReplace(arg0, arg1 any) *gomock.Call
- func (mr *MockInterfaceMockRecorder) ConntrackDeleteFilter(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockInterfaceMockRecorder) LinkByIndex(arg0 any) *gomock.Call
- func (mr *MockInterfaceMockRecorder) LinkByName(arg0 any) *gomock.Call
- func (mr *MockInterfaceMockRecorder) LinkSetDown(arg0 any) *gomock.Call
- func (mr *MockInterfaceMockRecorder) LinkSetHardwareAddr(arg0, arg1 any) *gomock.Call
- func (mr *MockInterfaceMockRecorder) LinkSetMTU(arg0, arg1 any) *gomock.Call
- func (mr *MockInterfaceMockRecorder) LinkSetName(arg0, arg1 any) *gomock.Call
- func (mr *MockInterfaceMockRecorder) LinkSetNsFd(arg0, arg1 any) *gomock.Call
- func (mr *MockInterfaceMockRecorder) LinkSetUp(arg0 any) *gomock.Call
- func (mr *MockInterfaceMockRecorder) NeighDel(arg0 any) *gomock.Call
- func (mr *MockInterfaceMockRecorder) NeighList(arg0, arg1 any) *gomock.Call
- func (mr *MockInterfaceMockRecorder) NeighSet(arg0 any) *gomock.Call
- func (mr *MockInterfaceMockRecorder) RouteDel(arg0 any) *gomock.Call
- func (mr *MockInterfaceMockRecorder) RouteList(arg0, arg1 any) *gomock.Call
- func (mr *MockInterfaceMockRecorder) RouteListFiltered(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockInterfaceMockRecorder) RouteReplace(arg0 any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockInterface ¶
type MockInterface struct {
// contains filtered or unexported fields
}
MockInterface is a mock of Interface interface.
func NewMockInterface ¶
func NewMockInterface(ctrl *gomock.Controller) *MockInterface
NewMockInterface creates a new mock instance.
func (*MockInterface) AddrReplace ¶
AddrReplace mocks base method.
func (*MockInterface) ConntrackDeleteFilter ¶ added in v1.13.0
func (m *MockInterface) ConntrackDeleteFilter(arg0 netlink.ConntrackTableType, arg1 netlink.InetFamily, arg2 netlink.CustomConntrackFilter) (uint, error)
ConntrackDeleteFilter mocks base method.
func (*MockInterface) EXPECT ¶
func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockInterface) LinkByIndex ¶ added in v1.11.0
func (m *MockInterface) LinkByIndex(arg0 int) (netlink.Link, error)
LinkByIndex mocks base method.
func (*MockInterface) LinkByName ¶
func (m *MockInterface) LinkByName(arg0 string) (netlink.Link, error)
LinkByName mocks base method.
func (*MockInterface) LinkSetDown ¶ added in v1.11.0
func (m *MockInterface) LinkSetDown(arg0 netlink.Link) error
LinkSetDown mocks base method.
func (*MockInterface) LinkSetHardwareAddr ¶ added in v1.11.0
func (m *MockInterface) LinkSetHardwareAddr(arg0 netlink.Link, arg1 net.HardwareAddr) error
LinkSetHardwareAddr mocks base method.
func (*MockInterface) LinkSetMTU ¶ added in v1.11.0
func (m *MockInterface) LinkSetMTU(arg0 netlink.Link, arg1 int) error
LinkSetMTU mocks base method.
func (*MockInterface) LinkSetName ¶ added in v1.11.0
func (m *MockInterface) LinkSetName(arg0 netlink.Link, arg1 string) error
LinkSetName mocks base method.
func (*MockInterface) LinkSetNsFd ¶ added in v1.11.0
func (m *MockInterface) LinkSetNsFd(arg0 netlink.Link, arg1 int) error
LinkSetNsFd mocks base method.
func (*MockInterface) LinkSetUp ¶ added in v1.11.0
func (m *MockInterface) LinkSetUp(arg0 netlink.Link) error
LinkSetUp mocks base method.
func (*MockInterface) NeighDel ¶
func (m *MockInterface) NeighDel(arg0 *netlink.Neigh) error
NeighDel mocks base method.
func (*MockInterface) NeighList ¶
func (m *MockInterface) NeighList(arg0, arg1 int) ([]netlink.Neigh, error)
NeighList mocks base method.
func (*MockInterface) NeighSet ¶
func (m *MockInterface) NeighSet(arg0 *netlink.Neigh) error
NeighSet mocks base method.
func (*MockInterface) RouteDel ¶
func (m *MockInterface) RouteDel(arg0 *netlink.Route) error
RouteDel mocks base method.
func (*MockInterface) RouteListFiltered ¶
func (m *MockInterface) RouteListFiltered(arg0 int, arg1 *netlink.Route, arg2 uint64) ([]netlink.Route, error)
RouteListFiltered mocks base method.
func (*MockInterface) RouteReplace ¶
func (m *MockInterface) RouteReplace(arg0 *netlink.Route) error
RouteReplace mocks base method.
type MockInterfaceMockRecorder ¶
type MockInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockInterfaceMockRecorder is the mock recorder for MockInterface.
func (*MockInterfaceMockRecorder) AddrAdd ¶ added in v1.11.0
func (mr *MockInterfaceMockRecorder) AddrAdd(arg0, arg1 any) *gomock.Call
AddrAdd indicates an expected call of AddrAdd.
func (*MockInterfaceMockRecorder) AddrDel ¶
func (mr *MockInterfaceMockRecorder) AddrDel(arg0, arg1 any) *gomock.Call
AddrDel indicates an expected call of AddrDel.
func (*MockInterfaceMockRecorder) AddrList ¶
func (mr *MockInterfaceMockRecorder) AddrList(arg0, arg1 any) *gomock.Call
AddrList indicates an expected call of AddrList.
func (*MockInterfaceMockRecorder) AddrReplace ¶
func (mr *MockInterfaceMockRecorder) AddrReplace(arg0, arg1 any) *gomock.Call
AddrReplace indicates an expected call of AddrReplace.
func (*MockInterfaceMockRecorder) ConntrackDeleteFilter ¶ added in v1.13.0
func (mr *MockInterfaceMockRecorder) ConntrackDeleteFilter(arg0, arg1, arg2 any) *gomock.Call
ConntrackDeleteFilter indicates an expected call of ConntrackDeleteFilter.
func (*MockInterfaceMockRecorder) LinkByIndex ¶ added in v1.11.0
func (mr *MockInterfaceMockRecorder) LinkByIndex(arg0 any) *gomock.Call
LinkByIndex indicates an expected call of LinkByIndex.
func (*MockInterfaceMockRecorder) LinkByName ¶
func (mr *MockInterfaceMockRecorder) LinkByName(arg0 any) *gomock.Call
LinkByName indicates an expected call of LinkByName.
func (*MockInterfaceMockRecorder) LinkSetDown ¶ added in v1.11.0
func (mr *MockInterfaceMockRecorder) LinkSetDown(arg0 any) *gomock.Call
LinkSetDown indicates an expected call of LinkSetDown.
func (*MockInterfaceMockRecorder) LinkSetHardwareAddr ¶ added in v1.11.0
func (mr *MockInterfaceMockRecorder) LinkSetHardwareAddr(arg0, arg1 any) *gomock.Call
LinkSetHardwareAddr indicates an expected call of LinkSetHardwareAddr.
func (*MockInterfaceMockRecorder) LinkSetMTU ¶ added in v1.11.0
func (mr *MockInterfaceMockRecorder) LinkSetMTU(arg0, arg1 any) *gomock.Call
LinkSetMTU indicates an expected call of LinkSetMTU.
func (*MockInterfaceMockRecorder) LinkSetName ¶ added in v1.11.0
func (mr *MockInterfaceMockRecorder) LinkSetName(arg0, arg1 any) *gomock.Call
LinkSetName indicates an expected call of LinkSetName.
func (*MockInterfaceMockRecorder) LinkSetNsFd ¶ added in v1.11.0
func (mr *MockInterfaceMockRecorder) LinkSetNsFd(arg0, arg1 any) *gomock.Call
LinkSetNsFd indicates an expected call of LinkSetNsFd.
func (*MockInterfaceMockRecorder) LinkSetUp ¶ added in v1.11.0
func (mr *MockInterfaceMockRecorder) LinkSetUp(arg0 any) *gomock.Call
LinkSetUp indicates an expected call of LinkSetUp.
func (*MockInterfaceMockRecorder) NeighDel ¶
func (mr *MockInterfaceMockRecorder) NeighDel(arg0 any) *gomock.Call
NeighDel indicates an expected call of NeighDel.
func (*MockInterfaceMockRecorder) NeighList ¶
func (mr *MockInterfaceMockRecorder) NeighList(arg0, arg1 any) *gomock.Call
NeighList indicates an expected call of NeighList.
func (*MockInterfaceMockRecorder) NeighSet ¶
func (mr *MockInterfaceMockRecorder) NeighSet(arg0 any) *gomock.Call
NeighSet indicates an expected call of NeighSet.
func (*MockInterfaceMockRecorder) RouteDel ¶
func (mr *MockInterfaceMockRecorder) RouteDel(arg0 any) *gomock.Call
RouteDel indicates an expected call of RouteDel.
func (*MockInterfaceMockRecorder) RouteList ¶
func (mr *MockInterfaceMockRecorder) RouteList(arg0, arg1 any) *gomock.Call
RouteList indicates an expected call of RouteList.
func (*MockInterfaceMockRecorder) RouteListFiltered ¶
func (mr *MockInterfaceMockRecorder) RouteListFiltered(arg0, arg1, arg2 any) *gomock.Call
RouteListFiltered indicates an expected call of RouteListFiltered.
func (*MockInterfaceMockRecorder) RouteReplace ¶
func (mr *MockInterfaceMockRecorder) RouteReplace(arg0 any) *gomock.Call
RouteReplace indicates an expected call of RouteReplace.