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 ¶
- type AccessController
- type BFTBlockDeliverer
- func (fake *BFTBlockDeliverer) DeliverBlocks()
- func (fake *BFTBlockDeliverer) DeliverBlocksCallCount() int
- func (fake *BFTBlockDeliverer) DeliverBlocksCalls(stub func())
- func (fake *BFTBlockDeliverer) Initialize(arg1 *common.Config, arg2 string)
- func (fake *BFTBlockDeliverer) InitializeArgsForCall(i int) (*common.Config, string)
- func (fake *BFTBlockDeliverer) InitializeCallCount() int
- func (fake *BFTBlockDeliverer) InitializeCalls(stub func(*common.Config, string))
- func (fake *BFTBlockDeliverer) Invocations() map[string][][]interface{}
- func (fake *BFTBlockDeliverer) Stop()
- func (fake *BFTBlockDeliverer) StopCallCount() int
- func (fake *BFTBlockDeliverer) StopCalls(stub func())
- type BFTDelivererFactory
- func (fake *BFTDelivererFactory) CreateBFTDeliverer(arg1 string, arg2 blocksprovider.BlockHandler, arg3 blocksprovider.LedgerInfo, ...) smartbft.BFTBlockDeliverer
- func (fake *BFTDelivererFactory) CreateBFTDelivererArgsForCall(i int) (string, blocksprovider.BlockHandler, blocksprovider.LedgerInfo, ...)
- func (fake *BFTDelivererFactory) CreateBFTDelivererCallCount() int
- func (fake *BFTDelivererFactory) CreateBFTDelivererCalls(...)
- func (fake *BFTDelivererFactory) CreateBFTDelivererReturns(result1 smartbft.BFTBlockDeliverer)
- func (fake *BFTDelivererFactory) CreateBFTDelivererReturnsOnCall(i int, result1 smartbft.BFTBlockDeliverer)
- func (fake *BFTDelivererFactory) Invocations() map[string][][]interface{}
- type BlockPuller
- type BlockPuller_Close_Call
- type BlockPuller_Expecter
- type BlockPuller_HeightsByEndpoints_Call
- func (_c *BlockPuller_HeightsByEndpoints_Call) Return(_a0 map[string]uint64, _a1 string, _a2 error) *BlockPuller_HeightsByEndpoints_Call
- func (_c *BlockPuller_HeightsByEndpoints_Call) Run(run func()) *BlockPuller_HeightsByEndpoints_Call
- func (_c *BlockPuller_HeightsByEndpoints_Call) RunAndReturn(run func() (map[string]uint64, string, error)) *BlockPuller_HeightsByEndpoints_Call
- type BlockPuller_PullBlock_Call
- type Bundle
- func (_m *Bundle) ApplicationConfig() (channelconfig.Application, bool)
- func (_m *Bundle) ChannelConfig() channelconfig.Channel
- func (_m *Bundle) ConfigtxValidator() configtx.Validator
- func (_m *Bundle) ConsortiumsConfig() (channelconfig.Consortiums, bool)
- func (_m *Bundle) MSPManager() msp.MSPManager
- func (_m *Bundle) OrdererConfig() (channelconfig.Orderer, bool)
- func (_m *Bundle) PolicyManager() policies.Manager
- func (_m *Bundle) ValidateNew(resources channelconfig.Resources) error
- type Communicator
- type Communicator_Configure_Call
- func (_c *Communicator_Configure_Call) Return() *Communicator_Configure_Call
- func (_c *Communicator_Configure_Call) Run(run func(channel string, members []cluster.RemoteNode)) *Communicator_Configure_Call
- func (_c *Communicator_Configure_Call) RunAndReturn(run func(string, []cluster.RemoteNode)) *Communicator_Configure_Call
- type Communicator_Expecter
- type Communicator_Remote_Call
- func (_c *Communicator_Remote_Call) Return(_a0 *cluster.RemoteContext, _a1 error) *Communicator_Remote_Call
- func (_c *Communicator_Remote_Call) Run(run func(channel string, id uint64)) *Communicator_Remote_Call
- func (_c *Communicator_Remote_Call) RunAndReturn(run func(string, uint64) (*cluster.RemoteContext, error)) *Communicator_Remote_Call
- type Communicator_Shutdown_Call
- type ConfigTxValidator
- func (_m *ConfigTxValidator) ChannelID() string
- func (_m *ConfigTxValidator) ConfigProto() *common.Config
- func (_m *ConfigTxValidator) ProposeConfigUpdate(configtx *common.Envelope) (*common.ConfigEnvelope, error)
- func (_m *ConfigTxValidator) Sequence() uint64
- func (_m *ConfigTxValidator) Validate(configEnv *common.ConfigEnvelope) error
- type ConfigUpdateProposer
- type ConfigValidator
- type ConfigValidator_Expecter
- type ConfigValidator_ValidateConfig_Call
- func (_c *ConfigValidator_ValidateConfig_Call) Return(_a0 error) *ConfigValidator_ValidateConfig_Call
- func (_c *ConfigValidator_ValidateConfig_Call) Run(run func(env *common.Envelope)) *ConfigValidator_ValidateConfig_Call
- func (_c *ConfigValidator_ValidateConfig_Call) RunAndReturn(run func(*common.Envelope) error) *ConfigValidator_ValidateConfig_Call
- type ConsenterSupport
- func (_m *ConsenterSupport) Append(block *common.Block) error
- func (_m *ConsenterSupport) Block(number uint64) *common.Block
- func (_m *ConsenterSupport) BlockCutter() blockcutter.Receiver
- func (_m *ConsenterSupport) ChannelConfig() channelconfig.Channel
- func (_m *ConsenterSupport) ChannelID() string
- func (_m *ConsenterSupport) ClassifyMsg(chdr *common.ChannelHeader) msgprocessor.Classification
- func (_m *ConsenterSupport) CreateNextBlock(messages []*common.Envelope) *common.Block
- func (_m *ConsenterSupport) EXPECT() *ConsenterSupport_Expecter
- func (_m *ConsenterSupport) Height() uint64
- func (_m *ConsenterSupport) ProcessConfigMsg(env *common.Envelope) (*common.Envelope, uint64, error)
- func (_m *ConsenterSupport) ProcessConfigUpdateMsg(env *common.Envelope) (*common.Envelope, uint64, error)
- func (_m *ConsenterSupport) ProcessNormalMsg(env *common.Envelope) (uint64, error)
- func (_m *ConsenterSupport) Sequence() uint64
- func (_m *ConsenterSupport) Serialize() ([]byte, error)
- func (_m *ConsenterSupport) SharedConfig() channelconfig.Orderer
- func (_m *ConsenterSupport) Sign(message []byte) ([]byte, error)
- func (_m *ConsenterSupport) SignatureVerifier() protoutil.BlockVerifierFunc
- func (_m *ConsenterSupport) WriteBlock(block *common.Block, encodedMetadataValue []byte)
- func (_m *ConsenterSupport) WriteBlockSync(block *common.Block, encodedMetadataValue []byte)
- func (_m *ConsenterSupport) WriteConfigBlock(block *common.Block, encodedMetadataValue []byte)
- type ConsenterSupport_Append_Call
- func (_c *ConsenterSupport_Append_Call) Return(_a0 error) *ConsenterSupport_Append_Call
- func (_c *ConsenterSupport_Append_Call) Run(run func(block *common.Block)) *ConsenterSupport_Append_Call
- func (_c *ConsenterSupport_Append_Call) RunAndReturn(run func(*common.Block) error) *ConsenterSupport_Append_Call
- type ConsenterSupport_BlockCutter_Call
- func (_c *ConsenterSupport_BlockCutter_Call) Return(_a0 blockcutter.Receiver) *ConsenterSupport_BlockCutter_Call
- func (_c *ConsenterSupport_BlockCutter_Call) Run(run func()) *ConsenterSupport_BlockCutter_Call
- func (_c *ConsenterSupport_BlockCutter_Call) RunAndReturn(run func() blockcutter.Receiver) *ConsenterSupport_BlockCutter_Call
- type ConsenterSupport_Block_Call
- func (_c *ConsenterSupport_Block_Call) Return(_a0 *common.Block) *ConsenterSupport_Block_Call
- func (_c *ConsenterSupport_Block_Call) Run(run func(number uint64)) *ConsenterSupport_Block_Call
- func (_c *ConsenterSupport_Block_Call) RunAndReturn(run func(uint64) *common.Block) *ConsenterSupport_Block_Call
- type ConsenterSupport_ChannelConfig_Call
- func (_c *ConsenterSupport_ChannelConfig_Call) Return(_a0 channelconfig.Channel) *ConsenterSupport_ChannelConfig_Call
- func (_c *ConsenterSupport_ChannelConfig_Call) Run(run func()) *ConsenterSupport_ChannelConfig_Call
- func (_c *ConsenterSupport_ChannelConfig_Call) RunAndReturn(run func() channelconfig.Channel) *ConsenterSupport_ChannelConfig_Call
- type ConsenterSupport_ChannelID_Call
- type ConsenterSupport_ClassifyMsg_Call
- func (_c *ConsenterSupport_ClassifyMsg_Call) Return(_a0 msgprocessor.Classification) *ConsenterSupport_ClassifyMsg_Call
- func (_c *ConsenterSupport_ClassifyMsg_Call) Run(run func(chdr *common.ChannelHeader)) *ConsenterSupport_ClassifyMsg_Call
- func (_c *ConsenterSupport_ClassifyMsg_Call) RunAndReturn(run func(*common.ChannelHeader) msgprocessor.Classification) *ConsenterSupport_ClassifyMsg_Call
- type ConsenterSupport_CreateNextBlock_Call
- func (_c *ConsenterSupport_CreateNextBlock_Call) Return(_a0 *common.Block) *ConsenterSupport_CreateNextBlock_Call
- func (_c *ConsenterSupport_CreateNextBlock_Call) Run(run func(messages []*common.Envelope)) *ConsenterSupport_CreateNextBlock_Call
- func (_c *ConsenterSupport_CreateNextBlock_Call) RunAndReturn(run func([]*common.Envelope) *common.Block) *ConsenterSupport_CreateNextBlock_Call
- type ConsenterSupport_Expecter
- func (_e *ConsenterSupport_Expecter) Append(block interface{}) *ConsenterSupport_Append_Call
- func (_e *ConsenterSupport_Expecter) Block(number interface{}) *ConsenterSupport_Block_Call
- func (_e *ConsenterSupport_Expecter) BlockCutter() *ConsenterSupport_BlockCutter_Call
- func (_e *ConsenterSupport_Expecter) ChannelConfig() *ConsenterSupport_ChannelConfig_Call
- func (_e *ConsenterSupport_Expecter) ChannelID() *ConsenterSupport_ChannelID_Call
- func (_e *ConsenterSupport_Expecter) ClassifyMsg(chdr interface{}) *ConsenterSupport_ClassifyMsg_Call
- func (_e *ConsenterSupport_Expecter) CreateNextBlock(messages interface{}) *ConsenterSupport_CreateNextBlock_Call
- func (_e *ConsenterSupport_Expecter) Height() *ConsenterSupport_Height_Call
- func (_e *ConsenterSupport_Expecter) ProcessConfigMsg(env interface{}) *ConsenterSupport_ProcessConfigMsg_Call
- func (_e *ConsenterSupport_Expecter) ProcessConfigUpdateMsg(env interface{}) *ConsenterSupport_ProcessConfigUpdateMsg_Call
- func (_e *ConsenterSupport_Expecter) ProcessNormalMsg(env interface{}) *ConsenterSupport_ProcessNormalMsg_Call
- func (_e *ConsenterSupport_Expecter) Sequence() *ConsenterSupport_Sequence_Call
- func (_e *ConsenterSupport_Expecter) Serialize() *ConsenterSupport_Serialize_Call
- func (_e *ConsenterSupport_Expecter) SharedConfig() *ConsenterSupport_SharedConfig_Call
- func (_e *ConsenterSupport_Expecter) Sign(message interface{}) *ConsenterSupport_Sign_Call
- func (_e *ConsenterSupport_Expecter) SignatureVerifier() *ConsenterSupport_SignatureVerifier_Call
- func (_e *ConsenterSupport_Expecter) WriteBlock(block interface{}, encodedMetadataValue interface{}) *ConsenterSupport_WriteBlock_Call
- func (_e *ConsenterSupport_Expecter) WriteBlockSync(block interface{}, encodedMetadataValue interface{}) *ConsenterSupport_WriteBlockSync_Call
- func (_e *ConsenterSupport_Expecter) WriteConfigBlock(block interface{}, encodedMetadataValue interface{}) *ConsenterSupport_WriteConfigBlock_Call
- type ConsenterSupport_Height_Call
- type ConsenterSupport_ProcessConfigMsg_Call
- func (_c *ConsenterSupport_ProcessConfigMsg_Call) Return(_a0 *common.Envelope, _a1 uint64, _a2 error) *ConsenterSupport_ProcessConfigMsg_Call
- func (_c *ConsenterSupport_ProcessConfigMsg_Call) Run(run func(env *common.Envelope)) *ConsenterSupport_ProcessConfigMsg_Call
- func (_c *ConsenterSupport_ProcessConfigMsg_Call) RunAndReturn(run func(*common.Envelope) (*common.Envelope, uint64, error)) *ConsenterSupport_ProcessConfigMsg_Call
- type ConsenterSupport_ProcessConfigUpdateMsg_Call
- func (_c *ConsenterSupport_ProcessConfigUpdateMsg_Call) Return(config *common.Envelope, configSeq uint64, err error) *ConsenterSupport_ProcessConfigUpdateMsg_Call
- func (_c *ConsenterSupport_ProcessConfigUpdateMsg_Call) Run(run func(env *common.Envelope)) *ConsenterSupport_ProcessConfigUpdateMsg_Call
- func (_c *ConsenterSupport_ProcessConfigUpdateMsg_Call) RunAndReturn(run func(*common.Envelope) (*common.Envelope, uint64, error)) *ConsenterSupport_ProcessConfigUpdateMsg_Call
- type ConsenterSupport_ProcessNormalMsg_Call
- func (_c *ConsenterSupport_ProcessNormalMsg_Call) Return(configSeq uint64, err error) *ConsenterSupport_ProcessNormalMsg_Call
- func (_c *ConsenterSupport_ProcessNormalMsg_Call) Run(run func(env *common.Envelope)) *ConsenterSupport_ProcessNormalMsg_Call
- func (_c *ConsenterSupport_ProcessNormalMsg_Call) RunAndReturn(run func(*common.Envelope) (uint64, error)) *ConsenterSupport_ProcessNormalMsg_Call
- type ConsenterSupport_Sequence_Call
- type ConsenterSupport_Serialize_Call
- func (_c *ConsenterSupport_Serialize_Call) Return(_a0 []byte, _a1 error) *ConsenterSupport_Serialize_Call
- func (_c *ConsenterSupport_Serialize_Call) Run(run func()) *ConsenterSupport_Serialize_Call
- func (_c *ConsenterSupport_Serialize_Call) RunAndReturn(run func() ([]byte, error)) *ConsenterSupport_Serialize_Call
- type ConsenterSupport_SharedConfig_Call
- func (_c *ConsenterSupport_SharedConfig_Call) Return(_a0 channelconfig.Orderer) *ConsenterSupport_SharedConfig_Call
- func (_c *ConsenterSupport_SharedConfig_Call) Run(run func()) *ConsenterSupport_SharedConfig_Call
- func (_c *ConsenterSupport_SharedConfig_Call) RunAndReturn(run func() channelconfig.Orderer) *ConsenterSupport_SharedConfig_Call
- type ConsenterSupport_Sign_Call
- func (_c *ConsenterSupport_Sign_Call) Return(_a0 []byte, _a1 error) *ConsenterSupport_Sign_Call
- func (_c *ConsenterSupport_Sign_Call) Run(run func(message []byte)) *ConsenterSupport_Sign_Call
- func (_c *ConsenterSupport_Sign_Call) RunAndReturn(run func([]byte) ([]byte, error)) *ConsenterSupport_Sign_Call
- type ConsenterSupport_SignatureVerifier_Call
- func (_c *ConsenterSupport_SignatureVerifier_Call) Return(_a0 protoutil.BlockVerifierFunc) *ConsenterSupport_SignatureVerifier_Call
- func (_c *ConsenterSupport_SignatureVerifier_Call) Run(run func()) *ConsenterSupport_SignatureVerifier_Call
- func (_c *ConsenterSupport_SignatureVerifier_Call) RunAndReturn(run func() protoutil.BlockVerifierFunc) *ConsenterSupport_SignatureVerifier_Call
- type ConsenterSupport_WriteBlockSync_Call
- func (_c *ConsenterSupport_WriteBlockSync_Call) Return() *ConsenterSupport_WriteBlockSync_Call
- func (_c *ConsenterSupport_WriteBlockSync_Call) Run(run func(block *common.Block, encodedMetadataValue []byte)) *ConsenterSupport_WriteBlockSync_Call
- func (_c *ConsenterSupport_WriteBlockSync_Call) RunAndReturn(run func(*common.Block, []byte)) *ConsenterSupport_WriteBlockSync_Call
- type ConsenterSupport_WriteBlock_Call
- func (_c *ConsenterSupport_WriteBlock_Call) Return() *ConsenterSupport_WriteBlock_Call
- func (_c *ConsenterSupport_WriteBlock_Call) Run(run func(block *common.Block, encodedMetadataValue []byte)) *ConsenterSupport_WriteBlock_Call
- func (_c *ConsenterSupport_WriteBlock_Call) RunAndReturn(run func(*common.Block, []byte)) *ConsenterSupport_WriteBlock_Call
- type ConsenterSupport_WriteConfigBlock_Call
- func (_c *ConsenterSupport_WriteConfigBlock_Call) Return() *ConsenterSupport_WriteConfigBlock_Call
- func (_c *ConsenterSupport_WriteConfigBlock_Call) Run(run func(block *common.Block, encodedMetadataValue []byte)) *ConsenterSupport_WriteConfigBlock_Call
- func (_c *ConsenterSupport_WriteConfigBlock_Call) RunAndReturn(run func(*common.Block, []byte)) *ConsenterSupport_WriteConfigBlock_Call
- type ConsenterVerifier
- type EgressComm
- type EgressComm_Expecter
- type EgressComm_Nodes_Call
- type EgressComm_SendConsensus_Call
- func (_c *EgressComm_SendConsensus_Call) Return() *EgressComm_SendConsensus_Call
- func (_c *EgressComm_SendConsensus_Call) Run(run func(targetID uint64, m *smartbftprotos.Message)) *EgressComm_SendConsensus_Call
- func (_c *EgressComm_SendConsensus_Call) RunAndReturn(run func(uint64, *smartbftprotos.Message)) *EgressComm_SendConsensus_Call
- type EgressComm_SendTransaction_Call
- func (_c *EgressComm_SendTransaction_Call) Return() *EgressComm_SendTransaction_Call
- func (_c *EgressComm_SendTransaction_Call) Run(run func(targetID uint64, request []byte)) *EgressComm_SendTransaction_Call
- func (_c *EgressComm_SendTransaction_Call) RunAndReturn(run func(uint64, []byte)) *EgressComm_SendTransaction_Call
- type FakeBlockPuller
- func (fake *FakeBlockPuller) Close()
- func (fake *FakeBlockPuller) CloseCallCount() int
- func (fake *FakeBlockPuller) CloseCalls(stub func())
- func (fake *FakeBlockPuller) HeightsByEndpoints() (map[string]uint64, string, error)
- func (fake *FakeBlockPuller) HeightsByEndpointsCallCount() int
- func (fake *FakeBlockPuller) HeightsByEndpointsCalls(stub func() (map[string]uint64, string, error))
- func (fake *FakeBlockPuller) HeightsByEndpointsReturns(result1 map[string]uint64, result2 string, result3 error)
- func (fake *FakeBlockPuller) HeightsByEndpointsReturnsOnCall(i int, result1 map[string]uint64, result2 string, result3 error)
- func (fake *FakeBlockPuller) Invocations() map[string][][]interface{}
- func (fake *FakeBlockPuller) PullBlock(arg1 uint64) *common.Block
- func (fake *FakeBlockPuller) PullBlockArgsForCall(i int) uint64
- func (fake *FakeBlockPuller) PullBlockCallCount() int
- func (fake *FakeBlockPuller) PullBlockCalls(stub func(uint64) *common.Block)
- func (fake *FakeBlockPuller) PullBlockReturns(result1 *common.Block)
- func (fake *FakeBlockPuller) PullBlockReturnsOnCall(i int, result1 *common.Block)
- type FakeBlockPullerFactory
- func (fake *FakeBlockPullerFactory) CreateBlockPuller(arg1 consensus.ConsenterSupport, arg2 *cluster.PredicateDialer, ...) (smartbft.BlockPuller, error)
- func (fake *FakeBlockPullerFactory) CreateBlockPullerArgsForCall(i int) (consensus.ConsenterSupport, *cluster.PredicateDialer, localconfig.Cluster, ...)
- func (fake *FakeBlockPullerFactory) CreateBlockPullerCallCount() int
- func (fake *FakeBlockPullerFactory) CreateBlockPullerCalls(...)
- func (fake *FakeBlockPullerFactory) CreateBlockPullerReturns(result1 smartbft.BlockPuller, result2 error)
- func (fake *FakeBlockPullerFactory) CreateBlockPullerReturnsOnCall(i int, result1 smartbft.BlockPuller, result2 error)
- func (fake *FakeBlockPullerFactory) Invocations() map[string][][]interface{}
- type Filters
- type Ledger
- type MessageReceiver
- type OrdererConfig
- func (fake *OrdererConfig) BatchSize() *orderer.BatchSize
- func (fake *OrdererConfig) BatchSizeCallCount() int
- func (fake *OrdererConfig) BatchSizeCalls(stub func() *orderer.BatchSize)
- func (fake *OrdererConfig) BatchSizeReturns(result1 *orderer.BatchSize)
- func (fake *OrdererConfig) BatchSizeReturnsOnCall(i int, result1 *orderer.BatchSize)
- func (fake *OrdererConfig) BatchTimeout() time.Duration
- func (fake *OrdererConfig) BatchTimeoutCallCount() int
- func (fake *OrdererConfig) BatchTimeoutCalls(stub func() time.Duration)
- func (fake *OrdererConfig) BatchTimeoutReturns(result1 time.Duration)
- func (fake *OrdererConfig) BatchTimeoutReturnsOnCall(i int, result1 time.Duration)
- func (fake *OrdererConfig) Capabilities() channelconfig.OrdererCapabilities
- func (fake *OrdererConfig) CapabilitiesCallCount() int
- func (fake *OrdererConfig) CapabilitiesCalls(stub func() channelconfig.OrdererCapabilities)
- func (fake *OrdererConfig) CapabilitiesReturns(result1 channelconfig.OrdererCapabilities)
- func (fake *OrdererConfig) CapabilitiesReturnsOnCall(i int, result1 channelconfig.OrdererCapabilities)
- func (fake *OrdererConfig) ConsensusMetadata() []byte
- func (fake *OrdererConfig) ConsensusMetadataCallCount() int
- func (fake *OrdererConfig) ConsensusMetadataCalls(stub func() []byte)
- func (fake *OrdererConfig) ConsensusMetadataReturns(result1 []byte)
- func (fake *OrdererConfig) ConsensusMetadataReturnsOnCall(i int, result1 []byte)
- func (fake *OrdererConfig) ConsensusState() orderer.ConsensusType_State
- func (fake *OrdererConfig) ConsensusStateCallCount() int
- func (fake *OrdererConfig) ConsensusStateCalls(stub func() orderer.ConsensusType_State)
- func (fake *OrdererConfig) ConsensusStateReturns(result1 orderer.ConsensusType_State)
- func (fake *OrdererConfig) ConsensusStateReturnsOnCall(i int, result1 orderer.ConsensusType_State)
- func (fake *OrdererConfig) ConsensusType() string
- func (fake *OrdererConfig) ConsensusTypeCallCount() int
- func (fake *OrdererConfig) ConsensusTypeCalls(stub func() string)
- func (fake *OrdererConfig) ConsensusTypeReturns(result1 string)
- func (fake *OrdererConfig) ConsensusTypeReturnsOnCall(i int, result1 string)
- func (fake *OrdererConfig) Consenters() []*common.Consenter
- func (fake *OrdererConfig) ConsentersCallCount() int
- func (fake *OrdererConfig) ConsentersCalls(stub func() []*common.Consenter)
- func (fake *OrdererConfig) ConsentersReturns(result1 []*common.Consenter)
- func (fake *OrdererConfig) ConsentersReturnsOnCall(i int, result1 []*common.Consenter)
- func (fake *OrdererConfig) Invocations() map[string][][]interface{}
- func (fake *OrdererConfig) MaxChannelsCount() uint64
- func (fake *OrdererConfig) MaxChannelsCountCallCount() int
- func (fake *OrdererConfig) MaxChannelsCountCalls(stub func() uint64)
- func (fake *OrdererConfig) MaxChannelsCountReturns(result1 uint64)
- func (fake *OrdererConfig) MaxChannelsCountReturnsOnCall(i int, result1 uint64)
- func (fake *OrdererConfig) Organizations() map[string]channelconfig.OrdererOrg
- func (fake *OrdererConfig) OrganizationsCallCount() int
- func (fake *OrdererConfig) OrganizationsCalls(stub func() map[string]channelconfig.OrdererOrg)
- func (fake *OrdererConfig) OrganizationsReturns(result1 map[string]channelconfig.OrdererOrg)
- func (fake *OrdererConfig) OrganizationsReturnsOnCall(i int, result1 map[string]channelconfig.OrdererOrg)
- type Policy
- type PolicyManager
- type PolicyManager_Expecter
- type PolicyManager_GetPolicy_Call
- func (_c *PolicyManager_GetPolicy_Call) Return(_a0 policies.Policy, _a1 bool) *PolicyManager_GetPolicy_Call
- func (_c *PolicyManager_GetPolicy_Call) Run(run func(id string)) *PolicyManager_GetPolicy_Call
- func (_c *PolicyManager_GetPolicy_Call) RunAndReturn(run func(string) (policies.Policy, bool)) *PolicyManager_GetPolicy_Call
- type PolicyManager_Manager_Call
- func (_c *PolicyManager_Manager_Call) Return(_a0 policies.Manager, _a1 bool) *PolicyManager_Manager_Call
- func (_c *PolicyManager_Manager_Call) Run(run func(path []string)) *PolicyManager_Manager_Call
- func (_c *PolicyManager_Manager_Call) RunAndReturn(run func([]string) (policies.Manager, bool)) *PolicyManager_Manager_Call
- type Policy_EvaluateIdentities_Call
- func (_c *Policy_EvaluateIdentities_Call) Return(_a0 error) *Policy_EvaluateIdentities_Call
- func (_c *Policy_EvaluateIdentities_Call) Run(run func(identities []msp.Identity)) *Policy_EvaluateIdentities_Call
- func (_c *Policy_EvaluateIdentities_Call) RunAndReturn(run func([]msp.Identity) error) *Policy_EvaluateIdentities_Call
- type Policy_EvaluateSignedData_Call
- func (_c *Policy_EvaluateSignedData_Call) Return(_a0 error) *Policy_EvaluateSignedData_Call
- func (_c *Policy_EvaluateSignedData_Call) Run(run func(signatureSet []*protoutil.SignedData)) *Policy_EvaluateSignedData_Call
- func (_c *Policy_EvaluateSignedData_Call) RunAndReturn(run func([]*protoutil.SignedData) error) *Policy_EvaluateSignedData_Call
- type Policy_Expecter
- type RPC
- type ReceiverGetter
- type Sequencer
- type SignerSerializer
- type SignerSerializer_Expecter
- type SignerSerializer_Serialize_Call
- func (_c *SignerSerializer_Serialize_Call) Return(_a0 []byte, _a1 error) *SignerSerializer_Serialize_Call
- func (_c *SignerSerializer_Serialize_Call) Run(run func()) *SignerSerializer_Serialize_Call
- func (_c *SignerSerializer_Serialize_Call) RunAndReturn(run func() ([]byte, error)) *SignerSerializer_Serialize_Call
- type SignerSerializer_Sign_Call
- func (_c *SignerSerializer_Sign_Call) Return(_a0 []byte, _a1 error) *SignerSerializer_Sign_Call
- func (_c *SignerSerializer_Sign_Call) Run(run func(message []byte)) *SignerSerializer_Sign_Call
- func (_c *SignerSerializer_Sign_Call) RunAndReturn(run func([]byte) ([]byte, error)) *SignerSerializer_Sign_Call
- type Synchronizer
- type SynchronizerFactory
- type SynchronizerFactory_CreateSynchronizer_Call
- func (_c *SynchronizerFactory_CreateSynchronizer_Call) Return(_a0 api.Synchronizer) *SynchronizerFactory_CreateSynchronizer_Call
- func (_c *SynchronizerFactory_CreateSynchronizer_Call) Run(...) *SynchronizerFactory_CreateSynchronizer_Call
- func (_c *SynchronizerFactory_CreateSynchronizer_Call) RunAndReturn(...) *SynchronizerFactory_CreateSynchronizer_Call
- type SynchronizerFactory_Expecter
- type Synchronizer_Expecter
- type Synchronizer_Sync_Call
- type UpdatableBlockVerifier
- func (fake *UpdatableBlockVerifier) Clone() deliverclient.CloneableUpdatableBlockVerifier
- func (fake *UpdatableBlockVerifier) CloneCallCount() int
- func (fake *UpdatableBlockVerifier) CloneCalls(stub func() deliverclient.CloneableUpdatableBlockVerifier)
- func (fake *UpdatableBlockVerifier) CloneReturns(result1 deliverclient.CloneableUpdatableBlockVerifier)
- func (fake *UpdatableBlockVerifier) CloneReturnsOnCall(i int, result1 deliverclient.CloneableUpdatableBlockVerifier)
- func (fake *UpdatableBlockVerifier) Invocations() map[string][][]interface{}
- func (fake *UpdatableBlockVerifier) UpdateBlockHeader(arg1 *common.Block)
- func (fake *UpdatableBlockVerifier) UpdateBlockHeaderArgsForCall(i int) *common.Block
- func (fake *UpdatableBlockVerifier) UpdateBlockHeaderCallCount() int
- func (fake *UpdatableBlockVerifier) UpdateBlockHeaderCalls(stub func(*common.Block))
- func (fake *UpdatableBlockVerifier) UpdateConfig(arg1 *common.Block) error
- func (fake *UpdatableBlockVerifier) UpdateConfigArgsForCall(i int) *common.Block
- func (fake *UpdatableBlockVerifier) UpdateConfigCallCount() int
- func (fake *UpdatableBlockVerifier) UpdateConfigCalls(stub func(*common.Block) error)
- func (fake *UpdatableBlockVerifier) UpdateConfigReturns(result1 error)
- func (fake *UpdatableBlockVerifier) UpdateConfigReturnsOnCall(i int, result1 error)
- func (fake *UpdatableBlockVerifier) VerifyBlock(arg1 *common.Block) error
- func (fake *UpdatableBlockVerifier) VerifyBlockArgsForCall(i int) *common.Block
- func (fake *UpdatableBlockVerifier) VerifyBlockAttestation(arg1 *common.Block) error
- func (fake *UpdatableBlockVerifier) VerifyBlockAttestationArgsForCall(i int) *common.Block
- func (fake *UpdatableBlockVerifier) VerifyBlockAttestationCallCount() int
- func (fake *UpdatableBlockVerifier) VerifyBlockAttestationCalls(stub func(*common.Block) error)
- func (fake *UpdatableBlockVerifier) VerifyBlockAttestationReturns(result1 error)
- func (fake *UpdatableBlockVerifier) VerifyBlockAttestationReturnsOnCall(i int, result1 error)
- func (fake *UpdatableBlockVerifier) VerifyBlockCallCount() int
- func (fake *UpdatableBlockVerifier) VerifyBlockCalls(stub func(*common.Block) error)
- func (fake *UpdatableBlockVerifier) VerifyBlockReturns(result1 error)
- func (fake *UpdatableBlockVerifier) VerifyBlockReturnsOnCall(i int, result1 error)
- type VerifierFactory
- func (fake *VerifierFactory) CreateBlockVerifier(arg1 *common.Block, arg2 *common.Block, arg3 bccsp.BCCSP, ...) (deliverclient.CloneableUpdatableBlockVerifier, error)
- func (fake *VerifierFactory) CreateBlockVerifierArgsForCall(i int) (*common.Block, *common.Block, bccsp.BCCSP, *flogging.FabricLogger)
- func (fake *VerifierFactory) CreateBlockVerifierCallCount() int
- func (fake *VerifierFactory) CreateBlockVerifierCalls(...)
- func (fake *VerifierFactory) CreateBlockVerifierReturns(result1 deliverclient.CloneableUpdatableBlockVerifier, result2 error)
- func (fake *VerifierFactory) CreateBlockVerifierReturnsOnCall(i int, result1 deliverclient.CloneableUpdatableBlockVerifier, result2 error)
- func (fake *VerifierFactory) Invocations() map[string][][]interface{}
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessController ¶
AccessController is an autogenerated mock type for the AccessController type
func NewAccessController ¶
func NewAccessController(t mockConstructorTestingTNewAccessController) *AccessController
NewAccessController creates a new instance of AccessController. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*AccessController) Evaluate ¶
func (_m *AccessController) Evaluate(signatureSet []*protoutil.SignedData) error
Evaluate provides a mock function with given fields: signatureSet
type BFTBlockDeliverer ¶
type BFTBlockDeliverer struct { DeliverBlocksStub func() InitializeStub func(*common.Config, string) StopStub func() // contains filtered or unexported fields }
func (*BFTBlockDeliverer) DeliverBlocks ¶
func (fake *BFTBlockDeliverer) DeliverBlocks()
func (*BFTBlockDeliverer) DeliverBlocksCallCount ¶
func (fake *BFTBlockDeliverer) DeliverBlocksCallCount() int
func (*BFTBlockDeliverer) DeliverBlocksCalls ¶
func (fake *BFTBlockDeliverer) DeliverBlocksCalls(stub func())
func (*BFTBlockDeliverer) Initialize ¶
func (fake *BFTBlockDeliverer) Initialize(arg1 *common.Config, arg2 string)
func (*BFTBlockDeliverer) InitializeArgsForCall ¶
func (fake *BFTBlockDeliverer) InitializeArgsForCall(i int) (*common.Config, string)
func (*BFTBlockDeliverer) InitializeCallCount ¶
func (fake *BFTBlockDeliverer) InitializeCallCount() int
func (*BFTBlockDeliverer) InitializeCalls ¶
func (fake *BFTBlockDeliverer) InitializeCalls(stub func(*common.Config, string))
func (*BFTBlockDeliverer) Invocations ¶
func (fake *BFTBlockDeliverer) Invocations() map[string][][]interface{}
func (*BFTBlockDeliverer) Stop ¶
func (fake *BFTBlockDeliverer) Stop()
func (*BFTBlockDeliverer) StopCallCount ¶
func (fake *BFTBlockDeliverer) StopCallCount() int
func (*BFTBlockDeliverer) StopCalls ¶
func (fake *BFTBlockDeliverer) StopCalls(stub func())
type BFTDelivererFactory ¶
type BFTDelivererFactory struct { CreateBFTDelivererStub func(string, blocksprovider.BlockHandler, blocksprovider.LedgerInfo, blocksprovider.UpdatableBlockVerifier, blocksprovider.Dialer, blocksprovider.OrdererConnectionSourceFactory, bccsp.BCCSP, chan struct{}, identity.SignerSerializer, blocksprovider.DeliverStreamer, blocksprovider.CensorshipDetectorFactory, *flogging.FabricLogger, time.Duration, time.Duration, time.Duration, time.Duration, blocksprovider.MaxRetryDurationExceededHandler) smartbft.BFTBlockDeliverer // contains filtered or unexported fields }
func (*BFTDelivererFactory) CreateBFTDeliverer ¶
func (fake *BFTDelivererFactory) CreateBFTDeliverer(arg1 string, arg2 blocksprovider.BlockHandler, arg3 blocksprovider.LedgerInfo, arg4 blocksprovider.UpdatableBlockVerifier, arg5 blocksprovider.Dialer, arg6 blocksprovider.OrdererConnectionSourceFactory, arg7 bccsp.BCCSP, arg8 chan struct{}, arg9 identity.SignerSerializer, arg10 blocksprovider.DeliverStreamer, arg11 blocksprovider.CensorshipDetectorFactory, arg12 *flogging.FabricLogger, arg13 time.Duration, arg14 time.Duration, arg15 time.Duration, arg16 time.Duration, arg17 blocksprovider.MaxRetryDurationExceededHandler) smartbft.BFTBlockDeliverer
func (*BFTDelivererFactory) CreateBFTDelivererArgsForCall ¶
func (fake *BFTDelivererFactory) CreateBFTDelivererArgsForCall(i int) (string, blocksprovider.BlockHandler, blocksprovider.LedgerInfo, blocksprovider.UpdatableBlockVerifier, blocksprovider.Dialer, blocksprovider.OrdererConnectionSourceFactory, bccsp.BCCSP, chan struct{}, identity.SignerSerializer, blocksprovider.DeliverStreamer, blocksprovider.CensorshipDetectorFactory, *flogging.FabricLogger, time.Duration, time.Duration, time.Duration, time.Duration, blocksprovider.MaxRetryDurationExceededHandler)
func (*BFTDelivererFactory) CreateBFTDelivererCallCount ¶
func (fake *BFTDelivererFactory) CreateBFTDelivererCallCount() int
func (*BFTDelivererFactory) CreateBFTDelivererCalls ¶
func (fake *BFTDelivererFactory) CreateBFTDelivererCalls(stub func(string, blocksprovider.BlockHandler, blocksprovider.LedgerInfo, blocksprovider.UpdatableBlockVerifier, blocksprovider.Dialer, blocksprovider.OrdererConnectionSourceFactory, bccsp.BCCSP, chan struct{}, identity.SignerSerializer, blocksprovider.DeliverStreamer, blocksprovider.CensorshipDetectorFactory, *flogging.FabricLogger, time.Duration, time.Duration, time.Duration, time.Duration, blocksprovider.MaxRetryDurationExceededHandler) smartbft.BFTBlockDeliverer)
func (*BFTDelivererFactory) CreateBFTDelivererReturns ¶
func (fake *BFTDelivererFactory) CreateBFTDelivererReturns(result1 smartbft.BFTBlockDeliverer)
func (*BFTDelivererFactory) CreateBFTDelivererReturnsOnCall ¶
func (fake *BFTDelivererFactory) CreateBFTDelivererReturnsOnCall(i int, result1 smartbft.BFTBlockDeliverer)
func (*BFTDelivererFactory) Invocations ¶
func (fake *BFTDelivererFactory) Invocations() map[string][][]interface{}
type BlockPuller ¶
BlockPuller is an autogenerated mock type for the BlockPuller type
func NewBlockPuller ¶
func NewBlockPuller(t interface { mock.TestingT Cleanup(func()) }) *BlockPuller
NewBlockPuller creates a new instance of BlockPuller. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*BlockPuller) Close ¶
func (_m *BlockPuller) Close()
Close provides a mock function with given fields:
func (*BlockPuller) EXPECT ¶
func (_m *BlockPuller) EXPECT() *BlockPuller_Expecter
func (*BlockPuller) HeightsByEndpoints ¶
func (_m *BlockPuller) HeightsByEndpoints() (map[string]uint64, string, error)
HeightsByEndpoints provides a mock function with given fields:
type BlockPuller_Close_Call ¶
BlockPuller_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'
func (*BlockPuller_Close_Call) Return ¶
func (_c *BlockPuller_Close_Call) Return() *BlockPuller_Close_Call
func (*BlockPuller_Close_Call) Run ¶
func (_c *BlockPuller_Close_Call) Run(run func()) *BlockPuller_Close_Call
func (*BlockPuller_Close_Call) RunAndReturn ¶
func (_c *BlockPuller_Close_Call) RunAndReturn(run func()) *BlockPuller_Close_Call
type BlockPuller_Expecter ¶
type BlockPuller_Expecter struct {
// contains filtered or unexported fields
}
func (*BlockPuller_Expecter) Close ¶
func (_e *BlockPuller_Expecter) Close() *BlockPuller_Close_Call
Close is a helper method to define mock.On call
func (*BlockPuller_Expecter) HeightsByEndpoints ¶
func (_e *BlockPuller_Expecter) HeightsByEndpoints() *BlockPuller_HeightsByEndpoints_Call
HeightsByEndpoints is a helper method to define mock.On call
func (*BlockPuller_Expecter) PullBlock ¶
func (_e *BlockPuller_Expecter) PullBlock(seq interface{}) *BlockPuller_PullBlock_Call
PullBlock is a helper method to define mock.On call
- seq uint64
type BlockPuller_HeightsByEndpoints_Call ¶
BlockPuller_HeightsByEndpoints_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HeightsByEndpoints'
func (*BlockPuller_HeightsByEndpoints_Call) Return ¶
func (_c *BlockPuller_HeightsByEndpoints_Call) Return(_a0 map[string]uint64, _a1 string, _a2 error) *BlockPuller_HeightsByEndpoints_Call
func (*BlockPuller_HeightsByEndpoints_Call) Run ¶
func (_c *BlockPuller_HeightsByEndpoints_Call) Run(run func()) *BlockPuller_HeightsByEndpoints_Call
func (*BlockPuller_HeightsByEndpoints_Call) RunAndReturn ¶
func (_c *BlockPuller_HeightsByEndpoints_Call) RunAndReturn(run func() (map[string]uint64, string, error)) *BlockPuller_HeightsByEndpoints_Call
type BlockPuller_PullBlock_Call ¶
BlockPuller_PullBlock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PullBlock'
func (*BlockPuller_PullBlock_Call) Return ¶
func (_c *BlockPuller_PullBlock_Call) Return(_a0 *common.Block) *BlockPuller_PullBlock_Call
func (*BlockPuller_PullBlock_Call) Run ¶
func (_c *BlockPuller_PullBlock_Call) Run(run func(seq uint64)) *BlockPuller_PullBlock_Call
func (*BlockPuller_PullBlock_Call) RunAndReturn ¶
func (_c *BlockPuller_PullBlock_Call) RunAndReturn(run func(uint64) *common.Block) *BlockPuller_PullBlock_Call
type Bundle ¶
Bundle is an autogenerated mock type for the Bundle type
func NewBundle ¶
func NewBundle(t mockConstructorTestingTNewBundle) *Bundle
NewBundle creates a new instance of Bundle. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Bundle) ApplicationConfig ¶
func (_m *Bundle) ApplicationConfig() (channelconfig.Application, bool)
ApplicationConfig provides a mock function with given fields:
func (*Bundle) ChannelConfig ¶
func (_m *Bundle) ChannelConfig() channelconfig.Channel
ChannelConfig provides a mock function with given fields:
func (*Bundle) ConfigtxValidator ¶
ConfigtxValidator provides a mock function with given fields:
func (*Bundle) ConsortiumsConfig ¶
func (_m *Bundle) ConsortiumsConfig() (channelconfig.Consortiums, bool)
ConsortiumsConfig provides a mock function with given fields:
func (*Bundle) MSPManager ¶
func (_m *Bundle) MSPManager() msp.MSPManager
MSPManager provides a mock function with given fields:
func (*Bundle) OrdererConfig ¶
func (_m *Bundle) OrdererConfig() (channelconfig.Orderer, bool)
OrdererConfig provides a mock function with given fields:
func (*Bundle) PolicyManager ¶
PolicyManager provides a mock function with given fields:
func (*Bundle) ValidateNew ¶
func (_m *Bundle) ValidateNew(resources channelconfig.Resources) error
ValidateNew provides a mock function with given fields: resources
type Communicator ¶
Communicator is an autogenerated mock type for the communicator type
func NewCommunicator ¶
func NewCommunicator(t interface { mock.TestingT Cleanup(func()) }) *Communicator
NewCommunicator creates a new instance of Communicator. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Communicator) Configure ¶
func (_m *Communicator) Configure(channel string, members []cluster.RemoteNode)
Configure provides a mock function with given fields: channel, members
func (*Communicator) EXPECT ¶
func (_m *Communicator) EXPECT() *Communicator_Expecter
func (*Communicator) Remote ¶
func (_m *Communicator) Remote(channel string, id uint64) (*cluster.RemoteContext, error)
Remote provides a mock function with given fields: channel, id
func (*Communicator) Shutdown ¶
func (_m *Communicator) Shutdown()
Shutdown provides a mock function with given fields:
type Communicator_Configure_Call ¶
Communicator_Configure_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Configure'
func (*Communicator_Configure_Call) Return ¶
func (_c *Communicator_Configure_Call) Return() *Communicator_Configure_Call
func (*Communicator_Configure_Call) Run ¶
func (_c *Communicator_Configure_Call) Run(run func(channel string, members []cluster.RemoteNode)) *Communicator_Configure_Call
func (*Communicator_Configure_Call) RunAndReturn ¶
func (_c *Communicator_Configure_Call) RunAndReturn(run func(string, []cluster.RemoteNode)) *Communicator_Configure_Call
type Communicator_Expecter ¶
type Communicator_Expecter struct {
// contains filtered or unexported fields
}
func (*Communicator_Expecter) Configure ¶
func (_e *Communicator_Expecter) Configure(channel interface{}, members interface{}) *Communicator_Configure_Call
Configure is a helper method to define mock.On call
- channel string
- members []cluster.RemoteNode
func (*Communicator_Expecter) Remote ¶
func (_e *Communicator_Expecter) Remote(channel interface{}, id interface{}) *Communicator_Remote_Call
Remote is a helper method to define mock.On call
- channel string
- id uint64
func (*Communicator_Expecter) Shutdown ¶
func (_e *Communicator_Expecter) Shutdown() *Communicator_Shutdown_Call
Shutdown is a helper method to define mock.On call
type Communicator_Remote_Call ¶
Communicator_Remote_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Remote'
func (*Communicator_Remote_Call) Return ¶
func (_c *Communicator_Remote_Call) Return(_a0 *cluster.RemoteContext, _a1 error) *Communicator_Remote_Call
func (*Communicator_Remote_Call) Run ¶
func (_c *Communicator_Remote_Call) Run(run func(channel string, id uint64)) *Communicator_Remote_Call
func (*Communicator_Remote_Call) RunAndReturn ¶
func (_c *Communicator_Remote_Call) RunAndReturn(run func(string, uint64) (*cluster.RemoteContext, error)) *Communicator_Remote_Call
type Communicator_Shutdown_Call ¶
Communicator_Shutdown_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Shutdown'
func (*Communicator_Shutdown_Call) Return ¶
func (_c *Communicator_Shutdown_Call) Return() *Communicator_Shutdown_Call
func (*Communicator_Shutdown_Call) Run ¶
func (_c *Communicator_Shutdown_Call) Run(run func()) *Communicator_Shutdown_Call
func (*Communicator_Shutdown_Call) RunAndReturn ¶
func (_c *Communicator_Shutdown_Call) RunAndReturn(run func()) *Communicator_Shutdown_Call
type ConfigTxValidator ¶
ConfigTxValidator is an autogenerated mock type for the ConfigTxValidator type
func NewConfigTxValidator ¶
func NewConfigTxValidator(t mockConstructorTestingTNewConfigTxValidator) *ConfigTxValidator
NewConfigTxValidator creates a new instance of ConfigTxValidator. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ConfigTxValidator) ChannelID ¶
func (_m *ConfigTxValidator) ChannelID() string
ChannelID provides a mock function with given fields:
func (*ConfigTxValidator) ConfigProto ¶
func (_m *ConfigTxValidator) ConfigProto() *common.Config
ConfigProto provides a mock function with given fields:
func (*ConfigTxValidator) ProposeConfigUpdate ¶
func (_m *ConfigTxValidator) ProposeConfigUpdate(configtx *common.Envelope) (*common.ConfigEnvelope, error)
ProposeConfigUpdate provides a mock function with given fields: configtx
func (*ConfigTxValidator) Sequence ¶
func (_m *ConfigTxValidator) Sequence() uint64
Sequence provides a mock function with given fields:
func (*ConfigTxValidator) Validate ¶
func (_m *ConfigTxValidator) Validate(configEnv *common.ConfigEnvelope) error
Validate provides a mock function with given fields: configEnv
type ConfigUpdateProposer ¶
ConfigUpdateProposer is an autogenerated mock type for the ConfigUpdateProposer type
func NewConfigUpdateProposer ¶
func NewConfigUpdateProposer(t mockConstructorTestingTNewConfigUpdateProposer) *ConfigUpdateProposer
NewConfigUpdateProposer creates a new instance of ConfigUpdateProposer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ConfigUpdateProposer) ProposeConfigUpdate ¶
func (_m *ConfigUpdateProposer) ProposeConfigUpdate(channel string, configtx *common.Envelope) (*common.ConfigEnvelope, error)
ProposeConfigUpdate provides a mock function with given fields: channel, configtx
type ConfigValidator ¶
ConfigValidator is an autogenerated mock type for the ConfigValidator type
func NewConfigValidator ¶
func NewConfigValidator(t interface { mock.TestingT Cleanup(func()) }) *ConfigValidator
NewConfigValidator creates a new instance of ConfigValidator. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*ConfigValidator) EXPECT ¶
func (_m *ConfigValidator) EXPECT() *ConfigValidator_Expecter
func (*ConfigValidator) ValidateConfig ¶
func (_m *ConfigValidator) ValidateConfig(env *common.Envelope) error
ValidateConfig provides a mock function with given fields: env
type ConfigValidator_Expecter ¶
type ConfigValidator_Expecter struct {
// contains filtered or unexported fields
}
func (*ConfigValidator_Expecter) ValidateConfig ¶
func (_e *ConfigValidator_Expecter) ValidateConfig(env interface{}) *ConfigValidator_ValidateConfig_Call
ValidateConfig is a helper method to define mock.On call
- env *common.Envelope
type ConfigValidator_ValidateConfig_Call ¶
ConfigValidator_ValidateConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ValidateConfig'
func (*ConfigValidator_ValidateConfig_Call) Return ¶
func (_c *ConfigValidator_ValidateConfig_Call) Return(_a0 error) *ConfigValidator_ValidateConfig_Call
func (*ConfigValidator_ValidateConfig_Call) Run ¶
func (_c *ConfigValidator_ValidateConfig_Call) Run(run func(env *common.Envelope)) *ConfigValidator_ValidateConfig_Call
func (*ConfigValidator_ValidateConfig_Call) RunAndReturn ¶
func (_c *ConfigValidator_ValidateConfig_Call) RunAndReturn(run func(*common.Envelope) error) *ConfigValidator_ValidateConfig_Call
type ConsenterSupport ¶
ConsenterSupport is an autogenerated mock type for the consenterSupport type
func NewConsenterSupport ¶
func NewConsenterSupport(t interface { mock.TestingT Cleanup(func()) }) *ConsenterSupport
NewConsenterSupport creates a new instance of ConsenterSupport. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*ConsenterSupport) Append ¶
func (_m *ConsenterSupport) Append(block *common.Block) error
Append provides a mock function with given fields: block
func (*ConsenterSupport) Block ¶
func (_m *ConsenterSupport) Block(number uint64) *common.Block
Block provides a mock function with given fields: number
func (*ConsenterSupport) BlockCutter ¶
func (_m *ConsenterSupport) BlockCutter() blockcutter.Receiver
BlockCutter provides a mock function with given fields:
func (*ConsenterSupport) ChannelConfig ¶
func (_m *ConsenterSupport) ChannelConfig() channelconfig.Channel
ChannelConfig provides a mock function with given fields:
func (*ConsenterSupport) ChannelID ¶
func (_m *ConsenterSupport) ChannelID() string
ChannelID provides a mock function with given fields:
func (*ConsenterSupport) ClassifyMsg ¶
func (_m *ConsenterSupport) ClassifyMsg(chdr *common.ChannelHeader) msgprocessor.Classification
ClassifyMsg provides a mock function with given fields: chdr
func (*ConsenterSupport) CreateNextBlock ¶
func (_m *ConsenterSupport) CreateNextBlock(messages []*common.Envelope) *common.Block
CreateNextBlock provides a mock function with given fields: messages
func (*ConsenterSupport) EXPECT ¶
func (_m *ConsenterSupport) EXPECT() *ConsenterSupport_Expecter
func (*ConsenterSupport) Height ¶
func (_m *ConsenterSupport) Height() uint64
Height provides a mock function with given fields:
func (*ConsenterSupport) ProcessConfigMsg ¶
func (_m *ConsenterSupport) ProcessConfigMsg(env *common.Envelope) (*common.Envelope, uint64, error)
ProcessConfigMsg provides a mock function with given fields: env
func (*ConsenterSupport) ProcessConfigUpdateMsg ¶
func (_m *ConsenterSupport) ProcessConfigUpdateMsg(env *common.Envelope) (*common.Envelope, uint64, error)
ProcessConfigUpdateMsg provides a mock function with given fields: env
func (*ConsenterSupport) ProcessNormalMsg ¶
func (_m *ConsenterSupport) ProcessNormalMsg(env *common.Envelope) (uint64, error)
ProcessNormalMsg provides a mock function with given fields: env
func (*ConsenterSupport) Sequence ¶
func (_m *ConsenterSupport) Sequence() uint64
Sequence provides a mock function with given fields:
func (*ConsenterSupport) Serialize ¶
func (_m *ConsenterSupport) Serialize() ([]byte, error)
Serialize provides a mock function with given fields:
func (*ConsenterSupport) SharedConfig ¶
func (_m *ConsenterSupport) SharedConfig() channelconfig.Orderer
SharedConfig provides a mock function with given fields:
func (*ConsenterSupport) Sign ¶
func (_m *ConsenterSupport) Sign(message []byte) ([]byte, error)
Sign provides a mock function with given fields: message
func (*ConsenterSupport) SignatureVerifier ¶
func (_m *ConsenterSupport) SignatureVerifier() protoutil.BlockVerifierFunc
SignatureVerifier provides a mock function with given fields:
func (*ConsenterSupport) WriteBlock ¶
func (_m *ConsenterSupport) WriteBlock(block *common.Block, encodedMetadataValue []byte)
WriteBlock provides a mock function with given fields: block, encodedMetadataValue
func (*ConsenterSupport) WriteBlockSync ¶
func (_m *ConsenterSupport) WriteBlockSync(block *common.Block, encodedMetadataValue []byte)
WriteBlockSync provides a mock function with given fields: block, encodedMetadataValue
func (*ConsenterSupport) WriteConfigBlock ¶
func (_m *ConsenterSupport) WriteConfigBlock(block *common.Block, encodedMetadataValue []byte)
WriteConfigBlock provides a mock function with given fields: block, encodedMetadataValue
type ConsenterSupport_Append_Call ¶
ConsenterSupport_Append_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Append'
func (*ConsenterSupport_Append_Call) Return ¶
func (_c *ConsenterSupport_Append_Call) Return(_a0 error) *ConsenterSupport_Append_Call
func (*ConsenterSupport_Append_Call) Run ¶
func (_c *ConsenterSupport_Append_Call) Run(run func(block *common.Block)) *ConsenterSupport_Append_Call
func (*ConsenterSupport_Append_Call) RunAndReturn ¶
func (_c *ConsenterSupport_Append_Call) RunAndReturn(run func(*common.Block) error) *ConsenterSupport_Append_Call
type ConsenterSupport_BlockCutter_Call ¶
ConsenterSupport_BlockCutter_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BlockCutter'
func (*ConsenterSupport_BlockCutter_Call) Return ¶
func (_c *ConsenterSupport_BlockCutter_Call) Return(_a0 blockcutter.Receiver) *ConsenterSupport_BlockCutter_Call
func (*ConsenterSupport_BlockCutter_Call) Run ¶
func (_c *ConsenterSupport_BlockCutter_Call) Run(run func()) *ConsenterSupport_BlockCutter_Call
func (*ConsenterSupport_BlockCutter_Call) RunAndReturn ¶
func (_c *ConsenterSupport_BlockCutter_Call) RunAndReturn(run func() blockcutter.Receiver) *ConsenterSupport_BlockCutter_Call
type ConsenterSupport_Block_Call ¶
ConsenterSupport_Block_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Block'
func (*ConsenterSupport_Block_Call) Return ¶
func (_c *ConsenterSupport_Block_Call) Return(_a0 *common.Block) *ConsenterSupport_Block_Call
func (*ConsenterSupport_Block_Call) Run ¶
func (_c *ConsenterSupport_Block_Call) Run(run func(number uint64)) *ConsenterSupport_Block_Call
func (*ConsenterSupport_Block_Call) RunAndReturn ¶
func (_c *ConsenterSupport_Block_Call) RunAndReturn(run func(uint64) *common.Block) *ConsenterSupport_Block_Call
type ConsenterSupport_ChannelConfig_Call ¶
ConsenterSupport_ChannelConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ChannelConfig'
func (*ConsenterSupport_ChannelConfig_Call) Return ¶
func (_c *ConsenterSupport_ChannelConfig_Call) Return(_a0 channelconfig.Channel) *ConsenterSupport_ChannelConfig_Call
func (*ConsenterSupport_ChannelConfig_Call) Run ¶
func (_c *ConsenterSupport_ChannelConfig_Call) Run(run func()) *ConsenterSupport_ChannelConfig_Call
func (*ConsenterSupport_ChannelConfig_Call) RunAndReturn ¶
func (_c *ConsenterSupport_ChannelConfig_Call) RunAndReturn(run func() channelconfig.Channel) *ConsenterSupport_ChannelConfig_Call
type ConsenterSupport_ChannelID_Call ¶
ConsenterSupport_ChannelID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ChannelID'
func (*ConsenterSupport_ChannelID_Call) Return ¶
func (_c *ConsenterSupport_ChannelID_Call) Return(_a0 string) *ConsenterSupport_ChannelID_Call
func (*ConsenterSupport_ChannelID_Call) Run ¶
func (_c *ConsenterSupport_ChannelID_Call) Run(run func()) *ConsenterSupport_ChannelID_Call
func (*ConsenterSupport_ChannelID_Call) RunAndReturn ¶
func (_c *ConsenterSupport_ChannelID_Call) RunAndReturn(run func() string) *ConsenterSupport_ChannelID_Call
type ConsenterSupport_ClassifyMsg_Call ¶
ConsenterSupport_ClassifyMsg_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ClassifyMsg'
func (*ConsenterSupport_ClassifyMsg_Call) Return ¶
func (_c *ConsenterSupport_ClassifyMsg_Call) Return(_a0 msgprocessor.Classification) *ConsenterSupport_ClassifyMsg_Call
func (*ConsenterSupport_ClassifyMsg_Call) Run ¶
func (_c *ConsenterSupport_ClassifyMsg_Call) Run(run func(chdr *common.ChannelHeader)) *ConsenterSupport_ClassifyMsg_Call
func (*ConsenterSupport_ClassifyMsg_Call) RunAndReturn ¶
func (_c *ConsenterSupport_ClassifyMsg_Call) RunAndReturn(run func(*common.ChannelHeader) msgprocessor.Classification) *ConsenterSupport_ClassifyMsg_Call
type ConsenterSupport_CreateNextBlock_Call ¶
ConsenterSupport_CreateNextBlock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateNextBlock'
func (*ConsenterSupport_CreateNextBlock_Call) Return ¶
func (_c *ConsenterSupport_CreateNextBlock_Call) Return(_a0 *common.Block) *ConsenterSupport_CreateNextBlock_Call
func (*ConsenterSupport_CreateNextBlock_Call) Run ¶
func (_c *ConsenterSupport_CreateNextBlock_Call) Run(run func(messages []*common.Envelope)) *ConsenterSupport_CreateNextBlock_Call
func (*ConsenterSupport_CreateNextBlock_Call) RunAndReturn ¶
func (_c *ConsenterSupport_CreateNextBlock_Call) RunAndReturn(run func([]*common.Envelope) *common.Block) *ConsenterSupport_CreateNextBlock_Call
type ConsenterSupport_Expecter ¶
type ConsenterSupport_Expecter struct {
// contains filtered or unexported fields
}
func (*ConsenterSupport_Expecter) Append ¶
func (_e *ConsenterSupport_Expecter) Append(block interface{}) *ConsenterSupport_Append_Call
Append is a helper method to define mock.On call
- block *common.Block
func (*ConsenterSupport_Expecter) Block ¶
func (_e *ConsenterSupport_Expecter) Block(number interface{}) *ConsenterSupport_Block_Call
Block is a helper method to define mock.On call
- number uint64
func (*ConsenterSupport_Expecter) BlockCutter ¶
func (_e *ConsenterSupport_Expecter) BlockCutter() *ConsenterSupport_BlockCutter_Call
BlockCutter is a helper method to define mock.On call
func (*ConsenterSupport_Expecter) ChannelConfig ¶
func (_e *ConsenterSupport_Expecter) ChannelConfig() *ConsenterSupport_ChannelConfig_Call
ChannelConfig is a helper method to define mock.On call
func (*ConsenterSupport_Expecter) ChannelID ¶
func (_e *ConsenterSupport_Expecter) ChannelID() *ConsenterSupport_ChannelID_Call
ChannelID is a helper method to define mock.On call
func (*ConsenterSupport_Expecter) ClassifyMsg ¶
func (_e *ConsenterSupport_Expecter) ClassifyMsg(chdr interface{}) *ConsenterSupport_ClassifyMsg_Call
ClassifyMsg is a helper method to define mock.On call
- chdr *common.ChannelHeader
func (*ConsenterSupport_Expecter) CreateNextBlock ¶
func (_e *ConsenterSupport_Expecter) CreateNextBlock(messages interface{}) *ConsenterSupport_CreateNextBlock_Call
CreateNextBlock is a helper method to define mock.On call
- messages []*common.Envelope
func (*ConsenterSupport_Expecter) Height ¶
func (_e *ConsenterSupport_Expecter) Height() *ConsenterSupport_Height_Call
Height is a helper method to define mock.On call
func (*ConsenterSupport_Expecter) ProcessConfigMsg ¶
func (_e *ConsenterSupport_Expecter) ProcessConfigMsg(env interface{}) *ConsenterSupport_ProcessConfigMsg_Call
ProcessConfigMsg is a helper method to define mock.On call
- env *common.Envelope
func (*ConsenterSupport_Expecter) ProcessConfigUpdateMsg ¶
func (_e *ConsenterSupport_Expecter) ProcessConfigUpdateMsg(env interface{}) *ConsenterSupport_ProcessConfigUpdateMsg_Call
ProcessConfigUpdateMsg is a helper method to define mock.On call
- env *common.Envelope
func (*ConsenterSupport_Expecter) ProcessNormalMsg ¶
func (_e *ConsenterSupport_Expecter) ProcessNormalMsg(env interface{}) *ConsenterSupport_ProcessNormalMsg_Call
ProcessNormalMsg is a helper method to define mock.On call
- env *common.Envelope
func (*ConsenterSupport_Expecter) Sequence ¶
func (_e *ConsenterSupport_Expecter) Sequence() *ConsenterSupport_Sequence_Call
Sequence is a helper method to define mock.On call
func (*ConsenterSupport_Expecter) Serialize ¶
func (_e *ConsenterSupport_Expecter) Serialize() *ConsenterSupport_Serialize_Call
Serialize is a helper method to define mock.On call
func (*ConsenterSupport_Expecter) SharedConfig ¶
func (_e *ConsenterSupport_Expecter) SharedConfig() *ConsenterSupport_SharedConfig_Call
SharedConfig is a helper method to define mock.On call
func (*ConsenterSupport_Expecter) Sign ¶
func (_e *ConsenterSupport_Expecter) Sign(message interface{}) *ConsenterSupport_Sign_Call
Sign is a helper method to define mock.On call
- message []byte
func (*ConsenterSupport_Expecter) SignatureVerifier ¶
func (_e *ConsenterSupport_Expecter) SignatureVerifier() *ConsenterSupport_SignatureVerifier_Call
SignatureVerifier is a helper method to define mock.On call
func (*ConsenterSupport_Expecter) WriteBlock ¶
func (_e *ConsenterSupport_Expecter) WriteBlock(block interface{}, encodedMetadataValue interface{}) *ConsenterSupport_WriteBlock_Call
WriteBlock is a helper method to define mock.On call
- block *common.Block
- encodedMetadataValue []byte
func (*ConsenterSupport_Expecter) WriteBlockSync ¶
func (_e *ConsenterSupport_Expecter) WriteBlockSync(block interface{}, encodedMetadataValue interface{}) *ConsenterSupport_WriteBlockSync_Call
WriteBlockSync is a helper method to define mock.On call
- block *common.Block
- encodedMetadataValue []byte
func (*ConsenterSupport_Expecter) WriteConfigBlock ¶
func (_e *ConsenterSupport_Expecter) WriteConfigBlock(block interface{}, encodedMetadataValue interface{}) *ConsenterSupport_WriteConfigBlock_Call
WriteConfigBlock is a helper method to define mock.On call
- block *common.Block
- encodedMetadataValue []byte
type ConsenterSupport_Height_Call ¶
ConsenterSupport_Height_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Height'
func (*ConsenterSupport_Height_Call) Return ¶
func (_c *ConsenterSupport_Height_Call) Return(_a0 uint64) *ConsenterSupport_Height_Call
func (*ConsenterSupport_Height_Call) Run ¶
func (_c *ConsenterSupport_Height_Call) Run(run func()) *ConsenterSupport_Height_Call
func (*ConsenterSupport_Height_Call) RunAndReturn ¶
func (_c *ConsenterSupport_Height_Call) RunAndReturn(run func() uint64) *ConsenterSupport_Height_Call
type ConsenterSupport_ProcessConfigMsg_Call ¶
ConsenterSupport_ProcessConfigMsg_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ProcessConfigMsg'
func (*ConsenterSupport_ProcessConfigMsg_Call) Return ¶
func (_c *ConsenterSupport_ProcessConfigMsg_Call) Return(_a0 *common.Envelope, _a1 uint64, _a2 error) *ConsenterSupport_ProcessConfigMsg_Call
func (*ConsenterSupport_ProcessConfigMsg_Call) Run ¶
func (_c *ConsenterSupport_ProcessConfigMsg_Call) Run(run func(env *common.Envelope)) *ConsenterSupport_ProcessConfigMsg_Call
func (*ConsenterSupport_ProcessConfigMsg_Call) RunAndReturn ¶
func (_c *ConsenterSupport_ProcessConfigMsg_Call) RunAndReturn(run func(*common.Envelope) (*common.Envelope, uint64, error)) *ConsenterSupport_ProcessConfigMsg_Call
type ConsenterSupport_ProcessConfigUpdateMsg_Call ¶
ConsenterSupport_ProcessConfigUpdateMsg_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ProcessConfigUpdateMsg'
func (*ConsenterSupport_ProcessConfigUpdateMsg_Call) Return ¶
func (_c *ConsenterSupport_ProcessConfigUpdateMsg_Call) Return(config *common.Envelope, configSeq uint64, err error) *ConsenterSupport_ProcessConfigUpdateMsg_Call
func (*ConsenterSupport_ProcessConfigUpdateMsg_Call) Run ¶
func (_c *ConsenterSupport_ProcessConfigUpdateMsg_Call) Run(run func(env *common.Envelope)) *ConsenterSupport_ProcessConfigUpdateMsg_Call
func (*ConsenterSupport_ProcessConfigUpdateMsg_Call) RunAndReturn ¶
func (_c *ConsenterSupport_ProcessConfigUpdateMsg_Call) RunAndReturn(run func(*common.Envelope) (*common.Envelope, uint64, error)) *ConsenterSupport_ProcessConfigUpdateMsg_Call
type ConsenterSupport_ProcessNormalMsg_Call ¶
ConsenterSupport_ProcessNormalMsg_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ProcessNormalMsg'
func (*ConsenterSupport_ProcessNormalMsg_Call) Return ¶
func (_c *ConsenterSupport_ProcessNormalMsg_Call) Return(configSeq uint64, err error) *ConsenterSupport_ProcessNormalMsg_Call
func (*ConsenterSupport_ProcessNormalMsg_Call) Run ¶
func (_c *ConsenterSupport_ProcessNormalMsg_Call) Run(run func(env *common.Envelope)) *ConsenterSupport_ProcessNormalMsg_Call
func (*ConsenterSupport_ProcessNormalMsg_Call) RunAndReturn ¶
func (_c *ConsenterSupport_ProcessNormalMsg_Call) RunAndReturn(run func(*common.Envelope) (uint64, error)) *ConsenterSupport_ProcessNormalMsg_Call
type ConsenterSupport_Sequence_Call ¶
ConsenterSupport_Sequence_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Sequence'
func (*ConsenterSupport_Sequence_Call) Return ¶
func (_c *ConsenterSupport_Sequence_Call) Return(_a0 uint64) *ConsenterSupport_Sequence_Call
func (*ConsenterSupport_Sequence_Call) Run ¶
func (_c *ConsenterSupport_Sequence_Call) Run(run func()) *ConsenterSupport_Sequence_Call
func (*ConsenterSupport_Sequence_Call) RunAndReturn ¶
func (_c *ConsenterSupport_Sequence_Call) RunAndReturn(run func() uint64) *ConsenterSupport_Sequence_Call
type ConsenterSupport_Serialize_Call ¶
ConsenterSupport_Serialize_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Serialize'
func (*ConsenterSupport_Serialize_Call) Return ¶
func (_c *ConsenterSupport_Serialize_Call) Return(_a0 []byte, _a1 error) *ConsenterSupport_Serialize_Call
func (*ConsenterSupport_Serialize_Call) Run ¶
func (_c *ConsenterSupport_Serialize_Call) Run(run func()) *ConsenterSupport_Serialize_Call
func (*ConsenterSupport_Serialize_Call) RunAndReturn ¶
func (_c *ConsenterSupport_Serialize_Call) RunAndReturn(run func() ([]byte, error)) *ConsenterSupport_Serialize_Call
type ConsenterSupport_SharedConfig_Call ¶
type ConsenterSupport_SharedConfig_Call struct {
}ConsenterSupport_SharedConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SharedConfig'
func (*ConsenterSupport_SharedConfig_Call) Return ¶
func (_c *ConsenterSupport_SharedConfig_Call) Return(_a0 channelconfig.Orderer) *ConsenterSupport_SharedConfig_Call
func (*ConsenterSupport_SharedConfig_Call) Run ¶
func (_c *ConsenterSupport_SharedConfig_Call) Run(run func()) *ConsenterSupport_SharedConfig_Call
func (*ConsenterSupport_SharedConfig_Call) RunAndReturn ¶
func (_c *ConsenterSupport_SharedConfig_Call) RunAndReturn(run func() channelconfig.Orderer) *ConsenterSupport_SharedConfig_Call
type ConsenterSupport_Sign_Call ¶
ConsenterSupport_Sign_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Sign'
func (*ConsenterSupport_Sign_Call) Return ¶
func (_c *ConsenterSupport_Sign_Call) Return(_a0 []byte, _a1 error) *ConsenterSupport_Sign_Call
func (*ConsenterSupport_Sign_Call) Run ¶
func (_c *ConsenterSupport_Sign_Call) Run(run func(message []byte)) *ConsenterSupport_Sign_Call
func (*ConsenterSupport_Sign_Call) RunAndReturn ¶
func (_c *ConsenterSupport_Sign_Call) RunAndReturn(run func([]byte) ([]byte, error)) *ConsenterSupport_Sign_Call
type ConsenterSupport_SignatureVerifier_Call ¶
ConsenterSupport_SignatureVerifier_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SignatureVerifier'
func (*ConsenterSupport_SignatureVerifier_Call) Return ¶
func (_c *ConsenterSupport_SignatureVerifier_Call) Return(_a0 protoutil.BlockVerifierFunc) *ConsenterSupport_SignatureVerifier_Call
func (*ConsenterSupport_SignatureVerifier_Call) Run ¶
func (_c *ConsenterSupport_SignatureVerifier_Call) Run(run func()) *ConsenterSupport_SignatureVerifier_Call
func (*ConsenterSupport_SignatureVerifier_Call) RunAndReturn ¶
func (_c *ConsenterSupport_SignatureVerifier_Call) RunAndReturn(run func() protoutil.BlockVerifierFunc) *ConsenterSupport_SignatureVerifier_Call
type ConsenterSupport_WriteBlockSync_Call ¶
ConsenterSupport_WriteBlockSync_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WriteBlockSync'
func (*ConsenterSupport_WriteBlockSync_Call) Return ¶
func (_c *ConsenterSupport_WriteBlockSync_Call) Return() *ConsenterSupport_WriteBlockSync_Call
func (*ConsenterSupport_WriteBlockSync_Call) Run ¶
func (_c *ConsenterSupport_WriteBlockSync_Call) Run(run func(block *common.Block, encodedMetadataValue []byte)) *ConsenterSupport_WriteBlockSync_Call
func (*ConsenterSupport_WriteBlockSync_Call) RunAndReturn ¶
func (_c *ConsenterSupport_WriteBlockSync_Call) RunAndReturn(run func(*common.Block, []byte)) *ConsenterSupport_WriteBlockSync_Call
type ConsenterSupport_WriteBlock_Call ¶
ConsenterSupport_WriteBlock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WriteBlock'
func (*ConsenterSupport_WriteBlock_Call) Return ¶
func (_c *ConsenterSupport_WriteBlock_Call) Return() *ConsenterSupport_WriteBlock_Call
func (*ConsenterSupport_WriteBlock_Call) Run ¶
func (_c *ConsenterSupport_WriteBlock_Call) Run(run func(block *common.Block, encodedMetadataValue []byte)) *ConsenterSupport_WriteBlock_Call
func (*ConsenterSupport_WriteBlock_Call) RunAndReturn ¶
func (_c *ConsenterSupport_WriteBlock_Call) RunAndReturn(run func(*common.Block, []byte)) *ConsenterSupport_WriteBlock_Call
type ConsenterSupport_WriteConfigBlock_Call ¶
ConsenterSupport_WriteConfigBlock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WriteConfigBlock'
func (*ConsenterSupport_WriteConfigBlock_Call) Return ¶
func (_c *ConsenterSupport_WriteConfigBlock_Call) Return() *ConsenterSupport_WriteConfigBlock_Call
func (*ConsenterSupport_WriteConfigBlock_Call) Run ¶
func (_c *ConsenterSupport_WriteConfigBlock_Call) Run(run func(block *common.Block, encodedMetadataValue []byte)) *ConsenterSupport_WriteConfigBlock_Call
func (*ConsenterSupport_WriteConfigBlock_Call) RunAndReturn ¶
func (_c *ConsenterSupport_WriteConfigBlock_Call) RunAndReturn(run func(*common.Block, []byte)) *ConsenterSupport_WriteConfigBlock_Call
type ConsenterVerifier ¶
ConsenterVerifier is an autogenerated mock type for the ConsenterVerifier type
func NewConsenterVerifier ¶
func NewConsenterVerifier(t mockConstructorTestingTNewConsenterVerifier) *ConsenterVerifier
NewConsenterVerifier creates a new instance of ConsenterVerifier. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ConsenterVerifier) Evaluate ¶
func (_m *ConsenterVerifier) Evaluate(signatureSet []*protoutil.SignedData) error
Evaluate provides a mock function with given fields: signatureSet
type EgressComm ¶
EgressComm is an autogenerated mock type for the EgressComm type
func NewEgressComm ¶
func NewEgressComm(t interface { mock.TestingT Cleanup(func()) }) *EgressComm
NewEgressComm creates a new instance of EgressComm. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*EgressComm) EXPECT ¶
func (_m *EgressComm) EXPECT() *EgressComm_Expecter
func (*EgressComm) Nodes ¶
func (_m *EgressComm) Nodes() []uint64
Nodes provides a mock function with given fields:
func (*EgressComm) SendConsensus ¶
func (_m *EgressComm) SendConsensus(targetID uint64, m *smartbftprotos.Message)
SendConsensus provides a mock function with given fields: targetID, m
func (*EgressComm) SendTransaction ¶
func (_m *EgressComm) SendTransaction(targetID uint64, request []byte)
SendTransaction provides a mock function with given fields: targetID, request
type EgressComm_Expecter ¶
type EgressComm_Expecter struct {
// contains filtered or unexported fields
}
func (*EgressComm_Expecter) Nodes ¶
func (_e *EgressComm_Expecter) Nodes() *EgressComm_Nodes_Call
Nodes is a helper method to define mock.On call
func (*EgressComm_Expecter) SendConsensus ¶
func (_e *EgressComm_Expecter) SendConsensus(targetID interface{}, m interface{}) *EgressComm_SendConsensus_Call
SendConsensus is a helper method to define mock.On call
- targetID uint64
- m *smartbftprotos.Message
func (*EgressComm_Expecter) SendTransaction ¶
func (_e *EgressComm_Expecter) SendTransaction(targetID interface{}, request interface{}) *EgressComm_SendTransaction_Call
SendTransaction is a helper method to define mock.On call
- targetID uint64
- request []byte
type EgressComm_Nodes_Call ¶
EgressComm_Nodes_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Nodes'
func (*EgressComm_Nodes_Call) Return ¶
func (_c *EgressComm_Nodes_Call) Return(_a0 []uint64) *EgressComm_Nodes_Call
func (*EgressComm_Nodes_Call) Run ¶
func (_c *EgressComm_Nodes_Call) Run(run func()) *EgressComm_Nodes_Call
func (*EgressComm_Nodes_Call) RunAndReturn ¶
func (_c *EgressComm_Nodes_Call) RunAndReturn(run func() []uint64) *EgressComm_Nodes_Call
type EgressComm_SendConsensus_Call ¶
EgressComm_SendConsensus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SendConsensus'
func (*EgressComm_SendConsensus_Call) Return ¶
func (_c *EgressComm_SendConsensus_Call) Return() *EgressComm_SendConsensus_Call
func (*EgressComm_SendConsensus_Call) Run ¶
func (_c *EgressComm_SendConsensus_Call) Run(run func(targetID uint64, m *smartbftprotos.Message)) *EgressComm_SendConsensus_Call
func (*EgressComm_SendConsensus_Call) RunAndReturn ¶
func (_c *EgressComm_SendConsensus_Call) RunAndReturn(run func(uint64, *smartbftprotos.Message)) *EgressComm_SendConsensus_Call
type EgressComm_SendTransaction_Call ¶
EgressComm_SendTransaction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SendTransaction'
func (*EgressComm_SendTransaction_Call) Return ¶
func (_c *EgressComm_SendTransaction_Call) Return() *EgressComm_SendTransaction_Call
func (*EgressComm_SendTransaction_Call) Run ¶
func (_c *EgressComm_SendTransaction_Call) Run(run func(targetID uint64, request []byte)) *EgressComm_SendTransaction_Call
func (*EgressComm_SendTransaction_Call) RunAndReturn ¶
func (_c *EgressComm_SendTransaction_Call) RunAndReturn(run func(uint64, []byte)) *EgressComm_SendTransaction_Call
type FakeBlockPuller ¶
type FakeBlockPuller struct { CloseStub func() HeightsByEndpointsStub func() (map[string]uint64, string, error) PullBlockStub func(uint64) *common.Block // contains filtered or unexported fields }
func (*FakeBlockPuller) Close ¶
func (fake *FakeBlockPuller) Close()
func (*FakeBlockPuller) CloseCallCount ¶
func (fake *FakeBlockPuller) CloseCallCount() int
func (*FakeBlockPuller) CloseCalls ¶
func (fake *FakeBlockPuller) CloseCalls(stub func())
func (*FakeBlockPuller) HeightsByEndpoints ¶
func (fake *FakeBlockPuller) HeightsByEndpoints() (map[string]uint64, string, error)
func (*FakeBlockPuller) HeightsByEndpointsCallCount ¶
func (fake *FakeBlockPuller) HeightsByEndpointsCallCount() int
func (*FakeBlockPuller) HeightsByEndpointsCalls ¶
func (fake *FakeBlockPuller) HeightsByEndpointsCalls(stub func() (map[string]uint64, string, error))
func (*FakeBlockPuller) HeightsByEndpointsReturns ¶
func (fake *FakeBlockPuller) HeightsByEndpointsReturns(result1 map[string]uint64, result2 string, result3 error)
func (*FakeBlockPuller) HeightsByEndpointsReturnsOnCall ¶
func (*FakeBlockPuller) Invocations ¶
func (fake *FakeBlockPuller) Invocations() map[string][][]interface{}
func (*FakeBlockPuller) PullBlock ¶
func (fake *FakeBlockPuller) PullBlock(arg1 uint64) *common.Block
func (*FakeBlockPuller) PullBlockArgsForCall ¶
func (fake *FakeBlockPuller) PullBlockArgsForCall(i int) uint64
func (*FakeBlockPuller) PullBlockCallCount ¶
func (fake *FakeBlockPuller) PullBlockCallCount() int
func (*FakeBlockPuller) PullBlockCalls ¶
func (fake *FakeBlockPuller) PullBlockCalls(stub func(uint64) *common.Block)
func (*FakeBlockPuller) PullBlockReturns ¶
func (fake *FakeBlockPuller) PullBlockReturns(result1 *common.Block)
func (*FakeBlockPuller) PullBlockReturnsOnCall ¶
func (fake *FakeBlockPuller) PullBlockReturnsOnCall(i int, result1 *common.Block)
type FakeBlockPullerFactory ¶
type FakeBlockPullerFactory struct { CreateBlockPullerStub func(consensus.ConsenterSupport, *cluster.PredicateDialer, localconfig.Cluster, bccsp.BCCSP) (smartbft.BlockPuller, error) // contains filtered or unexported fields }
func (*FakeBlockPullerFactory) CreateBlockPuller ¶
func (fake *FakeBlockPullerFactory) CreateBlockPuller(arg1 consensus.ConsenterSupport, arg2 *cluster.PredicateDialer, arg3 localconfig.Cluster, arg4 bccsp.BCCSP) (smartbft.BlockPuller, error)
func (*FakeBlockPullerFactory) CreateBlockPullerArgsForCall ¶
func (fake *FakeBlockPullerFactory) CreateBlockPullerArgsForCall(i int) (consensus.ConsenterSupport, *cluster.PredicateDialer, localconfig.Cluster, bccsp.BCCSP)
func (*FakeBlockPullerFactory) CreateBlockPullerCallCount ¶
func (fake *FakeBlockPullerFactory) CreateBlockPullerCallCount() int
func (*FakeBlockPullerFactory) CreateBlockPullerCalls ¶
func (fake *FakeBlockPullerFactory) CreateBlockPullerCalls(stub func(consensus.ConsenterSupport, *cluster.PredicateDialer, localconfig.Cluster, bccsp.BCCSP) (smartbft.BlockPuller, error))
func (*FakeBlockPullerFactory) CreateBlockPullerReturns ¶
func (fake *FakeBlockPullerFactory) CreateBlockPullerReturns(result1 smartbft.BlockPuller, result2 error)
func (*FakeBlockPullerFactory) CreateBlockPullerReturnsOnCall ¶
func (fake *FakeBlockPullerFactory) CreateBlockPullerReturnsOnCall(i int, result1 smartbft.BlockPuller, result2 error)
func (*FakeBlockPullerFactory) Invocations ¶
func (fake *FakeBlockPullerFactory) Invocations() map[string][][]interface{}
type Filters ¶
Filters is an autogenerated mock type for the Filters type
func NewFilters ¶
func NewFilters(t mockConstructorTestingTNewFilters) *Filters
NewFilters creates a new instance of Filters. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
type Ledger ¶
Ledger is an autogenerated mock type for the Ledger type
func NewLedger ¶
func NewLedger(t mockConstructorTestingTNewLedger) *Ledger
NewLedger creates a new instance of Ledger. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
type MessageReceiver ¶
MessageReceiver is an autogenerated mock type for the MessageReceiver type
func NewMessageReceiver ¶
func NewMessageReceiver(t mockConstructorTestingTNewMessageReceiver) *MessageReceiver
NewMessageReceiver creates a new instance of MessageReceiver. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*MessageReceiver) HandleMessage ¶
func (_m *MessageReceiver) HandleMessage(sender uint64, m *smartbftprotos.Message)
HandleMessage provides a mock function with given fields: sender, m
func (*MessageReceiver) HandleRequest ¶
func (_m *MessageReceiver) HandleRequest(sender uint64, req []byte)
HandleRequest provides a mock function with given fields: sender, req
type OrdererConfig ¶
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 ConsentersStub func() []*common.Consenter MaxChannelsCountStub func() uint64 OrganizationsStub func() map[string]channelconfig.OrdererOrg // contains filtered or unexported fields }
func (*OrdererConfig) BatchSize ¶
func (fake *OrdererConfig) BatchSize() *orderer.BatchSize
func (*OrdererConfig) BatchSizeCallCount ¶
func (fake *OrdererConfig) BatchSizeCallCount() int
func (*OrdererConfig) BatchSizeCalls ¶
func (fake *OrdererConfig) BatchSizeCalls(stub func() *orderer.BatchSize)
func (*OrdererConfig) BatchSizeReturns ¶
func (fake *OrdererConfig) BatchSizeReturns(result1 *orderer.BatchSize)
func (*OrdererConfig) BatchSizeReturnsOnCall ¶
func (fake *OrdererConfig) BatchSizeReturnsOnCall(i int, result1 *orderer.BatchSize)
func (*OrdererConfig) BatchTimeout ¶
func (fake *OrdererConfig) BatchTimeout() time.Duration
func (*OrdererConfig) BatchTimeoutCallCount ¶
func (fake *OrdererConfig) BatchTimeoutCallCount() int
func (*OrdererConfig) BatchTimeoutCalls ¶
func (fake *OrdererConfig) BatchTimeoutCalls(stub func() time.Duration)
func (*OrdererConfig) BatchTimeoutReturns ¶
func (fake *OrdererConfig) BatchTimeoutReturns(result1 time.Duration)
func (*OrdererConfig) BatchTimeoutReturnsOnCall ¶
func (fake *OrdererConfig) BatchTimeoutReturnsOnCall(i int, result1 time.Duration)
func (*OrdererConfig) Capabilities ¶
func (fake *OrdererConfig) Capabilities() channelconfig.OrdererCapabilities
func (*OrdererConfig) CapabilitiesCallCount ¶
func (fake *OrdererConfig) CapabilitiesCallCount() int
func (*OrdererConfig) CapabilitiesCalls ¶
func (fake *OrdererConfig) CapabilitiesCalls(stub func() channelconfig.OrdererCapabilities)
func (*OrdererConfig) CapabilitiesReturns ¶
func (fake *OrdererConfig) CapabilitiesReturns(result1 channelconfig.OrdererCapabilities)
func (*OrdererConfig) CapabilitiesReturnsOnCall ¶
func (fake *OrdererConfig) CapabilitiesReturnsOnCall(i int, result1 channelconfig.OrdererCapabilities)
func (*OrdererConfig) ConsensusMetadata ¶
func (fake *OrdererConfig) ConsensusMetadata() []byte
func (*OrdererConfig) ConsensusMetadataCallCount ¶
func (fake *OrdererConfig) ConsensusMetadataCallCount() int
func (*OrdererConfig) ConsensusMetadataCalls ¶
func (fake *OrdererConfig) ConsensusMetadataCalls(stub func() []byte)
func (*OrdererConfig) ConsensusMetadataReturns ¶
func (fake *OrdererConfig) ConsensusMetadataReturns(result1 []byte)
func (*OrdererConfig) ConsensusMetadataReturnsOnCall ¶
func (fake *OrdererConfig) ConsensusMetadataReturnsOnCall(i int, result1 []byte)
func (*OrdererConfig) ConsensusState ¶
func (fake *OrdererConfig) ConsensusState() orderer.ConsensusType_State
func (*OrdererConfig) ConsensusStateCallCount ¶
func (fake *OrdererConfig) ConsensusStateCallCount() int
func (*OrdererConfig) ConsensusStateCalls ¶
func (fake *OrdererConfig) ConsensusStateCalls(stub func() orderer.ConsensusType_State)
func (*OrdererConfig) ConsensusStateReturns ¶
func (fake *OrdererConfig) ConsensusStateReturns(result1 orderer.ConsensusType_State)
func (*OrdererConfig) ConsensusStateReturnsOnCall ¶
func (fake *OrdererConfig) ConsensusStateReturnsOnCall(i int, result1 orderer.ConsensusType_State)
func (*OrdererConfig) ConsensusType ¶
func (fake *OrdererConfig) ConsensusType() string
func (*OrdererConfig) ConsensusTypeCallCount ¶
func (fake *OrdererConfig) ConsensusTypeCallCount() int
func (*OrdererConfig) ConsensusTypeCalls ¶
func (fake *OrdererConfig) ConsensusTypeCalls(stub func() string)
func (*OrdererConfig) ConsensusTypeReturns ¶
func (fake *OrdererConfig) ConsensusTypeReturns(result1 string)
func (*OrdererConfig) ConsensusTypeReturnsOnCall ¶
func (fake *OrdererConfig) ConsensusTypeReturnsOnCall(i int, result1 string)
func (*OrdererConfig) Consenters ¶
func (fake *OrdererConfig) Consenters() []*common.Consenter
func (*OrdererConfig) ConsentersCallCount ¶
func (fake *OrdererConfig) ConsentersCallCount() int
func (*OrdererConfig) ConsentersCalls ¶
func (fake *OrdererConfig) ConsentersCalls(stub func() []*common.Consenter)
func (*OrdererConfig) ConsentersReturns ¶
func (fake *OrdererConfig) ConsentersReturns(result1 []*common.Consenter)
func (*OrdererConfig) ConsentersReturnsOnCall ¶
func (fake *OrdererConfig) ConsentersReturnsOnCall(i int, result1 []*common.Consenter)
func (*OrdererConfig) Invocations ¶
func (fake *OrdererConfig) Invocations() map[string][][]interface{}
func (*OrdererConfig) MaxChannelsCount ¶
func (fake *OrdererConfig) MaxChannelsCount() uint64
func (*OrdererConfig) MaxChannelsCountCallCount ¶
func (fake *OrdererConfig) MaxChannelsCountCallCount() int
func (*OrdererConfig) MaxChannelsCountCalls ¶
func (fake *OrdererConfig) MaxChannelsCountCalls(stub func() uint64)
func (*OrdererConfig) MaxChannelsCountReturns ¶
func (fake *OrdererConfig) MaxChannelsCountReturns(result1 uint64)
func (*OrdererConfig) MaxChannelsCountReturnsOnCall ¶
func (fake *OrdererConfig) MaxChannelsCountReturnsOnCall(i int, result1 uint64)
func (*OrdererConfig) Organizations ¶
func (fake *OrdererConfig) Organizations() map[string]channelconfig.OrdererOrg
func (*OrdererConfig) OrganizationsCallCount ¶
func (fake *OrdererConfig) OrganizationsCallCount() int
func (*OrdererConfig) OrganizationsCalls ¶
func (fake *OrdererConfig) OrganizationsCalls(stub func() map[string]channelconfig.OrdererOrg)
func (*OrdererConfig) OrganizationsReturns ¶
func (fake *OrdererConfig) OrganizationsReturns(result1 map[string]channelconfig.OrdererOrg)
func (*OrdererConfig) OrganizationsReturnsOnCall ¶
func (fake *OrdererConfig) OrganizationsReturnsOnCall(i int, result1 map[string]channelconfig.OrdererOrg)
type Policy ¶
Policy is an autogenerated mock type for the policy type
func NewPolicy ¶
NewPolicy creates a new instance of Policy. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Policy) EXPECT ¶
func (_m *Policy) EXPECT() *Policy_Expecter
func (*Policy) EvaluateIdentities ¶
EvaluateIdentities provides a mock function with given fields: identities
func (*Policy) EvaluateSignedData ¶
func (_m *Policy) EvaluateSignedData(signatureSet []*protoutil.SignedData) error
EvaluateSignedData provides a mock function with given fields: signatureSet
type PolicyManager ¶
PolicyManager is an autogenerated mock type for the policyManager type
func NewPolicyManager ¶
func NewPolicyManager(t interface { mock.TestingT Cleanup(func()) }) *PolicyManager
NewPolicyManager creates a new instance of PolicyManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*PolicyManager) EXPECT ¶
func (_m *PolicyManager) EXPECT() *PolicyManager_Expecter
type PolicyManager_Expecter ¶
type PolicyManager_Expecter struct {
// contains filtered or unexported fields
}
func (*PolicyManager_Expecter) GetPolicy ¶
func (_e *PolicyManager_Expecter) GetPolicy(id interface{}) *PolicyManager_GetPolicy_Call
GetPolicy is a helper method to define mock.On call
- id string
func (*PolicyManager_Expecter) Manager ¶
func (_e *PolicyManager_Expecter) Manager(path interface{}) *PolicyManager_Manager_Call
Manager is a helper method to define mock.On call
- path []string
type PolicyManager_GetPolicy_Call ¶
PolicyManager_GetPolicy_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPolicy'
func (*PolicyManager_GetPolicy_Call) Return ¶
func (_c *PolicyManager_GetPolicy_Call) Return(_a0 policies.Policy, _a1 bool) *PolicyManager_GetPolicy_Call
func (*PolicyManager_GetPolicy_Call) Run ¶
func (_c *PolicyManager_GetPolicy_Call) Run(run func(id string)) *PolicyManager_GetPolicy_Call
func (*PolicyManager_GetPolicy_Call) RunAndReturn ¶
func (_c *PolicyManager_GetPolicy_Call) RunAndReturn(run func(string) (policies.Policy, bool)) *PolicyManager_GetPolicy_Call
type PolicyManager_Manager_Call ¶
PolicyManager_Manager_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Manager'
func (*PolicyManager_Manager_Call) Return ¶
func (_c *PolicyManager_Manager_Call) Return(_a0 policies.Manager, _a1 bool) *PolicyManager_Manager_Call
func (*PolicyManager_Manager_Call) Run ¶
func (_c *PolicyManager_Manager_Call) Run(run func(path []string)) *PolicyManager_Manager_Call
func (*PolicyManager_Manager_Call) RunAndReturn ¶
func (_c *PolicyManager_Manager_Call) RunAndReturn(run func([]string) (policies.Manager, bool)) *PolicyManager_Manager_Call
type Policy_EvaluateIdentities_Call ¶
Policy_EvaluateIdentities_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EvaluateIdentities'
func (*Policy_EvaluateIdentities_Call) Return ¶
func (_c *Policy_EvaluateIdentities_Call) Return(_a0 error) *Policy_EvaluateIdentities_Call
func (*Policy_EvaluateIdentities_Call) Run ¶
func (_c *Policy_EvaluateIdentities_Call) Run(run func(identities []msp.Identity)) *Policy_EvaluateIdentities_Call
func (*Policy_EvaluateIdentities_Call) RunAndReturn ¶
func (_c *Policy_EvaluateIdentities_Call) RunAndReturn(run func([]msp.Identity) error) *Policy_EvaluateIdentities_Call
type Policy_EvaluateSignedData_Call ¶
Policy_EvaluateSignedData_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EvaluateSignedData'
func (*Policy_EvaluateSignedData_Call) Return ¶
func (_c *Policy_EvaluateSignedData_Call) Return(_a0 error) *Policy_EvaluateSignedData_Call
func (*Policy_EvaluateSignedData_Call) Run ¶
func (_c *Policy_EvaluateSignedData_Call) Run(run func(signatureSet []*protoutil.SignedData)) *Policy_EvaluateSignedData_Call
func (*Policy_EvaluateSignedData_Call) RunAndReturn ¶
func (_c *Policy_EvaluateSignedData_Call) RunAndReturn(run func([]*protoutil.SignedData) error) *Policy_EvaluateSignedData_Call
type Policy_Expecter ¶
type Policy_Expecter struct {
// contains filtered or unexported fields
}
func (*Policy_Expecter) EvaluateIdentities ¶
func (_e *Policy_Expecter) EvaluateIdentities(identities interface{}) *Policy_EvaluateIdentities_Call
EvaluateIdentities is a helper method to define mock.On call
- identities []msp.Identity
func (*Policy_Expecter) EvaluateSignedData ¶
func (_e *Policy_Expecter) EvaluateSignedData(signatureSet interface{}) *Policy_EvaluateSignedData_Call
EvaluateSignedData is a helper method to define mock.On call
- signatureSet []*protoutil.SignedData
type RPC ¶
RPC is an autogenerated mock type for the RPC type
func NewRPC ¶
func NewRPC(t mockConstructorTestingTNewRPC) *RPC
NewRPC creates a new instance of RPC. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*RPC) SendConsensus ¶
func (_m *RPC) SendConsensus(dest uint64, msg *orderer.ConsensusRequest) error
SendConsensus provides a mock function with given fields: dest, msg
func (*RPC) SendSubmit ¶
func (_m *RPC) SendSubmit(destination uint64, request *orderer.SubmitRequest, report func(error)) error
SendSubmit provides a mock function with given fields: destination, request, report
type ReceiverGetter ¶
ReceiverGetter is an autogenerated mock type for the ReceiverGetter type
func NewReceiverGetter ¶
func NewReceiverGetter(t mockConstructorTestingTNewReceiverGetter) *ReceiverGetter
NewReceiverGetter creates a new instance of ReceiverGetter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ReceiverGetter) ReceiverByChain ¶
func (_m *ReceiverGetter) ReceiverByChain(channelID string) smartbft.MessageReceiver
ReceiverByChain provides a mock function with given fields: channelID
type Sequencer ¶
Sequencer is an autogenerated mock type for the Sequencer type
func NewSequencer ¶
func NewSequencer(t mockConstructorTestingTNewSequencer) *Sequencer
NewSequencer creates a new instance of Sequencer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
type SignerSerializer ¶
SignerSerializer is an autogenerated mock type for the SignerSerializer type
func NewSignerSerializer ¶
func NewSignerSerializer(t interface { mock.TestingT Cleanup(func()) }) *SignerSerializer
NewSignerSerializer creates a new instance of SignerSerializer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*SignerSerializer) EXPECT ¶
func (_m *SignerSerializer) EXPECT() *SignerSerializer_Expecter
func (*SignerSerializer) Serialize ¶
func (_m *SignerSerializer) Serialize() ([]byte, error)
Serialize provides a mock function with given fields:
type SignerSerializer_Expecter ¶
type SignerSerializer_Expecter struct {
// contains filtered or unexported fields
}
func (*SignerSerializer_Expecter) Serialize ¶
func (_e *SignerSerializer_Expecter) Serialize() *SignerSerializer_Serialize_Call
Serialize is a helper method to define mock.On call
func (*SignerSerializer_Expecter) Sign ¶
func (_e *SignerSerializer_Expecter) Sign(message interface{}) *SignerSerializer_Sign_Call
Sign is a helper method to define mock.On call
- message []byte
type SignerSerializer_Serialize_Call ¶
SignerSerializer_Serialize_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Serialize'
func (*SignerSerializer_Serialize_Call) Return ¶
func (_c *SignerSerializer_Serialize_Call) Return(_a0 []byte, _a1 error) *SignerSerializer_Serialize_Call
func (*SignerSerializer_Serialize_Call) Run ¶
func (_c *SignerSerializer_Serialize_Call) Run(run func()) *SignerSerializer_Serialize_Call
func (*SignerSerializer_Serialize_Call) RunAndReturn ¶
func (_c *SignerSerializer_Serialize_Call) RunAndReturn(run func() ([]byte, error)) *SignerSerializer_Serialize_Call
type SignerSerializer_Sign_Call ¶
SignerSerializer_Sign_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Sign'
func (*SignerSerializer_Sign_Call) Return ¶
func (_c *SignerSerializer_Sign_Call) Return(_a0 []byte, _a1 error) *SignerSerializer_Sign_Call
func (*SignerSerializer_Sign_Call) Run ¶
func (_c *SignerSerializer_Sign_Call) Run(run func(message []byte)) *SignerSerializer_Sign_Call
func (*SignerSerializer_Sign_Call) RunAndReturn ¶
func (_c *SignerSerializer_Sign_Call) RunAndReturn(run func([]byte) ([]byte, error)) *SignerSerializer_Sign_Call
type Synchronizer ¶
Synchronizer is an autogenerated mock type for the synchronizer type
func NewSynchronizer ¶
func NewSynchronizer(t interface { mock.TestingT Cleanup(func()) }) *Synchronizer
NewSynchronizer creates a new instance of Synchronizer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Synchronizer) EXPECT ¶
func (_m *Synchronizer) EXPECT() *Synchronizer_Expecter
func (*Synchronizer) Sync ¶
func (_m *Synchronizer) Sync() types.SyncResponse
Sync provides a mock function with given fields:
type SynchronizerFactory ¶
SynchronizerFactory is an autogenerated mock type for the SynchronizerFactory type
func NewSynchronizerFactory ¶
func NewSynchronizerFactory(t interface { mock.TestingT Cleanup(func()) }) *SynchronizerFactory
NewSynchronizerFactory creates a new instance of SynchronizerFactory. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*SynchronizerFactory) CreateSynchronizer ¶
func (_m *SynchronizerFactory) CreateSynchronizer(logger *flogging.FabricLogger, localConfigCluster localconfig.Cluster, rtc smartbft.RuntimeConfig, blockToDecision func(*common.Block) *types.Decision, pruneCommittedRequests func(*common.Block), updateRuntimeConfig func(*common.Block) types.Reconfig, support consensus.ConsenterSupport, _a7 bccsp.BCCSP, clusterDialer *cluster.PredicateDialer) api.Synchronizer
CreateSynchronizer provides a mock function with given fields: logger, localConfigCluster, rtc, blockToDecision, pruneCommittedRequests, updateRuntimeConfig, support, _a7, clusterDialer
func (*SynchronizerFactory) EXPECT ¶
func (_m *SynchronizerFactory) EXPECT() *SynchronizerFactory_Expecter
type SynchronizerFactory_CreateSynchronizer_Call ¶
SynchronizerFactory_CreateSynchronizer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateSynchronizer'
func (*SynchronizerFactory_CreateSynchronizer_Call) Return ¶
func (_c *SynchronizerFactory_CreateSynchronizer_Call) Return(_a0 api.Synchronizer) *SynchronizerFactory_CreateSynchronizer_Call
func (*SynchronizerFactory_CreateSynchronizer_Call) Run ¶
func (_c *SynchronizerFactory_CreateSynchronizer_Call) Run(run func(logger *flogging.FabricLogger, localConfigCluster localconfig.Cluster, rtc smartbft.RuntimeConfig, blockToDecision func(*common.Block) *types.Decision, pruneCommittedRequests func(*common.Block), updateRuntimeConfig func(*common.Block) types.Reconfig, support consensus.ConsenterSupport, _a7 bccsp.BCCSP, clusterDialer *cluster.PredicateDialer)) *SynchronizerFactory_CreateSynchronizer_Call
func (*SynchronizerFactory_CreateSynchronizer_Call) RunAndReturn ¶
func (_c *SynchronizerFactory_CreateSynchronizer_Call) RunAndReturn(run func(*flogging.FabricLogger, localconfig.Cluster, smartbft.RuntimeConfig, func(*common.Block) *types.Decision, func(*common.Block), func(*common.Block) types.Reconfig, consensus.ConsenterSupport, bccsp.BCCSP, *cluster.PredicateDialer) api.Synchronizer) *SynchronizerFactory_CreateSynchronizer_Call
type SynchronizerFactory_Expecter ¶
type SynchronizerFactory_Expecter struct {
// contains filtered or unexported fields
}
func (*SynchronizerFactory_Expecter) CreateSynchronizer ¶
func (_e *SynchronizerFactory_Expecter) CreateSynchronizer(logger interface{}, localConfigCluster interface{}, rtc interface{}, blockToDecision interface{}, pruneCommittedRequests interface{}, updateRuntimeConfig interface{}, support interface{}, _a7 interface{}, clusterDialer interface{}) *SynchronizerFactory_CreateSynchronizer_Call
CreateSynchronizer is a helper method to define mock.On call
- logger *flogging.FabricLogger
- localConfigCluster localconfig.Cluster
- rtc smartbft.RuntimeConfig
- blockToDecision func(*common.Block) *types.Decision
- pruneCommittedRequests func(*common.Block)
- updateRuntimeConfig func(*common.Block) types.Reconfig
- support consensus.ConsenterSupport
- _a7 bccsp.BCCSP
- clusterDialer *cluster.PredicateDialer
type Synchronizer_Expecter ¶
type Synchronizer_Expecter struct {
// contains filtered or unexported fields
}
func (*Synchronizer_Expecter) Sync ¶
func (_e *Synchronizer_Expecter) Sync() *Synchronizer_Sync_Call
Sync is a helper method to define mock.On call
type Synchronizer_Sync_Call ¶
Synchronizer_Sync_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Sync'
func (*Synchronizer_Sync_Call) Return ¶
func (_c *Synchronizer_Sync_Call) Return(_a0 types.SyncResponse) *Synchronizer_Sync_Call
func (*Synchronizer_Sync_Call) Run ¶
func (_c *Synchronizer_Sync_Call) Run(run func()) *Synchronizer_Sync_Call
func (*Synchronizer_Sync_Call) RunAndReturn ¶
func (_c *Synchronizer_Sync_Call) RunAndReturn(run func() types.SyncResponse) *Synchronizer_Sync_Call
type UpdatableBlockVerifier ¶
type UpdatableBlockVerifier struct { CloneStub func() deliverclient.CloneableUpdatableBlockVerifier UpdateBlockHeaderStub func(*common.Block) UpdateConfigStub func(*common.Block) error VerifyBlockStub func(*common.Block) error VerifyBlockAttestationStub func(*common.Block) error // contains filtered or unexported fields }
func (*UpdatableBlockVerifier) Clone ¶
func (fake *UpdatableBlockVerifier) Clone() deliverclient.CloneableUpdatableBlockVerifier
func (*UpdatableBlockVerifier) CloneCallCount ¶
func (fake *UpdatableBlockVerifier) CloneCallCount() int
func (*UpdatableBlockVerifier) CloneCalls ¶
func (fake *UpdatableBlockVerifier) CloneCalls(stub func() deliverclient.CloneableUpdatableBlockVerifier)
func (*UpdatableBlockVerifier) CloneReturns ¶
func (fake *UpdatableBlockVerifier) CloneReturns(result1 deliverclient.CloneableUpdatableBlockVerifier)
func (*UpdatableBlockVerifier) CloneReturnsOnCall ¶
func (fake *UpdatableBlockVerifier) CloneReturnsOnCall(i int, result1 deliverclient.CloneableUpdatableBlockVerifier)
func (*UpdatableBlockVerifier) Invocations ¶
func (fake *UpdatableBlockVerifier) Invocations() map[string][][]interface{}
func (*UpdatableBlockVerifier) UpdateBlockHeader ¶
func (fake *UpdatableBlockVerifier) UpdateBlockHeader(arg1 *common.Block)
func (*UpdatableBlockVerifier) UpdateBlockHeaderArgsForCall ¶
func (fake *UpdatableBlockVerifier) UpdateBlockHeaderArgsForCall(i int) *common.Block
func (*UpdatableBlockVerifier) UpdateBlockHeaderCallCount ¶
func (fake *UpdatableBlockVerifier) UpdateBlockHeaderCallCount() int
func (*UpdatableBlockVerifier) UpdateBlockHeaderCalls ¶
func (fake *UpdatableBlockVerifier) UpdateBlockHeaderCalls(stub func(*common.Block))
func (*UpdatableBlockVerifier) UpdateConfig ¶
func (fake *UpdatableBlockVerifier) UpdateConfig(arg1 *common.Block) error
func (*UpdatableBlockVerifier) UpdateConfigArgsForCall ¶
func (fake *UpdatableBlockVerifier) UpdateConfigArgsForCall(i int) *common.Block
func (*UpdatableBlockVerifier) UpdateConfigCallCount ¶
func (fake *UpdatableBlockVerifier) UpdateConfigCallCount() int
func (*UpdatableBlockVerifier) UpdateConfigCalls ¶
func (fake *UpdatableBlockVerifier) UpdateConfigCalls(stub func(*common.Block) error)
func (*UpdatableBlockVerifier) UpdateConfigReturns ¶
func (fake *UpdatableBlockVerifier) UpdateConfigReturns(result1 error)
func (*UpdatableBlockVerifier) UpdateConfigReturnsOnCall ¶
func (fake *UpdatableBlockVerifier) UpdateConfigReturnsOnCall(i int, result1 error)
func (*UpdatableBlockVerifier) VerifyBlock ¶
func (fake *UpdatableBlockVerifier) VerifyBlock(arg1 *common.Block) error
func (*UpdatableBlockVerifier) VerifyBlockArgsForCall ¶
func (fake *UpdatableBlockVerifier) VerifyBlockArgsForCall(i int) *common.Block
func (*UpdatableBlockVerifier) VerifyBlockAttestation ¶
func (fake *UpdatableBlockVerifier) VerifyBlockAttestation(arg1 *common.Block) error
func (*UpdatableBlockVerifier) VerifyBlockAttestationArgsForCall ¶
func (fake *UpdatableBlockVerifier) VerifyBlockAttestationArgsForCall(i int) *common.Block
func (*UpdatableBlockVerifier) VerifyBlockAttestationCallCount ¶
func (fake *UpdatableBlockVerifier) VerifyBlockAttestationCallCount() int
func (*UpdatableBlockVerifier) VerifyBlockAttestationCalls ¶
func (fake *UpdatableBlockVerifier) VerifyBlockAttestationCalls(stub func(*common.Block) error)
func (*UpdatableBlockVerifier) VerifyBlockAttestationReturns ¶
func (fake *UpdatableBlockVerifier) VerifyBlockAttestationReturns(result1 error)
func (*UpdatableBlockVerifier) VerifyBlockAttestationReturnsOnCall ¶
func (fake *UpdatableBlockVerifier) VerifyBlockAttestationReturnsOnCall(i int, result1 error)
func (*UpdatableBlockVerifier) VerifyBlockCallCount ¶
func (fake *UpdatableBlockVerifier) VerifyBlockCallCount() int
func (*UpdatableBlockVerifier) VerifyBlockCalls ¶
func (fake *UpdatableBlockVerifier) VerifyBlockCalls(stub func(*common.Block) error)
func (*UpdatableBlockVerifier) VerifyBlockReturns ¶
func (fake *UpdatableBlockVerifier) VerifyBlockReturns(result1 error)
func (*UpdatableBlockVerifier) VerifyBlockReturnsOnCall ¶
func (fake *UpdatableBlockVerifier) VerifyBlockReturnsOnCall(i int, result1 error)
type VerifierFactory ¶
type VerifierFactory struct { CreateBlockVerifierStub func(*common.Block, *common.Block, bccsp.BCCSP, *flogging.FabricLogger) (deliverclient.CloneableUpdatableBlockVerifier, error) // contains filtered or unexported fields }
func (*VerifierFactory) CreateBlockVerifier ¶
func (fake *VerifierFactory) CreateBlockVerifier(arg1 *common.Block, arg2 *common.Block, arg3 bccsp.BCCSP, arg4 *flogging.FabricLogger) (deliverclient.CloneableUpdatableBlockVerifier, error)
func (*VerifierFactory) CreateBlockVerifierArgsForCall ¶
func (fake *VerifierFactory) CreateBlockVerifierArgsForCall(i int) (*common.Block, *common.Block, bccsp.BCCSP, *flogging.FabricLogger)
func (*VerifierFactory) CreateBlockVerifierCallCount ¶
func (fake *VerifierFactory) CreateBlockVerifierCallCount() int
func (*VerifierFactory) CreateBlockVerifierCalls ¶
func (fake *VerifierFactory) CreateBlockVerifierCalls(stub func(*common.Block, *common.Block, bccsp.BCCSP, *flogging.FabricLogger) (deliverclient.CloneableUpdatableBlockVerifier, error))
func (*VerifierFactory) CreateBlockVerifierReturns ¶
func (fake *VerifierFactory) CreateBlockVerifierReturns(result1 deliverclient.CloneableUpdatableBlockVerifier, result2 error)
func (*VerifierFactory) CreateBlockVerifierReturnsOnCall ¶
func (fake *VerifierFactory) CreateBlockVerifierReturnsOnCall(i int, result1 deliverclient.CloneableUpdatableBlockVerifier, result2 error)
func (*VerifierFactory) Invocations ¶
func (fake *VerifierFactory) Invocations() map[string][][]interface{}
Source Files ¶
- access_controller.go
- bft_block_deliverer.go
- bft_deliverer_factory.go
- block_puller.go
- block_puller_factory.go
- bundle.go
- communicator.go
- config_tx_validator.go
- config_update_proposer.go
- config_validator.go
- consenter_support.go
- consenter_verifier.go
- egress_comm.go
- filters.go
- ledger.go
- message_receiver.go
- mock_block_puller.go
- orderer_config.go
- policy.go
- policy_manager.go
- receiver_getter.go
- rpc.go
- sequencer.go
- signer_serializer.go
- synchronizer.go
- synchronizer_factory.go
- updatable_block_verifier.go
- verifier_factory.go