mock

package
Version: v0.4.0 Latest Latest
Warning

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

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

Documentation

Overview

Code generated by counterfeiter. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeNodeClient

type FakeNodeClient struct {
	CreateNodeStub func(context.Context, *ipfs.NodeInfo, ipfs.NodeOpts) error

	NodeStatsStub func(context.Context, *ipfs.NodeInfo) (ipfs.NodeStats, error)

	NodesStub func(context.Context) ([]*ipfs.NodeInfo, error)

	RemoveNodeStub func(context.Context, string) error

	StopNodeStub func(context.Context, *ipfs.NodeInfo) error

	UpdateNodeStub func(context.Context, *ipfs.NodeInfo) error

	WatchStub func(context.Context) (<-chan ipfs.Event, <-chan error)
	// contains filtered or unexported fields
}

func (*FakeNodeClient) CreateNode

func (fake *FakeNodeClient) CreateNode(arg1 context.Context, arg2 *ipfs.NodeInfo, arg3 ipfs.NodeOpts) error

func (*FakeNodeClient) CreateNodeArgsForCall

func (fake *FakeNodeClient) CreateNodeArgsForCall(i int) (context.Context, *ipfs.NodeInfo, ipfs.NodeOpts)

func (*FakeNodeClient) CreateNodeCallCount

func (fake *FakeNodeClient) CreateNodeCallCount() int

func (*FakeNodeClient) CreateNodeCalls

func (fake *FakeNodeClient) CreateNodeCalls(stub func(context.Context, *ipfs.NodeInfo, ipfs.NodeOpts) error)

func (*FakeNodeClient) CreateNodeReturns

func (fake *FakeNodeClient) CreateNodeReturns(result1 error)

func (*FakeNodeClient) CreateNodeReturnsOnCall

func (fake *FakeNodeClient) CreateNodeReturnsOnCall(i int, result1 error)

func (*FakeNodeClient) Invocations

func (fake *FakeNodeClient) Invocations() map[string][][]interface{}

func (*FakeNodeClient) NodeStats

func (fake *FakeNodeClient) NodeStats(arg1 context.Context, arg2 *ipfs.NodeInfo) (ipfs.NodeStats, error)

func (*FakeNodeClient) NodeStatsArgsForCall

func (fake *FakeNodeClient) NodeStatsArgsForCall(i int) (context.Context, *ipfs.NodeInfo)

func (*FakeNodeClient) NodeStatsCallCount

func (fake *FakeNodeClient) NodeStatsCallCount() int

func (*FakeNodeClient) NodeStatsCalls

func (fake *FakeNodeClient) NodeStatsCalls(stub func(context.Context, *ipfs.NodeInfo) (ipfs.NodeStats, error))

func (*FakeNodeClient) NodeStatsReturns

func (fake *FakeNodeClient) NodeStatsReturns(result1 ipfs.NodeStats, result2 error)

func (*FakeNodeClient) NodeStatsReturnsOnCall

func (fake *FakeNodeClient) NodeStatsReturnsOnCall(i int, result1 ipfs.NodeStats, result2 error)

func (*FakeNodeClient) Nodes

func (fake *FakeNodeClient) Nodes(arg1 context.Context) ([]*ipfs.NodeInfo, error)

func (*FakeNodeClient) NodesArgsForCall

func (fake *FakeNodeClient) NodesArgsForCall(i int) context.Context

func (*FakeNodeClient) NodesCallCount

func (fake *FakeNodeClient) NodesCallCount() int

func (*FakeNodeClient) NodesCalls

func (fake *FakeNodeClient) NodesCalls(stub func(context.Context) ([]*ipfs.NodeInfo, error))

func (*FakeNodeClient) NodesReturns

func (fake *FakeNodeClient) NodesReturns(result1 []*ipfs.NodeInfo, result2 error)

func (*FakeNodeClient) NodesReturnsOnCall

func (fake *FakeNodeClient) NodesReturnsOnCall(i int, result1 []*ipfs.NodeInfo, result2 error)

func (*FakeNodeClient) RemoveNode

func (fake *FakeNodeClient) RemoveNode(arg1 context.Context, arg2 string) error

func (*FakeNodeClient) RemoveNodeArgsForCall

func (fake *FakeNodeClient) RemoveNodeArgsForCall(i int) (context.Context, string)

func (*FakeNodeClient) RemoveNodeCallCount

func (fake *FakeNodeClient) RemoveNodeCallCount() int

func (*FakeNodeClient) RemoveNodeCalls

func (fake *FakeNodeClient) RemoveNodeCalls(stub func(context.Context, string) error)

func (*FakeNodeClient) RemoveNodeReturns

func (fake *FakeNodeClient) RemoveNodeReturns(result1 error)

func (*FakeNodeClient) RemoveNodeReturnsOnCall

func (fake *FakeNodeClient) RemoveNodeReturnsOnCall(i int, result1 error)

func (*FakeNodeClient) StopNode

func (fake *FakeNodeClient) StopNode(arg1 context.Context, arg2 *ipfs.NodeInfo) error

func (*FakeNodeClient) StopNodeArgsForCall

func (fake *FakeNodeClient) StopNodeArgsForCall(i int) (context.Context, *ipfs.NodeInfo)

func (*FakeNodeClient) StopNodeCallCount

func (fake *FakeNodeClient) StopNodeCallCount() int

func (*FakeNodeClient) StopNodeCalls

func (fake *FakeNodeClient) StopNodeCalls(stub func(context.Context, *ipfs.NodeInfo) error)

func (*FakeNodeClient) StopNodeReturns

func (fake *FakeNodeClient) StopNodeReturns(result1 error)

func (*FakeNodeClient) StopNodeReturnsOnCall

func (fake *FakeNodeClient) StopNodeReturnsOnCall(i int, result1 error)

func (*FakeNodeClient) UpdateNode

func (fake *FakeNodeClient) UpdateNode(arg1 context.Context, arg2 *ipfs.NodeInfo) error

func (*FakeNodeClient) UpdateNodeArgsForCall

func (fake *FakeNodeClient) UpdateNodeArgsForCall(i int) (context.Context, *ipfs.NodeInfo)

func (*FakeNodeClient) UpdateNodeCallCount

func (fake *FakeNodeClient) UpdateNodeCallCount() int

func (*FakeNodeClient) UpdateNodeCalls

func (fake *FakeNodeClient) UpdateNodeCalls(stub func(context.Context, *ipfs.NodeInfo) error)

func (*FakeNodeClient) UpdateNodeReturns

func (fake *FakeNodeClient) UpdateNodeReturns(result1 error)

func (*FakeNodeClient) UpdateNodeReturnsOnCall

func (fake *FakeNodeClient) UpdateNodeReturnsOnCall(i int, result1 error)

func (*FakeNodeClient) Watch

func (fake *FakeNodeClient) Watch(arg1 context.Context) (<-chan ipfs.Event, <-chan error)

func (*FakeNodeClient) WatchArgsForCall

func (fake *FakeNodeClient) WatchArgsForCall(i int) context.Context

func (*FakeNodeClient) WatchCallCount

func (fake *FakeNodeClient) WatchCallCount() int

func (*FakeNodeClient) WatchCalls

func (fake *FakeNodeClient) WatchCalls(stub func(context.Context) (<-chan ipfs.Event, <-chan error))

func (*FakeNodeClient) WatchReturns

func (fake *FakeNodeClient) WatchReturns(result1 <-chan ipfs.Event, result2 <-chan error)

func (*FakeNodeClient) WatchReturnsOnCall

func (fake *FakeNodeClient) WatchReturnsOnCall(i int, result1 <-chan ipfs.Event, result2 <-chan error)

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL