Versions in this module Expand all Collapse all v1 v1.4.6 Feb 25, 2020 Changes in this version + type BlockAndPvtData struct + Block *common.Block + MissingPvtData TxMissingPvtDataMap + PvtData TxPvtDataMap + type BlockPvtData struct + BlockNum uint64 + WriteSets TxPvtDataMap + type ChaincodeLifecycleDetails struct + CollectionsRemoved []string + CollectionsUpdated []string + HashChanged bool + Updated bool + type ChaincodeLifecycleInfo struct + Deleted bool + Details *ChaincodeLifecycleDetails + Name string + type CollConfigNotDefinedError struct + Ns string + func (e *CollConfigNotDefinedError) Error() string + type CollectionConfigInfo struct + CollectionConfig *common.CollectionConfigPackage + CommittingBlockNum uint64 + type CommitOptions struct + FetchPvtDataFromLedger bool + type ConfigHistoryRetriever interface + CollectionConfigAt func(blockNum uint64, chaincodeName string) (*CollectionConfigInfo, error) + MostRecentCollectionConfigBelow func(blockNum uint64, chaincodeName string) (*CollectionConfigInfo, error) + type DeployedChaincodeInfo struct + CollectionConfigPkg *common.CollectionConfigPackage + Hash []byte + Name string + Version string + type DeployedChaincodeInfoProvider interface + ChaincodeInfo func(chaincodeName string, qe SimpleQueryExecutor) (*DeployedChaincodeInfo, error) + CollectionInfo func(chaincodeName, collectionName string, qe SimpleQueryExecutor) (*common.StaticCollectionConfig, error) + Namespaces func() []string + UpdatedChaincodes func(stateUpdates map[string][]*kvrwset.KVWrite) ([]*ChaincodeLifecycleInfo, error) + type ErrCollectionConfigNotYetAvailable struct + MaxBlockNumCommitted uint64 + Msg string + func (e *ErrCollectionConfigNotYetAvailable) Error() string + type HealthCheckRegistry interface + RegisterChecker func(string, healthz.HealthChecker) error + type HistoryQueryExecutor interface + GetHistoryForKey func(namespace string, key string) (commonledger.ResultsIterator, error) + type Initializer struct + DeployedChaincodeInfoProvider DeployedChaincodeInfoProvider + HealthCheckRegistry HealthCheckRegistry + MembershipInfoProvider MembershipInfoProvider + MetricsProvider metrics.Provider + StateListeners []StateListener + type InvalidCollNameError struct + Coll string + Ns string + func (e *InvalidCollNameError) Error() string + type MembershipInfoProvider interface + AmMemberOf func(channelName string, collectionPolicyConfig *common.CollectionPolicyConfig) (bool, error) + type MissingBlockPvtdataInfo map[uint64][]*MissingCollectionPvtDataInfo + type MissingCollectionPvtDataInfo struct + Collection string + Namespace string + type MissingPvtData struct + Collection string + IsEligible bool + Namespace string + type MissingPvtDataInfo map[uint64]MissingBlockPvtdataInfo + func (missingPvtDataInfo MissingPvtDataInfo) Add(blkNum, txNum uint64, ns, coll string) + type MissingPvtDataTracker interface + GetMissingPvtDataInfoForMostRecentBlocks func(maxBlocks int) (MissingPvtDataInfo, error) + type NotFoundInIndexErr string + func (NotFoundInIndexErr) Error() string + type PeerLedger interface + CommitPvtDataOfOldBlocks func(blockPvtData []*BlockPvtData) ([]*PvtdataHashMismatch, error) + CommitWithPvtData func(blockAndPvtdata *BlockAndPvtData, commitOpts *CommitOptions) error + DoesPvtDataInfoExist func(blockNum uint64) (bool, error) + GetBlockByHash func(blockHash []byte) (*common.Block, error) + GetBlockByTxID func(txID string) (*common.Block, error) + GetConfigHistoryRetriever func() (ConfigHistoryRetriever, error) + GetMissingPvtDataTracker func() (MissingPvtDataTracker, error) + GetPvtDataAndBlockByNum func(blockNum uint64, filter PvtNsCollFilter) (*BlockAndPvtData, error) + GetPvtDataByNum func(blockNum uint64, filter PvtNsCollFilter) ([]*TxPvtData, error) + GetTransactionByID func(txID string) (*peer.ProcessedTransaction, error) + GetTxValidationCodeByTxID func(txID string) (peer.TxValidationCode, error) + NewHistoryQueryExecutor func() (HistoryQueryExecutor, error) + NewQueryExecutor func() (QueryExecutor, error) + NewTxSimulator func(txid string) (TxSimulator, error) + PrivateDataMinBlockNum func() (uint64, error) + Prune func(policy commonledger.PrunePolicy) error + PurgePrivateData func(maxBlockNumToRetain uint64) error + type PeerLedgerProvider interface + Close func() + Create func(genesisBlock *common.Block) (PeerLedger, error) + Exists func(ledgerID string) (bool, error) + Initialize func(initializer *Initializer) error + List func() ([]string, error) + Open func(ledgerID string) (PeerLedger, error) + type PvtCollFilter map[string]bool + type PvtNsCollFilter map[string]PvtCollFilter + func NewPvtNsCollFilter() PvtNsCollFilter + func (filter PvtNsCollFilter) Add(ns string, coll string) + func (filter PvtNsCollFilter) Has(ns string, coll string) bool + type PvtdataHashMismatch struct + BlockNum uint64 + Collection string + ExpectedHash []byte + Namespace string + TxNum uint64 + type QueryExecutor interface + Done func() + ExecuteQuery func(namespace, query string) (commonledger.ResultsIterator, error) + ExecuteQueryOnPrivateData func(namespace, collection, query string) (commonledger.ResultsIterator, error) + ExecuteQueryWithMetadata func(namespace, query string, metadata map[string]interface{}) (QueryResultsIterator, error) + GetPrivateData func(namespace, collection, key string) ([]byte, error) + GetPrivateDataHash func(namespace, collection, key string) ([]byte, error) + GetPrivateDataMetadata func(namespace, collection, key string) (map[string][]byte, error) + GetPrivateDataMetadataByHash func(namespace, collection string, keyhash []byte) (map[string][]byte, error) + GetPrivateDataMultipleKeys func(namespace, collection string, keys []string) ([][]byte, error) + GetPrivateDataRangeScanIterator func(namespace, collection, startKey, endKey string) (commonledger.ResultsIterator, error) + GetStateMetadata func(namespace, key string) (map[string][]byte, error) + GetStateMultipleKeys func(namespace string, keys []string) ([][]byte, error) + GetStateRangeScanIteratorWithMetadata func(namespace string, startKey, endKey string, metadata map[string]interface{}) (QueryResultsIterator, error) + type QueryResultsIterator interface + GetBookmarkAndClose func() string + type SimpleQueryExecutor interface + GetState func(namespace string, key string) ([]byte, error) + GetStateRangeScanIterator func(namespace string, startKey string, endKey string) (commonledger.ResultsIterator, error) + type StateListener interface + HandleStateUpdates func(trigger *StateUpdateTrigger) error + InterestedInNamespaces func() []string + StateCommitDone func(channelID string) + type StateUpdateTrigger struct + CommittedStateQueryExecutor SimpleQueryExecutor + CommittingBlockNum uint64 + LedgerID string + PostCommitQueryExecutor SimpleQueryExecutor + StateUpdates StateUpdates + type StateUpdates map[string]interface + type TxMissingPvtDataMap map[uint64][]*MissingPvtData + func (txMissingPvtData TxMissingPvtDataMap) Add(txNum uint64, ns, coll string, isEligible bool) + type TxPvtData struct + SeqInBlock uint64 + WriteSet *rwset.TxPvtReadWriteSet + func (pvtdata *TxPvtData) Has(ns string, coll string) bool + type TxPvtDataMap map[uint64]*TxPvtData + type TxSimulationResults struct + PubSimulationResults *rwset.TxReadWriteSet + PvtSimulationResults *rwset.TxPvtReadWriteSet + func (txSim *TxSimulationResults) ContainsPvtWrites() bool + func (txSim *TxSimulationResults) GetPubSimulationBytes() ([]byte, error) + func (txSim *TxSimulationResults) GetPvtSimulationBytes() ([]byte, error) + type TxSimulator interface + DeletePrivateData func(namespace, collection, key string) error + DeletePrivateDataMetadata func(namespace, collection, key string) error + DeleteState func(namespace string, key string) error + DeleteStateMetadata func(namespace, key string) error + ExecuteUpdate func(query string) error + GetTxSimulationResults func() (*TxSimulationResults, error) + SetPrivateData func(namespace, collection, key string, value []byte) error + SetPrivateDataMetadata func(namespace, collection, key string, metadata map[string][]byte) error + SetPrivateDataMultipleKeys func(namespace, collection string, kvs map[string][]byte) error + SetState func(namespace string, key string, value []byte) error + SetStateMetadata func(namespace, key string, metadata map[string][]byte) error + SetStateMultipleKeys func(namespace string, kvs map[string][]byte) error Incompatible versions in this module v2.0.1+incompatible Feb 26, 2020