mocks

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

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 BCCSP

type BCCSP struct {
	KeyGenStub func(opts bccsp.KeyGenOpts) (k bccsp.Key, err error)

	KeyDerivStub func(k bccsp.Key, opts bccsp.KeyDerivOpts) (dk bccsp.Key, err error)

	KeyImportStub func(raw interface{}, opts bccsp.KeyImportOpts) (k bccsp.Key, err error)

	GetKeyStub func(ski []byte) (k bccsp.Key, err error)

	HashStub func(msg []byte, opts bccsp.HashOpts) (hash []byte, err error)

	GetHashStub func(opts bccsp.HashOpts) (h hash.Hash, err error)

	SignStub func(k bccsp.Key, digest []byte, opts bccsp.SignerOpts) (signature []byte, err error)

	VerifyStub func(k bccsp.Key, signature, digest []byte, opts bccsp.SignerOpts) (valid bool, err error)

	EncryptStub func(k bccsp.Key, plaintext []byte, opts bccsp.EncrypterOpts) (ciphertext []byte, err error)

	DecryptStub func(k bccsp.Key, ciphertext []byte, opts bccsp.DecrypterOpts) (plaintext []byte, err error)
	// contains filtered or unexported fields
}

func (*BCCSP) Decrypt

func (fake *BCCSP) Decrypt(k bccsp.Key, ciphertext []byte, opts bccsp.DecrypterOpts) (plaintext []byte, err error)

func (*BCCSP) DecryptArgsForCall

func (fake *BCCSP) DecryptArgsForCall(i int) (bccsp.Key, []byte, bccsp.DecrypterOpts)

func (*BCCSP) DecryptCallCount

func (fake *BCCSP) DecryptCallCount() int

func (*BCCSP) DecryptReturns

func (fake *BCCSP) DecryptReturns(result1 []byte, result2 error)

func (*BCCSP) DecryptReturnsOnCall

func (fake *BCCSP) DecryptReturnsOnCall(i int, result1 []byte, result2 error)

func (*BCCSP) Encrypt

func (fake *BCCSP) Encrypt(k bccsp.Key, plaintext []byte, opts bccsp.EncrypterOpts) (ciphertext []byte, err error)

func (*BCCSP) EncryptArgsForCall

func (fake *BCCSP) EncryptArgsForCall(i int) (bccsp.Key, []byte, bccsp.EncrypterOpts)

func (*BCCSP) EncryptCallCount

func (fake *BCCSP) EncryptCallCount() int

func (*BCCSP) EncryptReturns

func (fake *BCCSP) EncryptReturns(result1 []byte, result2 error)

func (*BCCSP) EncryptReturnsOnCall

func (fake *BCCSP) EncryptReturnsOnCall(i int, result1 []byte, result2 error)

func (*BCCSP) GetHash

func (fake *BCCSP) GetHash(opts bccsp.HashOpts) (h hash.Hash, err error)

func (*BCCSP) GetHashArgsForCall

func (fake *BCCSP) GetHashArgsForCall(i int) bccsp.HashOpts

func (*BCCSP) GetHashCallCount

func (fake *BCCSP) GetHashCallCount() int

func (*BCCSP) GetHashReturns

func (fake *BCCSP) GetHashReturns(result1 hash.Hash, result2 error)

func (*BCCSP) GetHashReturnsOnCall

func (fake *BCCSP) GetHashReturnsOnCall(i int, result1 hash.Hash, result2 error)

func (*BCCSP) GetKey

func (fake *BCCSP) GetKey(ski []byte) (k bccsp.Key, err error)

func (*BCCSP) GetKeyArgsForCall

func (fake *BCCSP) GetKeyArgsForCall(i int) []byte

func (*BCCSP) GetKeyCallCount

func (fake *BCCSP) GetKeyCallCount() int

func (*BCCSP) GetKeyReturns

func (fake *BCCSP) GetKeyReturns(result1 bccsp.Key, result2 error)

func (*BCCSP) GetKeyReturnsOnCall

func (fake *BCCSP) GetKeyReturnsOnCall(i int, result1 bccsp.Key, result2 error)

func (*BCCSP) Hash

func (fake *BCCSP) Hash(msg []byte, opts bccsp.HashOpts) (hash []byte, err error)

func (*BCCSP) HashArgsForCall

func (fake *BCCSP) HashArgsForCall(i int) ([]byte, bccsp.HashOpts)

func (*BCCSP) HashCallCount

func (fake *BCCSP) HashCallCount() int

func (*BCCSP) HashReturns

func (fake *BCCSP) HashReturns(result1 []byte, result2 error)

func (*BCCSP) HashReturnsOnCall

func (fake *BCCSP) HashReturnsOnCall(i int, result1 []byte, result2 error)

func (*BCCSP) Invocations

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

func (*BCCSP) KeyDeriv

func (fake *BCCSP) KeyDeriv(k bccsp.Key, opts bccsp.KeyDerivOpts) (dk bccsp.Key, err error)

func (*BCCSP) KeyDerivArgsForCall

func (fake *BCCSP) KeyDerivArgsForCall(i int) (bccsp.Key, bccsp.KeyDerivOpts)

func (*BCCSP) KeyDerivCallCount

func (fake *BCCSP) KeyDerivCallCount() int

func (*BCCSP) KeyDerivReturns

func (fake *BCCSP) KeyDerivReturns(result1 bccsp.Key, result2 error)

func (*BCCSP) KeyDerivReturnsOnCall

func (fake *BCCSP) KeyDerivReturnsOnCall(i int, result1 bccsp.Key, result2 error)

func (*BCCSP) KeyGen

func (fake *BCCSP) KeyGen(opts bccsp.KeyGenOpts) (k bccsp.Key, err error)

func (*BCCSP) KeyGenArgsForCall

func (fake *BCCSP) KeyGenArgsForCall(i int) bccsp.KeyGenOpts

func (*BCCSP) KeyGenCallCount

func (fake *BCCSP) KeyGenCallCount() int

func (*BCCSP) KeyGenReturns

func (fake *BCCSP) KeyGenReturns(result1 bccsp.Key, result2 error)

func (*BCCSP) KeyGenReturnsOnCall

func (fake *BCCSP) KeyGenReturnsOnCall(i int, result1 bccsp.Key, result2 error)

func (*BCCSP) KeyImport

func (fake *BCCSP) KeyImport(raw interface{}, opts bccsp.KeyImportOpts) (k bccsp.Key, err error)

func (*BCCSP) KeyImportArgsForCall

func (fake *BCCSP) KeyImportArgsForCall(i int) (interface{}, bccsp.KeyImportOpts)

func (*BCCSP) KeyImportCallCount

func (fake *BCCSP) KeyImportCallCount() int

func (*BCCSP) KeyImportReturns

func (fake *BCCSP) KeyImportReturns(result1 bccsp.Key, result2 error)

func (*BCCSP) KeyImportReturnsOnCall

func (fake *BCCSP) KeyImportReturnsOnCall(i int, result1 bccsp.Key, result2 error)

func (*BCCSP) Sign

func (fake *BCCSP) Sign(k bccsp.Key, digest []byte, opts bccsp.SignerOpts) (signature []byte, err error)

func (*BCCSP) SignArgsForCall

func (fake *BCCSP) SignArgsForCall(i int) (bccsp.Key, []byte, bccsp.SignerOpts)

func (*BCCSP) SignCallCount

func (fake *BCCSP) SignCallCount() int

func (*BCCSP) SignReturns

func (fake *BCCSP) SignReturns(result1 []byte, result2 error)

func (*BCCSP) SignReturnsOnCall

func (fake *BCCSP) SignReturnsOnCall(i int, result1 []byte, result2 error)

func (*BCCSP) Verify

func (fake *BCCSP) Verify(k bccsp.Key, signature []byte, digest []byte, opts bccsp.SignerOpts) (valid bool, err error)

func (*BCCSP) VerifyArgsForCall

func (fake *BCCSP) VerifyArgsForCall(i int) (bccsp.Key, []byte, []byte, bccsp.SignerOpts)

func (*BCCSP) VerifyCallCount

func (fake *BCCSP) VerifyCallCount() int

func (*BCCSP) VerifyReturns

func (fake *BCCSP) VerifyReturns(result1 bool, result2 error)

func (*BCCSP) VerifyReturnsOnCall

func (fake *BCCSP) VerifyReturnsOnCall(i int, result1 bool, result2 error)

type BCCSPKey

type BCCSPKey struct {
	BytesStub func() ([]byte, error)

	SKIStub func() []byte

	SymmetricStub func() bool

	PrivateStub func() bool

	PublicKeyStub func() (bccsp.Key, error)
	// contains filtered or unexported fields
}

func (*BCCSPKey) Bytes

func (fake *BCCSPKey) Bytes() ([]byte, error)

func (*BCCSPKey) BytesCallCount

func (fake *BCCSPKey) BytesCallCount() int

func (*BCCSPKey) BytesReturns

func (fake *BCCSPKey) BytesReturns(result1 []byte, result2 error)

func (*BCCSPKey) BytesReturnsOnCall

func (fake *BCCSPKey) BytesReturnsOnCall(i int, result1 []byte, result2 error)

func (*BCCSPKey) Invocations

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

func (*BCCSPKey) Private

func (fake *BCCSPKey) Private() bool

func (*BCCSPKey) PrivateCallCount

func (fake *BCCSPKey) PrivateCallCount() int

func (*BCCSPKey) PrivateReturns

func (fake *BCCSPKey) PrivateReturns(result1 bool)

func (*BCCSPKey) PrivateReturnsOnCall

func (fake *BCCSPKey) PrivateReturnsOnCall(i int, result1 bool)

func (*BCCSPKey) PublicKey

func (fake *BCCSPKey) PublicKey() (bccsp.Key, error)

func (*BCCSPKey) PublicKeyCallCount

func (fake *BCCSPKey) PublicKeyCallCount() int

func (*BCCSPKey) PublicKeyReturns

func (fake *BCCSPKey) PublicKeyReturns(result1 bccsp.Key, result2 error)

func (*BCCSPKey) PublicKeyReturnsOnCall

func (fake *BCCSPKey) PublicKeyReturnsOnCall(i int, result1 bccsp.Key, result2 error)

func (*BCCSPKey) SKI

func (fake *BCCSPKey) SKI() []byte

func (*BCCSPKey) SKICallCount

func (fake *BCCSPKey) SKICallCount() int

func (*BCCSPKey) SKIReturns

func (fake *BCCSPKey) SKIReturns(result1 []byte)

func (*BCCSPKey) SKIReturnsOnCall

func (fake *BCCSPKey) SKIReturnsOnCall(i int, result1 []byte)

func (*BCCSPKey) Symmetric

func (fake *BCCSPKey) Symmetric() bool

func (*BCCSPKey) SymmetricCallCount

func (fake *BCCSPKey) SymmetricCallCount() int

func (*BCCSPKey) SymmetricReturns

func (fake *BCCSPKey) SymmetricReturns(result1 bool)

func (*BCCSPKey) SymmetricReturnsOnCall

func (fake *BCCSPKey) SymmetricReturnsOnCall(i int, result1 bool)

type ChannelClient

type ChannelClient struct {
	InvokeHandlerStub func(handler invoke.Handler, request channel.Request, options ...channel.RequestOption) (channel.Response, error)
	// contains filtered or unexported fields
}

func (*ChannelClient) Invocations

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

func (*ChannelClient) InvokeHandler added in v0.1.4

func (fake *ChannelClient) InvokeHandler(handler invoke.Handler, request channel.Request, options ...channel.RequestOption) (channel.Response, error)

func (*ChannelClient) InvokeHandlerArgsForCall added in v0.1.4

func (fake *ChannelClient) InvokeHandlerArgsForCall(i int) (invoke.Handler, channel.Request, []channel.RequestOption)

func (*ChannelClient) InvokeHandlerCallCount added in v0.1.4

func (fake *ChannelClient) InvokeHandlerCallCount() int

func (*ChannelClient) InvokeHandlerReturns added in v0.1.4

func (fake *ChannelClient) InvokeHandlerReturns(result1 channel.Response, result2 error)

func (*ChannelClient) InvokeHandlerReturnsOnCall added in v0.1.4

func (fake *ChannelClient) InvokeHandlerReturnsOnCall(i int, result1 channel.Response, result2 error)

type CryptoSuite

type CryptoSuite struct {
	KeyGenStub func(opts core.KeyGenOpts) (k core.Key, err error)

	KeyImportStub func(raw interface{}, opts core.KeyImportOpts) (k core.Key, err error)

	GetKeyStub func(ski []byte) (k core.Key, err error)

	HashStub func(msg []byte, opts core.HashOpts) (hash []byte, err error)

	GetHashStub func(opts core.HashOpts) (h hash.Hash, err error)

	SignStub func(k core.Key, digest []byte, opts core.SignerOpts) (signature []byte, err error)

	VerifyStub func(k core.Key, signature, digest []byte, opts core.SignerOpts) (valid bool, err error)
	// contains filtered or unexported fields
}

func (*CryptoSuite) GetHash

func (fake *CryptoSuite) GetHash(opts core.HashOpts) (h hash.Hash, err error)

func (*CryptoSuite) GetHashArgsForCall

func (fake *CryptoSuite) GetHashArgsForCall(i int) core.HashOpts

func (*CryptoSuite) GetHashCallCount

func (fake *CryptoSuite) GetHashCallCount() int

func (*CryptoSuite) GetHashReturns

func (fake *CryptoSuite) GetHashReturns(result1 hash.Hash, result2 error)

func (*CryptoSuite) GetHashReturnsOnCall

func (fake *CryptoSuite) GetHashReturnsOnCall(i int, result1 hash.Hash, result2 error)

func (*CryptoSuite) GetKey

func (fake *CryptoSuite) GetKey(ski []byte) (k core.Key, err error)

func (*CryptoSuite) GetKeyArgsForCall

func (fake *CryptoSuite) GetKeyArgsForCall(i int) []byte

func (*CryptoSuite) GetKeyCallCount

func (fake *CryptoSuite) GetKeyCallCount() int

func (*CryptoSuite) GetKeyReturns

func (fake *CryptoSuite) GetKeyReturns(result1 core.Key, result2 error)

func (*CryptoSuite) GetKeyReturnsOnCall

func (fake *CryptoSuite) GetKeyReturnsOnCall(i int, result1 core.Key, result2 error)

func (*CryptoSuite) Hash

func (fake *CryptoSuite) Hash(msg []byte, opts core.HashOpts) (hash []byte, err error)

func (*CryptoSuite) HashArgsForCall

func (fake *CryptoSuite) HashArgsForCall(i int) ([]byte, core.HashOpts)

func (*CryptoSuite) HashCallCount

func (fake *CryptoSuite) HashCallCount() int

func (*CryptoSuite) HashReturns

func (fake *CryptoSuite) HashReturns(result1 []byte, result2 error)

func (*CryptoSuite) HashReturnsOnCall

func (fake *CryptoSuite) HashReturnsOnCall(i int, result1 []byte, result2 error)

func (*CryptoSuite) Invocations

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

func (*CryptoSuite) KeyGen

func (fake *CryptoSuite) KeyGen(opts core.KeyGenOpts) (k core.Key, err error)

func (*CryptoSuite) KeyGenArgsForCall

func (fake *CryptoSuite) KeyGenArgsForCall(i int) core.KeyGenOpts

func (*CryptoSuite) KeyGenCallCount

func (fake *CryptoSuite) KeyGenCallCount() int

func (*CryptoSuite) KeyGenReturns

func (fake *CryptoSuite) KeyGenReturns(result1 core.Key, result2 error)

func (*CryptoSuite) KeyGenReturnsOnCall

func (fake *CryptoSuite) KeyGenReturnsOnCall(i int, result1 core.Key, result2 error)

func (*CryptoSuite) KeyImport

func (fake *CryptoSuite) KeyImport(raw interface{}, opts core.KeyImportOpts) (k core.Key, err error)

func (*CryptoSuite) KeyImportArgsForCall

func (fake *CryptoSuite) KeyImportArgsForCall(i int) (interface{}, core.KeyImportOpts)

func (*CryptoSuite) KeyImportCallCount

func (fake *CryptoSuite) KeyImportCallCount() int

func (*CryptoSuite) KeyImportReturns

func (fake *CryptoSuite) KeyImportReturns(result1 core.Key, result2 error)

func (*CryptoSuite) KeyImportReturnsOnCall

func (fake *CryptoSuite) KeyImportReturnsOnCall(i int, result1 core.Key, result2 error)

func (*CryptoSuite) Sign

func (fake *CryptoSuite) Sign(k core.Key, digest []byte, opts core.SignerOpts) (signature []byte, err error)

func (*CryptoSuite) SignArgsForCall

func (fake *CryptoSuite) SignArgsForCall(i int) (core.Key, []byte, core.SignerOpts)

func (*CryptoSuite) SignCallCount

func (fake *CryptoSuite) SignCallCount() int

func (*CryptoSuite) SignReturns

func (fake *CryptoSuite) SignReturns(result1 []byte, result2 error)

func (*CryptoSuite) SignReturnsOnCall

func (fake *CryptoSuite) SignReturnsOnCall(i int, result1 []byte, result2 error)

func (*CryptoSuite) Verify

func (fake *CryptoSuite) Verify(k core.Key, signature []byte, digest []byte, opts core.SignerOpts) (valid bool, err error)

func (*CryptoSuite) VerifyArgsForCall

func (fake *CryptoSuite) VerifyArgsForCall(i int) (core.Key, []byte, []byte, core.SignerOpts)

func (*CryptoSuite) VerifyCallCount

func (fake *CryptoSuite) VerifyCallCount() int

func (*CryptoSuite) VerifyReturns

func (fake *CryptoSuite) VerifyReturns(result1 bool, result2 error)

func (*CryptoSuite) VerifyReturnsOnCall

func (fake *CryptoSuite) VerifyReturnsOnCall(i int, result1 bool, result2 error)

type CryptoSuiteProvider added in v0.1.4

type CryptoSuiteProvider struct {
	CryptoSuiteStub func() core.CryptoSuite
	// contains filtered or unexported fields
}

func (*CryptoSuiteProvider) CryptoSuite added in v0.1.4

func (fake *CryptoSuiteProvider) CryptoSuite() core.CryptoSuite

func (*CryptoSuiteProvider) CryptoSuiteCallCount added in v0.1.4

func (fake *CryptoSuiteProvider) CryptoSuiteCallCount() int

func (*CryptoSuiteProvider) CryptoSuiteReturns added in v0.1.4

func (fake *CryptoSuiteProvider) CryptoSuiteReturns(result1 core.CryptoSuite)

func (*CryptoSuiteProvider) CryptoSuiteReturnsOnCall added in v0.1.4

func (fake *CryptoSuiteProvider) CryptoSuiteReturnsOnCall(i int, result1 core.CryptoSuite)

func (*CryptoSuiteProvider) Invocations added in v0.1.4

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

type DiscoveryService added in v0.1.4

type DiscoveryService struct {
	GetPeersStub func() ([]fab.Peer, error)
	// contains filtered or unexported fields
}

func (*DiscoveryService) GetPeers added in v0.1.4

func (fake *DiscoveryService) GetPeers() ([]fab.Peer, error)

func (*DiscoveryService) GetPeersCallCount added in v0.1.4

func (fake *DiscoveryService) GetPeersCallCount() int

func (*DiscoveryService) GetPeersReturns added in v0.1.4

func (fake *DiscoveryService) GetPeersReturns(result1 []fab.Peer, result2 error)

func (*DiscoveryService) GetPeersReturnsOnCall added in v0.1.4

func (fake *DiscoveryService) GetPeersReturnsOnCall(i int, result1 []fab.Peer, result2 error)

func (*DiscoveryService) Invocations added in v0.1.4

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

type EndpointConfig

type EndpointConfig struct {
	TimeoutStub func(fab.TimeoutType) time.Duration

	OrderersConfigStub func() []fab.OrdererConfig

	OrdererConfigStub func(nameOrURL string) (*fab.OrdererConfig, bool, bool)

	PeersConfigStub func(org string) ([]fab.PeerConfig, bool)

	PeerConfigStub func(nameOrURL string) (*fab.PeerConfig, bool)

	NetworkConfigStub func() *fab.NetworkConfig

	NetworkPeersStub func() []fab.NetworkPeer

	ChannelConfigStub func(name string) *fab.ChannelEndpointConfig

	ChannelPeersStub func(name string) []fab.ChannelPeer

	ChannelOrderersStub func(name string) []fab.OrdererConfig

	TLSCACertPoolStub func() commtls.CertPool

	TLSClientCertsStub func() []tls.Certificate

	CryptoConfigPathStub func() string
	// contains filtered or unexported fields
}

func (*EndpointConfig) ChannelConfig

func (fake *EndpointConfig) ChannelConfig(name string) *fab.ChannelEndpointConfig

func (*EndpointConfig) ChannelConfigArgsForCall

func (fake *EndpointConfig) ChannelConfigArgsForCall(i int) string

func (*EndpointConfig) ChannelConfigCallCount

func (fake *EndpointConfig) ChannelConfigCallCount() int

func (*EndpointConfig) ChannelConfigReturns

func (fake *EndpointConfig) ChannelConfigReturns(result1 *fab.ChannelEndpointConfig)

func (*EndpointConfig) ChannelConfigReturnsOnCall

func (fake *EndpointConfig) ChannelConfigReturnsOnCall(i int, result1 *fab.ChannelEndpointConfig)

func (*EndpointConfig) ChannelOrderers

func (fake *EndpointConfig) ChannelOrderers(name string) []fab.OrdererConfig

func (*EndpointConfig) ChannelOrderersArgsForCall

func (fake *EndpointConfig) ChannelOrderersArgsForCall(i int) string

func (*EndpointConfig) ChannelOrderersCallCount

func (fake *EndpointConfig) ChannelOrderersCallCount() int

func (*EndpointConfig) ChannelOrderersReturns

func (fake *EndpointConfig) ChannelOrderersReturns(result1 []fab.OrdererConfig)

func (*EndpointConfig) ChannelOrderersReturnsOnCall

func (fake *EndpointConfig) ChannelOrderersReturnsOnCall(i int, result1 []fab.OrdererConfig)

func (*EndpointConfig) ChannelPeers

func (fake *EndpointConfig) ChannelPeers(name string) []fab.ChannelPeer

func (*EndpointConfig) ChannelPeersArgsForCall

func (fake *EndpointConfig) ChannelPeersArgsForCall(i int) string

func (*EndpointConfig) ChannelPeersCallCount

func (fake *EndpointConfig) ChannelPeersCallCount() int

func (*EndpointConfig) ChannelPeersReturns

func (fake *EndpointConfig) ChannelPeersReturns(result1 []fab.ChannelPeer)

func (*EndpointConfig) ChannelPeersReturnsOnCall

func (fake *EndpointConfig) ChannelPeersReturnsOnCall(i int, result1 []fab.ChannelPeer)

func (*EndpointConfig) CryptoConfigPath

func (fake *EndpointConfig) CryptoConfigPath() string

func (*EndpointConfig) CryptoConfigPathCallCount

func (fake *EndpointConfig) CryptoConfigPathCallCount() int

func (*EndpointConfig) CryptoConfigPathReturns

func (fake *EndpointConfig) CryptoConfigPathReturns(result1 string)

func (*EndpointConfig) CryptoConfigPathReturnsOnCall

func (fake *EndpointConfig) CryptoConfigPathReturnsOnCall(i int, result1 string)

func (*EndpointConfig) Invocations

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

func (*EndpointConfig) NetworkConfig

func (fake *EndpointConfig) NetworkConfig() *fab.NetworkConfig

func (*EndpointConfig) NetworkConfigCallCount

func (fake *EndpointConfig) NetworkConfigCallCount() int

func (*EndpointConfig) NetworkConfigReturns

func (fake *EndpointConfig) NetworkConfigReturns(result1 *fab.NetworkConfig)

func (*EndpointConfig) NetworkConfigReturnsOnCall

func (fake *EndpointConfig) NetworkConfigReturnsOnCall(i int, result1 *fab.NetworkConfig)

func (*EndpointConfig) NetworkPeers

func (fake *EndpointConfig) NetworkPeers() []fab.NetworkPeer

func (*EndpointConfig) NetworkPeersCallCount

func (fake *EndpointConfig) NetworkPeersCallCount() int

func (*EndpointConfig) NetworkPeersReturns

func (fake *EndpointConfig) NetworkPeersReturns(result1 []fab.NetworkPeer)

func (*EndpointConfig) NetworkPeersReturnsOnCall

func (fake *EndpointConfig) NetworkPeersReturnsOnCall(i int, result1 []fab.NetworkPeer)

func (*EndpointConfig) OrdererConfig

func (fake *EndpointConfig) OrdererConfig(nameOrURL string) (*fab.OrdererConfig, bool, bool)

func (*EndpointConfig) OrdererConfigArgsForCall

func (fake *EndpointConfig) OrdererConfigArgsForCall(i int) string

func (*EndpointConfig) OrdererConfigCallCount

func (fake *EndpointConfig) OrdererConfigCallCount() int

func (*EndpointConfig) OrdererConfigReturns

func (fake *EndpointConfig) OrdererConfigReturns(result1 *fab.OrdererConfig, result2 bool, result3 bool)

func (*EndpointConfig) OrdererConfigReturnsOnCall

func (fake *EndpointConfig) OrdererConfigReturnsOnCall(i int, result1 *fab.OrdererConfig, result2 bool, result3 bool)

func (*EndpointConfig) OrderersConfig

func (fake *EndpointConfig) OrderersConfig() []fab.OrdererConfig

func (*EndpointConfig) OrderersConfigCallCount

func (fake *EndpointConfig) OrderersConfigCallCount() int

func (*EndpointConfig) OrderersConfigReturns

func (fake *EndpointConfig) OrderersConfigReturns(result1 []fab.OrdererConfig)

func (*EndpointConfig) OrderersConfigReturnsOnCall

func (fake *EndpointConfig) OrderersConfigReturnsOnCall(i int, result1 []fab.OrdererConfig)

func (*EndpointConfig) PeerConfig

func (fake *EndpointConfig) PeerConfig(nameOrURL string) (*fab.PeerConfig, bool)

func (*EndpointConfig) PeerConfigArgsForCall

func (fake *EndpointConfig) PeerConfigArgsForCall(i int) string

func (*EndpointConfig) PeerConfigCallCount

func (fake *EndpointConfig) PeerConfigCallCount() int

func (*EndpointConfig) PeerConfigReturns

func (fake *EndpointConfig) PeerConfigReturns(result1 *fab.PeerConfig, result2 bool)

func (*EndpointConfig) PeerConfigReturnsOnCall

func (fake *EndpointConfig) PeerConfigReturnsOnCall(i int, result1 *fab.PeerConfig, result2 bool)

func (*EndpointConfig) PeersConfig

func (fake *EndpointConfig) PeersConfig(org string) ([]fab.PeerConfig, bool)

func (*EndpointConfig) PeersConfigArgsForCall

func (fake *EndpointConfig) PeersConfigArgsForCall(i int) string

func (*EndpointConfig) PeersConfigCallCount

func (fake *EndpointConfig) PeersConfigCallCount() int

func (*EndpointConfig) PeersConfigReturns

func (fake *EndpointConfig) PeersConfigReturns(result1 []fab.PeerConfig, result2 bool)

func (*EndpointConfig) PeersConfigReturnsOnCall

func (fake *EndpointConfig) PeersConfigReturnsOnCall(i int, result1 []fab.PeerConfig, result2 bool)

func (*EndpointConfig) TLSCACertPool

func (fake *EndpointConfig) TLSCACertPool() commtls.CertPool

func (*EndpointConfig) TLSCACertPoolCallCount

func (fake *EndpointConfig) TLSCACertPoolCallCount() int

func (*EndpointConfig) TLSCACertPoolReturns

func (fake *EndpointConfig) TLSCACertPoolReturns(result1 commtls.CertPool)

func (*EndpointConfig) TLSCACertPoolReturnsOnCall

func (fake *EndpointConfig) TLSCACertPoolReturnsOnCall(i int, result1 commtls.CertPool)

func (*EndpointConfig) TLSClientCerts

func (fake *EndpointConfig) TLSClientCerts() []tls.Certificate

func (*EndpointConfig) TLSClientCertsCallCount

func (fake *EndpointConfig) TLSClientCertsCallCount() int

func (*EndpointConfig) TLSClientCertsReturns

func (fake *EndpointConfig) TLSClientCertsReturns(result1 []tls.Certificate)

func (*EndpointConfig) TLSClientCertsReturnsOnCall

func (fake *EndpointConfig) TLSClientCertsReturnsOnCall(i int, result1 []tls.Certificate)

func (*EndpointConfig) Timeout

func (fake *EndpointConfig) Timeout(arg1 fab.TimeoutType) time.Duration

func (*EndpointConfig) TimeoutArgsForCall

func (fake *EndpointConfig) TimeoutArgsForCall(i int) fab.TimeoutType

func (*EndpointConfig) TimeoutCallCount

func (fake *EndpointConfig) TimeoutCallCount() int

func (*EndpointConfig) TimeoutReturns

func (fake *EndpointConfig) TimeoutReturns(result1 time.Duration)

func (*EndpointConfig) TimeoutReturnsOnCall

func (fake *EndpointConfig) TimeoutReturnsOnCall(i int, result1 time.Duration)

type Hash

type Hash struct {
	WriteStub func(p []byte) (n int, err error)

	SumStub func(b []byte) []byte

	ResetStub func()

	SizeStub func() int

	BlockSizeStub func() int
	// contains filtered or unexported fields
}

func (*Hash) BlockSize

func (fake *Hash) BlockSize() int

func (*Hash) BlockSizeCallCount

func (fake *Hash) BlockSizeCallCount() int

func (*Hash) BlockSizeReturns

func (fake *Hash) BlockSizeReturns(result1 int)

func (*Hash) BlockSizeReturnsOnCall

func (fake *Hash) BlockSizeReturnsOnCall(i int, result1 int)

func (*Hash) Invocations

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

func (*Hash) Reset

func (fake *Hash) Reset()

func (*Hash) ResetCallCount

func (fake *Hash) ResetCallCount() int

func (*Hash) Size

func (fake *Hash) Size() int

func (*Hash) SizeCallCount

func (fake *Hash) SizeCallCount() int

func (*Hash) SizeReturns

func (fake *Hash) SizeReturns(result1 int)

func (*Hash) SizeReturnsOnCall

func (fake *Hash) SizeReturnsOnCall(i int, result1 int)

func (*Hash) Sum

func (fake *Hash) Sum(b []byte) []byte

func (*Hash) SumArgsForCall

func (fake *Hash) SumArgsForCall(i int) []byte

func (*Hash) SumCallCount

func (fake *Hash) SumCallCount() int

func (*Hash) SumReturns

func (fake *Hash) SumReturns(result1 []byte)

func (*Hash) SumReturnsOnCall

func (fake *Hash) SumReturnsOnCall(i int, result1 []byte)

func (*Hash) Write

func (fake *Hash) Write(p []byte) (n int, err error)

func (*Hash) WriteArgsForCall

func (fake *Hash) WriteArgsForCall(i int) []byte

func (*Hash) WriteCallCount

func (fake *Hash) WriteCallCount() int

func (*Hash) WriteReturns

func (fake *Hash) WriteReturns(result1 int, result2 error)

func (*Hash) WriteReturnsOnCall

func (fake *Hash) WriteReturnsOnCall(i int, result1 int, result2 error)

type IdentitySerializer added in v0.1.4

type IdentitySerializer struct {
	SerializeStub func() ([]byte, error)
	// contains filtered or unexported fields
}

func (*IdentitySerializer) Invocations added in v0.1.4

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

func (*IdentitySerializer) Serialize added in v0.1.4

func (fake *IdentitySerializer) Serialize() ([]byte, error)

func (*IdentitySerializer) SerializeCallCount added in v0.1.4

func (fake *IdentitySerializer) SerializeCallCount() int

func (*IdentitySerializer) SerializeReturns added in v0.1.4

func (fake *IdentitySerializer) SerializeReturns(result1 []byte, result2 error)

func (*IdentitySerializer) SerializeReturnsOnCall added in v0.1.4

func (fake *IdentitySerializer) SerializeReturnsOnCall(i int, result1 []byte, result2 error)

Jump to

Keyboard shortcuts

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