Documentation ¶
Overview ¶
Code generated by counterfeiter. DO NOT EDIT.
Code generated by counterfeiter. DO NOT EDIT.
Code generated by counterfeiter. DO NOT EDIT.
Index ¶
- type BlockRetriever
- type BlockVerifier
- type ChainPuller
- type ChannelLister
- type ClusterClient
- type Communicator
- type Dispatcher
- type Handler
- type LedgerFactory
- type LedgerWriter
- type MetricsProvider
- type Policy
- func (fake *Policy) EvaluateIdentities(arg1 []msp.Identity) error
- func (fake *Policy) EvaluateIdentitiesArgsForCall(i int) []msp.Identity
- func (fake *Policy) EvaluateIdentitiesCallCount() int
- func (fake *Policy) EvaluateIdentitiesCalls(stub func([]msp.Identity) error)
- func (fake *Policy) EvaluateIdentitiesReturns(result1 error)
- func (fake *Policy) EvaluateIdentitiesReturnsOnCall(i int, result1 error)
- func (fake *Policy) EvaluateSignedData(arg1 []*protoutil.SignedData) error
- func (fake *Policy) EvaluateSignedDataArgsForCall(i int) []*protoutil.SignedData
- func (fake *Policy) EvaluateSignedDataCallCount() int
- func (fake *Policy) EvaluateSignedDataCalls(stub func([]*protoutil.SignedData) error)
- func (fake *Policy) EvaluateSignedDataReturns(result1 error)
- func (fake *Policy) EvaluateSignedDataReturnsOnCall(i int, result1 error)
- func (fake *Policy) Invocations() map[string][][]interface{}
- type PolicyManager
- func (fake *PolicyManager) GetPolicy(arg1 string) (policies.Policy, bool)
- func (fake *PolicyManager) GetPolicyArgsForCall(i int) string
- func (fake *PolicyManager) GetPolicyCallCount() int
- func (fake *PolicyManager) GetPolicyCalls(stub func(string) (policies.Policy, bool))
- func (fake *PolicyManager) GetPolicyReturns(result1 policies.Policy, result2 bool)
- func (fake *PolicyManager) GetPolicyReturnsOnCall(i int, result1 policies.Policy, result2 bool)
- func (fake *PolicyManager) Invocations() map[string][][]interface{}
- func (fake *PolicyManager) Manager(arg1 []string) (policies.Manager, bool)
- func (fake *PolicyManager) ManagerArgsForCall(i int) []string
- func (fake *PolicyManager) ManagerCallCount() int
- func (fake *PolicyManager) ManagerCalls(stub func([]string) (policies.Manager, bool))
- func (fake *PolicyManager) ManagerReturns(result1 policies.Manager, result2 bool)
- func (fake *PolicyManager) ManagerReturnsOnCall(i int, result1 policies.Manager, result2 bool)
- type SecureDialer
- type SignerSerializer
- func (fake *SignerSerializer) Invocations() map[string][][]interface{}
- func (fake *SignerSerializer) Serialize() ([]byte, error)
- func (fake *SignerSerializer) SerializeCallCount() int
- func (fake *SignerSerializer) SerializeCalls(stub func() ([]byte, error))
- func (fake *SignerSerializer) SerializeReturns(result1 []byte, result2 error)
- func (fake *SignerSerializer) SerializeReturnsOnCall(i int, result1 []byte, result2 error)
- func (fake *SignerSerializer) Sign(arg1 []byte) ([]byte, error)
- func (fake *SignerSerializer) SignArgsForCall(i int) []byte
- func (fake *SignerSerializer) SignCallCount() int
- func (fake *SignerSerializer) SignCalls(stub func([]byte) ([]byte, error))
- func (fake *SignerSerializer) SignReturns(result1 []byte, result2 error)
- func (fake *SignerSerializer) SignReturnsOnCall(i int, result1 []byte, result2 error)
- type StepClient
- func (_m *StepClient) CloseSend() error
- func (_m *StepClient) Context() context.Context
- func (_m *StepClient) Header() (metadata.MD, error)
- func (_m *StepClient) Recv() (*orderer.StepResponse, error)
- func (_m *StepClient) RecvMsg(m interface{}) error
- func (_m *StepClient) Send(_a0 *orderer.StepRequest) error
- func (_m *StepClient) SendMsg(m interface{}) error
- func (_m *StepClient) Trailer() metadata.MD
- type StepStream
- func (_m *StepStream) Context() context.Context
- func (_m *StepStream) Recv() (*orderer.StepRequest, error)
- func (_m *StepStream) RecvMsg(m interface{}) error
- func (_m *StepStream) Send(response *orderer.StepResponse) error
- func (_m *StepStream) SendHeader(_a0 metadata.MD) error
- func (_m *StepStream) SendMsg(m interface{}) error
- func (_m *StepStream) SetHeader(_a0 metadata.MD) error
- func (_m *StepStream) SetTrailer(_a0 metadata.MD)
- type VerifierFactory
- type VerifierRetriever
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockRetriever ¶ added in v1.4.1
BlockRetriever is an autogenerated mock type for the BlockRetriever type
type BlockVerifier ¶ added in v1.4.0
BlockVerifier is an autogenerated mock type for the BlockVerifier type
func (*BlockVerifier) VerifyBlockSignature ¶ added in v1.4.0
func (_m *BlockVerifier) VerifyBlockSignature(sd []*protoutil.SignedData, config *common.ConfigEnvelope) error
VerifyBlockSignature provides a mock function with given fields: sd, config
type ChainPuller ¶ added in v1.4.0
ChainPuller is an autogenerated mock type for the ChainPuller type
func (*ChainPuller) Close ¶ added in v1.4.0
func (_m *ChainPuller) Close()
Close provides a mock function with given fields:
func (*ChainPuller) HeightsByEndpoints ¶ added in v1.4.0
func (_m *ChainPuller) HeightsByEndpoints() (map[string]uint64, error)
HeightsByEndpoints provides a mock function with given fields:
type ChannelLister ¶ added in v1.4.0
ChannelLister is an autogenerated mock type for the ChannelLister type
func (*ChannelLister) Channels ¶ added in v1.4.0
func (_m *ChannelLister) Channels() []cluster.ChannelGenesisBlock
Channels provides a mock function with given fields:
func (*ChannelLister) Close ¶ added in v1.4.0
func (_m *ChannelLister) Close()
Close provides a mock function with given fields:
type ClusterClient ¶
ClusterClient is an autogenerated mock type for the ClusterClient type
func (*ClusterClient) Step ¶
func (_m *ClusterClient) Step(ctx context.Context, opts ...grpc.CallOption) (orderer.Cluster_StepClient, error)
Step provides a mock function with given fields: ctx, opts
type Communicator ¶ added in v1.4.0
Communicator is an autogenerated mock type for the Communicator type
func (*Communicator) Configure ¶ added in v1.4.0
func (_m *Communicator) Configure(channel string, members []cluster.RemoteNode)
Configure provides a mock function with given fields: channel, members
func (*Communicator) Remote ¶ added in v1.4.0
func (_m *Communicator) Remote(channel string, id uint64) (*cluster.RemoteContext, error)
Remote provides a mock function with given fields: channel, id
func (*Communicator) Shutdown ¶ added in v1.4.0
func (_m *Communicator) Shutdown()
Shutdown provides a mock function with given fields:
type Dispatcher ¶
Dispatcher is an autogenerated mock type for the Dispatcher type
func (*Dispatcher) DispatchConsensus ¶ added in v1.4.1
func (_m *Dispatcher) DispatchConsensus(ctx context.Context, request *orderer.ConsensusRequest) error
DispatchConsensus provides a mock function with given fields: ctx, request
func (*Dispatcher) DispatchSubmit ¶
func (_m *Dispatcher) DispatchSubmit(ctx context.Context, request *orderer.SubmitRequest) error
DispatchSubmit provides a mock function with given fields: ctx, request
type Handler ¶
Handler is an autogenerated mock type for the Handler type
func (*Handler) OnConsensus ¶ added in v1.4.1
OnConsensus provides a mock function with given fields: channel, sender, req
type LedgerFactory ¶ added in v1.4.0
LedgerFactory is an autogenerated mock type for the LedgerFactory type
func (*LedgerFactory) GetOrCreate ¶ added in v1.4.0
func (_m *LedgerFactory) GetOrCreate(chainID string) (cluster.LedgerWriter, error)
GetOrCreate provides a mock function with given fields: chainID
type LedgerWriter ¶ added in v1.4.0
LedgerWriter is an autogenerated mock type for the LedgerWriter type
func (*LedgerWriter) Append ¶ added in v1.4.0
func (_m *LedgerWriter) Append(block *common.Block) error
Append provides a mock function with given fields: block
func (*LedgerWriter) Height ¶ added in v1.4.0
func (_m *LedgerWriter) Height() uint64
Height provides a mock function with given fields:
type MetricsProvider ¶ added in v1.4.1
MetricsProvider is an autogenerated mock type for the MetricsProvider type
func (*MetricsProvider) NewCounter ¶ added in v1.4.1
func (_m *MetricsProvider) NewCounter(opts metrics.CounterOpts) metrics.Counter
NewCounter provides a mock function with given fields: opts
func (*MetricsProvider) NewGauge ¶ added in v1.4.1
func (_m *MetricsProvider) NewGauge(opts metrics.GaugeOpts) metrics.Gauge
NewGauge provides a mock function with given fields: opts
func (*MetricsProvider) NewHistogram ¶ added in v1.4.1
func (_m *MetricsProvider) NewHistogram(opts metrics.HistogramOpts) metrics.Histogram
NewHistogram provides a mock function with given fields: opts
type Policy ¶ added in v1.5.6
type Policy struct { EvaluateIdentitiesStub func([]msp.Identity) error EvaluateSignedDataStub func([]*protoutil.SignedData) error // contains filtered or unexported fields }
func (*Policy) EvaluateIdentities ¶ added in v1.5.6
func (*Policy) EvaluateIdentitiesArgsForCall ¶ added in v1.5.6
func (*Policy) EvaluateIdentitiesCallCount ¶ added in v1.5.6
func (*Policy) EvaluateIdentitiesCalls ¶ added in v1.5.6
func (*Policy) EvaluateIdentitiesReturns ¶ added in v1.5.6
func (*Policy) EvaluateIdentitiesReturnsOnCall ¶ added in v1.5.6
func (*Policy) EvaluateSignedData ¶ added in v1.5.6
func (fake *Policy) EvaluateSignedData(arg1 []*protoutil.SignedData) error
func (*Policy) EvaluateSignedDataArgsForCall ¶ added in v1.5.6
func (fake *Policy) EvaluateSignedDataArgsForCall(i int) []*protoutil.SignedData
func (*Policy) EvaluateSignedDataCallCount ¶ added in v1.5.6
func (*Policy) EvaluateSignedDataCalls ¶ added in v1.5.6
func (fake *Policy) EvaluateSignedDataCalls(stub func([]*protoutil.SignedData) error)
func (*Policy) EvaluateSignedDataReturns ¶ added in v1.5.6
func (*Policy) EvaluateSignedDataReturnsOnCall ¶ added in v1.5.6
func (*Policy) Invocations ¶ added in v1.5.6
type PolicyManager ¶ added in v1.5.6
type PolicyManager struct { GetPolicyStub func(string) (policies.Policy, bool) ManagerStub func([]string) (policies.Manager, bool) // contains filtered or unexported fields }
func (*PolicyManager) GetPolicy ¶ added in v1.5.6
func (fake *PolicyManager) GetPolicy(arg1 string) (policies.Policy, bool)
func (*PolicyManager) GetPolicyArgsForCall ¶ added in v1.5.6
func (fake *PolicyManager) GetPolicyArgsForCall(i int) string
func (*PolicyManager) GetPolicyCallCount ¶ added in v1.5.6
func (fake *PolicyManager) GetPolicyCallCount() int
func (*PolicyManager) GetPolicyCalls ¶ added in v1.5.6
func (fake *PolicyManager) GetPolicyCalls(stub func(string) (policies.Policy, bool))
func (*PolicyManager) GetPolicyReturns ¶ added in v1.5.6
func (fake *PolicyManager) GetPolicyReturns(result1 policies.Policy, result2 bool)
func (*PolicyManager) GetPolicyReturnsOnCall ¶ added in v1.5.6
func (fake *PolicyManager) GetPolicyReturnsOnCall(i int, result1 policies.Policy, result2 bool)
func (*PolicyManager) Invocations ¶ added in v1.5.6
func (fake *PolicyManager) Invocations() map[string][][]interface{}
func (*PolicyManager) Manager ¶ added in v1.5.6
func (fake *PolicyManager) Manager(arg1 []string) (policies.Manager, bool)
func (*PolicyManager) ManagerArgsForCall ¶ added in v1.5.6
func (fake *PolicyManager) ManagerArgsForCall(i int) []string
func (*PolicyManager) ManagerCallCount ¶ added in v1.5.6
func (fake *PolicyManager) ManagerCallCount() int
func (*PolicyManager) ManagerCalls ¶ added in v1.5.6
func (fake *PolicyManager) ManagerCalls(stub func([]string) (policies.Manager, bool))
func (*PolicyManager) ManagerReturns ¶ added in v1.5.6
func (fake *PolicyManager) ManagerReturns(result1 policies.Manager, result2 bool)
func (*PolicyManager) ManagerReturnsOnCall ¶ added in v1.5.6
func (fake *PolicyManager) ManagerReturnsOnCall(i int, result1 policies.Manager, result2 bool)
type SecureDialer ¶
SecureDialer is an autogenerated mock type for the SecureDialer type
func (*SecureDialer) Dial ¶
func (_m *SecureDialer) Dial(address string, verifyFunc cluster.RemoteVerifier) (*grpc.ClientConn, error)
Dial provides a mock function with given fields: address, verifyFunc
type SignerSerializer ¶ added in v1.5.6
type SignerSerializer struct { SerializeStub func() ([]byte, error) SignStub func([]byte) ([]byte, error) // contains filtered or unexported fields }
func (*SignerSerializer) Invocations ¶ added in v1.5.6
func (fake *SignerSerializer) Invocations() map[string][][]interface{}
func (*SignerSerializer) Serialize ¶ added in v1.5.6
func (fake *SignerSerializer) Serialize() ([]byte, error)
func (*SignerSerializer) SerializeCallCount ¶ added in v1.5.6
func (fake *SignerSerializer) SerializeCallCount() int
func (*SignerSerializer) SerializeCalls ¶ added in v1.5.6
func (fake *SignerSerializer) SerializeCalls(stub func() ([]byte, error))
func (*SignerSerializer) SerializeReturns ¶ added in v1.5.6
func (fake *SignerSerializer) SerializeReturns(result1 []byte, result2 error)
func (*SignerSerializer) SerializeReturnsOnCall ¶ added in v1.5.6
func (fake *SignerSerializer) SerializeReturnsOnCall(i int, result1 []byte, result2 error)
func (*SignerSerializer) Sign ¶ added in v1.5.6
func (fake *SignerSerializer) Sign(arg1 []byte) ([]byte, error)
func (*SignerSerializer) SignArgsForCall ¶ added in v1.5.6
func (fake *SignerSerializer) SignArgsForCall(i int) []byte
func (*SignerSerializer) SignCallCount ¶ added in v1.5.6
func (fake *SignerSerializer) SignCallCount() int
func (*SignerSerializer) SignCalls ¶ added in v1.5.6
func (fake *SignerSerializer) SignCalls(stub func([]byte) ([]byte, error))
func (*SignerSerializer) SignReturns ¶ added in v1.5.6
func (fake *SignerSerializer) SignReturns(result1 []byte, result2 error)
func (*SignerSerializer) SignReturnsOnCall ¶ added in v1.5.6
func (fake *SignerSerializer) SignReturnsOnCall(i int, result1 []byte, result2 error)
type StepClient ¶ added in v1.4.1
StepClient is an autogenerated mock type for the StepClient type
func (*StepClient) CloseSend ¶ added in v1.4.1
func (_m *StepClient) CloseSend() error
CloseSend provides a mock function with given fields:
func (*StepClient) Context ¶ added in v1.4.1
func (_m *StepClient) Context() context.Context
Context provides a mock function with given fields:
func (*StepClient) Header ¶ added in v1.4.1
func (_m *StepClient) Header() (metadata.MD, error)
Header provides a mock function with given fields:
func (*StepClient) Recv ¶ added in v1.4.1
func (_m *StepClient) Recv() (*orderer.StepResponse, error)
Recv provides a mock function with given fields:
func (*StepClient) RecvMsg ¶ added in v1.4.1
func (_m *StepClient) RecvMsg(m interface{}) error
RecvMsg provides a mock function with given fields: m
func (*StepClient) Send ¶ added in v1.4.1
func (_m *StepClient) Send(_a0 *orderer.StepRequest) error
Send provides a mock function with given fields: _a0
func (*StepClient) SendMsg ¶ added in v1.4.1
func (_m *StepClient) SendMsg(m interface{}) error
SendMsg provides a mock function with given fields: m
func (*StepClient) Trailer ¶ added in v1.4.1
func (_m *StepClient) Trailer() metadata.MD
Trailer provides a mock function with given fields:
type StepStream ¶ added in v1.4.1
StepStream is an autogenerated mock type for the StepStream type
func (*StepStream) Context ¶ added in v1.4.1
func (_m *StepStream) Context() context.Context
Context provides a mock function with given fields:
func (*StepStream) Recv ¶ added in v1.4.1
func (_m *StepStream) Recv() (*orderer.StepRequest, error)
Recv provides a mock function with given fields:
func (*StepStream) RecvMsg ¶ added in v1.4.1
func (_m *StepStream) RecvMsg(m interface{}) error
RecvMsg provides a mock function with given fields: m
func (*StepStream) Send ¶ added in v1.4.1
func (_m *StepStream) Send(response *orderer.StepResponse) error
Send provides a mock function with given fields: response
func (*StepStream) SendHeader ¶ added in v1.4.1
func (_m *StepStream) SendHeader(_a0 metadata.MD) error
SendHeader provides a mock function with given fields: _a0
func (*StepStream) SendMsg ¶ added in v1.4.1
func (_m *StepStream) SendMsg(m interface{}) error
SendMsg provides a mock function with given fields: m
func (*StepStream) SetHeader ¶ added in v1.4.1
func (_m *StepStream) SetHeader(_a0 metadata.MD) error
SetHeader provides a mock function with given fields: _a0
func (*StepStream) SetTrailer ¶ added in v1.4.1
func (_m *StepStream) SetTrailer(_a0 metadata.MD)
SetTrailer provides a mock function with given fields: _a0
type VerifierFactory ¶ added in v1.4.1
VerifierFactory is an autogenerated mock type for the VerifierFactory type
func (*VerifierFactory) VerifierFromConfig ¶ added in v1.4.1
func (_m *VerifierFactory) VerifierFromConfig(configuration *common.ConfigEnvelope, channel string) (cluster.BlockVerifier, error)
VerifierFromConfig provides a mock function with given fields: configuration, channel
type VerifierRetriever ¶ added in v1.4.1
VerifierRetriever is an autogenerated mock type for the VerifierRetriever type
func (*VerifierRetriever) RetrieveVerifier ¶ added in v1.4.1
func (_m *VerifierRetriever) RetrieveVerifier(channel string) cluster.BlockVerifier
RetrieveVerifier provides a mock function with given fields: channel
Source Files ¶
- block_retriever.go
- block_verifier.go
- chain_puller.go
- channel_lister.go
- cluster_client.go
- communicator.go
- dispatcher.go
- handler.go
- ledger_factory.go
- ledger_writer.go
- metrics_provider.go
- policy.go
- policy_manager.go
- secure_dialer.go
- signer_serializer.go
- step_client.go
- step_stream.go
- verifier_factory.go
- verifier_retriever.go