lscc

package
v0.0.0-...-95b87ed Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2019 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

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

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 ExistsErr

type ExistsErr string

func (ExistsErr) Error

func (t ExistsErr) Error() string

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

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

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 (*LifeCycleSysCC) Invoke

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 MSPIDsGetter func(string) []string

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

type PeerShim struct {
	Peer *peer.Peer
}

func (*PeerShim) GetApplicationConfig

func (p *PeerShim) GetApplicationConfig(cid string) (channelconfig.Application, bool)

func (*PeerShim) GetQueryExecutorForLedger

func (p *PeerShim) GetQueryExecutorForLedger(cid string) (ledger.QueryExecutor, error)

func (*PeerShim) PolicyManager

func (p *PeerShim) PolicyManager(channelID string) (policies.Manager, bool)

type PrivateChannelDataNotAvailable

type PrivateChannelDataNotAvailable string

func (PrivateChannelDataNotAvailable) Error

type TXNotFoundErr

type TXNotFoundErr string

func (TXNotFoundErr) Error

func (t TXNotFoundErr) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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