fakes

package
v0.0.0-...-92a250d Latest Latest
Warning

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

Go to latest
Published: May 12, 2016 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

This file was generated by counterfeiter

This file was generated by counterfeiter

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NLSocket

type NLSocket struct {
	ReceiveStub func() ([]syscall.NetlinkMessage, error)

	CloseStub func()
	// contains filtered or unexported fields
}

func (*NLSocket) Close

func (fake *NLSocket) Close()

func (*NLSocket) CloseCallCount

func (fake *NLSocket) CloseCallCount() int

func (*NLSocket) Receive

func (fake *NLSocket) Receive() ([]syscall.NetlinkMessage, error)

func (*NLSocket) ReceiveCallCount

func (fake *NLSocket) ReceiveCallCount() int

func (*NLSocket) ReceiveReturns

func (fake *NLSocket) ReceiveReturns(result1 []syscall.NetlinkMessage, result2 error)

type Netlinker

type Netlinker struct {
	LinkAddStub func(link netlink.Link) error

	LinkDelStub func(link netlink.Link) error

	LinkListStub func() ([]netlink.Link, error)

	LinkSetUpStub func(link netlink.Link) error

	LinkByNameStub func(name string) (netlink.Link, error)

	LinkSetNsFdStub func(link netlink.Link, fd int) error

	AddrAddStub func(link netlink.Link, addr *netlink.Addr) error

	LinkSetMasterStub func(slave netlink.Link, master *netlink.Bridge) error

	LinkByIndexStub func(int) (netlink.Link, error)

	RouteAddStub func(*netlink.Route) error

	RouteListStub func(netlink.Link, int) ([]netlink.Route, error)

	SubscribeStub func(int, ...uint) (nl.NLSocket, error)

	NeighDeserializeStub func([]byte) (*netlink.Neigh, error)

	SetNeighStub func(*netlink.Neigh) error
	// contains filtered or unexported fields
}

func (*Netlinker) AddrAdd

func (fake *Netlinker) AddrAdd(link netlink.Link, addr *netlink.Addr) error

func (*Netlinker) AddrAddArgsForCall

func (fake *Netlinker) AddrAddArgsForCall(i int) (netlink.Link, *netlink.Addr)

func (*Netlinker) AddrAddCallCount

func (fake *Netlinker) AddrAddCallCount() int

func (*Netlinker) AddrAddReturns

func (fake *Netlinker) AddrAddReturns(result1 error)

func (*Netlinker) LinkAdd

func (fake *Netlinker) LinkAdd(link netlink.Link) error

func (*Netlinker) LinkAddArgsForCall

func (fake *Netlinker) LinkAddArgsForCall(i int) netlink.Link

func (*Netlinker) LinkAddCallCount

func (fake *Netlinker) LinkAddCallCount() int

func (*Netlinker) LinkAddReturns

func (fake *Netlinker) LinkAddReturns(result1 error)

func (*Netlinker) LinkByIndex

func (fake *Netlinker) LinkByIndex(arg1 int) (netlink.Link, error)

func (*Netlinker) LinkByIndexArgsForCall

func (fake *Netlinker) LinkByIndexArgsForCall(i int) int

func (*Netlinker) LinkByIndexCallCount

func (fake *Netlinker) LinkByIndexCallCount() int

func (*Netlinker) LinkByIndexReturns

func (fake *Netlinker) LinkByIndexReturns(result1 netlink.Link, result2 error)

func (*Netlinker) LinkByName

func (fake *Netlinker) LinkByName(name string) (netlink.Link, error)

func (*Netlinker) LinkByNameArgsForCall

func (fake *Netlinker) LinkByNameArgsForCall(i int) string

func (*Netlinker) LinkByNameCallCount

func (fake *Netlinker) LinkByNameCallCount() int

func (*Netlinker) LinkByNameReturns

func (fake *Netlinker) LinkByNameReturns(result1 netlink.Link, result2 error)

func (*Netlinker) LinkDel

func (fake *Netlinker) LinkDel(link netlink.Link) error

func (*Netlinker) LinkDelArgsForCall

func (fake *Netlinker) LinkDelArgsForCall(i int) netlink.Link

func (*Netlinker) LinkDelCallCount

func (fake *Netlinker) LinkDelCallCount() int

func (*Netlinker) LinkDelReturns

func (fake *Netlinker) LinkDelReturns(result1 error)
func (fake *Netlinker) LinkList() ([]netlink.Link, error)

func (*Netlinker) LinkListCallCount

func (fake *Netlinker) LinkListCallCount() int

func (*Netlinker) LinkListReturns

func (fake *Netlinker) LinkListReturns(result1 []netlink.Link, result2 error)

func (*Netlinker) LinkSetMaster

func (fake *Netlinker) LinkSetMaster(slave netlink.Link, master *netlink.Bridge) error

func (*Netlinker) LinkSetMasterArgsForCall

func (fake *Netlinker) LinkSetMasterArgsForCall(i int) (netlink.Link, *netlink.Bridge)

func (*Netlinker) LinkSetMasterCallCount

func (fake *Netlinker) LinkSetMasterCallCount() int

func (*Netlinker) LinkSetMasterReturns

func (fake *Netlinker) LinkSetMasterReturns(result1 error)

func (*Netlinker) LinkSetNsFd

func (fake *Netlinker) LinkSetNsFd(link netlink.Link, fd int) error

func (*Netlinker) LinkSetNsFdArgsForCall

func (fake *Netlinker) LinkSetNsFdArgsForCall(i int) (netlink.Link, int)

func (*Netlinker) LinkSetNsFdCallCount

func (fake *Netlinker) LinkSetNsFdCallCount() int

func (*Netlinker) LinkSetNsFdReturns

func (fake *Netlinker) LinkSetNsFdReturns(result1 error)

func (*Netlinker) LinkSetUp

func (fake *Netlinker) LinkSetUp(link netlink.Link) error

func (*Netlinker) LinkSetUpArgsForCall

func (fake *Netlinker) LinkSetUpArgsForCall(i int) netlink.Link

func (*Netlinker) LinkSetUpCallCount

func (fake *Netlinker) LinkSetUpCallCount() int

func (*Netlinker) LinkSetUpReturns

func (fake *Netlinker) LinkSetUpReturns(result1 error)

func (*Netlinker) NeighDeserialize

func (fake *Netlinker) NeighDeserialize(arg1 []byte) (*netlink.Neigh, error)

func (*Netlinker) NeighDeserializeArgsForCall

func (fake *Netlinker) NeighDeserializeArgsForCall(i int) []byte

func (*Netlinker) NeighDeserializeCallCount

func (fake *Netlinker) NeighDeserializeCallCount() int

func (*Netlinker) NeighDeserializeReturns

func (fake *Netlinker) NeighDeserializeReturns(result1 *netlink.Neigh, result2 error)

func (*Netlinker) RouteAdd

func (fake *Netlinker) RouteAdd(arg1 *netlink.Route) error

func (*Netlinker) RouteAddArgsForCall

func (fake *Netlinker) RouteAddArgsForCall(i int) *netlink.Route

func (*Netlinker) RouteAddCallCount

func (fake *Netlinker) RouteAddCallCount() int

func (*Netlinker) RouteAddReturns

func (fake *Netlinker) RouteAddReturns(result1 error)

func (*Netlinker) RouteList

func (fake *Netlinker) RouteList(arg1 netlink.Link, arg2 int) ([]netlink.Route, error)

func (*Netlinker) RouteListArgsForCall

func (fake *Netlinker) RouteListArgsForCall(i int) (netlink.Link, int)

func (*Netlinker) RouteListCallCount

func (fake *Netlinker) RouteListCallCount() int

func (*Netlinker) RouteListReturns

func (fake *Netlinker) RouteListReturns(result1 []netlink.Route, result2 error)

func (*Netlinker) SetNeigh

func (fake *Netlinker) SetNeigh(arg1 *netlink.Neigh) error

func (*Netlinker) SetNeighArgsForCall

func (fake *Netlinker) SetNeighArgsForCall(i int) *netlink.Neigh

func (*Netlinker) SetNeighCallCount

func (fake *Netlinker) SetNeighCallCount() int

func (*Netlinker) SetNeighReturns

func (fake *Netlinker) SetNeighReturns(result1 error)

func (*Netlinker) Subscribe

func (fake *Netlinker) Subscribe(arg1 int, arg2 ...uint) (nl.NLSocket, error)

func (*Netlinker) SubscribeArgsForCall

func (fake *Netlinker) SubscribeArgsForCall(i int) (int, []uint)

func (*Netlinker) SubscribeCallCount

func (fake *Netlinker) SubscribeCallCount() int

func (*Netlinker) SubscribeReturns

func (fake *Netlinker) SubscribeReturns(result1 nl.NLSocket, result2 error)

Jump to

Keyboard shortcuts

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