nlmock

package
v0.0.0-...-f852ded Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type I

type I struct {
	mock.Mock
}

I is an autogenerated mock type for the I type

func (*I) AddVeth

func (_m *I) AddVeth(name string, alias string, peer string, mtu int) error

AddVeth provides a mock function with given fields: name, alias, peer, mtu

func (*I) AddrAdd

func (_m *I) AddrAdd(link nl.Link, ip net.IPNet) error

AddrAdd provides a mock function with given fields: link, ip

func (*I) CloseNsHandle

func (_m *I) CloseNsHandle(ns netns.NsHandle) error

CloseNsHandle provides a mock function with given fields: ns

func (*I) GetNetns

func (_m *I) GetNetns() (netns.NsHandle, error)

GetNetns provides a mock function with given fields:

func (*I) GetNetnsFromPath

func (_m *I) GetNetnsFromPath(_a0 string) (netns.NsHandle, error)

GetNetnsFromPath provides a mock function with given fields: _a0

func (*I) LinkByAlias

func (_m *I) LinkByAlias(alias string) (nl.Link, error)

LinkByAlias provides a mock function with given fields: alias

func (*I) LinkByIndex

func (_m *I) LinkByIndex(index int) (nl.Link, error)

LinkByIndex provides a mock function with given fields: index

func (*I) LinkByName

func (_m *I) LinkByName(name string) (nl.Link, error)

LinkByName provides a mock function with given fields: name

func (*I) LinkDel

func (_m *I) LinkDel(link nl.Link) error

LinkDel provides a mock function with given fields: link

func (*I) LinkSetHardwareAddr

func (_m *I) LinkSetHardwareAddr(link nl.Link, hwaddr net.HardwareAddr) error

LinkSetHardwareAddr provides a mock function with given fields: link, hwaddr

func (*I) LinkSetName

func (_m *I) LinkSetName(link nl.Link, name string) error

LinkSetName provides a mock function with given fields: link, name

func (*I) LinkSetNs

func (_m *I) LinkSetNs(link nl.Link, nsh netns.NsHandle) error

LinkSetNs provides a mock function with given fields: link, nsh

func (*I) LinkSetUp

func (_m *I) LinkSetUp(link nl.Link) error

LinkSetUp provides a mock function with given fields: link

func (*I) RouteAdd

func (_m *I) RouteAdd(r nl.Route) error

RouteAdd provides a mock function with given fields: r

func (*I) RouteList

func (_m *I) RouteList(family int) ([]nl.Route, error)

RouteList provides a mock function with given fields: family

func (*I) SetNetns

func (_m *I) SetNetns(ns netns.NsHandle) error

SetNetns provides a mock function with given fields: ns

Jump to

Keyboard shortcuts

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