Documentation ¶
Overview ¶
This file was generated by counterfeiter
This file was generated by counterfeiter
Index ¶
- type NLSocket
- type Netlinker
- func (fake *Netlinker) AddrAdd(link netlink.Link, addr *netlink.Addr) error
- func (fake *Netlinker) AddrAddArgsForCall(i int) (netlink.Link, *netlink.Addr)
- func (fake *Netlinker) AddrAddCallCount() int
- func (fake *Netlinker) AddrAddReturns(result1 error)
- func (fake *Netlinker) LinkAdd(link netlink.Link) error
- func (fake *Netlinker) LinkAddArgsForCall(i int) netlink.Link
- func (fake *Netlinker) LinkAddCallCount() int
- func (fake *Netlinker) LinkAddReturns(result1 error)
- func (fake *Netlinker) LinkByIndex(arg1 int) (netlink.Link, error)
- func (fake *Netlinker) LinkByIndexArgsForCall(i int) int
- func (fake *Netlinker) LinkByIndexCallCount() int
- func (fake *Netlinker) LinkByIndexReturns(result1 netlink.Link, result2 error)
- func (fake *Netlinker) LinkByName(name string) (netlink.Link, error)
- func (fake *Netlinker) LinkByNameArgsForCall(i int) string
- func (fake *Netlinker) LinkByNameCallCount() int
- func (fake *Netlinker) LinkByNameReturns(result1 netlink.Link, result2 error)
- func (fake *Netlinker) LinkDel(link netlink.Link) error
- func (fake *Netlinker) LinkDelArgsForCall(i int) netlink.Link
- func (fake *Netlinker) LinkDelCallCount() int
- func (fake *Netlinker) LinkDelReturns(result1 error)
- func (fake *Netlinker) LinkList() ([]netlink.Link, error)
- func (fake *Netlinker) LinkListCallCount() int
- func (fake *Netlinker) LinkListReturns(result1 []netlink.Link, result2 error)
- func (fake *Netlinker) LinkSetMaster(slave netlink.Link, master *netlink.Bridge) error
- func (fake *Netlinker) LinkSetMasterArgsForCall(i int) (netlink.Link, *netlink.Bridge)
- func (fake *Netlinker) LinkSetMasterCallCount() int
- func (fake *Netlinker) LinkSetMasterReturns(result1 error)
- func (fake *Netlinker) LinkSetNsFd(link netlink.Link, fd int) error
- func (fake *Netlinker) LinkSetNsFdArgsForCall(i int) (netlink.Link, int)
- func (fake *Netlinker) LinkSetNsFdCallCount() int
- func (fake *Netlinker) LinkSetNsFdReturns(result1 error)
- func (fake *Netlinker) LinkSetUp(link netlink.Link) error
- func (fake *Netlinker) LinkSetUpArgsForCall(i int) netlink.Link
- func (fake *Netlinker) LinkSetUpCallCount() int
- func (fake *Netlinker) LinkSetUpReturns(result1 error)
- func (fake *Netlinker) NeighDeserialize(arg1 []byte) (*netlink.Neigh, error)
- func (fake *Netlinker) NeighDeserializeArgsForCall(i int) []byte
- func (fake *Netlinker) NeighDeserializeCallCount() int
- func (fake *Netlinker) NeighDeserializeReturns(result1 *netlink.Neigh, result2 error)
- func (fake *Netlinker) RouteAdd(arg1 *netlink.Route) error
- func (fake *Netlinker) RouteAddArgsForCall(i int) *netlink.Route
- func (fake *Netlinker) RouteAddCallCount() int
- func (fake *Netlinker) RouteAddReturns(result1 error)
- func (fake *Netlinker) RouteList(arg1 netlink.Link, arg2 int) ([]netlink.Route, error)
- func (fake *Netlinker) RouteListArgsForCall(i int) (netlink.Link, int)
- func (fake *Netlinker) RouteListCallCount() int
- func (fake *Netlinker) RouteListReturns(result1 []netlink.Route, result2 error)
- func (fake *Netlinker) SetNeigh(arg1 *netlink.Neigh) error
- func (fake *Netlinker) SetNeighArgsForCall(i int) *netlink.Neigh
- func (fake *Netlinker) SetNeighCallCount() int
- func (fake *Netlinker) SetNeighReturns(result1 error)
- func (fake *Netlinker) Subscribe(arg1 int, arg2 ...uint) (nl.NLSocket, error)
- func (fake *Netlinker) SubscribeArgsForCall(i int) (int, []uint)
- func (fake *Netlinker) SubscribeCallCount() int
- func (fake *Netlinker) SubscribeReturns(result1 nl.NLSocket, result2 error)
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) CloseCallCount ¶
func (*NLSocket) ReceiveCallCount ¶
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) AddrAddArgsForCall ¶
func (*Netlinker) AddrAddCallCount ¶
func (*Netlinker) AddrAddReturns ¶
func (*Netlinker) LinkAddArgsForCall ¶
func (*Netlinker) LinkAddCallCount ¶
func (*Netlinker) LinkAddReturns ¶
func (*Netlinker) LinkByIndexArgsForCall ¶
func (*Netlinker) LinkByIndexCallCount ¶
func (*Netlinker) LinkByIndexReturns ¶
func (*Netlinker) LinkByNameArgsForCall ¶
func (*Netlinker) LinkByNameCallCount ¶
func (*Netlinker) LinkByNameReturns ¶
func (*Netlinker) LinkDelArgsForCall ¶
func (*Netlinker) LinkDelCallCount ¶
func (*Netlinker) LinkDelReturns ¶
func (*Netlinker) LinkListCallCount ¶
func (*Netlinker) LinkListReturns ¶
func (*Netlinker) LinkSetMaster ¶
func (*Netlinker) LinkSetMasterArgsForCall ¶
func (*Netlinker) LinkSetMasterCallCount ¶
func (*Netlinker) LinkSetMasterReturns ¶
func (*Netlinker) LinkSetNsFdArgsForCall ¶
func (*Netlinker) LinkSetNsFdCallCount ¶
func (*Netlinker) LinkSetNsFdReturns ¶
func (*Netlinker) LinkSetUpArgsForCall ¶
func (*Netlinker) LinkSetUpCallCount ¶
func (*Netlinker) LinkSetUpReturns ¶
func (*Netlinker) NeighDeserialize ¶
func (*Netlinker) NeighDeserializeArgsForCall ¶
func (*Netlinker) NeighDeserializeCallCount ¶
func (*Netlinker) NeighDeserializeReturns ¶
func (*Netlinker) RouteAddArgsForCall ¶
func (*Netlinker) RouteAddCallCount ¶
func (*Netlinker) RouteAddReturns ¶
func (*Netlinker) RouteListArgsForCall ¶
func (*Netlinker) RouteListCallCount ¶
func (*Netlinker) RouteListReturns ¶
func (*Netlinker) SetNeighArgsForCall ¶
func (*Netlinker) SetNeighCallCount ¶
func (*Netlinker) SetNeighReturns ¶
func (*Netlinker) SubscribeArgsForCall ¶
func (*Netlinker) SubscribeCallCount ¶
Click to show internal directories.
Click to hide internal directories.