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 Capabilities
- func (fake *Capabilities) ACLs() bool
- func (fake *Capabilities) ACLsCallCount() int
- func (fake *Capabilities) ACLsCalls(stub func() bool)
- func (fake *Capabilities) ACLsReturns(result1 bool)
- func (fake *Capabilities) ACLsReturnsOnCall(i int, result1 bool)
- func (fake *Capabilities) CollectionUpgrade() bool
- func (fake *Capabilities) CollectionUpgradeCallCount() int
- func (fake *Capabilities) CollectionUpgradeCalls(stub func() bool)
- func (fake *Capabilities) CollectionUpgradeReturns(result1 bool)
- func (fake *Capabilities) CollectionUpgradeReturnsOnCall(i int, result1 bool)
- func (fake *Capabilities) ForbidDuplicateTXIdInBlock() bool
- func (fake *Capabilities) ForbidDuplicateTXIdInBlockCallCount() int
- func (fake *Capabilities) ForbidDuplicateTXIdInBlockCalls(stub func() bool)
- func (fake *Capabilities) ForbidDuplicateTXIdInBlockReturns(result1 bool)
- func (fake *Capabilities) ForbidDuplicateTXIdInBlockReturnsOnCall(i int, result1 bool)
- func (fake *Capabilities) Invocations() map[string][][]interface{}
- func (fake *Capabilities) KeyLevelEndorsement() bool
- func (fake *Capabilities) KeyLevelEndorsementCallCount() int
- func (fake *Capabilities) KeyLevelEndorsementCalls(stub func() bool)
- func (fake *Capabilities) KeyLevelEndorsementReturns(result1 bool)
- func (fake *Capabilities) KeyLevelEndorsementReturnsOnCall(i int, result1 bool)
- func (fake *Capabilities) MetadataLifecycle() bool
- func (fake *Capabilities) MetadataLifecycleCallCount() int
- func (fake *Capabilities) MetadataLifecycleCalls(stub func() bool)
- func (fake *Capabilities) MetadataLifecycleReturns(result1 bool)
- func (fake *Capabilities) MetadataLifecycleReturnsOnCall(i int, result1 bool)
- func (fake *Capabilities) PrivateChannelData() bool
- func (fake *Capabilities) PrivateChannelDataCallCount() int
- func (fake *Capabilities) PrivateChannelDataCalls(stub func() bool)
- func (fake *Capabilities) PrivateChannelDataReturns(result1 bool)
- func (fake *Capabilities) PrivateChannelDataReturnsOnCall(i int, result1 bool)
- func (fake *Capabilities) StorePvtDataOfInvalidTx() bool
- func (fake *Capabilities) StorePvtDataOfInvalidTxCallCount() int
- func (fake *Capabilities) StorePvtDataOfInvalidTxCalls(stub func() bool)
- func (fake *Capabilities) StorePvtDataOfInvalidTxReturns(result1 bool)
- func (fake *Capabilities) StorePvtDataOfInvalidTxReturnsOnCall(i int, result1 bool)
- func (fake *Capabilities) Supported() error
- func (fake *Capabilities) SupportedCallCount() int
- func (fake *Capabilities) SupportedCalls(stub func() error)
- func (fake *Capabilities) SupportedReturns(result1 error)
- func (fake *Capabilities) SupportedReturnsOnCall(i int, result1 error)
- func (fake *Capabilities) V1_1Validation() bool
- func (fake *Capabilities) V1_1ValidationCallCount() int
- func (fake *Capabilities) V1_1ValidationCalls(stub func() bool)
- func (fake *Capabilities) V1_1ValidationReturns(result1 bool)
- func (fake *Capabilities) V1_1ValidationReturnsOnCall(i int, result1 bool)
- func (fake *Capabilities) V1_2Validation() bool
- func (fake *Capabilities) V1_2ValidationCallCount() int
- func (fake *Capabilities) V1_2ValidationCalls(stub func() bool)
- func (fake *Capabilities) V1_2ValidationReturns(result1 bool)
- func (fake *Capabilities) V1_2ValidationReturnsOnCall(i int, result1 bool)
- func (fake *Capabilities) V1_3Validation() bool
- func (fake *Capabilities) V1_3ValidationCallCount() int
- func (fake *Capabilities) V1_3ValidationCalls(stub func() bool)
- func (fake *Capabilities) V1_3ValidationReturns(result1 bool)
- func (fake *Capabilities) V1_3ValidationReturnsOnCall(i int, result1 bool)
- func (fake *Capabilities) V2_0Validation() bool
- func (fake *Capabilities) V2_0ValidationCallCount() int
- func (fake *Capabilities) V2_0ValidationCalls(stub func() bool)
- func (fake *Capabilities) V2_0ValidationReturns(result1 bool)
- func (fake *Capabilities) V2_0ValidationReturnsOnCall(i int, result1 bool)
- type CollectionResources
- type IdentityDeserializer
- 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
- func (fake *StateFetcher) FetchState() (validation.State, error)
- func (fake *StateFetcher) FetchStateCallCount() int
- func (fake *StateFetcher) FetchStateCalls(stub func() (validation.State, error))
- func (fake *StateFetcher) FetchStateReturns(result1 validation.State, result2 error)
- func (fake *StateFetcher) FetchStateReturnsOnCall(i int, result1 validation.State, result2 error)
- func (fake *StateFetcher) Invocations() map[string][][]interface{}
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Capabilities ¶
type Capabilities struct { ACLsStub func() bool CollectionUpgradeStub func() bool ForbidDuplicateTXIdInBlockStub func() bool KeyLevelEndorsementStub func() bool MetadataLifecycleStub func() bool PrivateChannelDataStub func() bool StorePvtDataOfInvalidTxStub func() bool SupportedStub func() error V1_1ValidationStub func() bool V1_2ValidationStub func() bool V1_3ValidationStub func() bool V2_0ValidationStub func() bool // contains filtered or unexported fields }
func (*Capabilities) ACLs ¶
func (fake *Capabilities) ACLs() bool
func (*Capabilities) ACLsCallCount ¶
func (fake *Capabilities) ACLsCallCount() int
func (*Capabilities) ACLsCalls ¶
func (fake *Capabilities) ACLsCalls(stub func() bool)
func (*Capabilities) ACLsReturns ¶
func (fake *Capabilities) ACLsReturns(result1 bool)
func (*Capabilities) ACLsReturnsOnCall ¶
func (fake *Capabilities) ACLsReturnsOnCall(i int, result1 bool)
func (*Capabilities) CollectionUpgrade ¶
func (fake *Capabilities) CollectionUpgrade() bool
func (*Capabilities) CollectionUpgradeCallCount ¶
func (fake *Capabilities) CollectionUpgradeCallCount() int
func (*Capabilities) CollectionUpgradeCalls ¶
func (fake *Capabilities) CollectionUpgradeCalls(stub func() bool)
func (*Capabilities) CollectionUpgradeReturns ¶
func (fake *Capabilities) CollectionUpgradeReturns(result1 bool)
func (*Capabilities) CollectionUpgradeReturnsOnCall ¶
func (fake *Capabilities) CollectionUpgradeReturnsOnCall(i int, result1 bool)
func (*Capabilities) ForbidDuplicateTXIdInBlock ¶
func (fake *Capabilities) ForbidDuplicateTXIdInBlock() bool
func (*Capabilities) ForbidDuplicateTXIdInBlockCallCount ¶
func (fake *Capabilities) ForbidDuplicateTXIdInBlockCallCount() int
func (*Capabilities) ForbidDuplicateTXIdInBlockCalls ¶
func (fake *Capabilities) ForbidDuplicateTXIdInBlockCalls(stub func() bool)
func (*Capabilities) ForbidDuplicateTXIdInBlockReturns ¶
func (fake *Capabilities) ForbidDuplicateTXIdInBlockReturns(result1 bool)
func (*Capabilities) ForbidDuplicateTXIdInBlockReturnsOnCall ¶
func (fake *Capabilities) ForbidDuplicateTXIdInBlockReturnsOnCall(i int, result1 bool)
func (*Capabilities) Invocations ¶
func (fake *Capabilities) Invocations() map[string][][]interface{}
func (*Capabilities) KeyLevelEndorsement ¶
func (fake *Capabilities) KeyLevelEndorsement() bool
func (*Capabilities) KeyLevelEndorsementCallCount ¶
func (fake *Capabilities) KeyLevelEndorsementCallCount() int
func (*Capabilities) KeyLevelEndorsementCalls ¶
func (fake *Capabilities) KeyLevelEndorsementCalls(stub func() bool)
func (*Capabilities) KeyLevelEndorsementReturns ¶
func (fake *Capabilities) KeyLevelEndorsementReturns(result1 bool)
func (*Capabilities) KeyLevelEndorsementReturnsOnCall ¶
func (fake *Capabilities) KeyLevelEndorsementReturnsOnCall(i int, result1 bool)
func (*Capabilities) MetadataLifecycle ¶
func (fake *Capabilities) MetadataLifecycle() bool
func (*Capabilities) MetadataLifecycleCallCount ¶
func (fake *Capabilities) MetadataLifecycleCallCount() int
func (*Capabilities) MetadataLifecycleCalls ¶
func (fake *Capabilities) MetadataLifecycleCalls(stub func() bool)
func (*Capabilities) MetadataLifecycleReturns ¶
func (fake *Capabilities) MetadataLifecycleReturns(result1 bool)
func (*Capabilities) MetadataLifecycleReturnsOnCall ¶
func (fake *Capabilities) MetadataLifecycleReturnsOnCall(i int, result1 bool)
func (*Capabilities) PrivateChannelData ¶
func (fake *Capabilities) PrivateChannelData() bool
func (*Capabilities) PrivateChannelDataCallCount ¶
func (fake *Capabilities) PrivateChannelDataCallCount() int
func (*Capabilities) PrivateChannelDataCalls ¶
func (fake *Capabilities) PrivateChannelDataCalls(stub func() bool)
func (*Capabilities) PrivateChannelDataReturns ¶
func (fake *Capabilities) PrivateChannelDataReturns(result1 bool)
func (*Capabilities) PrivateChannelDataReturnsOnCall ¶
func (fake *Capabilities) PrivateChannelDataReturnsOnCall(i int, result1 bool)
func (*Capabilities) StorePvtDataOfInvalidTx ¶
func (fake *Capabilities) StorePvtDataOfInvalidTx() bool
func (*Capabilities) StorePvtDataOfInvalidTxCallCount ¶
func (fake *Capabilities) StorePvtDataOfInvalidTxCallCount() int
func (*Capabilities) StorePvtDataOfInvalidTxCalls ¶
func (fake *Capabilities) StorePvtDataOfInvalidTxCalls(stub func() bool)
func (*Capabilities) StorePvtDataOfInvalidTxReturns ¶
func (fake *Capabilities) StorePvtDataOfInvalidTxReturns(result1 bool)
func (*Capabilities) StorePvtDataOfInvalidTxReturnsOnCall ¶
func (fake *Capabilities) StorePvtDataOfInvalidTxReturnsOnCall(i int, result1 bool)
func (*Capabilities) Supported ¶
func (fake *Capabilities) Supported() error
func (*Capabilities) SupportedCallCount ¶
func (fake *Capabilities) SupportedCallCount() int
func (*Capabilities) SupportedCalls ¶
func (fake *Capabilities) SupportedCalls(stub func() error)
func (*Capabilities) SupportedReturns ¶
func (fake *Capabilities) SupportedReturns(result1 error)
func (*Capabilities) SupportedReturnsOnCall ¶
func (fake *Capabilities) SupportedReturnsOnCall(i int, result1 error)
func (*Capabilities) V1_1Validation ¶
func (fake *Capabilities) V1_1Validation() bool
func (*Capabilities) V1_1ValidationCallCount ¶
func (fake *Capabilities) V1_1ValidationCallCount() int
func (*Capabilities) V1_1ValidationCalls ¶
func (fake *Capabilities) V1_1ValidationCalls(stub func() bool)
func (*Capabilities) V1_1ValidationReturns ¶
func (fake *Capabilities) V1_1ValidationReturns(result1 bool)
func (*Capabilities) V1_1ValidationReturnsOnCall ¶
func (fake *Capabilities) V1_1ValidationReturnsOnCall(i int, result1 bool)
func (*Capabilities) V1_2Validation ¶
func (fake *Capabilities) V1_2Validation() bool
func (*Capabilities) V1_2ValidationCallCount ¶
func (fake *Capabilities) V1_2ValidationCallCount() int
func (*Capabilities) V1_2ValidationCalls ¶
func (fake *Capabilities) V1_2ValidationCalls(stub func() bool)
func (*Capabilities) V1_2ValidationReturns ¶
func (fake *Capabilities) V1_2ValidationReturns(result1 bool)
func (*Capabilities) V1_2ValidationReturnsOnCall ¶
func (fake *Capabilities) V1_2ValidationReturnsOnCall(i int, result1 bool)
func (*Capabilities) V1_3Validation ¶
func (fake *Capabilities) V1_3Validation() bool
func (*Capabilities) V1_3ValidationCallCount ¶
func (fake *Capabilities) V1_3ValidationCallCount() int
func (*Capabilities) V1_3ValidationCalls ¶
func (fake *Capabilities) V1_3ValidationCalls(stub func() bool)
func (*Capabilities) V1_3ValidationReturns ¶
func (fake *Capabilities) V1_3ValidationReturns(result1 bool)
func (*Capabilities) V1_3ValidationReturnsOnCall ¶
func (fake *Capabilities) V1_3ValidationReturnsOnCall(i int, result1 bool)
func (*Capabilities) V2_0Validation ¶
func (fake *Capabilities) V2_0Validation() bool
func (*Capabilities) V2_0ValidationCallCount ¶
func (fake *Capabilities) V2_0ValidationCallCount() int
func (*Capabilities) V2_0ValidationCalls ¶
func (fake *Capabilities) V2_0ValidationCalls(stub func() bool)
func (*Capabilities) V2_0ValidationReturns ¶
func (fake *Capabilities) V2_0ValidationReturns(result1 bool)
func (*Capabilities) V2_0ValidationReturnsOnCall ¶
func (fake *Capabilities) V2_0ValidationReturnsOnCall(i int, result1 bool)
type CollectionResources ¶
CollectionResources is an autogenerated mock type for the CollectionResources type
func (*CollectionResources) CollectionValidationInfo ¶
func (_m *CollectionResources) CollectionValidationInfo(chaincodeName string, collectionName string, state validation.State) ([]byte, error, error)
CollectionValidationInfo provides a mock function with given fields: chaincodeName, collectionName, state
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 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) GetPrivateDataMetadataByHash ¶
func (*State) GetPrivateDataMetadataByHashArgsForCall ¶
func (*State) GetPrivateDataMetadataByHashCallCount ¶
func (*State) GetPrivateDataMetadataByHashCalls ¶
func (*State) GetPrivateDataMetadataByHashReturns ¶
func (*State) GetPrivateDataMetadataByHashReturnsOnCall ¶
func (*State) GetStateMetadata ¶
func (*State) GetStateMetadataArgsForCall ¶
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)
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 ¶
type StateFetcher struct { FetchStateStub func() (validation.State, error) // contains filtered or unexported fields }
func (*StateFetcher) FetchState ¶
func (fake *StateFetcher) FetchState() (validation.State, error)
func (*StateFetcher) FetchStateCallCount ¶
func (fake *StateFetcher) FetchStateCallCount() int
func (*StateFetcher) FetchStateCalls ¶
func (fake *StateFetcher) FetchStateCalls(stub func() (validation.State, error))
func (*StateFetcher) FetchStateReturns ¶
func (fake *StateFetcher) FetchStateReturns(result1 validation.State, result2 error)
func (*StateFetcher) FetchStateReturnsOnCall ¶
func (fake *StateFetcher) FetchStateReturnsOnCall(i int, result1 validation.State, result2 error)
func (*StateFetcher) Invocations ¶
func (fake *StateFetcher) Invocations() map[string][][]interface{}