Versions in this module Expand all Collapse all v2 v2.3.2 Nov 21, 2021 Changes in this version + const CCEXISTS + const CHAINCODEEXISTS + const DEPLOY + const GETCCDATA + const GETCHAINCODEDATA + const GETCHAINCODES + const GETCHAINCODESALIAS + const GETCOLLECTIONSCONFIG + const GETCOLLECTIONSCONFIGALIAS + const GETDEPLOYMENTSPEC + const GETDEPSPEC + const GETINSTALLEDCHAINCODES + const GETINSTALLEDCHAINCODESALIAS + const INSTALL + const UPGRADE + var ChaincodeNameRegExp = regexp.MustCompile("^[a-zA-Z0-9]+([-_][a-zA-Z0-9]+)*$") + var ChaincodeVersionRegExp = regexp.MustCompile("^[A-Za-z0-9_.+-]+$") + type ChaincodeBuilder interface + Build func(ccid string) error + type ChaincodeMismatchErr string + func (f ChaincodeMismatchErr) Error() string + type CollectionsConfigUpgradesNotAllowed string + func (f CollectionsConfigUpgradesNotAllowed) Error() string + type DeployedCCInfoProvider struct + func (p *DeployedCCInfoProvider) AllChaincodesInfo(channelName string, qe ledger.SimpleQueryExecutor) (map[string]*ledger.DeployedChaincodeInfo, error) + func (p *DeployedCCInfoProvider) AllCollectionsConfigPkg(channelName, chaincodeName string, qe ledger.SimpleQueryExecutor) (*peer.CollectionConfigPackage, error) + func (p *DeployedCCInfoProvider) ChaincodeInfo(channelName, chaincodeName string, qe ledger.SimpleQueryExecutor) (*ledger.DeployedChaincodeInfo, error) + func (p *DeployedCCInfoProvider) CollectionInfo(channelName, chaincodeName, collectionName string, ...) (*peer.StaticCollectionConfig, error) + func (p *DeployedCCInfoProvider) GenerateImplicitCollectionForOrg(mspid string) *peer.StaticCollectionConfig + func (p *DeployedCCInfoProvider) ImplicitCollections(channelName, chaincodeName string, qe ledger.SimpleQueryExecutor) ([]*peer.StaticCollectionConfig, error) + func (p *DeployedCCInfoProvider) Namespaces() []string + func (p *DeployedCCInfoProvider) UpdatedChaincodes(stateUpdates map[string][]*kvrwset.KVWrite) ([]*ledger.ChaincodeLifecycleInfo, error) + type ExistsErr string + func (t ExistsErr) Error() string + type FilesystemSupport interface + CheckInstantiationPolicy func(signedProposal *pb.SignedProposal, chainName string, ...) error + GetChaincodeFromLocalStorage func(ccNameVersion string) (ccprovider.CCPackage, error) + GetChaincodesFromLocalStorage func() (*pb.ChaincodeQueryResponse, error) + GetInstantiationPolicy func(channel string, ccpack ccprovider.CCPackage) ([]byte, error) + PutChaincodeToLocalStorage func(ccprovider.CCPackage) error + type IdenticalVersionErr string + func (f IdenticalVersionErr) Error() string + type InstantiationPolicyMissing string + func (f InstantiationPolicyMissing) Error() string + type InvalidArgsLenErr int + func (i InvalidArgsLenErr) Error() string + type InvalidCCOnFSError string + func (f InvalidCCOnFSError) Error() string + type InvalidChaincodeNameErr string + func (f InvalidChaincodeNameErr) Error() string + type InvalidChannelNameErr string + func (f InvalidChannelNameErr) Error() string + type InvalidDeploymentSpecErr string + func (f InvalidDeploymentSpecErr) Error() string + type InvalidFunctionErr string + func (f InvalidFunctionErr) Error() string + type InvalidStatedbArtifactsErr string + func (f InvalidStatedbArtifactsErr) Error() string + type InvalidVersionErr string + func (f InvalidVersionErr) Error() string + type LegacySecurity struct + PackageCache *PackageCache + Support FilesystemSupport + func (ls *LegacySecurity) SecurityCheckLegacyChaincode(cd *ccprovider.ChaincodeData) error + type MSPIDsGetter func(string) []string + type MarshallErr string + func (m MarshallErr) Error() string + type NotFoundErr string + func (t NotFoundErr) Error() string + type PackageCache struct + Mutex sync.RWMutex + ValidatedPackages map[string]*ccprovider.ChaincodeData + type PeerShim struct + Peer *peer.Peer + func (p *PeerShim) GetApplicationConfig(cid string) (channelconfig.Application, bool) + func (p *PeerShim) GetQueryExecutorForLedger(cid string) (ledger.QueryExecutor, error) + func (p *PeerShim) PolicyManager(channelID string) (policies.Manager, bool) + type PrivateChannelDataNotAvailable string + func (f PrivateChannelDataNotAvailable) Error() string + type SCC struct + ACLProvider aclmgmt.ACLProvider + BCCSP bccsp.BCCSP + BuildRegistry *container.BuildRegistry + BuiltinSCCs scc.BuiltinSCCs + ChaincodeBuilder ChaincodeBuilder + EbMetadataProvider *externalbuilder.MetadataProvider + GetMSPIDs MSPIDsGetter + PackageCache PackageCache + PolicyChecker policy.PolicyChecker + SCCProvider sysccprovider.SystemChaincodeProvider + Support FilesystemSupport + func (lscc *SCC) Chaincode() shim.Chaincode + func (lscc *SCC) ChaincodeEndorsementInfo(channelID, chaincodeName string, qe ledger.SimpleQueryExecutor) (*lifecycle.ChaincodeEndorsementInfo, error) + func (lscc *SCC) Init(stub shim.ChaincodeStubInterface) pb.Response + func (lscc *SCC) Invoke(stub shim.ChaincodeStubInterface) pb.Response + func (lscc *SCC) Name() string + func (lscc *SCC) ValidationInfo(channelID, chaincodeName string, qe ledger.SimpleQueryExecutor) (plugin string, args []byte, unexpectedErr error, validationErr error) + type SupportImpl struct + GetMSPIDs MSPIDsGetter + func (s *SupportImpl) CheckInstantiationPolicy(signedProp *pb.SignedProposal, chainName string, instantiationPolicy []byte) error + func (s *SupportImpl) GetChaincodeFromLocalStorage(ccNameVersion string) (ccprovider.CCPackage, error) + func (s *SupportImpl) GetChaincodesFromLocalStorage() (*pb.ChaincodeQueryResponse, error) + func (s *SupportImpl) GetInstantiationPolicy(channel string, ccpack ccprovider.CCPackage) ([]byte, error) + func (s *SupportImpl) PutChaincodeToLocalStorage(ccpack ccprovider.CCPackage) error + type TXNotFoundErr string + func (t TXNotFoundErr) Error() string Other modules containing this package github.com/waszqt/fabric