mocks

package
v1.4.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 22, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppCapabilities added in v1.4.3

type AppCapabilities struct {
	mock.Mock
}

AppCapabilities is an autogenerated mock type for the AppCapabilities type

func (*AppCapabilities) ACLs added in v1.4.3

func (_m *AppCapabilities) ACLs() bool

ACLs provides a mock function with given fields:

func (*AppCapabilities) CollectionUpgrade added in v1.4.3

func (_m *AppCapabilities) CollectionUpgrade() bool

CollectionUpgrade provides a mock function with given fields:

func (*AppCapabilities) FabToken added in v1.4.3

func (_m *AppCapabilities) FabToken() bool

FabToken provides a mock function with given fields:

func (*AppCapabilities) ForbidDuplicateTXIdInBlock added in v1.4.3

func (_m *AppCapabilities) ForbidDuplicateTXIdInBlock() bool

ForbidDuplicateTXIdInBlock provides a mock function with given fields:

func (*AppCapabilities) KeyLevelEndorsement added in v1.4.3

func (_m *AppCapabilities) KeyLevelEndorsement() bool

KeyLevelEndorsement provides a mock function with given fields:

func (*AppCapabilities) MetadataLifecycle added in v1.4.3

func (_m *AppCapabilities) MetadataLifecycle() bool

MetadataLifecycle provides a mock function with given fields:

func (*AppCapabilities) PrivateChannelData added in v1.4.3

func (_m *AppCapabilities) PrivateChannelData() bool

PrivateChannelData provides a mock function with given fields:

func (*AppCapabilities) StorePvtDataOfInvalidTx added in v1.4.3

func (_m *AppCapabilities) StorePvtDataOfInvalidTx() bool

StorePvtDataOfInvalidTx provides a mock function with given fields:

func (*AppCapabilities) Supported added in v1.4.3

func (_m *AppCapabilities) Supported() error

Supported provides a mock function with given fields:

func (*AppCapabilities) V1_1Validation added in v1.4.3

func (_m *AppCapabilities) V1_1Validation() bool

V1_1Validation provides a mock function with given fields:

func (*AppCapabilities) V1_2Validation added in v1.4.3

func (_m *AppCapabilities) V1_2Validation() bool

V1_2Validation provides a mock function with given fields:

func (*AppCapabilities) V1_3Validation added in v1.4.3

func (_m *AppCapabilities) V1_3Validation() bool

V1_3Validation provides a mock function with given fields:

type CapabilityProvider added in v1.4.3

type CapabilityProvider struct {
	mock.Mock
}

CapabilityProvider is an autogenerated mock type for the CapabilityProvider type

func (*CapabilityProvider) Capabilities added in v1.4.3

Capabilities provides a mock function with given fields:

type CollectionStore added in v1.4.0

type CollectionStore struct {
	mock.Mock
}

CollectionStore is an autogenerated mock type for the CollectionStore type

func (*CollectionStore) AccessFilter added in v1.4.0

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 added in v1.4.0

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

func (*CollectionStore) RetrieveCollection added in v1.4.0

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

RetrieveCollection provides a mock function with given fields: _a0

func (*CollectionStore) RetrieveCollectionAccessPolicy added in v1.4.0

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

RetrieveCollectionAccessPolicy provides a mock function with given fields: _a0

func (*CollectionStore) RetrieveCollectionConfigPackage added in v1.4.0

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

RetrieveCollectionConfigPackage provides a mock function with given fields: _a0

func (*CollectionStore) RetrieveCollectionPersistenceConfigs added in v1.4.0

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

RetrieveCollectionPersistenceConfigs provides a mock function with given fields: _a0

type Committer added in v1.4.0

type Committer struct {
	mock.Mock
}

Committer is an autogenerated mock type for the Committer type

func (*Committer) Close added in v1.4.0

func (_m *Committer) Close()

Close provides a mock function with given fields:

func (*Committer) CommitPvtDataOfOldBlocks added in v1.4.0

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

CommitPvtDataOfOldBlocks provides a mock function with given fields: blockPvtData

func (*Committer) CommitWithPvtData added in v1.4.0

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

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

func (*Committer) DoesPvtDataInfoExistInLedger added in v1.4.2

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

DoesPvtDataInfoExistInLedger provides a mock function with given fields: blockNum

func (*Committer) GetBlocks added in v1.4.0

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

GetBlocks provides a mock function with given fields: blockSeqs

func (*Committer) GetConfigHistoryRetriever added in v1.4.0

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

GetConfigHistoryRetriever provides a mock function with given fields:

func (*Committer) GetMissingPvtDataTracker added in v1.4.0

func (_m *Committer) GetMissingPvtDataTracker() (ledger.MissingPvtDataTracker, error)

GetMissingPvtDataTracker provides a mock function with given fields:

func (*Committer) GetPvtDataAndBlockByNum added in v1.4.0

func (_m *Committer) GetPvtDataAndBlockByNum(seqNum uint64) (*ledger.BlockAndPvtData, error)

GetPvtDataAndBlockByNum provides a mock function with given fields: seqNum

func (*Committer) GetPvtDataByNum added in v1.4.0

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 added in v1.4.0

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

LedgerHeight provides a mock function with given fields:

type ConfigHistoryRetriever

type ConfigHistoryRetriever struct {
	mock.Mock
}

ConfigHistoryRetriever is an autogenerated mock type for the ConfigHistoryRetriever type

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

type DataStore struct {
	mock.Mock
}

DataStore is an autogenerated mock type for the DataStore type

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

type MissingPvtDataTracker struct {
	mock.Mock
}

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

type RWSetScanner struct {
	mock.Mock
}

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

Next provides a mock function with given fields:

func (*RWSetScanner) NextWithConfig

NextWithConfig provides a mock function with given fields:

type ReconciliationFetcher

type ReconciliationFetcher struct {
	mock.Mock
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL