...

Package mocks

import "github.com/hyperledger/fabric/gossip/privdata/mocks"
Overview
Index

Overview ▾

Index ▾

type AppCapabilities
    func (_m *AppCapabilities) ACLs() bool
    func (_m *AppCapabilities) CollectionUpgrade() bool
    func (_m *AppCapabilities) FabToken() bool
    func (_m *AppCapabilities) ForbidDuplicateTXIdInBlock() bool
    func (_m *AppCapabilities) KeyLevelEndorsement() bool
    func (_m *AppCapabilities) MetadataLifecycle() bool
    func (_m *AppCapabilities) PrivateChannelData() bool
    func (_m *AppCapabilities) StorePvtDataOfInvalidTx() bool
    func (_m *AppCapabilities) Supported() error
    func (_m *AppCapabilities) V1_1Validation() bool
    func (_m *AppCapabilities) V1_2Validation() bool
    func (_m *AppCapabilities) V1_3Validation() bool
type CapabilityProvider
    func (_m *CapabilityProvider) Capabilities() channelconfig.ApplicationCapabilities
type CollectionStore
    func (_m *CollectionStore) AccessFilter(channelName string, collectionPolicyConfig *common.CollectionPolicyConfig) (privdata.Filter, error)
    func (_m *CollectionStore) HasReadAccess(_a0 common.CollectionCriteria, _a1 *peer.SignedProposal, _a2 ledger.QueryExecutor) (bool, error)
    func (_m *CollectionStore) RetrieveCollection(_a0 common.CollectionCriteria) (privdata.Collection, error)
    func (_m *CollectionStore) RetrieveCollectionAccessPolicy(_a0 common.CollectionCriteria) (privdata.CollectionAccessPolicy, error)
    func (_m *CollectionStore) RetrieveCollectionConfigPackage(_a0 common.CollectionCriteria) (*common.CollectionConfigPackage, error)
    func (_m *CollectionStore) RetrieveCollectionPersistenceConfigs(_a0 common.CollectionCriteria) (privdata.CollectionPersistenceConfigs, error)
type Committer
    func (_m *Committer) Close()
    func (_m *Committer) CommitPvtDataOfOldBlocks(blockPvtData []*ledger.BlockPvtData) ([]*ledger.PvtdataHashMismatch, error)
    func (_m *Committer) CommitWithPvtData(blockAndPvtData *ledger.BlockAndPvtData, commitOpts *ledger.CommitOptions) 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) 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
    func (_m *ConfigHistoryRetriever) CollectionConfigAt(blockNum uint64, chaincodeName string) (*ledger.CollectionConfigInfo, error)
    func (_m *ConfigHistoryRetriever) MostRecentCollectionConfigBelow(blockNum uint64, chaincodeName string) (*ledger.CollectionConfigInfo, error)
type DataStore
    func (_m *DataStore) GetConfigHistoryRetriever() (ledger.ConfigHistoryRetriever, error)
    func (_m *DataStore) GetPvtDataByNum(blockNum uint64, filter ledger.PvtNsCollFilter) ([]*ledger.TxPvtData, error)
    func (_m *DataStore) GetTxPvtRWSetByTxid(txid string, filter ledger.PvtNsCollFilter) (transientstore.RWSetScanner, error)
    func (_m *DataStore) LedgerHeight() (uint64, error)
type MissingPvtDataTracker
    func (_m *MissingPvtDataTracker) GetMissingPvtDataInfoForMostRecentBlocks(maxBlocks int) (ledger.MissingPvtDataInfo, error)
type RWSetScanner
    func (_m *RWSetScanner) Close()
    func (_m *RWSetScanner) Next() (*transientstore.EndorserPvtSimulationResults, error)
    func (_m *RWSetScanner) NextWithConfig() (*transientstore.EndorserPvtSimulationResultsWithConfig, error)
type ReconciliationFetcher
    func (_m *ReconciliationFetcher) FetchReconciledItems(dig2collectionConfig common.Dig2CollectionConfig) (*common.FetchedPvtDataContainer, error)

Package files

app_capabilities.go capability_provider.go collection_store.go committer.go config_history_retriever.go data_store.go missing_pvt_data_tracker.go reconciliation_fetcher.go rw_set_scanner.go

type AppCapabilities

AppCapabilities is an autogenerated mock type for the AppCapabilities type

type AppCapabilities struct {
    mock.Mock
}

func (*AppCapabilities) ACLs

func (_m *AppCapabilities) ACLs() bool

ACLs provides a mock function with given fields:

func (*AppCapabilities) CollectionUpgrade

func (_m *AppCapabilities) CollectionUpgrade() bool

CollectionUpgrade provides a mock function with given fields:

func (*AppCapabilities) FabToken

func (_m *AppCapabilities) FabToken() bool

FabToken provides a mock function with given fields:

func (*AppCapabilities) ForbidDuplicateTXIdInBlock

func (_m *AppCapabilities) ForbidDuplicateTXIdInBlock() bool

ForbidDuplicateTXIdInBlock provides a mock function with given fields:

func (*AppCapabilities) KeyLevelEndorsement

func (_m *AppCapabilities) KeyLevelEndorsement() bool

KeyLevelEndorsement provides a mock function with given fields:

func (*AppCapabilities) MetadataLifecycle

func (_m *AppCapabilities) MetadataLifecycle() bool

MetadataLifecycle provides a mock function with given fields:

func (*AppCapabilities) PrivateChannelData

func (_m *AppCapabilities) PrivateChannelData() bool

PrivateChannelData provides a mock function with given fields:

func (*AppCapabilities) StorePvtDataOfInvalidTx

func (_m *AppCapabilities) StorePvtDataOfInvalidTx() bool

StorePvtDataOfInvalidTx provides a mock function with given fields:

func (*AppCapabilities) Supported

func (_m *AppCapabilities) Supported() error

Supported provides a mock function with given fields:

func (*AppCapabilities) V1_1Validation

func (_m *AppCapabilities) V1_1Validation() bool

V1_1Validation provides a mock function with given fields:

func (*AppCapabilities) V1_2Validation

func (_m *AppCapabilities) V1_2Validation() bool

V1_2Validation provides a mock function with given fields:

func (*AppCapabilities) V1_3Validation

func (_m *AppCapabilities) V1_3Validation() bool

V1_3Validation provides a mock function with given fields:

type CapabilityProvider

CapabilityProvider is an autogenerated mock type for the CapabilityProvider type

type CapabilityProvider struct {
    mock.Mock
}

func (*CapabilityProvider) Capabilities

func (_m *CapabilityProvider) Capabilities() channelconfig.ApplicationCapabilities

Capabilities provides a mock function with given fields:

type CollectionStore

CollectionStore is an autogenerated mock type for the CollectionStore type

type CollectionStore struct {
    mock.Mock
}

func (*CollectionStore) AccessFilter

func (_m *CollectionStore) AccessFilter(channelName string, collectionPolicyConfig *common.CollectionPolicyConfig) (privdata.Filter, error)

AccessFilter provides a mock function with given fields: channelName, collectionPolicyConfig

func (*CollectionStore) HasReadAccess

func (_m *CollectionStore) HasReadAccess(_a0 common.CollectionCriteria, _a1 *peer.SignedProposal, _a2 ledger.QueryExecutor) (bool, error)

HasReadAccess provides a mock function with given fields: _a0, _a1, _a2

func (*CollectionStore) RetrieveCollection

func (_m *CollectionStore) RetrieveCollection(_a0 common.CollectionCriteria) (privdata.Collection, error)

RetrieveCollection provides a mock function with given fields: _a0

func (*CollectionStore) RetrieveCollectionAccessPolicy

func (_m *CollectionStore) RetrieveCollectionAccessPolicy(_a0 common.CollectionCriteria) (privdata.CollectionAccessPolicy, error)

RetrieveCollectionAccessPolicy provides a mock function with given fields: _a0

func (*CollectionStore) RetrieveCollectionConfigPackage

func (_m *CollectionStore) RetrieveCollectionConfigPackage(_a0 common.CollectionCriteria) (*common.CollectionConfigPackage, error)

RetrieveCollectionConfigPackage provides a mock function with given fields: _a0

func (*CollectionStore) RetrieveCollectionPersistenceConfigs

func (_m *CollectionStore) RetrieveCollectionPersistenceConfigs(_a0 common.CollectionCriteria) (privdata.CollectionPersistenceConfigs, error)

RetrieveCollectionPersistenceConfigs provides a mock function with given fields: _a0

type Committer

Committer is an autogenerated mock type for the Committer type

type Committer struct {
    mock.Mock
}

func (*Committer) Close

func (_m *Committer) Close()

Close provides a mock function with given fields:

func (*Committer) CommitPvtDataOfOldBlocks

func (_m *Committer) CommitPvtDataOfOldBlocks(blockPvtData []*ledger.BlockPvtData) ([]*ledger.PvtdataHashMismatch, error)

CommitPvtDataOfOldBlocks provides a mock function with given fields: blockPvtData

func (*Committer) CommitWithPvtData

func (_m *Committer) CommitWithPvtData(blockAndPvtData *ledger.BlockAndPvtData, commitOpts *ledger.CommitOptions) error

CommitWithPvtData provides a mock function with given fields: blockAndPvtData, commitOpts

func (*Committer) DoesPvtDataInfoExistInLedger

func (_m *Committer) DoesPvtDataInfoExistInLedger(blockNum uint64) (bool, error)

DoesPvtDataInfoExistInLedger provides a mock function with given fields: blockNum

func (*Committer) GetBlocks

func (_m *Committer) GetBlocks(blockSeqs []uint64) []*common.Block

GetBlocks provides a mock function with given fields: blockSeqs

func (*Committer) GetConfigHistoryRetriever

func (_m *Committer) GetConfigHistoryRetriever() (ledger.ConfigHistoryRetriever, error)

GetConfigHistoryRetriever 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

func (_m *Committer) LedgerHeight() (uint64, error)

LedgerHeight provides a mock function with given fields:

type ConfigHistoryRetriever

ConfigHistoryRetriever is an autogenerated mock type for the ConfigHistoryRetriever type

type ConfigHistoryRetriever struct {
    mock.Mock
}

func (*ConfigHistoryRetriever) CollectionConfigAt

func (_m *ConfigHistoryRetriever) CollectionConfigAt(blockNum uint64, chaincodeName string) (*ledger.CollectionConfigInfo, error)

CollectionConfigAt provides a mock function with given fields: blockNum, chaincodeName

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 DataStore

DataStore is an autogenerated mock type for the DataStore type

type DataStore struct {
    mock.Mock
}

func (*DataStore) GetConfigHistoryRetriever

func (_m *DataStore) GetConfigHistoryRetriever() (ledger.ConfigHistoryRetriever, error)

GetConfigHistoryRetriever provides a mock function with given fields:

func (*DataStore) GetPvtDataByNum

func (_m *DataStore) GetPvtDataByNum(blockNum uint64, filter ledger.PvtNsCollFilter) ([]*ledger.TxPvtData, error)

GetPvtDataByNum provides a mock function with given fields: blockNum, filter

func (*DataStore) GetTxPvtRWSetByTxid

func (_m *DataStore) GetTxPvtRWSetByTxid(txid string, filter ledger.PvtNsCollFilter) (transientstore.RWSetScanner, error)

GetTxPvtRWSetByTxid provides a mock function with given fields: txid, filter

func (*DataStore) LedgerHeight

func (_m *DataStore) LedgerHeight() (uint64, error)

LedgerHeight provides a mock function with given fields:

type MissingPvtDataTracker

MissingPvtDataTracker is an autogenerated mock type for the MissingPvtDataTracker type

type MissingPvtDataTracker struct {
    mock.Mock
}

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

type RWSetScanner struct {
    mock.Mock
}

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:

func (*RWSetScanner) NextWithConfig

func (_m *RWSetScanner) NextWithConfig() (*transientstore.EndorserPvtSimulationResultsWithConfig, error)

NextWithConfig provides a mock function with given fields:

type ReconciliationFetcher

ReconciliationFetcher is an autogenerated mock type for the ReconciliationFetcher type

type ReconciliationFetcher struct {
    mock.Mock
}

func (*ReconciliationFetcher) FetchReconciledItems

func (_m *ReconciliationFetcher) FetchReconciledItems(dig2collectionConfig common.Dig2CollectionConfig) (*common.FetchedPvtDataContainer, error)

FetchReconciledItems provides a mock function with given fields: dig2collectionConfig