lscc

package
v1.1.0-alpha Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2018 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (

	//INSTALL install command
	INSTALL = "install"

	//DEPLOY deploy command
	DEPLOY = "deploy"

	//UPGRADE upgrade chaincode
	UPGRADE = "upgrade"

	//GETCCINFO get chaincode
	GETCCINFO = "getid"

	//GETDEPSPEC get ChaincodeDeploymentSpec
	GETDEPSPEC = "getdepspec"

	//GETCCDATA get ChaincodeData
	GETCCDATA = "getccdata"

	//GETCHAINCODES gets the instantiated chaincodes on a channel
	GETCHAINCODES = "getchaincodes"

	//GETINSTALLEDCHAINCODES gets the installed chaincodes on a peer
	GETINSTALLEDCHAINCODES = "getinstalledchaincodes"
)

Variables

This section is empty.

Functions

func NewLifeCycleSysCC added in v1.1.0

func NewLifeCycleSysCC() *lifeCycleSysCC

Types

type ChaincodeMismatchErr

type ChaincodeMismatchErr string

ChaincodeMismatchErr chaincode name from two places don't match

func (ChaincodeMismatchErr) Error

func (f ChaincodeMismatchErr) Error() string

type EmptyChaincodeNameErr

type EmptyChaincodeNameErr string

EmptyChaincodeNameErr trying to upgrade to same version of Chaincode

func (EmptyChaincodeNameErr) Error

func (f EmptyChaincodeNameErr) Error() string

type EmptyVersionErr

type EmptyVersionErr string

EmptyVersionErr empty version error

func (EmptyVersionErr) Error

func (f EmptyVersionErr) Error() string

type ExistsErr

type ExistsErr string

ExistsErr chaincode exists error

func (ExistsErr) Error

func (t ExistsErr) Error() string

type IdenticalVersionErr

type IdenticalVersionErr string

IdenticalVersionErr trying to upgrade to same version of Chaincode

func (IdenticalVersionErr) Error

func (f IdenticalVersionErr) Error() string

type InstantiationPolicyMissing

type InstantiationPolicyMissing string

InstantiationPolicyMissing when no existing instantiation policy is found when upgrading CC

func (InstantiationPolicyMissing) Error

type InvalidArgsLenErr

type InvalidArgsLenErr int

InvalidArgsLenErr invalid arguments length error

func (InvalidArgsLenErr) Error

func (i InvalidArgsLenErr) Error() string

type InvalidCCOnFSError

type InvalidCCOnFSError string

InvalidCCOnFSError error due to mismatch between fingerprint on lscc and installed CC

func (InvalidCCOnFSError) Error

func (f InvalidCCOnFSError) Error() string

type InvalidChainNameErr

type InvalidChainNameErr string

InvalidChainNameErr invalid chain name error

func (InvalidChainNameErr) Error

func (f InvalidChainNameErr) Error() string

type InvalidChaincodeNameErr

type InvalidChaincodeNameErr string

InvalidChaincodeNameErr invalid chaincode name error

func (InvalidChaincodeNameErr) Error

func (f InvalidChaincodeNameErr) Error() string

type InvalidDeploymentSpecErr

type InvalidDeploymentSpecErr string

InvalidDeploymentSpecErr invalid chaincode deployment spec error

func (InvalidDeploymentSpecErr) Error

func (f InvalidDeploymentSpecErr) Error() string

type InvalidFunctionErr

type InvalidFunctionErr string

InvalidFunctionErr invalid function error

func (InvalidFunctionErr) Error

func (f InvalidFunctionErr) Error() string

type InvalidVersionErr

type InvalidVersionErr string

InvalidVersionErr invalid version error

func (InvalidVersionErr) Error

func (f InvalidVersionErr) Error() string

type MarshallErr

type MarshallErr string

MarshallErr error marshaling/unmarshalling

func (MarshallErr) Error

func (m MarshallErr) Error() string

type NotFoundErr

type NotFoundErr string

NotFoundErr chaincode not registered with LSCC error

func (NotFoundErr) Error

func (t NotFoundErr) Error() string

type Support added in v1.1.0

type Support interface {
	// PutChaincodeToLocalStorage stores the supplied chaincode
	// package to local storage (i.e. the file system)
	PutChaincodeToLocalStorage(ccprovider.CCPackage) error

	// GetChaincodeFromLocalStorage retrieves the chaincode package
	// for the requested chaincode, specified by name and version
	GetChaincodeFromLocalStorage(ccname string, ccversion string) (ccprovider.CCPackage, error)

	// GetChaincodesFromLocalStorage returns an array of all chaincode
	// data that have previously been persisted to local storage
	GetChaincodesFromLocalStorage() (*pb.ChaincodeQueryResponse, error)

	// GetInstantiationPolicy returns the instantiation policy for the
	// supplied chaincode (or the channel's default if none was specified)
	GetInstantiationPolicy(channel string, ccpack ccprovider.CCPackage) ([]byte, error)

	// CheckInstantiationPolicy checks whether the supplied signed proposal
	// complies with the supplied instantiation policy
	CheckInstantiationPolicy(signedProposal *pb.SignedProposal, chainName string, instantiationPolicy []byte) error
}

Support contains functions that LSCC requires to execute its tasks

type TXNotFoundErr

type TXNotFoundErr string

TXNotFoundErr transaction not found error

func (TXNotFoundErr) Error

func (t TXNotFoundErr) Error() string

Jump to

Keyboard shortcuts

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