Documentation ¶
Overview ¶
Code generated by counterfeiter. DO NOT EDIT.
Index ¶
- type ApplicationCapabilities
- func (_m *ApplicationCapabilities) ACLs() bool
- func (_m *ApplicationCapabilities) CollectionUpgrade() bool
- func (_m *ApplicationCapabilities) ForbidDuplicateTXIdInBlock() bool
- func (_m *ApplicationCapabilities) KeyLevelEndorsement() bool
- func (_m *ApplicationCapabilities) LifecycleV20() bool
- func (_m *ApplicationCapabilities) MetadataLifecycle() bool
- func (_m *ApplicationCapabilities) PrivateChannelData() bool
- func (_m *ApplicationCapabilities) PurgePvtData() bool
- func (_m *ApplicationCapabilities) StorePvtDataOfInvalidTx() bool
- func (_m *ApplicationCapabilities) Supported() error
- func (_m *ApplicationCapabilities) V1_1Validation() bool
- func (_m *ApplicationCapabilities) V1_2Validation() bool
- func (_m *ApplicationCapabilities) V1_3Validation() bool
- func (_m *ApplicationCapabilities) V2_0Validation() bool
- type CapabilityProvider
- type CollectionAccessFactory
- type CollectionAccessPolicy
- func (_m *CollectionAccessPolicy) AccessFilter() privdata.Filter
- func (_m *CollectionAccessPolicy) IsMemberOnlyRead() bool
- func (_m *CollectionAccessPolicy) IsMemberOnlyWrite() bool
- func (_m *CollectionAccessPolicy) MaximumPeerCount() int
- func (_m *CollectionAccessPolicy) MemberOrgs() map[string]struct{}
- func (_m *CollectionAccessPolicy) RequiredPeerCount() int
- type CollectionStore
- func (_m *CollectionStore) AccessFilter(channelName string, collectionPolicyConfig *peer.CollectionPolicyConfig) (privdata.Filter, error)
- func (_m *CollectionStore) RetrieveCollection(_a0 privdata.CollectionCriteria) (privdata.Collection, error)
- func (_m *CollectionStore) RetrieveCollectionAccessPolicy(_a0 privdata.CollectionCriteria) (privdata.CollectionAccessPolicy, error)
- func (_m *CollectionStore) RetrieveCollectionConfig(_a0 privdata.CollectionCriteria) (*peer.StaticCollectionConfig, error)
- func (_m *CollectionStore) RetrieveCollectionConfigPackage(_a0 privdata.CollectionCriteria) (*peer.CollectionConfigPackage, error)
- func (_m *CollectionStore) RetrieveCollectionPersistenceConfigs(_a0 privdata.CollectionCriteria) (privdata.CollectionPersistenceConfigs, error)
- func (_m *CollectionStore) RetrieveReadWritePermission(_a0 privdata.CollectionCriteria, _a1 *peer.SignedProposal, ...) (bool, bool, error)
- type Committer
- func (_m *Committer) Close()
- func (_m *Committer) CommitLegacy(blockAndPvtData *ledger.BlockAndPvtData, commitOpts *ledger.CommitOptions) error
- func (_m *Committer) CommitPvtDataOfOldBlocks(reconciledPvtdata []*ledger.ReconciledPvtdata, ...) ([]*ledger.PvtdataHashMismatch, error)
- func (_m *Committer) DoesPvtDataInfoExistInLedger(blockNum uint64) (bool, error)
- func (_m *Committer) GetBlocks(blockSeqs []uint64) []*common.Block
- func (_m *Committer) GetConfigHistoryRetriever() (ledger.ConfigHistoryRetriever, error)
- func (_m *Committer) GetCurrentBlockHash() ([]byte, error)
- func (_m *Committer) GetMissingPvtDataTracker() (ledger.MissingPvtDataTracker, error)
- func (_m *Committer) GetPvtDataAndBlockByNum(seqNum uint64) (*ledger.BlockAndPvtData, error)
- func (_m *Committer) GetPvtDataByNum(blockNum uint64, filter ledger.PvtNsCollFilter) ([]*ledger.TxPvtData, error)
- func (_m *Committer) LedgerHeight() (uint64, error)
- type ConfigHistoryRetriever
- type MissingPvtDataTracker
- type RWSetScanner
- type ReconciliationFetcher
- type Sleeper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplicationCapabilities ¶
ApplicationCapabilities is an autogenerated mock type for the ApplicationCapabilities type
func NewApplicationCapabilities ¶
func NewApplicationCapabilities(t mockConstructorTestingTNewApplicationCapabilities) *ApplicationCapabilities
NewApplicationCapabilities creates a new instance of ApplicationCapabilities. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ApplicationCapabilities) ACLs ¶
func (_m *ApplicationCapabilities) ACLs() bool
ACLs provides a mock function with given fields:
func (*ApplicationCapabilities) CollectionUpgrade ¶
func (_m *ApplicationCapabilities) CollectionUpgrade() bool
CollectionUpgrade provides a mock function with given fields:
func (*ApplicationCapabilities) ForbidDuplicateTXIdInBlock ¶
func (_m *ApplicationCapabilities) ForbidDuplicateTXIdInBlock() bool
ForbidDuplicateTXIdInBlock provides a mock function with given fields:
func (*ApplicationCapabilities) KeyLevelEndorsement ¶
func (_m *ApplicationCapabilities) KeyLevelEndorsement() bool
KeyLevelEndorsement provides a mock function with given fields:
func (*ApplicationCapabilities) LifecycleV20 ¶
func (_m *ApplicationCapabilities) LifecycleV20() bool
LifecycleV20 provides a mock function with given fields:
func (*ApplicationCapabilities) MetadataLifecycle ¶
func (_m *ApplicationCapabilities) MetadataLifecycle() bool
MetadataLifecycle provides a mock function with given fields:
func (*ApplicationCapabilities) PrivateChannelData ¶
func (_m *ApplicationCapabilities) PrivateChannelData() bool
PrivateChannelData provides a mock function with given fields:
func (*ApplicationCapabilities) PurgePvtData ¶
func (_m *ApplicationCapabilities) PurgePvtData() bool
PurgePvtData provides a mock function with given fields:
func (*ApplicationCapabilities) StorePvtDataOfInvalidTx ¶
func (_m *ApplicationCapabilities) StorePvtDataOfInvalidTx() bool
StorePvtDataOfInvalidTx provides a mock function with given fields:
func (*ApplicationCapabilities) Supported ¶
func (_m *ApplicationCapabilities) Supported() error
Supported provides a mock function with given fields:
func (*ApplicationCapabilities) V1_1Validation ¶
func (_m *ApplicationCapabilities) V1_1Validation() bool
V1_1Validation provides a mock function with given fields:
func (*ApplicationCapabilities) V1_2Validation ¶
func (_m *ApplicationCapabilities) V1_2Validation() bool
V1_2Validation provides a mock function with given fields:
func (*ApplicationCapabilities) V1_3Validation ¶
func (_m *ApplicationCapabilities) V1_3Validation() bool
V1_3Validation provides a mock function with given fields:
func (*ApplicationCapabilities) V2_0Validation ¶
func (_m *ApplicationCapabilities) V2_0Validation() bool
V2_0Validation provides a mock function with given fields:
type CapabilityProvider ¶
CapabilityProvider is an autogenerated mock type for the CapabilityProvider type
func NewCapabilityProvider ¶
func NewCapabilityProvider(t interface { mock.TestingT Cleanup(func()) }) *CapabilityProvider
NewCapabilityProvider creates a new instance of CapabilityProvider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*CapabilityProvider) Capabilities ¶
func (_m *CapabilityProvider) Capabilities() channelconfig.ApplicationCapabilities
Capabilities provides a mock function with given fields:
type CollectionAccessFactory ¶
CollectionAccessFactory is an autogenerated mock type for the CollectionAccessFactory type
func (*CollectionAccessFactory) AccessPolicy ¶
func (_m *CollectionAccessFactory) AccessPolicy(config *peer.CollectionConfig, chainID string) (privdata.CollectionAccessPolicy, error)
AccessPolicy provides a mock function with given fields: config, chainID
type CollectionAccessPolicy ¶
CollectionAccessPolicy is an autogenerated mock type for the CollectionAccessPolicy type
func (*CollectionAccessPolicy) AccessFilter ¶
func (_m *CollectionAccessPolicy) AccessFilter() privdata.Filter
AccessFilter provides a mock function with given fields:
func (*CollectionAccessPolicy) IsMemberOnlyRead ¶
func (_m *CollectionAccessPolicy) IsMemberOnlyRead() bool
IsMemberOnlyRead provides a mock function with given fields:
func (*CollectionAccessPolicy) IsMemberOnlyWrite ¶
func (_m *CollectionAccessPolicy) IsMemberOnlyWrite() bool
IsMemberOnlyWrite provides a mock function with given fields:
func (*CollectionAccessPolicy) MaximumPeerCount ¶
func (_m *CollectionAccessPolicy) MaximumPeerCount() int
MaximumPeerCount provides a mock function with given fields:
func (*CollectionAccessPolicy) MemberOrgs ¶
func (_m *CollectionAccessPolicy) MemberOrgs() map[string]struct{}
MemberOrgs provides a mock function with given fields:
func (*CollectionAccessPolicy) RequiredPeerCount ¶
func (_m *CollectionAccessPolicy) RequiredPeerCount() int
RequiredPeerCount provides a mock function with given fields:
type CollectionStore ¶
CollectionStore is an autogenerated mock type for the CollectionStore type
func NewCollectionStore ¶
func NewCollectionStore(t interface { mock.TestingT Cleanup(func()) }) *CollectionStore
NewCollectionStore creates a new instance of CollectionStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*CollectionStore) AccessFilter ¶
func (_m *CollectionStore) AccessFilter(channelName string, collectionPolicyConfig *peer.CollectionPolicyConfig) (privdata.Filter, error)
AccessFilter provides a mock function with given fields: channelName, collectionPolicyConfig
func (*CollectionStore) RetrieveCollection ¶
func (_m *CollectionStore) RetrieveCollection(_a0 privdata.CollectionCriteria) (privdata.Collection, error)
RetrieveCollection provides a mock function with given fields: _a0
func (*CollectionStore) RetrieveCollectionAccessPolicy ¶
func (_m *CollectionStore) RetrieveCollectionAccessPolicy(_a0 privdata.CollectionCriteria) (privdata.CollectionAccessPolicy, error)
RetrieveCollectionAccessPolicy provides a mock function with given fields: _a0
func (*CollectionStore) RetrieveCollectionConfig ¶
func (_m *CollectionStore) RetrieveCollectionConfig(_a0 privdata.CollectionCriteria) (*peer.StaticCollectionConfig, error)
RetrieveCollectionConfig provides a mock function with given fields: _a0
func (*CollectionStore) RetrieveCollectionConfigPackage ¶
func (_m *CollectionStore) RetrieveCollectionConfigPackage(_a0 privdata.CollectionCriteria) (*peer.CollectionConfigPackage, error)
RetrieveCollectionConfigPackage provides a mock function with given fields: _a0
func (*CollectionStore) RetrieveCollectionPersistenceConfigs ¶
func (_m *CollectionStore) RetrieveCollectionPersistenceConfigs(_a0 privdata.CollectionCriteria) (privdata.CollectionPersistenceConfigs, error)
RetrieveCollectionPersistenceConfigs provides a mock function with given fields: _a0
func (*CollectionStore) RetrieveReadWritePermission ¶
func (_m *CollectionStore) RetrieveReadWritePermission(_a0 privdata.CollectionCriteria, _a1 *peer.SignedProposal, _a2 ledger.QueryExecutor) (bool, bool, error)
RetrieveReadWritePermission provides a mock function with given fields: _a0, _a1, _a2
type Committer ¶
Committer is an autogenerated mock type for the Committer type
func NewCommitter ¶
NewCommitter creates a new instance of Committer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Committer) Close ¶
func (_m *Committer) Close()
Close provides a mock function with given fields:
func (*Committer) CommitLegacy ¶
func (_m *Committer) CommitLegacy(blockAndPvtData *ledger.BlockAndPvtData, commitOpts *ledger.CommitOptions) error
CommitLegacy provides a mock function with given fields: blockAndPvtData, commitOpts
func (*Committer) CommitPvtDataOfOldBlocks ¶
func (_m *Committer) CommitPvtDataOfOldBlocks(reconciledPvtdata []*ledger.ReconciledPvtdata, unreconciled ledger.MissingPvtDataInfo) ([]*ledger.PvtdataHashMismatch, error)
CommitPvtDataOfOldBlocks provides a mock function with given fields: reconciledPvtdata, unreconciled
func (*Committer) DoesPvtDataInfoExistInLedger ¶
DoesPvtDataInfoExistInLedger provides a mock function with given fields: blockNum
func (*Committer) GetConfigHistoryRetriever ¶
func (_m *Committer) GetConfigHistoryRetriever() (ledger.ConfigHistoryRetriever, error)
GetConfigHistoryRetriever provides a mock function with given fields:
func (*Committer) GetCurrentBlockHash ¶
GetCurrentBlockHash provides a mock function with given fields:
func (*Committer) GetMissingPvtDataTracker ¶
func (_m *Committer) GetMissingPvtDataTracker() (ledger.MissingPvtDataTracker, error)
GetMissingPvtDataTracker provides a mock function with given fields:
func (*Committer) GetPvtDataAndBlockByNum ¶
func (_m *Committer) GetPvtDataAndBlockByNum(seqNum uint64) (*ledger.BlockAndPvtData, error)
GetPvtDataAndBlockByNum provides a mock function with given fields: seqNum
func (*Committer) GetPvtDataByNum ¶
func (_m *Committer) GetPvtDataByNum(blockNum uint64, filter ledger.PvtNsCollFilter) ([]*ledger.TxPvtData, error)
GetPvtDataByNum provides a mock function with given fields: blockNum, filter
func (*Committer) LedgerHeight ¶
LedgerHeight provides a mock function with given fields:
type ConfigHistoryRetriever ¶
ConfigHistoryRetriever is an autogenerated mock type for the ConfigHistoryRetriever type
func (*ConfigHistoryRetriever) MostRecentCollectionConfigBelow ¶
func (_m *ConfigHistoryRetriever) MostRecentCollectionConfigBelow(blockNum uint64, chaincodeName string) (*ledger.CollectionConfigInfo, error)
MostRecentCollectionConfigBelow provides a mock function with given fields: blockNum, chaincodeName
type MissingPvtDataTracker ¶
MissingPvtDataTracker is an autogenerated mock type for the MissingPvtDataTracker type
func (*MissingPvtDataTracker) GetMissingPvtDataInfoForMostRecentBlocks ¶
func (_m *MissingPvtDataTracker) GetMissingPvtDataInfoForMostRecentBlocks(maxBlocks int) (ledger.MissingPvtDataInfo, error)
GetMissingPvtDataInfoForMostRecentBlocks provides a mock function with given fields: maxBlocks
type RWSetScanner ¶
RWSetScanner is an autogenerated mock type for the RWSetScanner type
func (*RWSetScanner) Close ¶
func (_m *RWSetScanner) Close()
Close provides a mock function with given fields:
func (*RWSetScanner) Next ¶
func (_m *RWSetScanner) Next() (*transientstore.EndorserPvtSimulationResults, error)
Next provides a mock function with given fields:
type ReconciliationFetcher ¶
ReconciliationFetcher is an autogenerated mock type for the ReconciliationFetcher type
func (*ReconciliationFetcher) FetchReconciledItems ¶
func (_m *ReconciliationFetcher) FetchReconciledItems(dig2collectionConfig common.Dig2CollectionConfig) (*common.FetchedPvtDataContainer, error)
FetchReconciledItems provides a mock function with given fields: dig2collectionConfig