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.
Index ¶
- type BCCSP
- func (fake *BCCSP) Decrypt(arg1 bccsp.Key, arg2 []byte, arg3 bccsp.DecrypterOpts) ([]byte, error)
- func (fake *BCCSP) DecryptArgsForCall(i int) (bccsp.Key, []byte, bccsp.DecrypterOpts)
- func (fake *BCCSP) DecryptCallCount() int
- func (fake *BCCSP) DecryptCalls(stub func(bccsp.Key, []byte, bccsp.DecrypterOpts) ([]byte, error))
- func (fake *BCCSP) DecryptReturns(result1 []byte, result2 error)
- func (fake *BCCSP) DecryptReturnsOnCall(i int, result1 []byte, result2 error)
- func (fake *BCCSP) Encrypt(arg1 bccsp.Key, arg2 []byte, arg3 bccsp.EncrypterOpts) ([]byte, error)
- func (fake *BCCSP) EncryptArgsForCall(i int) (bccsp.Key, []byte, bccsp.EncrypterOpts)
- func (fake *BCCSP) EncryptCallCount() int
- func (fake *BCCSP) EncryptCalls(stub func(bccsp.Key, []byte, bccsp.EncrypterOpts) ([]byte, error))
- func (fake *BCCSP) EncryptReturns(result1 []byte, result2 error)
- func (fake *BCCSP) EncryptReturnsOnCall(i int, result1 []byte, result2 error)
- func (fake *BCCSP) GetHash(arg1 bccsp.HashOpts) (hash.Hash, error)
- func (fake *BCCSP) GetHashArgsForCall(i int) bccsp.HashOpts
- func (fake *BCCSP) GetHashCallCount() int
- func (fake *BCCSP) GetHashCalls(stub func(bccsp.HashOpts) (hash.Hash, error))
- func (fake *BCCSP) GetHashReturns(result1 hash.Hash, result2 error)
- func (fake *BCCSP) GetHashReturnsOnCall(i int, result1 hash.Hash, result2 error)
- func (fake *BCCSP) GetKey(arg1 []byte) (bccsp.Key, error)
- func (fake *BCCSP) GetKeyArgsForCall(i int) []byte
- func (fake *BCCSP) GetKeyCallCount() int
- func (fake *BCCSP) GetKeyCalls(stub func([]byte) (bccsp.Key, error))
- func (fake *BCCSP) GetKeyReturns(result1 bccsp.Key, result2 error)
- func (fake *BCCSP) GetKeyReturnsOnCall(i int, result1 bccsp.Key, result2 error)
- func (fake *BCCSP) Hash(arg1 []byte, arg2 bccsp.HashOpts) ([]byte, error)
- func (fake *BCCSP) HashArgsForCall(i int) ([]byte, bccsp.HashOpts)
- func (fake *BCCSP) HashCallCount() int
- func (fake *BCCSP) HashCalls(stub func([]byte, bccsp.HashOpts) ([]byte, error))
- func (fake *BCCSP) HashReturns(result1 []byte, result2 error)
- func (fake *BCCSP) HashReturnsOnCall(i int, result1 []byte, result2 error)
- func (fake *BCCSP) Invocations() map[string][][]interface{}
- func (fake *BCCSP) KeyDeriv(arg1 bccsp.Key, arg2 bccsp.KeyDerivOpts) (bccsp.Key, error)
- func (fake *BCCSP) KeyDerivArgsForCall(i int) (bccsp.Key, bccsp.KeyDerivOpts)
- func (fake *BCCSP) KeyDerivCallCount() int
- func (fake *BCCSP) KeyDerivCalls(stub func(bccsp.Key, bccsp.KeyDerivOpts) (bccsp.Key, error))
- func (fake *BCCSP) KeyDerivReturns(result1 bccsp.Key, result2 error)
- func (fake *BCCSP) KeyDerivReturnsOnCall(i int, result1 bccsp.Key, result2 error)
- func (fake *BCCSP) KeyGen(arg1 bccsp.KeyGenOpts) (bccsp.Key, error)
- func (fake *BCCSP) KeyGenArgsForCall(i int) bccsp.KeyGenOpts
- func (fake *BCCSP) KeyGenCallCount() int
- func (fake *BCCSP) KeyGenCalls(stub func(bccsp.KeyGenOpts) (bccsp.Key, error))
- func (fake *BCCSP) KeyGenReturns(result1 bccsp.Key, result2 error)
- func (fake *BCCSP) KeyGenReturnsOnCall(i int, result1 bccsp.Key, result2 error)
- func (fake *BCCSP) KeyImport(arg1 interface{}, arg2 bccsp.KeyImportOpts) (bccsp.Key, error)
- func (fake *BCCSP) KeyImportArgsForCall(i int) (interface{}, bccsp.KeyImportOpts)
- func (fake *BCCSP) KeyImportCallCount() int
- func (fake *BCCSP) KeyImportCalls(stub func(interface{}, bccsp.KeyImportOpts) (bccsp.Key, error))
- func (fake *BCCSP) KeyImportReturns(result1 bccsp.Key, result2 error)
- func (fake *BCCSP) KeyImportReturnsOnCall(i int, result1 bccsp.Key, result2 error)
- func (fake *BCCSP) Sign(arg1 bccsp.Key, arg2 []byte, arg3 bccsp.SignerOpts) ([]byte, error)
- func (fake *BCCSP) SignArgsForCall(i int) (bccsp.Key, []byte, bccsp.SignerOpts)
- func (fake *BCCSP) SignCallCount() int
- func (fake *BCCSP) SignCalls(stub func(bccsp.Key, []byte, bccsp.SignerOpts) ([]byte, error))
- func (fake *BCCSP) SignReturns(result1 []byte, result2 error)
- func (fake *BCCSP) SignReturnsOnCall(i int, result1 []byte, result2 error)
- func (fake *BCCSP) Verify(arg1 bccsp.Key, arg2 []byte, arg3 []byte, arg4 bccsp.SignerOpts) (bool, error)
- func (fake *BCCSP) VerifyArgsForCall(i int) (bccsp.Key, []byte, []byte, bccsp.SignerOpts)
- func (fake *BCCSP) VerifyCallCount() int
- func (fake *BCCSP) VerifyCalls(stub func(bccsp.Key, []byte, []byte, bccsp.SignerOpts) (bool, error))
- func (fake *BCCSP) VerifyReturns(result1 bool, result2 error)
- func (fake *BCCSP) VerifyReturnsOnCall(i int, result1 bool, result2 error)
- type BlockRetriever
- type ChainPuller
- type ClusterClient
- type ClusterStepStream
- func (_m *ClusterStepStream) Context() context.Context
- func (_m *ClusterStepStream) Recv() (*orderer.ClusterNodeServiceStepRequest, error)
- func (_m *ClusterStepStream) RecvMsg(m interface{}) error
- func (_m *ClusterStepStream) Send(response *orderer.ClusterNodeServiceStepResponse) error
- func (_m *ClusterStepStream) SendHeader(_a0 metadata.MD) error
- func (_m *ClusterStepStream) SendMsg(m interface{}) error
- func (_m *ClusterStepStream) SetHeader(_a0 metadata.MD) error
- func (_m *ClusterStepStream) SetTrailer(_a0 metadata.MD)
- type Communicator
- type Dispatcher
- type Handler
- 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 StepClientStream
- 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)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BCCSP ¶
type BCCSP struct { DecryptStub func(bccsp.Key, []byte, bccsp.DecrypterOpts) ([]byte, error) EncryptStub func(bccsp.Key, []byte, bccsp.EncrypterOpts) ([]byte, error) GetHashStub func(bccsp.HashOpts) (hash.Hash, error) GetKeyStub func([]byte) (bccsp.Key, error) HashStub func([]byte, bccsp.HashOpts) ([]byte, error) KeyDerivStub func(bccsp.Key, bccsp.KeyDerivOpts) (bccsp.Key, error) KeyGenStub func(bccsp.KeyGenOpts) (bccsp.Key, error) KeyImportStub func(interface{}, bccsp.KeyImportOpts) (bccsp.Key, error) SignStub func(bccsp.Key, []byte, bccsp.SignerOpts) ([]byte, error) VerifyStub func(bccsp.Key, []byte, []byte, bccsp.SignerOpts) (bool, error) // contains filtered or unexported fields }
func (*BCCSP) DecryptArgsForCall ¶
func (*BCCSP) DecryptCallCount ¶
func (*BCCSP) DecryptCalls ¶
func (*BCCSP) DecryptReturns ¶
func (*BCCSP) DecryptReturnsOnCall ¶
func (*BCCSP) EncryptArgsForCall ¶
func (*BCCSP) EncryptCallCount ¶
func (*BCCSP) EncryptCalls ¶
func (*BCCSP) EncryptReturns ¶
func (*BCCSP) EncryptReturnsOnCall ¶
func (*BCCSP) GetHashCallCount ¶
func (*BCCSP) GetHashCalls ¶
func (*BCCSP) GetHashReturnsOnCall ¶
func (*BCCSP) GetKeyArgsForCall ¶
func (*BCCSP) GetKeyCallCount ¶
func (*BCCSP) GetKeyReturnsOnCall ¶
func (*BCCSP) HashCallCount ¶
func (*BCCSP) HashReturns ¶
func (*BCCSP) HashReturnsOnCall ¶
func (*BCCSP) Invocations ¶
func (*BCCSP) KeyDerivArgsForCall ¶
func (*BCCSP) KeyDerivCallCount ¶
func (*BCCSP) KeyDerivCalls ¶
func (*BCCSP) KeyDerivReturns ¶
func (*BCCSP) KeyDerivReturnsOnCall ¶
func (*BCCSP) KeyGenArgsForCall ¶
func (fake *BCCSP) KeyGenArgsForCall(i int) bccsp.KeyGenOpts
func (*BCCSP) KeyGenCallCount ¶
func (*BCCSP) KeyGenCalls ¶
func (*BCCSP) KeyGenReturnsOnCall ¶
func (*BCCSP) KeyImportArgsForCall ¶
func (fake *BCCSP) KeyImportArgsForCall(i int) (interface{}, bccsp.KeyImportOpts)
func (*BCCSP) KeyImportCallCount ¶
func (*BCCSP) KeyImportCalls ¶
func (*BCCSP) KeyImportReturns ¶
func (*BCCSP) KeyImportReturnsOnCall ¶
func (*BCCSP) SignArgsForCall ¶
func (*BCCSP) SignCallCount ¶
func (*BCCSP) SignReturns ¶
func (*BCCSP) SignReturnsOnCall ¶
func (*BCCSP) VerifyArgsForCall ¶
func (*BCCSP) VerifyCallCount ¶
func (*BCCSP) VerifyCalls ¶
func (*BCCSP) VerifyReturns ¶
type BlockRetriever ¶
BlockRetriever is an autogenerated mock type for the BlockRetriever type
func NewBlockRetriever ¶
func NewBlockRetriever(t mockConstructorTestingTNewBlockRetriever) *BlockRetriever
NewBlockRetriever creates a new instance of BlockRetriever. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
type ChainPuller ¶
ChainPuller is an autogenerated mock type for the ChainPuller type
func NewChainPuller ¶
func NewChainPuller(t mockConstructorTestingTNewChainPuller) *ChainPuller
NewChainPuller creates a new instance of ChainPuller. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ChainPuller) Close ¶
func (_m *ChainPuller) Close()
Close provides a mock function with given fields:
func (*ChainPuller) HeightsByEndpoints ¶
func (_m *ChainPuller) HeightsByEndpoints() (map[string]uint64, error)
HeightsByEndpoints provides a mock function with given fields:
type ClusterClient ¶
ClusterClient is an autogenerated mock type for the ClusterClient type
func NewClusterClient ¶
func NewClusterClient(t mockConstructorTestingTNewClusterClient) *ClusterClient
NewClusterClient creates a new instance of ClusterClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
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 ClusterStepStream ¶
ClusterStepStream is an autogenerated mock type for the ClusterStepStream type
func NewClusterStepStream ¶
func NewClusterStepStream(t mockConstructorTestingTNewClusterStepStream) *ClusterStepStream
NewClusterStepStream creates a new instance of ClusterStepStream. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ClusterStepStream) Context ¶
func (_m *ClusterStepStream) Context() context.Context
Context provides a mock function with given fields:
func (*ClusterStepStream) Recv ¶
func (_m *ClusterStepStream) Recv() (*orderer.ClusterNodeServiceStepRequest, error)
Recv provides a mock function with given fields:
func (*ClusterStepStream) RecvMsg ¶
func (_m *ClusterStepStream) RecvMsg(m interface{}) error
RecvMsg provides a mock function with given fields: m
func (*ClusterStepStream) Send ¶
func (_m *ClusterStepStream) Send(response *orderer.ClusterNodeServiceStepResponse) error
Send provides a mock function with given fields: response
func (*ClusterStepStream) SendHeader ¶
func (_m *ClusterStepStream) SendHeader(_a0 metadata.MD) error
SendHeader provides a mock function with given fields: _a0
func (*ClusterStepStream) SendMsg ¶
func (_m *ClusterStepStream) SendMsg(m interface{}) error
SendMsg provides a mock function with given fields: m
func (*ClusterStepStream) SetHeader ¶
func (_m *ClusterStepStream) SetHeader(_a0 metadata.MD) error
SetHeader provides a mock function with given fields: _a0
func (*ClusterStepStream) SetTrailer ¶
func (_m *ClusterStepStream) SetTrailer(_a0 metadata.MD)
SetTrailer provides a mock function with given fields: _a0
type Communicator ¶
Communicator is an autogenerated mock type for the Communicator type
func NewCommunicator ¶
func NewCommunicator(t mockConstructorTestingTNewCommunicator) *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.
func (*Communicator) Configure ¶
func (_m *Communicator) Configure(channel string, members []cluster.RemoteNode)
Configure provides a mock function with given fields: channel, members
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 Dispatcher ¶
Dispatcher is an autogenerated mock type for the Dispatcher type
func NewDispatcher ¶
func NewDispatcher(t mockConstructorTestingTNewDispatcher) *Dispatcher
NewDispatcher creates a new instance of Dispatcher. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Dispatcher) DispatchConsensus ¶
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 NewHandler ¶
func NewHandler(t mockConstructorTestingTNewHandler) *Handler
NewHandler creates a new instance of Handler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Handler) OnConsensus ¶
OnConsensus provides a mock function with given fields: channel, sender, req
type MetricsProvider ¶
MetricsProvider is an autogenerated mock type for the MetricsProvider type
func NewMetricsProvider ¶
func NewMetricsProvider(t mockConstructorTestingTNewMetricsProvider) *MetricsProvider
NewMetricsProvider creates a new instance of MetricsProvider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*MetricsProvider) NewCounter ¶
func (_m *MetricsProvider) NewCounter(opts metrics.CounterOpts) metrics.Counter
NewCounter provides a mock function with given fields: opts
func (*MetricsProvider) NewGauge ¶
func (_m *MetricsProvider) NewGauge(opts metrics.GaugeOpts) metrics.Gauge
NewGauge provides a mock function with given fields: opts
func (*MetricsProvider) NewHistogram ¶
func (_m *MetricsProvider) NewHistogram(opts metrics.HistogramOpts) metrics.Histogram
NewHistogram provides a mock function with given fields: opts
type Policy ¶
type Policy struct { EvaluateIdentitiesStub func([]msp.Identity) error EvaluateSignedDataStub func([]*protoutil.SignedData) error // contains filtered or unexported fields }
func (*Policy) EvaluateIdentities ¶
func (*Policy) EvaluateIdentitiesArgsForCall ¶
func (*Policy) EvaluateIdentitiesCallCount ¶
func (*Policy) EvaluateIdentitiesCalls ¶
func (*Policy) EvaluateIdentitiesReturns ¶
func (*Policy) EvaluateIdentitiesReturnsOnCall ¶
func (*Policy) EvaluateSignedData ¶
func (fake *Policy) EvaluateSignedData(arg1 []*protoutil.SignedData) error
func (*Policy) EvaluateSignedDataArgsForCall ¶
func (fake *Policy) EvaluateSignedDataArgsForCall(i int) []*protoutil.SignedData
func (*Policy) EvaluateSignedDataCallCount ¶
func (*Policy) EvaluateSignedDataCalls ¶
func (fake *Policy) EvaluateSignedDataCalls(stub func([]*protoutil.SignedData) error)
func (*Policy) EvaluateSignedDataReturns ¶
func (*Policy) EvaluateSignedDataReturnsOnCall ¶
func (*Policy) Invocations ¶
type PolicyManager ¶
type PolicyManager struct { GetPolicyStub func(string) (policies.Policy, bool) ManagerStub func([]string) (policies.Manager, bool) // contains filtered or unexported fields }
func (*PolicyManager) GetPolicy ¶
func (fake *PolicyManager) GetPolicy(arg1 string) (policies.Policy, bool)
func (*PolicyManager) GetPolicyArgsForCall ¶
func (fake *PolicyManager) GetPolicyArgsForCall(i int) string
func (*PolicyManager) GetPolicyCallCount ¶
func (fake *PolicyManager) GetPolicyCallCount() int
func (*PolicyManager) GetPolicyCalls ¶
func (fake *PolicyManager) GetPolicyCalls(stub func(string) (policies.Policy, bool))
func (*PolicyManager) GetPolicyReturns ¶
func (fake *PolicyManager) GetPolicyReturns(result1 policies.Policy, result2 bool)
func (*PolicyManager) GetPolicyReturnsOnCall ¶
func (fake *PolicyManager) GetPolicyReturnsOnCall(i int, result1 policies.Policy, result2 bool)
func (*PolicyManager) Invocations ¶
func (fake *PolicyManager) Invocations() map[string][][]interface{}
func (*PolicyManager) Manager ¶
func (fake *PolicyManager) Manager(arg1 []string) (policies.Manager, bool)
func (*PolicyManager) ManagerArgsForCall ¶
func (fake *PolicyManager) ManagerArgsForCall(i int) []string
func (*PolicyManager) ManagerCallCount ¶
func (fake *PolicyManager) ManagerCallCount() int
func (*PolicyManager) ManagerCalls ¶
func (fake *PolicyManager) ManagerCalls(stub func([]string) (policies.Manager, bool))
func (*PolicyManager) ManagerReturns ¶
func (fake *PolicyManager) ManagerReturns(result1 policies.Manager, result2 bool)
func (*PolicyManager) ManagerReturnsOnCall ¶
func (fake *PolicyManager) ManagerReturnsOnCall(i int, result1 policies.Manager, result2 bool)
type SecureDialer ¶
SecureDialer is an autogenerated mock type for the SecureDialer type
func NewSecureDialer ¶
func NewSecureDialer(t mockConstructorTestingTNewSecureDialer) *SecureDialer
NewSecureDialer creates a new instance of SecureDialer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
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 ¶
type SignerSerializer struct { SerializeStub func() ([]byte, error) SignStub func([]byte) ([]byte, error) // contains filtered or unexported fields }
func (*SignerSerializer) Invocations ¶
func (fake *SignerSerializer) Invocations() map[string][][]interface{}
func (*SignerSerializer) Serialize ¶
func (fake *SignerSerializer) Serialize() ([]byte, error)
func (*SignerSerializer) SerializeCallCount ¶
func (fake *SignerSerializer) SerializeCallCount() int
func (*SignerSerializer) SerializeCalls ¶
func (fake *SignerSerializer) SerializeCalls(stub func() ([]byte, error))
func (*SignerSerializer) SerializeReturns ¶
func (fake *SignerSerializer) SerializeReturns(result1 []byte, result2 error)
func (*SignerSerializer) SerializeReturnsOnCall ¶
func (fake *SignerSerializer) SerializeReturnsOnCall(i int, result1 []byte, result2 error)
func (*SignerSerializer) SignArgsForCall ¶
func (fake *SignerSerializer) SignArgsForCall(i int) []byte
func (*SignerSerializer) SignCallCount ¶
func (fake *SignerSerializer) SignCallCount() int
func (*SignerSerializer) SignCalls ¶
func (fake *SignerSerializer) SignCalls(stub func([]byte) ([]byte, error))
func (*SignerSerializer) SignReturns ¶
func (fake *SignerSerializer) SignReturns(result1 []byte, result2 error)
func (*SignerSerializer) SignReturnsOnCall ¶
func (fake *SignerSerializer) SignReturnsOnCall(i int, result1 []byte, result2 error)
type StepClient ¶
StepClient is an autogenerated mock type for the StepClient type
func NewStepClient ¶
func NewStepClient(t mockConstructorTestingTNewStepClient) *StepClient
NewStepClient creates a new instance of StepClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*StepClient) CloseSend ¶
func (_m *StepClient) CloseSend() error
CloseSend provides a mock function with given fields:
func (*StepClient) Context ¶
func (_m *StepClient) Context() context.Context
Context provides a mock function with given fields:
func (*StepClient) Header ¶
func (_m *StepClient) Header() (metadata.MD, error)
Header provides a mock function with given fields:
func (*StepClient) Recv ¶
func (_m *StepClient) Recv() (*orderer.StepResponse, error)
Recv provides a mock function with given fields:
func (*StepClient) RecvMsg ¶
func (_m *StepClient) RecvMsg(m interface{}) error
RecvMsg provides a mock function with given fields: m
func (*StepClient) Send ¶
func (_m *StepClient) Send(_a0 *orderer.StepRequest) error
Send provides a mock function with given fields: _a0
func (*StepClient) SendMsg ¶
func (_m *StepClient) SendMsg(m interface{}) error
SendMsg provides a mock function with given fields: m
func (*StepClient) Trailer ¶
func (_m *StepClient) Trailer() metadata.MD
Trailer provides a mock function with given fields:
type StepClientStream ¶
StepClientStream is an autogenerated mock type for the StepClientStream type
func NewStepClientStream ¶
func NewStepClientStream(t mockConstructorTestingTNewStepClientStream) *StepClientStream
NewStepClientStream creates a new instance of StepClientStream. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*StepClientStream) Auth ¶
func (_m *StepClientStream) Auth() error
Auth provides a mock function with given fields:
func (*StepClientStream) Context ¶
func (_m *StepClientStream) Context() context.Context
Context provides a mock function with given fields:
func (*StepClientStream) Recv ¶
func (_m *StepClientStream) Recv() (*orderer.StepResponse, error)
Recv provides a mock function with given fields:
func (*StepClientStream) Send ¶
func (_m *StepClientStream) Send(request *orderer.StepRequest) error
Send provides a mock function with given fields: request
type StepStream ¶
StepStream is an autogenerated mock type for the StepStream type
func NewStepStream ¶
func NewStepStream(t mockConstructorTestingTNewStepStream) *StepStream
NewStepStream creates a new instance of StepStream. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*StepStream) Context ¶
func (_m *StepStream) Context() context.Context
Context provides a mock function with given fields:
func (*StepStream) Recv ¶
func (_m *StepStream) Recv() (*orderer.StepRequest, error)
Recv provides a mock function with given fields:
func (*StepStream) RecvMsg ¶
func (_m *StepStream) RecvMsg(m interface{}) error
RecvMsg provides a mock function with given fields: m
func (*StepStream) Send ¶
func (_m *StepStream) Send(response *orderer.StepResponse) error
Send provides a mock function with given fields: response
func (*StepStream) SendHeader ¶
func (_m *StepStream) SendHeader(_a0 metadata.MD) error
SendHeader provides a mock function with given fields: _a0
func (*StepStream) SendMsg ¶
func (_m *StepStream) SendMsg(m interface{}) error
SendMsg provides a mock function with given fields: m
func (*StepStream) SetHeader ¶
func (_m *StepStream) SetHeader(_a0 metadata.MD) error
SetHeader provides a mock function with given fields: _a0
func (*StepStream) SetTrailer ¶
func (_m *StepStream) SetTrailer(_a0 metadata.MD)
SetTrailer provides a mock function with given fields: _a0