Documentation ¶
Overview ¶
Code generated by counterfeiter. DO NOT EDIT.
Index ¶
- type AccessController
- 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 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 ConsenterVerifier
- type FakeBlockPuller
- func (fake *FakeBlockPuller) Close()
- func (fake *FakeBlockPuller) CloseCallCount() int
- func (fake *FakeBlockPuller) CloseCalls(stub func())
- func (fake *FakeBlockPuller) HeightsByEndpoints() (map[string]uint64, error)
- func (fake *FakeBlockPuller) HeightsByEndpointsCallCount() int
- func (fake *FakeBlockPuller) HeightsByEndpointsCalls(stub func() (map[string]uint64, error))
- func (fake *FakeBlockPuller) HeightsByEndpointsReturns(result1 map[string]uint64, result2 error)
- func (fake *FakeBlockPuller) HeightsByEndpointsReturnsOnCall(i int, result1 map[string]uint64, result2 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 Filters
- type Ledger
- type MessageReceiver
- type RPC
- type ReceiverGetter
- type Sequencer
- type SignerSerializer
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 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 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 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 FakeBlockPuller ¶
type FakeBlockPuller struct { CloseStub func() HeightsByEndpointsStub func() (map[string]uint64, 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, error)
func (*FakeBlockPuller) HeightsByEndpointsCallCount ¶
func (fake *FakeBlockPuller) HeightsByEndpointsCallCount() int
func (*FakeBlockPuller) HeightsByEndpointsCalls ¶
func (fake *FakeBlockPuller) HeightsByEndpointsCalls(stub func() (map[string]uint64, error))
func (*FakeBlockPuller) HeightsByEndpointsReturns ¶
func (fake *FakeBlockPuller) HeightsByEndpointsReturns(result1 map[string]uint64, result2 error)
func (*FakeBlockPuller) HeightsByEndpointsReturnsOnCall ¶
func (fake *FakeBlockPuller) HeightsByEndpointsReturnsOnCall(i int, result1 map[string]uint64, result2 error)
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 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 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 mockConstructorTestingTNewSignerSerializer) *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.
func (*SignerSerializer) Serialize ¶
func (_m *SignerSerializer) Serialize() ([]byte, error)
Serialize provides a mock function with given fields: