mock_netlinkwrapper

package
v0.0.0-...-2a71758 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 3, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockNetLink struct {
	// contains filtered or unexported fields
}

Mock of NetLink interface

func NewMockNetLink(ctrl *gomock.Controller) *MockNetLink

func (*MockNetLink) AddrAdd

func (_m *MockNetLink) AddrAdd(_param0 netlink.Link, _param1 *netlink.Addr) error

func (*MockNetLink) AddrList

func (_m *MockNetLink) AddrList(_param0 netlink.Link, _param1 int) ([]netlink.Addr, error)

func (*MockNetLink) EXPECT

func (_m *MockNetLink) EXPECT() *_MockNetLinkRecorder

func (*MockNetLink) LinkAdd

func (_m *MockNetLink) LinkAdd(_param0 netlink.Link) error

func (*MockNetLink) LinkByName

func (_m *MockNetLink) LinkByName(_param0 string) (netlink.Link, error)
func (_m *MockNetLink) LinkList() ([]netlink.Link, error)

func (*MockNetLink) LinkSetDown

func (_m *MockNetLink) LinkSetDown(_param0 netlink.Link) error

func (*MockNetLink) LinkSetMaster

func (_m *MockNetLink) LinkSetMaster(_param0 netlink.Link, _param1 *netlink.Bridge) error

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

func (*MockNetLink) LinkSetUp

func (_m *MockNetLink) LinkSetUp(_param0 netlink.Link) error

func (*MockNetLink) ParseAddr

func (_m *MockNetLink) ParseAddr(_param0 string) (*netlink.Addr, error)

func (*MockNetLink) RouteAdd

func (_m *MockNetLink) RouteAdd(_param0 *netlink.Route) error

func (*MockNetLink) RouteDel

func (_m *MockNetLink) RouteDel(_param0 *netlink.Route) error

func (*MockNetLink) RouteList

func (_m *MockNetLink) RouteList(_param0 netlink.Link, _param1 int) ([]netlink.Route, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL