Documentation ¶
Index ¶
- type MockNetLink
- func (_m *MockNetLink) AddrAdd(_param0 netlink.Link, _param1 *netlink.Addr) error
- func (_m *MockNetLink) AddrList(_param0 netlink.Link, _param1 int) ([]netlink.Addr, error)
- func (_m *MockNetLink) EXPECT() *_MockNetLinkRecorder
- func (_m *MockNetLink) LinkAdd(_param0 netlink.Link) error
- func (_m *MockNetLink) LinkByName(_param0 string) (netlink.Link, error)
- func (_m *MockNetLink) LinkList() ([]netlink.Link, error)
- func (_m *MockNetLink) LinkSetDown(_param0 netlink.Link) error
- func (_m *MockNetLink) LinkSetMaster(_param0 netlink.Link, _param1 *netlink.Bridge) error
- func (_m *MockNetLink) LinkSetName(_param0 netlink.Link, _param1 string) error
- func (_m *MockNetLink) LinkSetNsFd(_param0 netlink.Link, _param1 int) error
- func (_m *MockNetLink) LinkSetUp(_param0 netlink.Link) error
- func (_m *MockNetLink) ParseAddr(_param0 string) (*netlink.Addr, error)
- func (_m *MockNetLink) RouteAdd(_param0 *netlink.Route) error
- func (_m *MockNetLink) RouteDel(_param0 *netlink.Route) error
- func (_m *MockNetLink) RouteList(_param0 netlink.Link, _param1 int) ([]netlink.Route, error)
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
}
Mock of NetLink interface
func NewMockNetLink ¶
func NewMockNetLink(ctrl *gomock.Controller) *MockNetLink
func (*MockNetLink) EXPECT ¶
func (_m *MockNetLink) EXPECT() *_MockNetLinkRecorder
func (*MockNetLink) LinkByName ¶
func (_m *MockNetLink) LinkByName(_param0 string) (netlink.Link, error)
func (*MockNetLink) LinkSetDown ¶
func (_m *MockNetLink) LinkSetDown(_param0 netlink.Link) error
func (*MockNetLink) LinkSetMaster ¶
func (*MockNetLink) LinkSetName ¶
func (_m *MockNetLink) LinkSetName(_param0 netlink.Link, _param1 string) error
func (*MockNetLink) LinkSetNsFd ¶
func (_m *MockNetLink) LinkSetNsFd(_param0 netlink.Link, _param1 int) error
Click to show internal directories.
Click to hide internal directories.