Documentation ¶
Index ¶
- Constants
- type AlreadyRegisteredErr
- type EmptyVersionErr
- type ExistsErr
- type IdenticalVersionErr
- type InvalidArgsErr
- type InvalidArgsLenErr
- type InvalidChainNameErr
- type InvalidChaincodeNameErr
- type InvalidDeploymentSpecErr
- type InvalidFunctionErr
- type InvalidVersionErr
- type LifeCycleSysCC
- type MarshallErr
- type NotFoundErr
- type TXExistsErr
- type TXNotFoundErr
Constants ¶
const ( //CHAINCODETABLE prefix for chaincode tables CHAINCODETABLE = "chaincodes" //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 ¶
This section is empty.
Types ¶
type AlreadyRegisteredErr ¶
type AlreadyRegisteredErr string
AlreadyRegisteredErr Already registered error
func (AlreadyRegisteredErr) Error ¶
func (f AlreadyRegisteredErr) Error() string
type EmptyVersionErr ¶
type EmptyVersionErr string
EmptyVersionErr trying to upgrade to same version of Chaincode
func (EmptyVersionErr) Error ¶
func (f EmptyVersionErr) 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 InvalidArgsErr ¶
type InvalidArgsErr int
InvalidArgsErr invalid arguments error
func (InvalidArgsErr) Error ¶
func (i InvalidArgsErr) Error() string
type InvalidArgsLenErr ¶
type InvalidArgsLenErr int
InvalidArgsLenErr invalid arguments length error
func (InvalidArgsLenErr) Error ¶
func (i InvalidArgsLenErr) 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 invalide 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 trying to upgrade to same version of Chaincode
func (InvalidVersionErr) Error ¶
func (f InvalidVersionErr) Error() string
type LifeCycleSysCC ¶
type LifeCycleSysCC struct {
// contains filtered or unexported fields
}
LifeCycleSysCC implements chaincode lifecycle and policies aroud it
func (*LifeCycleSysCC) Init ¶
func (lccc *LifeCycleSysCC) Init(stub shim.ChaincodeStubInterface) pb.Response
Init only initializes the system chaincode provider
func (*LifeCycleSysCC) Invoke ¶
func (lccc *LifeCycleSysCC) Invoke(stub shim.ChaincodeStubInterface) pb.Response
Invoke implements lifecycle functions "deploy", "start", "stop", "upgrade". Deploy's arguments - {[]byte("deploy"), []byte(<chainname>), <unmarshalled pb.ChaincodeDeploymentSpec>}
Invoke also implements some query-like functions Get chaincode arguments - {[]byte("getid"), []byte(<chainname>), []byte(<chaincodename>)}
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 LCCC error
func (NotFoundErr) Error ¶
func (t NotFoundErr) Error() string
type TXExistsErr ¶
type TXExistsErr string
TXExistsErr transaction exists error
func (TXExistsErr) Error ¶
func (t TXExistsErr) Error() string
type TXNotFoundErr ¶
type TXNotFoundErr string
TXNotFoundErr transaction not found error
func (TXNotFoundErr) Error ¶
func (t TXNotFoundErr) Error() string