mocks

package
v1.5.6 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2021 License: Apache-2.0 Imports: 11 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.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChainGetter added in v1.4.0

type ChainGetter struct {
	mock.Mock
}

ChainGetter is an autogenerated mock type for the ChainGetter type

func (*ChainGetter) GetChain added in v1.4.0

func (_m *ChainGetter) GetChain(chainID string) *multichannel.ChainSupport

GetChain provides a mock function with given fields: chainID

type FakeBlockPuller added in v1.4.0

type FakeBlockPuller struct {
	CloseStub func()

	HeightsByEndpointsStub func() (map[string]uint64, error)

	PullBlockStub func(uint64) *common.Block
	// contains filtered or unexported fields
}

func (*FakeBlockPuller) Close added in v1.4.0

func (fake *FakeBlockPuller) Close()

func (*FakeBlockPuller) CloseCallCount added in v1.4.0

func (fake *FakeBlockPuller) CloseCallCount() int

func (*FakeBlockPuller) CloseCalls added in v1.4.1

func (fake *FakeBlockPuller) CloseCalls(stub func())

func (*FakeBlockPuller) HeightsByEndpoints added in v1.4.1

func (fake *FakeBlockPuller) HeightsByEndpoints() (map[string]uint64, error)

func (*FakeBlockPuller) HeightsByEndpointsCallCount added in v1.4.1

func (fake *FakeBlockPuller) HeightsByEndpointsCallCount() int

func (*FakeBlockPuller) HeightsByEndpointsCalls added in v1.4.1

func (fake *FakeBlockPuller) HeightsByEndpointsCalls(stub func() (map[string]uint64, error))

func (*FakeBlockPuller) HeightsByEndpointsReturns added in v1.4.1

func (fake *FakeBlockPuller) HeightsByEndpointsReturns(result1 map[string]uint64, result2 error)

func (*FakeBlockPuller) HeightsByEndpointsReturnsOnCall added in v1.4.1

func (fake *FakeBlockPuller) HeightsByEndpointsReturnsOnCall(i int, result1 map[string]uint64, result2 error)

func (*FakeBlockPuller) Invocations added in v1.4.0

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

func (*FakeBlockPuller) PullBlock added in v1.4.0

func (fake *FakeBlockPuller) PullBlock(arg1 uint64) *common.Block

func (*FakeBlockPuller) PullBlockArgsForCall added in v1.4.0

func (fake *FakeBlockPuller) PullBlockArgsForCall(i int) uint64

func (*FakeBlockPuller) PullBlockCallCount added in v1.4.0

func (fake *FakeBlockPuller) PullBlockCallCount() int

func (*FakeBlockPuller) PullBlockCalls added in v1.4.1

func (fake *FakeBlockPuller) PullBlockCalls(stub func(uint64) *common.Block)

func (*FakeBlockPuller) PullBlockReturns added in v1.4.0

func (fake *FakeBlockPuller) PullBlockReturns(result1 *common.Block)

func (*FakeBlockPuller) PullBlockReturnsOnCall added in v1.4.0

func (fake *FakeBlockPuller) PullBlockReturnsOnCall(i int, result1 *common.Block)

type FakeConfigurator added in v1.4.1

type FakeConfigurator struct {
	ConfigureStub func(string, []cluster.RemoteNode)
	// contains filtered or unexported fields
}

func (*FakeConfigurator) Configure added in v1.4.1

func (fake *FakeConfigurator) Configure(arg1 string, arg2 []cluster.RemoteNode)

func (*FakeConfigurator) ConfigureArgsForCall added in v1.4.1

func (fake *FakeConfigurator) ConfigureArgsForCall(i int) (string, []cluster.RemoteNode)

func (*FakeConfigurator) ConfigureCallCount added in v1.4.1

func (fake *FakeConfigurator) ConfigureCallCount() int

func (*FakeConfigurator) ConfigureCalls added in v1.4.1

func (fake *FakeConfigurator) ConfigureCalls(stub func(string, []cluster.RemoteNode))

func (*FakeConfigurator) Invocations added in v1.4.1

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

type FakeRPC added in v1.4.0

type FakeRPC struct {
	SendConsensusStub func(uint64, *orderer.ConsensusRequest) error

	SendSubmitStub func(uint64, *orderer.SubmitRequest) error
	// contains filtered or unexported fields
}

func (*FakeRPC) Invocations added in v1.4.0

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

func (*FakeRPC) SendConsensus added in v1.4.1

func (fake *FakeRPC) SendConsensus(arg1 uint64, arg2 *orderer.ConsensusRequest) error

func (*FakeRPC) SendConsensusArgsForCall added in v1.4.1

func (fake *FakeRPC) SendConsensusArgsForCall(i int) (uint64, *orderer.ConsensusRequest)

func (*FakeRPC) SendConsensusCallCount added in v1.4.1

func (fake *FakeRPC) SendConsensusCallCount() int

func (*FakeRPC) SendConsensusCalls added in v1.4.1

func (fake *FakeRPC) SendConsensusCalls(stub func(uint64, *orderer.ConsensusRequest) error)

func (*FakeRPC) SendConsensusReturns added in v1.4.1

func (fake *FakeRPC) SendConsensusReturns(result1 error)

func (*FakeRPC) SendConsensusReturnsOnCall added in v1.4.1

func (fake *FakeRPC) SendConsensusReturnsOnCall(i int, result1 error)

func (*FakeRPC) SendSubmit added in v1.4.0

func (fake *FakeRPC) SendSubmit(arg1 uint64, arg2 *orderer.SubmitRequest) error

func (*FakeRPC) SendSubmitArgsForCall added in v1.4.0

func (fake *FakeRPC) SendSubmitArgsForCall(i int) (uint64, *orderer.SubmitRequest)

func (*FakeRPC) SendSubmitCallCount added in v1.4.0

func (fake *FakeRPC) SendSubmitCallCount() int

func (*FakeRPC) SendSubmitCalls added in v1.4.1

func (fake *FakeRPC) SendSubmitCalls(stub func(uint64, *orderer.SubmitRequest) error)

func (*FakeRPC) SendSubmitReturns added in v1.4.0

func (fake *FakeRPC) SendSubmitReturns(result1 error)

func (*FakeRPC) SendSubmitReturnsOnCall added in v1.4.0

func (fake *FakeRPC) SendSubmitReturnsOnCall(i int, result1 error)

type InactiveChainRegistry added in v1.4.1

type InactiveChainRegistry struct {
	mock.Mock
}

InactiveChainRegistry is an autogenerated mock type for the InactiveChainRegistry type

func (*InactiveChainRegistry) TrackChain added in v1.4.1

func (_m *InactiveChainRegistry) TrackChain(chainName string, genesisBlock *common.Block, createChain func())

TrackChain provides a mock function with given fields: chainName, genesisBlock, createChain

type MSP added in v1.5.6

type MSP struct {
	DeserializeIdentityStub func([]byte) (msp.Identity, error)

	GetDefaultSigningIdentityStub func() (msp.SigningIdentity, error)

	GetIdentifierStub func() (string, error)

	GetSigningIdentityStub func(*msp.IdentityIdentifier) (msp.SigningIdentity, error)

	GetTLSIntermediateCertsStub func() [][]byte

	GetTLSRootCertsStub func() [][]byte

	GetTypeStub func() msp.ProviderType

	GetVersionStub func() msp.MSPVersion

	IsWellFormedStub func(*mspa.SerializedIdentity) error

	SatisfiesPrincipalStub func(msp.Identity, *mspa.MSPPrincipal) error

	SetupStub func(*mspa.MSPConfig) error

	ValidateStub func(msp.Identity) error
	// contains filtered or unexported fields
}

func (*MSP) DeserializeIdentity added in v1.5.6

func (fake *MSP) DeserializeIdentity(arg1 []byte) (msp.Identity, error)

func (*MSP) DeserializeIdentityArgsForCall added in v1.5.6

func (fake *MSP) DeserializeIdentityArgsForCall(i int) []byte

func (*MSP) DeserializeIdentityCallCount added in v1.5.6

func (fake *MSP) DeserializeIdentityCallCount() int

func (*MSP) DeserializeIdentityCalls added in v1.5.6

func (fake *MSP) DeserializeIdentityCalls(stub func([]byte) (msp.Identity, error))

func (*MSP) DeserializeIdentityReturns added in v1.5.6

func (fake *MSP) DeserializeIdentityReturns(result1 msp.Identity, result2 error)

func (*MSP) DeserializeIdentityReturnsOnCall added in v1.5.6

func (fake *MSP) DeserializeIdentityReturnsOnCall(i int, result1 msp.Identity, result2 error)

func (*MSP) GetDefaultSigningIdentity added in v1.5.6

func (fake *MSP) GetDefaultSigningIdentity() (msp.SigningIdentity, error)

func (*MSP) GetDefaultSigningIdentityCallCount added in v1.5.6

func (fake *MSP) GetDefaultSigningIdentityCallCount() int

func (*MSP) GetDefaultSigningIdentityCalls added in v1.5.6

func (fake *MSP) GetDefaultSigningIdentityCalls(stub func() (msp.SigningIdentity, error))

func (*MSP) GetDefaultSigningIdentityReturns added in v1.5.6

func (fake *MSP) GetDefaultSigningIdentityReturns(result1 msp.SigningIdentity, result2 error)

func (*MSP) GetDefaultSigningIdentityReturnsOnCall added in v1.5.6

func (fake *MSP) GetDefaultSigningIdentityReturnsOnCall(i int, result1 msp.SigningIdentity, result2 error)

func (*MSP) GetIdentifier added in v1.5.6

func (fake *MSP) GetIdentifier() (string, error)

func (*MSP) GetIdentifierCallCount added in v1.5.6

func (fake *MSP) GetIdentifierCallCount() int

func (*MSP) GetIdentifierCalls added in v1.5.6

func (fake *MSP) GetIdentifierCalls(stub func() (string, error))

func (*MSP) GetIdentifierReturns added in v1.5.6

func (fake *MSP) GetIdentifierReturns(result1 string, result2 error)

func (*MSP) GetIdentifierReturnsOnCall added in v1.5.6

func (fake *MSP) GetIdentifierReturnsOnCall(i int, result1 string, result2 error)

func (*MSP) GetSigningIdentity added in v1.5.6

func (fake *MSP) GetSigningIdentity(arg1 *msp.IdentityIdentifier) (msp.SigningIdentity, error)

func (*MSP) GetSigningIdentityArgsForCall added in v1.5.6

func (fake *MSP) GetSigningIdentityArgsForCall(i int) *msp.IdentityIdentifier

func (*MSP) GetSigningIdentityCallCount added in v1.5.6

func (fake *MSP) GetSigningIdentityCallCount() int

func (*MSP) GetSigningIdentityCalls added in v1.5.6

func (fake *MSP) GetSigningIdentityCalls(stub func(*msp.IdentityIdentifier) (msp.SigningIdentity, error))

func (*MSP) GetSigningIdentityReturns added in v1.5.6

func (fake *MSP) GetSigningIdentityReturns(result1 msp.SigningIdentity, result2 error)

func (*MSP) GetSigningIdentityReturnsOnCall added in v1.5.6

func (fake *MSP) GetSigningIdentityReturnsOnCall(i int, result1 msp.SigningIdentity, result2 error)

func (*MSP) GetTLSIntermediateCerts added in v1.5.6

func (fake *MSP) GetTLSIntermediateCerts() [][]byte

func (*MSP) GetTLSIntermediateCertsCallCount added in v1.5.6

func (fake *MSP) GetTLSIntermediateCertsCallCount() int

func (*MSP) GetTLSIntermediateCertsCalls added in v1.5.6

func (fake *MSP) GetTLSIntermediateCertsCalls(stub func() [][]byte)

func (*MSP) GetTLSIntermediateCertsReturns added in v1.5.6

func (fake *MSP) GetTLSIntermediateCertsReturns(result1 [][]byte)

func (*MSP) GetTLSIntermediateCertsReturnsOnCall added in v1.5.6

func (fake *MSP) GetTLSIntermediateCertsReturnsOnCall(i int, result1 [][]byte)

func (*MSP) GetTLSRootCerts added in v1.5.6

func (fake *MSP) GetTLSRootCerts() [][]byte

func (*MSP) GetTLSRootCertsCallCount added in v1.5.6

func (fake *MSP) GetTLSRootCertsCallCount() int

func (*MSP) GetTLSRootCertsCalls added in v1.5.6

func (fake *MSP) GetTLSRootCertsCalls(stub func() [][]byte)

func (*MSP) GetTLSRootCertsReturns added in v1.5.6

func (fake *MSP) GetTLSRootCertsReturns(result1 [][]byte)

func (*MSP) GetTLSRootCertsReturnsOnCall added in v1.5.6

func (fake *MSP) GetTLSRootCertsReturnsOnCall(i int, result1 [][]byte)

func (*MSP) GetType added in v1.5.6

func (fake *MSP) GetType() msp.ProviderType

func (*MSP) GetTypeCallCount added in v1.5.6

func (fake *MSP) GetTypeCallCount() int

func (*MSP) GetTypeCalls added in v1.5.6

func (fake *MSP) GetTypeCalls(stub func() msp.ProviderType)

func (*MSP) GetTypeReturns added in v1.5.6

func (fake *MSP) GetTypeReturns(result1 msp.ProviderType)

func (*MSP) GetTypeReturnsOnCall added in v1.5.6

func (fake *MSP) GetTypeReturnsOnCall(i int, result1 msp.ProviderType)

func (*MSP) GetVersion added in v1.5.6

func (fake *MSP) GetVersion() msp.MSPVersion

func (*MSP) GetVersionCallCount added in v1.5.6

func (fake *MSP) GetVersionCallCount() int

func (*MSP) GetVersionCalls added in v1.5.6

func (fake *MSP) GetVersionCalls(stub func() msp.MSPVersion)

func (*MSP) GetVersionReturns added in v1.5.6

func (fake *MSP) GetVersionReturns(result1 msp.MSPVersion)

func (*MSP) GetVersionReturnsOnCall added in v1.5.6

func (fake *MSP) GetVersionReturnsOnCall(i int, result1 msp.MSPVersion)

func (*MSP) Invocations added in v1.5.6

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

func (*MSP) IsWellFormed added in v1.5.6

func (fake *MSP) IsWellFormed(arg1 *mspa.SerializedIdentity) error

func (*MSP) IsWellFormedArgsForCall added in v1.5.6

func (fake *MSP) IsWellFormedArgsForCall(i int) *mspa.SerializedIdentity

func (*MSP) IsWellFormedCallCount added in v1.5.6

func (fake *MSP) IsWellFormedCallCount() int

func (*MSP) IsWellFormedCalls added in v1.5.6

func (fake *MSP) IsWellFormedCalls(stub func(*mspa.SerializedIdentity) error)

func (*MSP) IsWellFormedReturns added in v1.5.6

func (fake *MSP) IsWellFormedReturns(result1 error)

func (*MSP) IsWellFormedReturnsOnCall added in v1.5.6

func (fake *MSP) IsWellFormedReturnsOnCall(i int, result1 error)

func (*MSP) SatisfiesPrincipal added in v1.5.6

func (fake *MSP) SatisfiesPrincipal(arg1 msp.Identity, arg2 *mspa.MSPPrincipal) error

func (*MSP) SatisfiesPrincipalArgsForCall added in v1.5.6

func (fake *MSP) SatisfiesPrincipalArgsForCall(i int) (msp.Identity, *mspa.MSPPrincipal)

func (*MSP) SatisfiesPrincipalCallCount added in v1.5.6

func (fake *MSP) SatisfiesPrincipalCallCount() int

func (*MSP) SatisfiesPrincipalCalls added in v1.5.6

func (fake *MSP) SatisfiesPrincipalCalls(stub func(msp.Identity, *mspa.MSPPrincipal) error)

func (*MSP) SatisfiesPrincipalReturns added in v1.5.6

func (fake *MSP) SatisfiesPrincipalReturns(result1 error)

func (*MSP) SatisfiesPrincipalReturnsOnCall added in v1.5.6

func (fake *MSP) SatisfiesPrincipalReturnsOnCall(i int, result1 error)

func (*MSP) Setup added in v1.5.6

func (fake *MSP) Setup(arg1 *mspa.MSPConfig) error

func (*MSP) SetupArgsForCall added in v1.5.6

func (fake *MSP) SetupArgsForCall(i int) *mspa.MSPConfig

func (*MSP) SetupCallCount added in v1.5.6

func (fake *MSP) SetupCallCount() int

func (*MSP) SetupCalls added in v1.5.6

func (fake *MSP) SetupCalls(stub func(*mspa.MSPConfig) error)

func (*MSP) SetupReturns added in v1.5.6

func (fake *MSP) SetupReturns(result1 error)

func (*MSP) SetupReturnsOnCall added in v1.5.6

func (fake *MSP) SetupReturnsOnCall(i int, result1 error)

func (*MSP) Validate added in v1.5.6

func (fake *MSP) Validate(arg1 msp.Identity) error

func (*MSP) ValidateArgsForCall added in v1.5.6

func (fake *MSP) ValidateArgsForCall(i int) msp.Identity

func (*MSP) ValidateCallCount added in v1.5.6

func (fake *MSP) ValidateCallCount() int

func (*MSP) ValidateCalls added in v1.5.6

func (fake *MSP) ValidateCalls(stub func(msp.Identity) error)

func (*MSP) ValidateReturns added in v1.5.6

func (fake *MSP) ValidateReturns(result1 error)

func (*MSP) ValidateReturnsOnCall added in v1.5.6

func (fake *MSP) ValidateReturnsOnCall(i int, result1 error)

type MessageReceiver

type MessageReceiver struct {
	mock.Mock
}

MessageReceiver is an autogenerated mock type for the MessageReceiver type

func (*MessageReceiver) Consensus added in v1.4.1

func (_m *MessageReceiver) Consensus(req *orderer.ConsensusRequest, sender uint64) error

Consensus provides a mock function with given fields: req, sender

func (*MessageReceiver) Submit

func (_m *MessageReceiver) Submit(req *orderer.SubmitRequest, sender uint64) error

Submit provides a mock function with given fields: req, sender

type OrdererCapabilities added in v1.5.6

type OrdererCapabilities struct {
	ConsensusTypeMigrationStub func() bool

	ExpirationCheckStub func() bool

	PredictableChannelTemplateStub func() bool

	ResubmissionStub func() bool

	SupportedStub func() error

	UseChannelCreationPolicyAsAdminsStub func() bool
	// contains filtered or unexported fields
}

func (*OrdererCapabilities) ConsensusTypeMigration added in v1.5.6

func (fake *OrdererCapabilities) ConsensusTypeMigration() bool

func (*OrdererCapabilities) ConsensusTypeMigrationCallCount added in v1.5.6

func (fake *OrdererCapabilities) ConsensusTypeMigrationCallCount() int

func (*OrdererCapabilities) ConsensusTypeMigrationCalls added in v1.5.6

func (fake *OrdererCapabilities) ConsensusTypeMigrationCalls(stub func() bool)

func (*OrdererCapabilities) ConsensusTypeMigrationReturns added in v1.5.6

func (fake *OrdererCapabilities) ConsensusTypeMigrationReturns(result1 bool)

func (*OrdererCapabilities) ConsensusTypeMigrationReturnsOnCall added in v1.5.6

func (fake *OrdererCapabilities) ConsensusTypeMigrationReturnsOnCall(i int, result1 bool)

func (*OrdererCapabilities) ExpirationCheck added in v1.5.6

func (fake *OrdererCapabilities) ExpirationCheck() bool

func (*OrdererCapabilities) ExpirationCheckCallCount added in v1.5.6

func (fake *OrdererCapabilities) ExpirationCheckCallCount() int

func (*OrdererCapabilities) ExpirationCheckCalls added in v1.5.6

func (fake *OrdererCapabilities) ExpirationCheckCalls(stub func() bool)

func (*OrdererCapabilities) ExpirationCheckReturns added in v1.5.6

func (fake *OrdererCapabilities) ExpirationCheckReturns(result1 bool)

func (*OrdererCapabilities) ExpirationCheckReturnsOnCall added in v1.5.6

func (fake *OrdererCapabilities) ExpirationCheckReturnsOnCall(i int, result1 bool)

func (*OrdererCapabilities) Invocations added in v1.5.6

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

func (*OrdererCapabilities) PredictableChannelTemplate added in v1.5.6

func (fake *OrdererCapabilities) PredictableChannelTemplate() bool

func (*OrdererCapabilities) PredictableChannelTemplateCallCount added in v1.5.6

func (fake *OrdererCapabilities) PredictableChannelTemplateCallCount() int

func (*OrdererCapabilities) PredictableChannelTemplateCalls added in v1.5.6

func (fake *OrdererCapabilities) PredictableChannelTemplateCalls(stub func() bool)

func (*OrdererCapabilities) PredictableChannelTemplateReturns added in v1.5.6

func (fake *OrdererCapabilities) PredictableChannelTemplateReturns(result1 bool)

func (*OrdererCapabilities) PredictableChannelTemplateReturnsOnCall added in v1.5.6

func (fake *OrdererCapabilities) PredictableChannelTemplateReturnsOnCall(i int, result1 bool)

func (*OrdererCapabilities) Resubmission added in v1.5.6

func (fake *OrdererCapabilities) Resubmission() bool

func (*OrdererCapabilities) ResubmissionCallCount added in v1.5.6

func (fake *OrdererCapabilities) ResubmissionCallCount() int

func (*OrdererCapabilities) ResubmissionCalls added in v1.5.6

func (fake *OrdererCapabilities) ResubmissionCalls(stub func() bool)

func (*OrdererCapabilities) ResubmissionReturns added in v1.5.6

func (fake *OrdererCapabilities) ResubmissionReturns(result1 bool)

func (*OrdererCapabilities) ResubmissionReturnsOnCall added in v1.5.6

func (fake *OrdererCapabilities) ResubmissionReturnsOnCall(i int, result1 bool)

func (*OrdererCapabilities) Supported added in v1.5.6

func (fake *OrdererCapabilities) Supported() error

func (*OrdererCapabilities) SupportedCallCount added in v1.5.6

func (fake *OrdererCapabilities) SupportedCallCount() int

func (*OrdererCapabilities) SupportedCalls added in v1.5.6

func (fake *OrdererCapabilities) SupportedCalls(stub func() error)

func (*OrdererCapabilities) SupportedReturns added in v1.5.6

func (fake *OrdererCapabilities) SupportedReturns(result1 error)

func (*OrdererCapabilities) SupportedReturnsOnCall added in v1.5.6

func (fake *OrdererCapabilities) SupportedReturnsOnCall(i int, result1 error)

func (*OrdererCapabilities) UseChannelCreationPolicyAsAdmins added in v1.5.6

func (fake *OrdererCapabilities) UseChannelCreationPolicyAsAdmins() bool

func (*OrdererCapabilities) UseChannelCreationPolicyAsAdminsCallCount added in v1.5.6

func (fake *OrdererCapabilities) UseChannelCreationPolicyAsAdminsCallCount() int

func (*OrdererCapabilities) UseChannelCreationPolicyAsAdminsCalls added in v1.5.6

func (fake *OrdererCapabilities) UseChannelCreationPolicyAsAdminsCalls(stub func() bool)

func (*OrdererCapabilities) UseChannelCreationPolicyAsAdminsReturns added in v1.5.6

func (fake *OrdererCapabilities) UseChannelCreationPolicyAsAdminsReturns(result1 bool)

func (*OrdererCapabilities) UseChannelCreationPolicyAsAdminsReturnsOnCall added in v1.5.6

func (fake *OrdererCapabilities) UseChannelCreationPolicyAsAdminsReturnsOnCall(i int, result1 bool)

type OrdererConfig added in v1.5.6

type OrdererConfig struct {
	BatchSizeStub func() *orderer.BatchSize

	BatchTimeoutStub func() time.Duration

	CapabilitiesStub func() channelconfig.OrdererCapabilities

	ConsensusMetadataStub func() []byte

	ConsensusStateStub func() orderer.ConsensusType_State

	ConsensusTypeStub func() string

	KafkaBrokersStub func() []string

	MaxChannelsCountStub func() uint64

	OrganizationsStub func() map[string]channelconfig.OrdererOrg
	// contains filtered or unexported fields
}

func (*OrdererConfig) BatchSize added in v1.5.6

func (fake *OrdererConfig) BatchSize() *orderer.BatchSize

func (*OrdererConfig) BatchSizeCallCount added in v1.5.6

func (fake *OrdererConfig) BatchSizeCallCount() int

func (*OrdererConfig) BatchSizeCalls added in v1.5.6

func (fake *OrdererConfig) BatchSizeCalls(stub func() *orderer.BatchSize)

func (*OrdererConfig) BatchSizeReturns added in v1.5.6

func (fake *OrdererConfig) BatchSizeReturns(result1 *orderer.BatchSize)

func (*OrdererConfig) BatchSizeReturnsOnCall added in v1.5.6

func (fake *OrdererConfig) BatchSizeReturnsOnCall(i int, result1 *orderer.BatchSize)

func (*OrdererConfig) BatchTimeout added in v1.5.6

func (fake *OrdererConfig) BatchTimeout() time.Duration

func (*OrdererConfig) BatchTimeoutCallCount added in v1.5.6

func (fake *OrdererConfig) BatchTimeoutCallCount() int

func (*OrdererConfig) BatchTimeoutCalls added in v1.5.6

func (fake *OrdererConfig) BatchTimeoutCalls(stub func() time.Duration)

func (*OrdererConfig) BatchTimeoutReturns added in v1.5.6

func (fake *OrdererConfig) BatchTimeoutReturns(result1 time.Duration)

func (*OrdererConfig) BatchTimeoutReturnsOnCall added in v1.5.6

func (fake *OrdererConfig) BatchTimeoutReturnsOnCall(i int, result1 time.Duration)

func (*OrdererConfig) Capabilities added in v1.5.6

func (fake *OrdererConfig) Capabilities() channelconfig.OrdererCapabilities

func (*OrdererConfig) CapabilitiesCallCount added in v1.5.6

func (fake *OrdererConfig) CapabilitiesCallCount() int

func (*OrdererConfig) CapabilitiesCalls added in v1.5.6

func (fake *OrdererConfig) CapabilitiesCalls(stub func() channelconfig.OrdererCapabilities)

func (*OrdererConfig) CapabilitiesReturns added in v1.5.6

func (fake *OrdererConfig) CapabilitiesReturns(result1 channelconfig.OrdererCapabilities)

func (*OrdererConfig) CapabilitiesReturnsOnCall added in v1.5.6

func (fake *OrdererConfig) CapabilitiesReturnsOnCall(i int, result1 channelconfig.OrdererCapabilities)

func (*OrdererConfig) ConsensusMetadata added in v1.5.6

func (fake *OrdererConfig) ConsensusMetadata() []byte

func (*OrdererConfig) ConsensusMetadataCallCount added in v1.5.6

func (fake *OrdererConfig) ConsensusMetadataCallCount() int

func (*OrdererConfig) ConsensusMetadataCalls added in v1.5.6

func (fake *OrdererConfig) ConsensusMetadataCalls(stub func() []byte)

func (*OrdererConfig) ConsensusMetadataReturns added in v1.5.6

func (fake *OrdererConfig) ConsensusMetadataReturns(result1 []byte)

func (*OrdererConfig) ConsensusMetadataReturnsOnCall added in v1.5.6

func (fake *OrdererConfig) ConsensusMetadataReturnsOnCall(i int, result1 []byte)

func (*OrdererConfig) ConsensusState added in v1.5.6

func (fake *OrdererConfig) ConsensusState() orderer.ConsensusType_State

func (*OrdererConfig) ConsensusStateCallCount added in v1.5.6

func (fake *OrdererConfig) ConsensusStateCallCount() int

func (*OrdererConfig) ConsensusStateCalls added in v1.5.6

func (fake *OrdererConfig) ConsensusStateCalls(stub func() orderer.ConsensusType_State)

func (*OrdererConfig) ConsensusStateReturns added in v1.5.6

func (fake *OrdererConfig) ConsensusStateReturns(result1 orderer.ConsensusType_State)

func (*OrdererConfig) ConsensusStateReturnsOnCall added in v1.5.6

func (fake *OrdererConfig) ConsensusStateReturnsOnCall(i int, result1 orderer.ConsensusType_State)

func (*OrdererConfig) ConsensusType added in v1.5.6

func (fake *OrdererConfig) ConsensusType() string

func (*OrdererConfig) ConsensusTypeCallCount added in v1.5.6

func (fake *OrdererConfig) ConsensusTypeCallCount() int

func (*OrdererConfig) ConsensusTypeCalls added in v1.5.6

func (fake *OrdererConfig) ConsensusTypeCalls(stub func() string)

func (*OrdererConfig) ConsensusTypeReturns added in v1.5.6

func (fake *OrdererConfig) ConsensusTypeReturns(result1 string)

func (*OrdererConfig) ConsensusTypeReturnsOnCall added in v1.5.6

func (fake *OrdererConfig) ConsensusTypeReturnsOnCall(i int, result1 string)

func (*OrdererConfig) Invocations added in v1.5.6

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

func (*OrdererConfig) KafkaBrokers added in v1.5.6

func (fake *OrdererConfig) KafkaBrokers() []string

func (*OrdererConfig) KafkaBrokersCallCount added in v1.5.6

func (fake *OrdererConfig) KafkaBrokersCallCount() int

func (*OrdererConfig) KafkaBrokersCalls added in v1.5.6

func (fake *OrdererConfig) KafkaBrokersCalls(stub func() []string)

func (*OrdererConfig) KafkaBrokersReturns added in v1.5.6

func (fake *OrdererConfig) KafkaBrokersReturns(result1 []string)

func (*OrdererConfig) KafkaBrokersReturnsOnCall added in v1.5.6

func (fake *OrdererConfig) KafkaBrokersReturnsOnCall(i int, result1 []string)

func (*OrdererConfig) MaxChannelsCount added in v1.5.6

func (fake *OrdererConfig) MaxChannelsCount() uint64

func (*OrdererConfig) MaxChannelsCountCallCount added in v1.5.6

func (fake *OrdererConfig) MaxChannelsCountCallCount() int

func (*OrdererConfig) MaxChannelsCountCalls added in v1.5.6

func (fake *OrdererConfig) MaxChannelsCountCalls(stub func() uint64)

func (*OrdererConfig) MaxChannelsCountReturns added in v1.5.6

func (fake *OrdererConfig) MaxChannelsCountReturns(result1 uint64)

func (*OrdererConfig) MaxChannelsCountReturnsOnCall added in v1.5.6

func (fake *OrdererConfig) MaxChannelsCountReturnsOnCall(i int, result1 uint64)

func (*OrdererConfig) Organizations added in v1.5.6

func (fake *OrdererConfig) Organizations() map[string]channelconfig.OrdererOrg

func (*OrdererConfig) OrganizationsCallCount added in v1.5.6

func (fake *OrdererConfig) OrganizationsCallCount() int

func (*OrdererConfig) OrganizationsCalls added in v1.5.6

func (fake *OrdererConfig) OrganizationsCalls(stub func() map[string]channelconfig.OrdererOrg)

func (*OrdererConfig) OrganizationsReturns added in v1.5.6

func (fake *OrdererConfig) OrganizationsReturns(result1 map[string]channelconfig.OrdererOrg)

func (*OrdererConfig) OrganizationsReturnsOnCall added in v1.5.6

func (fake *OrdererConfig) OrganizationsReturnsOnCall(i int, result1 map[string]channelconfig.OrdererOrg)

type OrdererOrg added in v1.5.6

type OrdererOrg struct {
	EndpointsStub func() []string

	MSPStub func() msp.MSP

	MSPIDStub func() string

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

func (*OrdererOrg) Endpoints added in v1.5.6

func (fake *OrdererOrg) Endpoints() []string

func (*OrdererOrg) EndpointsCallCount added in v1.5.6

func (fake *OrdererOrg) EndpointsCallCount() int

func (*OrdererOrg) EndpointsCalls added in v1.5.6

func (fake *OrdererOrg) EndpointsCalls(stub func() []string)

func (*OrdererOrg) EndpointsReturns added in v1.5.6

func (fake *OrdererOrg) EndpointsReturns(result1 []string)

func (*OrdererOrg) EndpointsReturnsOnCall added in v1.5.6

func (fake *OrdererOrg) EndpointsReturnsOnCall(i int, result1 []string)

func (*OrdererOrg) Invocations added in v1.5.6

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

func (*OrdererOrg) MSP added in v1.5.6

func (fake *OrdererOrg) MSP() msp.MSP

func (*OrdererOrg) MSPCallCount added in v1.5.6

func (fake *OrdererOrg) MSPCallCount() int

func (*OrdererOrg) MSPCalls added in v1.5.6

func (fake *OrdererOrg) MSPCalls(stub func() msp.MSP)

func (*OrdererOrg) MSPID added in v1.5.6

func (fake *OrdererOrg) MSPID() string

func (*OrdererOrg) MSPIDCallCount added in v1.5.6

func (fake *OrdererOrg) MSPIDCallCount() int

func (*OrdererOrg) MSPIDCalls added in v1.5.6

func (fake *OrdererOrg) MSPIDCalls(stub func() string)

func (*OrdererOrg) MSPIDReturns added in v1.5.6

func (fake *OrdererOrg) MSPIDReturns(result1 string)

func (*OrdererOrg) MSPIDReturnsOnCall added in v1.5.6

func (fake *OrdererOrg) MSPIDReturnsOnCall(i int, result1 string)

func (*OrdererOrg) MSPReturns added in v1.5.6

func (fake *OrdererOrg) MSPReturns(result1 msp.MSP)

func (*OrdererOrg) MSPReturnsOnCall added in v1.5.6

func (fake *OrdererOrg) MSPReturnsOnCall(i int, result1 msp.MSP)

func (*OrdererOrg) Name added in v1.5.6

func (fake *OrdererOrg) Name() string

func (*OrdererOrg) NameCallCount added in v1.5.6

func (fake *OrdererOrg) NameCallCount() int

func (*OrdererOrg) NameCalls added in v1.5.6

func (fake *OrdererOrg) NameCalls(stub func() string)

func (*OrdererOrg) NameReturns added in v1.5.6

func (fake *OrdererOrg) NameReturns(result1 string)

func (*OrdererOrg) NameReturnsOnCall added in v1.5.6

func (fake *OrdererOrg) NameReturnsOnCall(i int, result1 string)

type ReceiverGetter

type ReceiverGetter struct {
	mock.Mock
}

ReceiverGetter is an autogenerated mock type for the ReceiverGetter type

func (*ReceiverGetter) ReceiverByChain

func (_m *ReceiverGetter) ReceiverByChain(channelID string) etcdraft.MessageReceiver

ReceiverByChain provides a mock function with given fields: channelID

Jump to

Keyboard shortcuts

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