Versions in this module Expand all Collapse all v0 v0.1.6 Mar 4, 2021 Changes in this version + type ChannelResources struct + ApplyStub func(configtx *common.ConfigEnvelope) error + CapabilitiesStub func() channelconfig.ApplicationCapabilities + GetMSPIDsStub func() []string + LedgerStub func() ledger.PeerLedger + MSPManagerStub func() msp.MSPManager + func (fake *ChannelResources) Apply(configtx *common.ConfigEnvelope) error + func (fake *ChannelResources) ApplyArgsForCall(i int) *common.ConfigEnvelope + func (fake *ChannelResources) ApplyCallCount() int + func (fake *ChannelResources) ApplyReturns(result1 error) + func (fake *ChannelResources) ApplyReturnsOnCall(i int, result1 error) + func (fake *ChannelResources) Capabilities() channelconfig.ApplicationCapabilities + func (fake *ChannelResources) CapabilitiesCallCount() int + func (fake *ChannelResources) CapabilitiesReturns(result1 channelconfig.ApplicationCapabilities) + func (fake *ChannelResources) CapabilitiesReturnsOnCall(i int, result1 channelconfig.ApplicationCapabilities) + func (fake *ChannelResources) GetMSPIDs() []string + func (fake *ChannelResources) GetMSPIDsCallCount() int + func (fake *ChannelResources) GetMSPIDsReturns(result1 []string) + func (fake *ChannelResources) GetMSPIDsReturnsOnCall(i int, result1 []string) + func (fake *ChannelResources) Invocations() map[string][][]interface{} + func (fake *ChannelResources) Ledger() ledger.PeerLedger + func (fake *ChannelResources) LedgerCallCount() int + func (fake *ChannelResources) LedgerReturns(result1 ledger.PeerLedger) + func (fake *ChannelResources) LedgerReturnsOnCall(i int, result1 ledger.PeerLedger) + func (fake *ChannelResources) MSPManager() msp.MSPManager + func (fake *ChannelResources) MSPManagerCallCount() int + func (fake *ChannelResources) MSPManagerReturns(result1 msp.MSPManager) + func (fake *ChannelResources) MSPManagerReturnsOnCall(i int, result1 msp.MSPManager) + type ContextProvider struct + ValidationContextForBlockStub func(channelID string, blockNum uint64) (context.Context, error) + func (fake *ContextProvider) Invocations() map[string][][]interface{} + func (fake *ContextProvider) ValidationContextForBlock(channelID string, blockNum uint64) (context.Context, error) + func (fake *ContextProvider) ValidationContextForBlockArgsForCall(i int) (string, uint64) + func (fake *ContextProvider) ValidationContextForBlockCallCount() int + func (fake *ContextProvider) ValidationContextForBlockReturns(result1 context.Context, result2 error) + func (fake *ContextProvider) ValidationContextForBlockReturnsOnCall(i int, result1 context.Context, result2 error) + type DistributedValidator struct + GetValidatingPeersStub func(block *cb.Block) (discovery.PeerGroup, error) + SubmitValidationResultsStub func(results *validationresults.Results) + ValidatePartialStub func(ctx context.Context, block *cb.Block) (txflags.ValidationFlags, []string, error) + func (fake *DistributedValidator) GetValidatingPeers(block *cb.Block) (discovery.PeerGroup, error) + func (fake *DistributedValidator) GetValidatingPeersArgsForCall(i int) *cb.Block + func (fake *DistributedValidator) GetValidatingPeersCallCount() int + func (fake *DistributedValidator) GetValidatingPeersReturns(result1 discovery.PeerGroup, result2 error) + func (fake *DistributedValidator) GetValidatingPeersReturnsOnCall(i int, result1 discovery.PeerGroup, result2 error) + func (fake *DistributedValidator) Invocations() map[string][][]interface{} + func (fake *DistributedValidator) SubmitValidationResults(results *validationresults.Results) + func (fake *DistributedValidator) SubmitValidationResultsArgsForCall(i int) *validationresults.Results + func (fake *DistributedValidator) SubmitValidationResultsCallCount() int + func (fake *DistributedValidator) ValidatePartial(ctx context.Context, block *cb.Block) (txflags.ValidationFlags, []string, error) + func (fake *DistributedValidator) ValidatePartialArgsForCall(i int) (context.Context, *cb.Block) + func (fake *DistributedValidator) ValidatePartialCallCount() int + func (fake *DistributedValidator) ValidatePartialReturns(result1 txflags.ValidationFlags, result2 []string, result3 error) + func (fake *DistributedValidator) ValidatePartialReturnsOnCall(i int, result1 txflags.ValidationFlags, result2 []string, result3 error) + type DistributedValidatorProvider struct + GetValidatorForChannelStub func(channelID string) vcommon.DistributedValidator + func (fake *DistributedValidatorProvider) GetValidatorForChannel(channelID string) vcommon.DistributedValidator + func (fake *DistributedValidatorProvider) GetValidatorForChannelArgsForCall(i int) string + func (fake *DistributedValidatorProvider) GetValidatorForChannelCallCount() int + func (fake *DistributedValidatorProvider) GetValidatorForChannelReturns(result1 vcommon.DistributedValidator) + func (fake *DistributedValidatorProvider) GetValidatorForChannelReturnsOnCall(i int, result1 vcommon.DistributedValidator) + func (fake *DistributedValidatorProvider) Invocations() map[string][][]interface{} + type Semaphore struct + AcquireStub func(ctx context.Context) error + ReleaseStub func() + func (fake *Semaphore) Acquire(ctx context.Context) error + func (fake *Semaphore) AcquireArgsForCall(i int) context.Context + func (fake *Semaphore) AcquireCallCount() int + func (fake *Semaphore) AcquireReturns(result1 error) + func (fake *Semaphore) AcquireReturnsOnCall(i int, result1 error) + func (fake *Semaphore) Invocations() map[string][][]interface{} + func (fake *Semaphore) Release() + func (fake *Semaphore) ReleaseCallCount() int + type TxValidator struct + func NewTxValidator() *TxValidator + func (m *TxValidator) ValidateTx(req *validatorv20.BlockValidationRequest, ...) + func (m *TxValidator) WithValidationResult(r *validatorv20.BlockValidationResult) *TxValidator