Documentation ¶
Overview ¶
Code generated by counterfeiter. DO NOT EDIT.
Index ¶
- type Capabilities
- func (_m *Capabilities) ACLs() bool
- func (_m *Capabilities) CollectionUpgrade() bool
- func (_m *Capabilities) ForbidDuplicateTXIdInBlock() bool
- func (_m *Capabilities) KeyLevelEndorsement() bool
- func (_m *Capabilities) MetadataLifecycle() bool
- func (_m *Capabilities) PrivateChannelData() bool
- func (_m *Capabilities) StorePvtDataOfInvalidTx() bool
- func (_m *Capabilities) Supported() error
- func (_m *Capabilities) V1_1Validation() bool
- func (_m *Capabilities) V1_2Validation() bool
- func (_m *Capabilities) V1_3Validation() bool
- func (_m *Capabilities) V2_0Validation() bool
- type IdentityDeserializer
- type PolicyEvaluator
- type State
- func (fake *State) Done()
- func (fake *State) DoneCallCount() int
- func (fake *State) DoneCalls(stub func())
- func (fake *State) GetPrivateDataMetadataByHash(arg1 string, arg2 string, arg3 []byte) (map[string][]byte, error)
- func (fake *State) GetPrivateDataMetadataByHashArgsForCall(i int) (string, string, []byte)
- func (fake *State) GetPrivateDataMetadataByHashCallCount() int
- func (fake *State) GetPrivateDataMetadataByHashCalls(stub func(string, string, []byte) (map[string][]byte, error))
- func (fake *State) GetPrivateDataMetadataByHashReturns(result1 map[string][]byte, result2 error)
- func (fake *State) GetPrivateDataMetadataByHashReturnsOnCall(i int, result1 map[string][]byte, result2 error)
- func (fake *State) GetStateMetadata(arg1 string, arg2 string) (map[string][]byte, error)
- func (fake *State) GetStateMetadataArgsForCall(i int) (string, string)
- func (fake *State) GetStateMetadataCallCount() int
- func (fake *State) GetStateMetadataCalls(stub func(string, string) (map[string][]byte, error))
- func (fake *State) GetStateMetadataReturns(result1 map[string][]byte, result2 error)
- func (fake *State) GetStateMetadataReturnsOnCall(i int, result1 map[string][]byte, result2 error)
- func (fake *State) GetStateMultipleKeys(arg1 string, arg2 []string) ([][]byte, error)
- func (fake *State) GetStateMultipleKeysArgsForCall(i int) (string, []string)
- func (fake *State) GetStateMultipleKeysCallCount() int
- func (fake *State) GetStateMultipleKeysCalls(stub func(string, []string) ([][]byte, error))
- func (fake *State) GetStateMultipleKeysReturns(result1 [][]byte, result2 error)
- func (fake *State) GetStateMultipleKeysReturnsOnCall(i int, result1 [][]byte, result2 error)
- func (fake *State) GetStateRangeScanIterator(arg1 string, arg2 string, arg3 string) (validation.ResultsIterator, error)
- func (fake *State) GetStateRangeScanIteratorArgsForCall(i int) (string, string, string)
- func (fake *State) GetStateRangeScanIteratorCallCount() int
- func (fake *State) GetStateRangeScanIteratorCalls(stub func(string, string, string) (validation.ResultsIterator, error))
- func (fake *State) GetStateRangeScanIteratorReturns(result1 validation.ResultsIterator, result2 error)
- func (fake *State) GetStateRangeScanIteratorReturnsOnCall(i int, result1 validation.ResultsIterator, result2 error)
- func (fake *State) Invocations() map[string][][]interface{}
- type StateBasedValidator
- func (_m *StateBasedValidator) PostValidate(cc string, blockNum uint64, txNum uint64, err error)
- func (_m *StateBasedValidator) PreValidate(txNum uint64, block *common.Block)
- func (_m *StateBasedValidator) Validate(cc string, blockNum uint64, txNum uint64, rwset []byte, prp []byte, ep []byte, ...) errors.TxValidationError
- type StateFetcher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Capabilities ¶
Capabilities is an autogenerated mock type for the Capabilities type
func (*Capabilities) ACLs ¶
func (_m *Capabilities) ACLs() bool
ACLs provides a mock function with given fields:
func (*Capabilities) CollectionUpgrade ¶
func (_m *Capabilities) CollectionUpgrade() bool
CollectionUpgrade provides a mock function with given fields:
func (*Capabilities) ForbidDuplicateTXIdInBlock ¶
func (_m *Capabilities) ForbidDuplicateTXIdInBlock() bool
ForbidDuplicateTXIdInBlock provides a mock function with given fields:
func (*Capabilities) KeyLevelEndorsement ¶
func (_m *Capabilities) KeyLevelEndorsement() bool
KeyLevelEndorsement provides a mock function with given fields:
func (*Capabilities) MetadataLifecycle ¶
func (_m *Capabilities) MetadataLifecycle() bool
MetadataLifecycle provides a mock function with given fields:
func (*Capabilities) PrivateChannelData ¶
func (_m *Capabilities) PrivateChannelData() bool
PrivateChannelData provides a mock function with given fields:
func (*Capabilities) StorePvtDataOfInvalidTx ¶
func (_m *Capabilities) StorePvtDataOfInvalidTx() bool
StorePvtDataOfInvalidTx provides a mock function with given fields:
func (*Capabilities) Supported ¶
func (_m *Capabilities) Supported() error
Supported provides a mock function with given fields:
func (*Capabilities) V1_1Validation ¶
func (_m *Capabilities) V1_1Validation() bool
V1_1Validation provides a mock function with given fields:
func (*Capabilities) V1_2Validation ¶
func (_m *Capabilities) V1_2Validation() bool
V1_2Validation provides a mock function with given fields:
func (*Capabilities) V1_3Validation ¶
func (_m *Capabilities) V1_3Validation() bool
V1_3Validation provides a mock function with given fields:
func (*Capabilities) V2_0Validation ¶
func (_m *Capabilities) V2_0Validation() bool
V2_0Validation provides a mock function with given fields:
type IdentityDeserializer ¶
IdentityDeserializer is an autogenerated mock type for the IdentityDeserializer type
func (*IdentityDeserializer) DeserializeIdentity ¶
func (_m *IdentityDeserializer) DeserializeIdentity(serializedIdentity []byte) (validation.Identity, error)
DeserializeIdentity provides a mock function with given fields: serializedIdentity
type PolicyEvaluator ¶
PolicyEvaluator is an autogenerated mock type for the PolicyEvaluator type
func (*PolicyEvaluator) Evaluate ¶
func (_m *PolicyEvaluator) Evaluate(policyBytes []byte, signatureSet []*protoutil.SignedData) error
Evaluate provides a mock function with given fields: policyBytes, signatureSet
type State ¶
type State struct { DoneStub func() GetPrivateDataMetadataByHashStub func(string, string, []byte) (map[string][]byte, error) GetStateMetadataStub func(string, string) (map[string][]byte, error) GetStateMultipleKeysStub func(string, []string) ([][]byte, error) GetStateRangeScanIteratorStub func(string, string, string) (validation.ResultsIterator, error) // contains filtered or unexported fields }
func (*State) DoneCallCount ¶
func (*State) GetPrivateDataMetadataByHash ¶
func (*State) GetPrivateDataMetadataByHashArgsForCall ¶
func (*State) GetPrivateDataMetadataByHashCallCount ¶
func (*State) GetPrivateDataMetadataByHashCalls ¶
func (*State) GetPrivateDataMetadataByHashReturns ¶
func (*State) GetPrivateDataMetadataByHashReturnsOnCall ¶
func (*State) GetStateMetadata ¶
func (*State) GetStateMetadataArgsForCall ¶
func (*State) GetStateMetadataCallCount ¶
func (*State) GetStateMetadataCalls ¶
func (*State) GetStateMetadataReturns ¶
func (*State) GetStateMetadataReturnsOnCall ¶
func (*State) GetStateMultipleKeys ¶
func (*State) GetStateMultipleKeysArgsForCall ¶
func (*State) GetStateMultipleKeysCallCount ¶
func (*State) GetStateMultipleKeysCalls ¶
func (*State) GetStateMultipleKeysReturns ¶
func (*State) GetStateMultipleKeysReturnsOnCall ¶
func (*State) GetStateRangeScanIterator ¶
func (fake *State) GetStateRangeScanIterator(arg1 string, arg2 string, arg3 string) (validation.ResultsIterator, error)
func (*State) GetStateRangeScanIteratorArgsForCall ¶
func (*State) GetStateRangeScanIteratorCallCount ¶
func (*State) GetStateRangeScanIteratorCalls ¶
func (fake *State) GetStateRangeScanIteratorCalls(stub func(string, string, string) (validation.ResultsIterator, error))
func (*State) GetStateRangeScanIteratorReturns ¶
func (fake *State) GetStateRangeScanIteratorReturns(result1 validation.ResultsIterator, result2 error)
func (*State) GetStateRangeScanIteratorReturnsOnCall ¶
func (fake *State) GetStateRangeScanIteratorReturnsOnCall(i int, result1 validation.ResultsIterator, result2 error)
func (*State) Invocations ¶
type StateBasedValidator ¶
StateBasedValidator is an autogenerated mock type for the StateBasedValidator type
func (*StateBasedValidator) PostValidate ¶
func (_m *StateBasedValidator) PostValidate(cc string, blockNum uint64, txNum uint64, err error)
PostValidate provides a mock function with given fields: cc, blockNum, txNum, err
func (*StateBasedValidator) PreValidate ¶
func (_m *StateBasedValidator) PreValidate(txNum uint64, block *common.Block)
PreValidate provides a mock function with given fields: txNum, block
func (*StateBasedValidator) Validate ¶
func (_m *StateBasedValidator) Validate(cc string, blockNum uint64, txNum uint64, rwset []byte, prp []byte, ep []byte, endorsements []*peer.Endorsement) errors.TxValidationError
Validate provides a mock function with given fields: cc, blockNum, txNum, rwset, prp, ep, endorsements
type StateFetcher ¶
StateFetcher is an autogenerated mock type for the StateFetcher type
func (*StateFetcher) FetchState ¶
func (_m *StateFetcher) FetchState() (validation.State, error)
FetchState provides a mock function with given fields: