Documentation ¶
Overview ¶
Package mock_netlinkwrapper is a generated GoMock package.
Index ¶
- type MockNetLink
- func (m *MockNetLink) AddrAdd(arg0 netlink.Link, arg1 *netlink.Addr) error
- func (m *MockNetLink) AddrList(arg0 netlink.Link, arg1 int) ([]netlink.Addr, error)
- func (m *MockNetLink) EXPECT() *MockNetLinkMockRecorder
- func (m *MockNetLink) LinkAdd(arg0 netlink.Link) error
- func (m *MockNetLink) LinkByName(arg0 string) (netlink.Link, error)
- func (m *MockNetLink) LinkDel(arg0 netlink.Link) error
- func (m *MockNetLink) LinkList() ([]netlink.Link, error)
- func (m *MockNetLink) LinkSetDown(arg0 netlink.Link) error
- func (m *MockNetLink) LinkSetMTU(arg0 netlink.Link, arg1 int) error
- func (m *MockNetLink) LinkSetNsFd(arg0 netlink.Link, arg1 int) error
- func (m *MockNetLink) LinkSetUp(arg0 netlink.Link) error
- func (m *MockNetLink) NeighAdd(arg0 *netlink.Neigh) error
- func (m *MockNetLink) NewRule() *netlink.Rule
- func (m *MockNetLink) ParseAddr(arg0 string) (*netlink.Addr, error)
- func (m *MockNetLink) RouteAdd(arg0 *netlink.Route) error
- func (m *MockNetLink) RouteDel(arg0 *netlink.Route) error
- func (m *MockNetLink) RouteList(arg0 netlink.Link, arg1 int) ([]netlink.Route, error)
- func (m *MockNetLink) RuleAdd(arg0 *netlink.Rule) error
- func (m *MockNetLink) RuleDel(arg0 *netlink.Rule) error
- func (m *MockNetLink) RuleList(arg0 int) ([]netlink.Rule, error)
- type MockNetLinkMockRecorder
- func (mr *MockNetLinkMockRecorder) AddrAdd(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockNetLinkMockRecorder) AddrList(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockNetLinkMockRecorder) LinkAdd(arg0 interface{}) *gomock.Call
- func (mr *MockNetLinkMockRecorder) LinkByName(arg0 interface{}) *gomock.Call
- func (mr *MockNetLinkMockRecorder) LinkDel(arg0 interface{}) *gomock.Call
- func (mr *MockNetLinkMockRecorder) LinkList() *gomock.Call
- func (mr *MockNetLinkMockRecorder) LinkSetDown(arg0 interface{}) *gomock.Call
- func (mr *MockNetLinkMockRecorder) LinkSetMTU(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockNetLinkMockRecorder) LinkSetNsFd(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockNetLinkMockRecorder) LinkSetUp(arg0 interface{}) *gomock.Call
- func (mr *MockNetLinkMockRecorder) NeighAdd(arg0 interface{}) *gomock.Call
- func (mr *MockNetLinkMockRecorder) NewRule() *gomock.Call
- func (mr *MockNetLinkMockRecorder) ParseAddr(arg0 interface{}) *gomock.Call
- func (mr *MockNetLinkMockRecorder) RouteAdd(arg0 interface{}) *gomock.Call
- func (mr *MockNetLinkMockRecorder) RouteDel(arg0 interface{}) *gomock.Call
- func (mr *MockNetLinkMockRecorder) RouteList(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockNetLinkMockRecorder) RuleAdd(arg0 interface{}) *gomock.Call
- func (mr *MockNetLinkMockRecorder) RuleDel(arg0 interface{}) *gomock.Call
- func (mr *MockNetLinkMockRecorder) RuleList(arg0 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockNetLink ¶
type MockNetLink struct {
// contains filtered or unexported fields
}
MockNetLink is a mock of NetLink interface
func NewMockNetLink ¶
func NewMockNetLink(ctrl *gomock.Controller) *MockNetLink
NewMockNetLink creates a new mock instance
func (*MockNetLink) EXPECT ¶
func (m *MockNetLink) EXPECT() *MockNetLinkMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockNetLink) LinkAdd ¶
func (m *MockNetLink) LinkAdd(arg0 netlink.Link) error
LinkAdd mocks base method
func (*MockNetLink) LinkByName ¶
func (m *MockNetLink) LinkByName(arg0 string) (netlink.Link, error)
LinkByName mocks base method
func (*MockNetLink) LinkDel ¶
func (m *MockNetLink) LinkDel(arg0 netlink.Link) error
LinkDel mocks base method
func (*MockNetLink) LinkList ¶
func (m *MockNetLink) LinkList() ([]netlink.Link, error)
LinkList mocks base method
func (*MockNetLink) LinkSetDown ¶
func (m *MockNetLink) LinkSetDown(arg0 netlink.Link) error
LinkSetDown mocks base method
func (*MockNetLink) LinkSetMTU ¶ added in v1.3.0
func (m *MockNetLink) LinkSetMTU(arg0 netlink.Link, arg1 int) error
LinkSetMTU mocks base method
func (*MockNetLink) LinkSetNsFd ¶
func (m *MockNetLink) LinkSetNsFd(arg0 netlink.Link, arg1 int) error
LinkSetNsFd mocks base method
func (*MockNetLink) LinkSetUp ¶
func (m *MockNetLink) LinkSetUp(arg0 netlink.Link) error
LinkSetUp mocks base method
func (*MockNetLink) NeighAdd ¶
func (m *MockNetLink) NeighAdd(arg0 *netlink.Neigh) error
NeighAdd mocks base method
func (*MockNetLink) NewRule ¶
func (m *MockNetLink) NewRule() *netlink.Rule
NewRule mocks base method
func (*MockNetLink) ParseAddr ¶
func (m *MockNetLink) ParseAddr(arg0 string) (*netlink.Addr, error)
ParseAddr mocks base method
func (*MockNetLink) RouteAdd ¶
func (m *MockNetLink) RouteAdd(arg0 *netlink.Route) error
RouteAdd mocks base method
func (*MockNetLink) RouteDel ¶
func (m *MockNetLink) RouteDel(arg0 *netlink.Route) error
RouteDel mocks base method
func (*MockNetLink) RuleAdd ¶
func (m *MockNetLink) RuleAdd(arg0 *netlink.Rule) error
RuleAdd mocks base method
type MockNetLinkMockRecorder ¶
type MockNetLinkMockRecorder struct {
// contains filtered or unexported fields
}
MockNetLinkMockRecorder is the mock recorder for MockNetLink
func (*MockNetLinkMockRecorder) AddrAdd ¶
func (mr *MockNetLinkMockRecorder) AddrAdd(arg0, arg1 interface{}) *gomock.Call
AddrAdd indicates an expected call of AddrAdd
func (*MockNetLinkMockRecorder) AddrList ¶
func (mr *MockNetLinkMockRecorder) AddrList(arg0, arg1 interface{}) *gomock.Call
AddrList indicates an expected call of AddrList
func (*MockNetLinkMockRecorder) LinkAdd ¶
func (mr *MockNetLinkMockRecorder) LinkAdd(arg0 interface{}) *gomock.Call
LinkAdd indicates an expected call of LinkAdd
func (*MockNetLinkMockRecorder) LinkByName ¶
func (mr *MockNetLinkMockRecorder) LinkByName(arg0 interface{}) *gomock.Call
LinkByName indicates an expected call of LinkByName
func (*MockNetLinkMockRecorder) LinkDel ¶
func (mr *MockNetLinkMockRecorder) LinkDel(arg0 interface{}) *gomock.Call
LinkDel indicates an expected call of LinkDel
func (*MockNetLinkMockRecorder) LinkList ¶
func (mr *MockNetLinkMockRecorder) LinkList() *gomock.Call
LinkList indicates an expected call of LinkList
func (*MockNetLinkMockRecorder) LinkSetDown ¶
func (mr *MockNetLinkMockRecorder) LinkSetDown(arg0 interface{}) *gomock.Call
LinkSetDown indicates an expected call of LinkSetDown
func (*MockNetLinkMockRecorder) LinkSetMTU ¶ added in v1.3.0
func (mr *MockNetLinkMockRecorder) LinkSetMTU(arg0, arg1 interface{}) *gomock.Call
LinkSetMTU indicates an expected call of LinkSetMTU
func (*MockNetLinkMockRecorder) LinkSetNsFd ¶
func (mr *MockNetLinkMockRecorder) LinkSetNsFd(arg0, arg1 interface{}) *gomock.Call
LinkSetNsFd indicates an expected call of LinkSetNsFd
func (*MockNetLinkMockRecorder) LinkSetUp ¶
func (mr *MockNetLinkMockRecorder) LinkSetUp(arg0 interface{}) *gomock.Call
LinkSetUp indicates an expected call of LinkSetUp
func (*MockNetLinkMockRecorder) NeighAdd ¶
func (mr *MockNetLinkMockRecorder) NeighAdd(arg0 interface{}) *gomock.Call
NeighAdd indicates an expected call of NeighAdd
func (*MockNetLinkMockRecorder) NewRule ¶
func (mr *MockNetLinkMockRecorder) NewRule() *gomock.Call
NewRule indicates an expected call of NewRule
func (*MockNetLinkMockRecorder) ParseAddr ¶
func (mr *MockNetLinkMockRecorder) ParseAddr(arg0 interface{}) *gomock.Call
ParseAddr indicates an expected call of ParseAddr
func (*MockNetLinkMockRecorder) RouteAdd ¶
func (mr *MockNetLinkMockRecorder) RouteAdd(arg0 interface{}) *gomock.Call
RouteAdd indicates an expected call of RouteAdd
func (*MockNetLinkMockRecorder) RouteDel ¶
func (mr *MockNetLinkMockRecorder) RouteDel(arg0 interface{}) *gomock.Call
RouteDel indicates an expected call of RouteDel
func (*MockNetLinkMockRecorder) RouteList ¶
func (mr *MockNetLinkMockRecorder) RouteList(arg0, arg1 interface{}) *gomock.Call
RouteList indicates an expected call of RouteList
func (*MockNetLinkMockRecorder) RuleAdd ¶
func (mr *MockNetLinkMockRecorder) RuleAdd(arg0 interface{}) *gomock.Call
RuleAdd indicates an expected call of RuleAdd
func (*MockNetLinkMockRecorder) RuleDel ¶
func (mr *MockNetLinkMockRecorder) RuleDel(arg0 interface{}) *gomock.Call
RuleDel indicates an expected call of RuleDel
func (*MockNetLinkMockRecorder) RuleList ¶ added in v1.3.0
func (mr *MockNetLinkMockRecorder) RuleList(arg0 interface{}) *gomock.Call
RuleList indicates an expected call of RuleList