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: 4 Imported by: 0

Documentation

Overview

Code generated by counterfeiter. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FakeToken

func FakeToken(user, key string) string

FakeToken generates a fake JWT token

Types

type FakePrivateNetworks

type FakePrivateNetworks struct {
	GetNetworkByNameStub func(string) (*models.HostedIPFSPrivateNetwork, error)

	SaveNetworkStub func(*models.HostedIPFSPrivateNetwork) error

	UpdateNetworkByNameStub func(string, map[string]interface{}) error
	// contains filtered or unexported fields
}

func (*FakePrivateNetworks) GetNetworkByName

func (fake *FakePrivateNetworks) GetNetworkByName(arg1 string) (*models.HostedIPFSPrivateNetwork, error)

func (*FakePrivateNetworks) GetNetworkByNameArgsForCall

func (fake *FakePrivateNetworks) GetNetworkByNameArgsForCall(i int) string

func (*FakePrivateNetworks) GetNetworkByNameCallCount

func (fake *FakePrivateNetworks) GetNetworkByNameCallCount() int

func (*FakePrivateNetworks) GetNetworkByNameCalls

func (fake *FakePrivateNetworks) GetNetworkByNameCalls(stub func(string) (*models.HostedIPFSPrivateNetwork, error))

func (*FakePrivateNetworks) GetNetworkByNameReturns

func (fake *FakePrivateNetworks) GetNetworkByNameReturns(result1 *models.HostedIPFSPrivateNetwork, result2 error)

func (*FakePrivateNetworks) GetNetworkByNameReturnsOnCall

func (fake *FakePrivateNetworks) GetNetworkByNameReturnsOnCall(i int, result1 *models.HostedIPFSPrivateNetwork, result2 error)

func (*FakePrivateNetworks) Invocations

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

func (*FakePrivateNetworks) SaveNetwork

func (fake *FakePrivateNetworks) SaveNetwork(arg1 *models.HostedIPFSPrivateNetwork) error

func (*FakePrivateNetworks) SaveNetworkArgsForCall

func (fake *FakePrivateNetworks) SaveNetworkArgsForCall(i int) *models.HostedIPFSPrivateNetwork

func (*FakePrivateNetworks) SaveNetworkCallCount

func (fake *FakePrivateNetworks) SaveNetworkCallCount() int

func (*FakePrivateNetworks) SaveNetworkCalls

func (fake *FakePrivateNetworks) SaveNetworkCalls(stub func(*models.HostedIPFSPrivateNetwork) error)

func (*FakePrivateNetworks) SaveNetworkReturns

func (fake *FakePrivateNetworks) SaveNetworkReturns(result1 error)

func (*FakePrivateNetworks) SaveNetworkReturnsOnCall

func (fake *FakePrivateNetworks) SaveNetworkReturnsOnCall(i int, result1 error)

func (*FakePrivateNetworks) UpdateNetworkByName

func (fake *FakePrivateNetworks) UpdateNetworkByName(arg1 string, arg2 map[string]interface{}) error

func (*FakePrivateNetworks) UpdateNetworkByNameArgsForCall

func (fake *FakePrivateNetworks) UpdateNetworkByNameArgsForCall(i int) (string, map[string]interface{})

func (*FakePrivateNetworks) UpdateNetworkByNameCallCount

func (fake *FakePrivateNetworks) UpdateNetworkByNameCallCount() int

func (*FakePrivateNetworks) UpdateNetworkByNameCalls

func (fake *FakePrivateNetworks) UpdateNetworkByNameCalls(stub func(string, map[string]interface{}) error)

func (*FakePrivateNetworks) UpdateNetworkByNameReturns

func (fake *FakePrivateNetworks) UpdateNetworkByNameReturns(result1 error)

func (*FakePrivateNetworks) UpdateNetworkByNameReturnsOnCall

func (fake *FakePrivateNetworks) UpdateNetworkByNameReturnsOnCall(i int, result1 error)

Jump to

Keyboard shortcuts

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