Documentation ¶
Index ¶
- Constants
- Variables
- type ChaincodeMismatchErr
- type CollectionsConfigUpgradesNotAllowed
- type DeployedCCInfoProvider
- func (p *DeployedCCInfoProvider) ChaincodeInfo(channelName, chaincodeName string, qe ledger.SimpleQueryExecutor) (*ledger.DeployedChaincodeInfo, error)
- func (p *DeployedCCInfoProvider) CollectionInfo(channelName, chaincodeName, collectionName string, ...) (*common.StaticCollectionConfig, error)
- func (p *DeployedCCInfoProvider) ImplicitCollections(channelName, chaincodeName string, qe ledger.SimpleQueryExecutor) ([]*common.StaticCollectionConfig, error)
- func (p *DeployedCCInfoProvider) Namespaces() []string
- func (p *DeployedCCInfoProvider) UpdatedChaincodes(stateUpdates map[string][]*kvrwset.KVWrite) ([]*ledger.ChaincodeLifecycleInfo, error)
- type ExistsErr
- type FilesystemSupport
- type IdenticalVersionErr
- type InstantiationPolicyMissing
- type InvalidArgsLenErr
- type InvalidCCOnFSError
- type InvalidChaincodeNameErr
- type InvalidChannelNameErr
- type InvalidDeploymentSpecErr
- type InvalidFunctionErr
- type InvalidStatedbArtifactsErr
- type InvalidVersionErr
- type LegacySecurity
- type LifeCycleSysCC
- func (lscc *LifeCycleSysCC) Chaincode() shim.Chaincode
- func (lscc *LifeCycleSysCC) ChaincodeEndorsementInfo(channelID, chaincodeName string, qe ledger.SimpleQueryExecutor) (*lifecycle.ChaincodeEndorsementInfo, error)
- func (lscc *LifeCycleSysCC) Init(stub shim.ChaincodeStubInterface) pb.Response
- func (lscc *LifeCycleSysCC) Invoke(stub shim.ChaincodeStubInterface) pb.Response
- func (lscc *LifeCycleSysCC) Name() string
- func (lscc *LifeCycleSysCC) ValidationInfo(channelID, chaincodeName string, qe ledger.SimpleQueryExecutor) (plugin string, args []byte, unexpectedErr error, validationErr error)
- type MSPIDsGetter
- type MarshallErr
- type NotFoundErr
- type PeerShim
- type PrivateChannelDataNotAvailable
- type TXNotFoundErr
Constants ¶
View Source
const ( INSTALL = "install" DEPLOY = "deploy" UPGRADE = "upgrade" CCEXISTS = "getid" CHAINCODEEXISTS = "ChaincodeExists" GETDEPSPEC = "getdepspec" GETDEPLOYMENTSPEC = "GetDeploymentSpec" GETCCDATA = "getccdata" GETCHAINCODEDATA = "GetChaincodeData" GETCHAINCODES = "getchaincodes" GETCHAINCODESALIAS = "GetChaincodes" GETINSTALLEDCHAINCODES = "getinstalledchaincodes" GETINSTALLEDCHAINCODESALIAS = "GetInstalledChaincodes" GETCOLLECTIONSCONFIG = "GetCollectionsConfig" GETCOLLECTIONSCONFIGALIAS = "getcollectionsconfig" )
Variables ¶
View Source
var ( ChaincodeNameRegExp = regexp.MustCompile("^[a-zA-Z0-9]+([-_][a-zA-Z0-9]+)*$") ChaincodeVersionRegExp = regexp.MustCompile("^[A-Za-z0-9_.+-]+$") )
Functions ¶
This section is empty.
Types ¶
type ChaincodeMismatchErr ¶
type ChaincodeMismatchErr string
func (ChaincodeMismatchErr) Error ¶
func (f ChaincodeMismatchErr) Error() string
type CollectionsConfigUpgradesNotAllowed ¶
type CollectionsConfigUpgradesNotAllowed string
func (CollectionsConfigUpgradesNotAllowed) Error ¶
func (f CollectionsConfigUpgradesNotAllowed) Error() string
type DeployedCCInfoProvider ¶
type DeployedCCInfoProvider struct { }
func (*DeployedCCInfoProvider) ChaincodeInfo ¶
func (p *DeployedCCInfoProvider) ChaincodeInfo(channelName, chaincodeName string, qe ledger.SimpleQueryExecutor) (*ledger.DeployedChaincodeInfo, error)
func (*DeployedCCInfoProvider) CollectionInfo ¶
func (p *DeployedCCInfoProvider) CollectionInfo(channelName, chaincodeName, collectionName string, qe ledger.SimpleQueryExecutor) (*common.StaticCollectionConfig, error)
func (*DeployedCCInfoProvider) ImplicitCollections ¶
func (p *DeployedCCInfoProvider) ImplicitCollections(channelName, chaincodeName string, qe ledger.SimpleQueryExecutor) ([]*common.StaticCollectionConfig, error)
func (*DeployedCCInfoProvider) Namespaces ¶
func (p *DeployedCCInfoProvider) Namespaces() []string
func (*DeployedCCInfoProvider) UpdatedChaincodes ¶
func (p *DeployedCCInfoProvider) UpdatedChaincodes(stateUpdates map[string][]*kvrwset.KVWrite) ([]*ledger.ChaincodeLifecycleInfo, error)
type FilesystemSupport ¶
type FilesystemSupport interface { PutChaincodeToLocalStorage(ccprovider.CCPackage) error GetChaincodeFromLocalStorage(ccNameVersion string) (ccprovider.CCPackage, error) GetChaincodesFromLocalStorage() (*pb.ChaincodeQueryResponse, error) GetInstantiationPolicy(channel string, ccpack ccprovider.CCPackage) ([]byte, error) CheckInstantiationPolicy(signedProposal *pb.SignedProposal, chainName string, instantiationPolicy []byte) error }
type IdenticalVersionErr ¶
type IdenticalVersionErr string
func (IdenticalVersionErr) Error ¶
func (f IdenticalVersionErr) Error() string
type InstantiationPolicyMissing ¶
type InstantiationPolicyMissing string
func (InstantiationPolicyMissing) Error ¶
func (f InstantiationPolicyMissing) Error() string
type InvalidArgsLenErr ¶
type InvalidArgsLenErr int
func (InvalidArgsLenErr) Error ¶
func (i InvalidArgsLenErr) Error() string
type InvalidCCOnFSError ¶
type InvalidCCOnFSError string
func (InvalidCCOnFSError) Error ¶
func (f InvalidCCOnFSError) Error() string
type InvalidChaincodeNameErr ¶
type InvalidChaincodeNameErr string
func (InvalidChaincodeNameErr) Error ¶
func (f InvalidChaincodeNameErr) Error() string
type InvalidChannelNameErr ¶
type InvalidChannelNameErr string
func (InvalidChannelNameErr) Error ¶
func (f InvalidChannelNameErr) Error() string
type InvalidDeploymentSpecErr ¶
type InvalidDeploymentSpecErr string
func (InvalidDeploymentSpecErr) Error ¶
func (f InvalidDeploymentSpecErr) Error() string
type InvalidFunctionErr ¶
type InvalidFunctionErr string
func (InvalidFunctionErr) Error ¶
func (f InvalidFunctionErr) Error() string
type InvalidStatedbArtifactsErr ¶
type InvalidStatedbArtifactsErr string
func (InvalidStatedbArtifactsErr) Error ¶
func (f InvalidStatedbArtifactsErr) Error() string
type InvalidVersionErr ¶
type InvalidVersionErr string
func (InvalidVersionErr) Error ¶
func (f InvalidVersionErr) Error() string
type LegacySecurity ¶
type LegacySecurity struct {
Support FilesystemSupport
}
func (*LegacySecurity) SecurityCheckLegacyChaincode ¶
func (ls *LegacySecurity) SecurityCheckLegacyChaincode(cd *ccprovider.ChaincodeData) error
type LifeCycleSysCC ¶
type LifeCycleSysCC struct { ACLProvider aclmgmt.ACLProvider BuiltinSCCs scc.BuiltinSCCs SCCProvider sysccprovider.SystemChaincodeProvider PolicyChecker policy.PolicyChecker Support FilesystemSupport GetMSPIDs MSPIDsGetter }
func New ¶
func New( builtinSCCs scc.BuiltinSCCs, sccp sysccprovider.SystemChaincodeProvider, ACLProvider aclmgmt.ACLProvider, getMSPIDs MSPIDsGetter, policyChecker policy.PolicyChecker, ) *LifeCycleSysCC
func (*LifeCycleSysCC) Chaincode ¶
func (lscc *LifeCycleSysCC) Chaincode() shim.Chaincode
func (*LifeCycleSysCC) ChaincodeEndorsementInfo ¶
func (lscc *LifeCycleSysCC) ChaincodeEndorsementInfo(channelID, chaincodeName string, qe ledger.SimpleQueryExecutor) (*lifecycle.ChaincodeEndorsementInfo, error)
func (*LifeCycleSysCC) Init ¶
func (lscc *LifeCycleSysCC) Init(stub shim.ChaincodeStubInterface) pb.Response
func (*LifeCycleSysCC) Invoke ¶
func (lscc *LifeCycleSysCC) Invoke(stub shim.ChaincodeStubInterface) pb.Response
func (*LifeCycleSysCC) Name ¶
func (lscc *LifeCycleSysCC) Name() string
func (*LifeCycleSysCC) ValidationInfo ¶
func (lscc *LifeCycleSysCC) ValidationInfo(channelID, chaincodeName string, qe ledger.SimpleQueryExecutor) (plugin string, args []byte, unexpectedErr error, validationErr error)
type MSPIDsGetter ¶
type MarshallErr ¶
type MarshallErr string
func (MarshallErr) Error ¶
func (m MarshallErr) Error() string
type NotFoundErr ¶
type NotFoundErr string
func (NotFoundErr) Error ¶
func (t NotFoundErr) Error() string
type PeerShim ¶
func (*PeerShim) GetApplicationConfig ¶
func (p *PeerShim) GetApplicationConfig(cid string) (channelconfig.Application, bool)
func (*PeerShim) GetQueryExecutorForLedger ¶
func (p *PeerShim) GetQueryExecutorForLedger(cid string) (ledger.QueryExecutor, error)
type PrivateChannelDataNotAvailable ¶
type PrivateChannelDataNotAvailable string
func (PrivateChannelDataNotAvailable) Error ¶
func (f PrivateChannelDataNotAvailable) Error() string
type TXNotFoundErr ¶
type TXNotFoundErr string
func (TXNotFoundErr) Error ¶
func (t TXNotFoundErr) Error() string
Click to show internal directories.
Click to hide internal directories.