Documentation ¶
Overview ¶
Package netlinkmock is a generated GoMock package.
Index ¶
- type MockHandler
- func (m *MockHandler) AddrList(arg0 netlink.Link, arg1 int) ([]netlink.Addr, error)
- func (m *MockHandler) Delete()
- func (m *MockHandler) EXPECT() *MockHandlerMockRecorder
- func (m *MockHandler) LinkAdd(arg0 netlink.Link) error
- func (m *MockHandler) LinkByName(arg0 string) (netlink.Link, error)
- func (m *MockHandler) LinkDel(arg0 netlink.Link) error
- func (m *MockHandler) LinkList() ([]netlink.Link, error)
- func (m *MockHandler) LinkSetDown(arg0 netlink.Link) error
- func (m *MockHandler) LinkSetHardwareAddr(arg0 netlink.Link, arg1 net.HardwareAddr) error
- func (m *MockHandler) LinkSetMTU(arg0 netlink.Link, arg1 int) error
- func (m *MockHandler) LinkSetMaster(arg0, arg1 netlink.Link) error
- func (m *MockHandler) LinkSetName(arg0 netlink.Link, arg1 string) error
- func (m *MockHandler) LinkSetNsFd(arg0 netlink.Link, arg1 int) error
- func (m *MockHandler) LinkSetUp(arg0 netlink.Link) error
- func (m *MockHandler) NeighSet(arg0 *netlink.Neigh) error
- type MockHandlerMockRecorder
- func (mr *MockHandlerMockRecorder) AddrList(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockHandlerMockRecorder) Delete() *gomock.Call
- func (mr *MockHandlerMockRecorder) LinkAdd(arg0 interface{}) *gomock.Call
- func (mr *MockHandlerMockRecorder) LinkByName(arg0 interface{}) *gomock.Call
- func (mr *MockHandlerMockRecorder) LinkDel(arg0 interface{}) *gomock.Call
- func (mr *MockHandlerMockRecorder) LinkList() *gomock.Call
- func (mr *MockHandlerMockRecorder) LinkSetDown(arg0 interface{}) *gomock.Call
- func (mr *MockHandlerMockRecorder) LinkSetHardwareAddr(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockHandlerMockRecorder) LinkSetMTU(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockHandlerMockRecorder) LinkSetMaster(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockHandlerMockRecorder) LinkSetName(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockHandlerMockRecorder) LinkSetNsFd(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockHandlerMockRecorder) LinkSetUp(arg0 interface{}) *gomock.Call
- func (mr *MockHandlerMockRecorder) NeighSet(arg0 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockHandler ¶
type MockHandler struct {
// contains filtered or unexported fields
}
MockHandler is a mock of Handler interface.
func NewMockHandler ¶
func NewMockHandler(ctrl *gomock.Controller) *MockHandler
NewMockHandler creates a new mock instance.
func (*MockHandler) EXPECT ¶
func (m *MockHandler) EXPECT() *MockHandlerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockHandler) LinkAdd ¶
func (m *MockHandler) LinkAdd(arg0 netlink.Link) error
LinkAdd mocks base method.
func (*MockHandler) LinkByName ¶
func (m *MockHandler) LinkByName(arg0 string) (netlink.Link, error)
LinkByName mocks base method.
func (*MockHandler) LinkDel ¶
func (m *MockHandler) LinkDel(arg0 netlink.Link) error
LinkDel mocks base method.
func (*MockHandler) LinkList ¶
func (m *MockHandler) LinkList() ([]netlink.Link, error)
LinkList mocks base method.
func (*MockHandler) LinkSetDown ¶
func (m *MockHandler) LinkSetDown(arg0 netlink.Link) error
LinkSetDown mocks base method.
func (*MockHandler) LinkSetHardwareAddr ¶
func (m *MockHandler) LinkSetHardwareAddr(arg0 netlink.Link, arg1 net.HardwareAddr) error
LinkSetHardwareAddr mocks base method.
func (*MockHandler) LinkSetMTU ¶
func (m *MockHandler) LinkSetMTU(arg0 netlink.Link, arg1 int) error
LinkSetMTU mocks base method.
func (*MockHandler) LinkSetMaster ¶
func (m *MockHandler) LinkSetMaster(arg0, arg1 netlink.Link) error
LinkSetMaster mocks base method.
func (*MockHandler) LinkSetName ¶
func (m *MockHandler) LinkSetName(arg0 netlink.Link, arg1 string) error
LinkSetName mocks base method.
func (*MockHandler) LinkSetNsFd ¶
func (m *MockHandler) LinkSetNsFd(arg0 netlink.Link, arg1 int) error
LinkSetNsFd mocks base method.
type MockHandlerMockRecorder ¶
type MockHandlerMockRecorder struct {
// contains filtered or unexported fields
}
MockHandlerMockRecorder is the mock recorder for MockHandler.
func (*MockHandlerMockRecorder) AddrList ¶
func (mr *MockHandlerMockRecorder) AddrList(arg0, arg1 interface{}) *gomock.Call
AddrList indicates an expected call of AddrList.
func (*MockHandlerMockRecorder) Delete ¶
func (mr *MockHandlerMockRecorder) Delete() *gomock.Call
Delete indicates an expected call of Delete.
func (*MockHandlerMockRecorder) LinkAdd ¶
func (mr *MockHandlerMockRecorder) LinkAdd(arg0 interface{}) *gomock.Call
LinkAdd indicates an expected call of LinkAdd.
func (*MockHandlerMockRecorder) LinkByName ¶
func (mr *MockHandlerMockRecorder) LinkByName(arg0 interface{}) *gomock.Call
LinkByName indicates an expected call of LinkByName.
func (*MockHandlerMockRecorder) LinkDel ¶
func (mr *MockHandlerMockRecorder) LinkDel(arg0 interface{}) *gomock.Call
LinkDel indicates an expected call of LinkDel.
func (*MockHandlerMockRecorder) LinkList ¶
func (mr *MockHandlerMockRecorder) LinkList() *gomock.Call
LinkList indicates an expected call of LinkList.
func (*MockHandlerMockRecorder) LinkSetDown ¶
func (mr *MockHandlerMockRecorder) LinkSetDown(arg0 interface{}) *gomock.Call
LinkSetDown indicates an expected call of LinkSetDown.
func (*MockHandlerMockRecorder) LinkSetHardwareAddr ¶
func (mr *MockHandlerMockRecorder) LinkSetHardwareAddr(arg0, arg1 interface{}) *gomock.Call
LinkSetHardwareAddr indicates an expected call of LinkSetHardwareAddr.
func (*MockHandlerMockRecorder) LinkSetMTU ¶
func (mr *MockHandlerMockRecorder) LinkSetMTU(arg0, arg1 interface{}) *gomock.Call
LinkSetMTU indicates an expected call of LinkSetMTU.
func (*MockHandlerMockRecorder) LinkSetMaster ¶
func (mr *MockHandlerMockRecorder) LinkSetMaster(arg0, arg1 interface{}) *gomock.Call
LinkSetMaster indicates an expected call of LinkSetMaster.
func (*MockHandlerMockRecorder) LinkSetName ¶
func (mr *MockHandlerMockRecorder) LinkSetName(arg0, arg1 interface{}) *gomock.Call
LinkSetName indicates an expected call of LinkSetName.
func (*MockHandlerMockRecorder) LinkSetNsFd ¶
func (mr *MockHandlerMockRecorder) LinkSetNsFd(arg0, arg1 interface{}) *gomock.Call
LinkSetNsFd indicates an expected call of LinkSetNsFd.
func (*MockHandlerMockRecorder) LinkSetUp ¶
func (mr *MockHandlerMockRecorder) LinkSetUp(arg0 interface{}) *gomock.Call
LinkSetUp indicates an expected call of LinkSetUp.
func (*MockHandlerMockRecorder) NeighSet ¶
func (mr *MockHandlerMockRecorder) NeighSet(arg0 interface{}) *gomock.Call
NeighSet indicates an expected call of NeighSet.