fabric: github.com/hyperledger/fabric/gossip/privdata/mocks Index | Files

package mocks

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

Code generated by counterfeiter. DO NOT EDIT.

Index

Package Files

app_capabilities.go capability_provider.go collection_access_factory.go collection_access_policy.go collection_store.go committer.go config_history_retriever.go missing_pvt_data_tracker.go reconciliation_fetcher.go rw_set_scanner.go sleeper.go

type AppCapabilities Uses

type AppCapabilities struct {
    mock.Mock
}

AppCapabilities is an autogenerated mock type for the AppCapabilities type

func (*AppCapabilities) ACLs Uses

func (_m *AppCapabilities) ACLs() bool

ACLs provides a mock function with given fields:

func (*AppCapabilities) CollectionUpgrade Uses

func (_m *AppCapabilities) CollectionUpgrade() bool

CollectionUpgrade provides a mock function with given fields:

func (*AppCapabilities) ForbidDuplicateTXIdInBlock Uses

func (_m *AppCapabilities) ForbidDuplicateTXIdInBlock() bool

ForbidDuplicateTXIdInBlock provides a mock function with given fields:

func (*AppCapabilities) KeyLevelEndorsement Uses

func (_m *AppCapabilities) KeyLevelEndorsement() bool

KeyLevelEndorsement provides a mock function with given fields:

func (*AppCapabilities) LifecycleV20 Uses

func (_m *AppCapabilities) LifecycleV20() bool

LifecycleV20 provides a mock function with given fields:

func (*AppCapabilities) MetadataLifecycle Uses

func (_m *AppCapabilities) MetadataLifecycle() bool

MetadataLifecycle provides a mock function with given fields:

func (*AppCapabilities) PrivateChannelData Uses

func (_m *AppCapabilities) PrivateChannelData() bool

PrivateChannelData provides a mock function with given fields:

func (*AppCapabilities) StorePvtDataOfInvalidTx Uses

func (_m *AppCapabilities) StorePvtDataOfInvalidTx() bool

StorePvtDataOfInvalidTx provides a mock function with given fields:

func (*AppCapabilities) Supported Uses

func (_m *AppCapabilities) Supported() error

Supported provides a mock function with given fields:

func (*AppCapabilities) V1_1Validation Uses

func (_m *AppCapabilities) V1_1Validation() bool

V1_1Validation provides a mock function with given fields:

func (*AppCapabilities) V1_2Validation Uses

func (_m *AppCapabilities) V1_2Validation() bool

V1_2Validation provides a mock function with given fields:

func (*AppCapabilities) V1_3Validation Uses

func (_m *AppCapabilities) V1_3Validation() bool

V1_3Validation provides a mock function with given fields:

func (*AppCapabilities) V2_0Validation Uses

func (_m *AppCapabilities) V2_0Validation() bool

V2_0Validation provides a mock function with given fields:

type CapabilityProvider Uses

type CapabilityProvider struct {
    mock.Mock
}

CapabilityProvider is an autogenerated mock type for the CapabilityProvider type

func (*CapabilityProvider) Capabilities Uses

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

Capabilities provides a mock function with given fields:

type CollectionAccessFactory Uses

type CollectionAccessFactory struct {
    mock.Mock
}

CollectionAccessFactory is an autogenerated mock type for the CollectionAccessFactory type

func (*CollectionAccessFactory) AccessPolicy Uses

func (_m *CollectionAccessFactory) AccessPolicy(config *peer.CollectionConfig, chainID string) (privdata.CollectionAccessPolicy, error)

AccessPolicy provides a mock function with given fields: config, chainID

type CollectionAccessPolicy Uses

type CollectionAccessPolicy struct {
    mock.Mock
}

CollectionAccessPolicy is an autogenerated mock type for the CollectionAccessPolicy type

func (*CollectionAccessPolicy) AccessFilter Uses

func (_m *CollectionAccessPolicy) AccessFilter() privdata.Filter

AccessFilter provides a mock function with given fields:

func (*CollectionAccessPolicy) IsMemberOnlyRead Uses

func (_m *CollectionAccessPolicy) IsMemberOnlyRead() bool

IsMemberOnlyRead provides a mock function with given fields:

func (*CollectionAccessPolicy) IsMemberOnlyWrite Uses

func (_m *CollectionAccessPolicy) IsMemberOnlyWrite() bool

IsMemberOnlyWrite provides a mock function with given fields:

func (*CollectionAccessPolicy) MaximumPeerCount Uses

func (_m *CollectionAccessPolicy) MaximumPeerCount() int

MaximumPeerCount provides a mock function with given fields:

func (*CollectionAccessPolicy) MemberOrgs Uses

func (_m *CollectionAccessPolicy) MemberOrgs() map[string]struct{}

MemberOrgs provides a mock function with given fields:

func (*CollectionAccessPolicy) RequiredPeerCount Uses

func (_m *CollectionAccessPolicy) RequiredPeerCount() int

RequiredPeerCount provides a mock function with given fields:

type CollectionStore Uses

type CollectionStore struct {
    mock.Mock
}

CollectionStore is an autogenerated mock type for the CollectionStore type

func (*CollectionStore) AccessFilter Uses

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 Uses

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

RetrieveCollection provides a mock function with given fields: _a0

func (*CollectionStore) RetrieveCollectionAccessPolicy Uses

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

RetrieveCollectionAccessPolicy provides a mock function with given fields: _a0

func (*CollectionStore) RetrieveCollectionConfig Uses

func (_m *CollectionStore) RetrieveCollectionConfig(_a0 privdata.CollectionCriteria) (*peer.StaticCollectionConfig, error)

RetrieveCollectionConfig provides a mock function with given fields: _a0

func (*CollectionStore) RetrieveCollectionConfigPackage Uses

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

RetrieveCollectionConfigPackage provides a mock function with given fields: _a0

func (*CollectionStore) RetrieveCollectionPersistenceConfigs Uses

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

RetrieveCollectionPersistenceConfigs provides a mock function with given fields: _a0

func (*CollectionStore) RetrieveReadWritePermission Uses

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 Uses

type Committer struct {
    mock.Mock
}

Committer is an autogenerated mock type for the Committer type

func (*Committer) Close Uses

func (_m *Committer) Close()

Close provides a mock function with given fields:

func (*Committer) CommitLegacy Uses

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

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

func (*Committer) CommitPvtDataOfOldBlocks Uses

func (_m *Committer) CommitPvtDataOfOldBlocks(reconciledPvtdata []*ledger.ReconciledPvtdata) ([]*ledger.PvtdataHashMismatch, error)

CommitPvtDataOfOldBlocks provides a mock function with given fields: reconciledPvtdata

func (*Committer) DoesPvtDataInfoExistInLedger Uses

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

DoesPvtDataInfoExistInLedger provides a mock function with given fields: blockNum

func (*Committer) GetBlocks Uses

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

GetBlocks provides a mock function with given fields: blockSeqs

func (*Committer) GetConfigHistoryRetriever Uses

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

GetConfigHistoryRetriever provides a mock function with given fields:

func (*Committer) GetMissingPvtDataTracker Uses

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

GetMissingPvtDataTracker provides a mock function with given fields:

func (*Committer) GetPvtDataAndBlockByNum Uses

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

GetPvtDataAndBlockByNum provides a mock function with given fields: seqNum

func (*Committer) GetPvtDataByNum Uses

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 Uses

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

LedgerHeight provides a mock function with given fields:

type ConfigHistoryRetriever Uses

type ConfigHistoryRetriever struct {
    mock.Mock
}

ConfigHistoryRetriever is an autogenerated mock type for the ConfigHistoryRetriever type

func (*ConfigHistoryRetriever) CollectionConfigAt Uses

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

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

func (*ConfigHistoryRetriever) MostRecentCollectionConfigBelow Uses

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

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

type MissingPvtDataTracker Uses

type MissingPvtDataTracker struct {
    mock.Mock
}

MissingPvtDataTracker is an autogenerated mock type for the MissingPvtDataTracker type

func (*MissingPvtDataTracker) GetMissingPvtDataInfoForMostRecentBlocks Uses

func (_m *MissingPvtDataTracker) GetMissingPvtDataInfoForMostRecentBlocks(maxBlocks int) (ledger.MissingPvtDataInfo, error)

GetMissingPvtDataInfoForMostRecentBlocks provides a mock function with given fields: maxBlocks

type RWSetScanner Uses

type RWSetScanner struct {
    mock.Mock
}

RWSetScanner is an autogenerated mock type for the RWSetScanner type

func (*RWSetScanner) Close Uses

func (_m *RWSetScanner) Close()

Close provides a mock function with given fields:

func (*RWSetScanner) Next Uses

func (_m *RWSetScanner) Next() (*transientstore.EndorserPvtSimulationResults, error)

Next provides a mock function with given fields:

type ReconciliationFetcher Uses

type ReconciliationFetcher struct {
    mock.Mock
}

ReconciliationFetcher is an autogenerated mock type for the ReconciliationFetcher type

func (*ReconciliationFetcher) FetchReconciledItems Uses

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

FetchReconciledItems provides a mock function with given fields: dig2collectionConfig

type Sleeper Uses

type Sleeper struct {
    SleepStub func(time.Duration)
    // contains filtered or unexported fields
}

func (*Sleeper) Invocations Uses

func (fake *Sleeper) Invocations() map[string][][]interface{}

func (*Sleeper) Sleep Uses

func (fake *Sleeper) Sleep(arg1 time.Duration)

func (*Sleeper) SleepArgsForCall Uses

func (fake *Sleeper) SleepArgsForCall(i int) time.Duration

func (*Sleeper) SleepCallCount Uses

func (fake *Sleeper) SleepCallCount() int

Package mocks imports 10 packages (graph). Updated 2020-02-26. Refresh now. Tools for package owners.