Documentation ¶
Overview ¶
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) EXPECT() *MockInterfaceMockRecorder
- func (m *MockInterface) LinkAdd(arg0 netlink.Link) error
- func (m *MockInterface) LinkByIndex(arg0 int) (netlink.Link, error)
- func (m *MockInterface) LinkByName(arg0 string) (netlink.Link, error)
- func (m *MockInterface) LinkDel(arg0 netlink.Link) error
- func (m *MockInterface) LinkList() ([]netlink.Link, error)
- func (m *MockInterface) LinkSetDown(arg0 netlink.Link) 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) NeighAdd(arg0 *netlink.Neigh) error
- func (m *MockInterface) NewRule() *netlink.Rule
- func (m *MockInterface) ParseAddr(arg0 string) (*netlink.Addr, error)
- func (m *MockInterface) RouteAdd(arg0 *netlink.Route) 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
- func (m *MockInterface) RuleAdd(arg0 *netlink.Rule) error
- func (m *MockInterface) RuleDel(arg0 *netlink.Rule) error
- func (m *MockInterface) RuleList(arg0 int) ([]netlink.Rule, error)
- type MockInterfaceMockRecorder
- func (mr *MockInterfaceMockRecorder) AddrAdd(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) AddrDel(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) AddrList(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) LinkAdd(arg0 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) LinkByIndex(arg0 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) LinkByName(arg0 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) LinkDel(arg0 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) LinkList() *gomock.Call
- func (mr *MockInterfaceMockRecorder) LinkSetDown(arg0 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) LinkSetMTU(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) LinkSetName(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) LinkSetNsFd(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) LinkSetUp(arg0 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) NeighAdd(arg0 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) NewRule() *gomock.Call
- func (mr *MockInterfaceMockRecorder) ParseAddr(arg0 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) RouteAdd(arg0 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) RouteDel(arg0 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) RouteList(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) RouteListFiltered(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) RouteReplace(arg0 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) RuleAdd(arg0 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) RuleDel(arg0 interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) RuleList(arg0 interface{}) *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) EXPECT ¶
func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockInterface) LinkAdd ¶
func (m *MockInterface) LinkAdd(arg0 netlink.Link) error
LinkAdd mocks base method.
func (*MockInterface) LinkByIndex ¶
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) LinkDel ¶
func (m *MockInterface) LinkDel(arg0 netlink.Link) error
LinkDel mocks base method.
func (*MockInterface) LinkList ¶
func (m *MockInterface) LinkList() ([]netlink.Link, error)
LinkList mocks base method.
func (*MockInterface) LinkSetDown ¶
func (m *MockInterface) LinkSetDown(arg0 netlink.Link) error
LinkSetDown mocks base method.
func (*MockInterface) LinkSetMTU ¶
func (m *MockInterface) LinkSetMTU(arg0 netlink.Link, arg1 int) error
LinkSetMTU mocks base method.
func (*MockInterface) LinkSetName ¶
func (m *MockInterface) LinkSetName(arg0 netlink.Link, arg1 string) error
LinkSetName mocks base method.
func (*MockInterface) LinkSetNsFd ¶
func (m *MockInterface) LinkSetNsFd(arg0 netlink.Link, arg1 int) error
LinkSetNsFd mocks base method.
func (*MockInterface) LinkSetUp ¶
func (m *MockInterface) LinkSetUp(arg0 netlink.Link) error
LinkSetUp mocks base method.
func (*MockInterface) NeighAdd ¶
func (m *MockInterface) NeighAdd(arg0 *netlink.Neigh) error
NeighAdd mocks base method.
func (*MockInterface) NewRule ¶
func (m *MockInterface) NewRule() *netlink.Rule
NewRule mocks base method.
func (*MockInterface) ParseAddr ¶
func (m *MockInterface) ParseAddr(arg0 string) (*netlink.Addr, error)
ParseAddr mocks base method.
func (*MockInterface) RouteAdd ¶
func (m *MockInterface) RouteAdd(arg0 *netlink.Route) error
RouteAdd 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.
func (*MockInterface) RuleAdd ¶
func (m *MockInterface) RuleAdd(arg0 *netlink.Rule) error
RuleAdd mocks base method.
type MockInterfaceMockRecorder ¶
type MockInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockInterfaceMockRecorder is the mock recorder for MockInterface.
func (*MockInterfaceMockRecorder) AddrAdd ¶
func (mr *MockInterfaceMockRecorder) AddrAdd(arg0, arg1 interface{}) *gomock.Call
AddrAdd indicates an expected call of AddrAdd.
func (*MockInterfaceMockRecorder) AddrDel ¶
func (mr *MockInterfaceMockRecorder) AddrDel(arg0, arg1 interface{}) *gomock.Call
AddrDel indicates an expected call of AddrDel.
func (*MockInterfaceMockRecorder) AddrList ¶
func (mr *MockInterfaceMockRecorder) AddrList(arg0, arg1 interface{}) *gomock.Call
AddrList indicates an expected call of AddrList.
func (*MockInterfaceMockRecorder) LinkAdd ¶
func (mr *MockInterfaceMockRecorder) LinkAdd(arg0 interface{}) *gomock.Call
LinkAdd indicates an expected call of LinkAdd.
func (*MockInterfaceMockRecorder) LinkByIndex ¶
func (mr *MockInterfaceMockRecorder) LinkByIndex(arg0 interface{}) *gomock.Call
LinkByIndex indicates an expected call of LinkByIndex.
func (*MockInterfaceMockRecorder) LinkByName ¶
func (mr *MockInterfaceMockRecorder) LinkByName(arg0 interface{}) *gomock.Call
LinkByName indicates an expected call of LinkByName.
func (*MockInterfaceMockRecorder) LinkDel ¶
func (mr *MockInterfaceMockRecorder) LinkDel(arg0 interface{}) *gomock.Call
LinkDel indicates an expected call of LinkDel.
func (*MockInterfaceMockRecorder) LinkList ¶
func (mr *MockInterfaceMockRecorder) LinkList() *gomock.Call
LinkList indicates an expected call of LinkList.
func (*MockInterfaceMockRecorder) LinkSetDown ¶
func (mr *MockInterfaceMockRecorder) LinkSetDown(arg0 interface{}) *gomock.Call
LinkSetDown indicates an expected call of LinkSetDown.
func (*MockInterfaceMockRecorder) LinkSetMTU ¶
func (mr *MockInterfaceMockRecorder) LinkSetMTU(arg0, arg1 interface{}) *gomock.Call
LinkSetMTU indicates an expected call of LinkSetMTU.
func (*MockInterfaceMockRecorder) LinkSetName ¶
func (mr *MockInterfaceMockRecorder) LinkSetName(arg0, arg1 interface{}) *gomock.Call
LinkSetName indicates an expected call of LinkSetName.
func (*MockInterfaceMockRecorder) LinkSetNsFd ¶
func (mr *MockInterfaceMockRecorder) LinkSetNsFd(arg0, arg1 interface{}) *gomock.Call
LinkSetNsFd indicates an expected call of LinkSetNsFd.
func (*MockInterfaceMockRecorder) LinkSetUp ¶
func (mr *MockInterfaceMockRecorder) LinkSetUp(arg0 interface{}) *gomock.Call
LinkSetUp indicates an expected call of LinkSetUp.
func (*MockInterfaceMockRecorder) NeighAdd ¶
func (mr *MockInterfaceMockRecorder) NeighAdd(arg0 interface{}) *gomock.Call
NeighAdd indicates an expected call of NeighAdd.
func (*MockInterfaceMockRecorder) NewRule ¶
func (mr *MockInterfaceMockRecorder) NewRule() *gomock.Call
NewRule indicates an expected call of NewRule.
func (*MockInterfaceMockRecorder) ParseAddr ¶
func (mr *MockInterfaceMockRecorder) ParseAddr(arg0 interface{}) *gomock.Call
ParseAddr indicates an expected call of ParseAddr.
func (*MockInterfaceMockRecorder) RouteAdd ¶
func (mr *MockInterfaceMockRecorder) RouteAdd(arg0 interface{}) *gomock.Call
RouteAdd indicates an expected call of RouteAdd.
func (*MockInterfaceMockRecorder) RouteDel ¶
func (mr *MockInterfaceMockRecorder) RouteDel(arg0 interface{}) *gomock.Call
RouteDel indicates an expected call of RouteDel.
func (*MockInterfaceMockRecorder) RouteList ¶
func (mr *MockInterfaceMockRecorder) RouteList(arg0, arg1 interface{}) *gomock.Call
RouteList indicates an expected call of RouteList.
func (*MockInterfaceMockRecorder) RouteListFiltered ¶
func (mr *MockInterfaceMockRecorder) RouteListFiltered(arg0, arg1, arg2 interface{}) *gomock.Call
RouteListFiltered indicates an expected call of RouteListFiltered.
func (*MockInterfaceMockRecorder) RouteReplace ¶
func (mr *MockInterfaceMockRecorder) RouteReplace(arg0 interface{}) *gomock.Call
RouteReplace indicates an expected call of RouteReplace.
func (*MockInterfaceMockRecorder) RuleAdd ¶
func (mr *MockInterfaceMockRecorder) RuleAdd(arg0 interface{}) *gomock.Call
RuleAdd indicates an expected call of RuleAdd.
func (*MockInterfaceMockRecorder) RuleDel ¶
func (mr *MockInterfaceMockRecorder) RuleDel(arg0 interface{}) *gomock.Call
RuleDel indicates an expected call of RuleDel.
func (*MockInterfaceMockRecorder) RuleList ¶
func (mr *MockInterfaceMockRecorder) RuleList(arg0 interface{}) *gomock.Call
RuleList indicates an expected call of RuleList.