{"modulePath":"github.com/mcc-github/blockchain","version":"v0.0.0-20190916220231-95b87edfbee2","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package lifecycle\n\n## Constants\n\n```go\nconst (\n\tNamespacesName = \"namespaces\"\n\n\tChaincodeSourcesName = \"chaincode-sources\"\n\n\tChaincodeDefinitionType = \"ChaincodeDefinition\"\n\n\tFriendlyChaincodeDefinitionType = \"Chaincode\"\n\n\tDefaultEndorsementPolicyRef = \"/Channel/Application/Endorsement\"\n)\n```\n\n```go\nconst (\n\tLifecycleNamespace = \"_lifecycle\"\n\n\tInstallChaincodeFuncName = \"InstallChaincode\"\n\n\tQueryInstalledChaincodeFuncName = \"QueryInstalledChaincode\"\n\n\tQueryInstalledChaincodesFuncName = \"QueryInstalledChaincodes\"\n\n\tApproveChaincodeDefinitionForMyOrgFuncName = \"ApproveChaincodeDefinitionForMyOrg\"\n\n\tCheckCommitReadinessFuncName = \"CheckCommitReadiness\"\n\n\tCommitChaincodeDefinitionFuncName = \"CommitChaincodeDefinition\"\n\n\tQueryChaincodeDefinitionFuncName = \"QueryChaincodeDefinition\"\n\n\tQueryChaincodeDefinitionsFuncName = \"QueryChaincodeDefinitions\"\n)\n```\n\n```go\nconst (\n\tMetadataInfix = \"metadata\"\n\tFieldsInfix   = \"fields\"\n)\n```\n\n```go\nconst (\n\tLifecycleEndorsementPolicyRef = \"/Channel/Application/LifecycleEndorsement\"\n)\n```\n\n## Variables\n\n```go\nvar (\n\tChaincodeNameRegExp    = regexp.MustCompile(\"^[a-zA-Z0-9]+([-_][a-zA-Z0-9]+)*$\")\n\tChaincodeVersionRegExp = regexp.MustCompile(\"^[A-Za-z0-9_.+-]+$\")\n)\n```\n\n```go\nvar (\n\tDefaultEndorsementPolicyBytes = protoutil.MarshalOrPanic(\u0026pb.ApplicationPolicy{\n\t\tType: \u0026pb.ApplicationPolicy_ChannelConfigPolicyReference{\n\t\t\tChannelConfigPolicyReference: DefaultEndorsementPolicyRef,\n\t\t},\n\t})\n)\n```\n\n```go\nvar ImplicitCollectionMatcher = regexp.MustCompile(\"^\" + ImplicitCollectionNameForOrg(\"(.+)\") + \"$\")\n```\n\n```go\nvar (\n\tLifecycleDefaultEndorsementPolicyBytes = protoutil.MarshalOrPanic(\u0026pb.ApplicationPolicy{\n\t\tType: \u0026pb.ApplicationPolicy_ChannelConfigPolicyReference{\n\t\t\tChannelConfigPolicyReference: LifecycleEndorsementPolicyRef,\n\t\t},\n\t})\n)\n```\n\n```go\nvar ProtoMessageType = reflect.TypeOf((*proto.Message)(nil)).Elem()\n```\n\n```go\nvar SequenceMatcher = regexp.MustCompile(\"^\" + NamespacesName + \"/fields/([^/]+)/Sequence$\")\n```\n\n## Functions\n\n```go\nfunc FieldKey(namespace, name, field string) string\n```\n\n```go\nfunc GenerateImplicitCollectionForOrg(mspid string) *cb.StaticCollectionConfig\n```\n\n```go\nfunc ImplicitCollectionNameForOrg(mspid string) string\n```\n\n```go\nfunc MetadataKey(namespace, name string) string\n```\n\n```go\nfunc OrgFromImplicitCollectionName(name string) string\n```\n\n```go\nfunc StateIteratorToMap(itr StateIterator) (map[string][]byte, error)\n```\n\n## Types\n\n```go\ntype Cache struct {\n\tResources  *Resources\n\tMyOrgMSPID string\n\n\tMetadataHandler MetadataHandler\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewCache(resources *Resources, myOrgMSPID string, metadataManager MetadataHandler) *Cache\n```\n\n```go\nfunc (c *Cache) ChaincodeInfo(channelID, name string) (*LocalChaincodeInfo, error)\n```\n\n```go\nfunc (c *Cache) GetInstalledChaincode(packageID string) (*chaincode.InstalledChaincode, error)\n```\n\n```go\nfunc (c *Cache) HandleChaincodeInstalled(md *persistence.ChaincodePackageMetadata, packageID string)\n```\n\n```go\nfunc (c *Cache) HandleStateUpdates(trigger *ledger.StateUpdateTrigger) error\n```\n\n```go\nfunc (c *Cache) Initialize(channelID string, qe ledger.SimpleQueryExecutor) error\n```\n\n```go\nfunc (c *Cache) InitializeLocalChaincodes() error\n```\n\n```go\nfunc (c *Cache) InitializeMetadata(channel string)\n```\n\n```go\nfunc (c *Cache) InterestedInNamespaces() []string\n```\n\n```go\nfunc (c *Cache) ListInstalledChaincodes() []*chaincode.InstalledChaincode\n```\n\n```go\nfunc (c *Cache) RegisterListener(channelID string, listener ledger.ChaincodeLifecycleEventListener)\n```\n\n```go\nfunc (c *Cache) StateCommitDone(channelName string)\n```\n\n```go\ntype CachedChaincodeDefinition struct {\n\tDefinition  *ChaincodeDefinition\n\tApproved    bool\n\tInstallInfo *ChaincodeInstallInfo\n\n\tHashes []string\n}\n```\n\n```go\ntype ChaincodeDefinition struct {\n\tSequence        int64\n\tEndorsementInfo *lb.ChaincodeEndorsementInfo\n\tValidationInfo  *lb.ChaincodeValidationInfo\n\tCollections     *cb.CollectionConfigPackage\n}\n```\n\n```go\nfunc (cd *ChaincodeDefinition) Parameters() *ChaincodeParameters\n```\n\n```go\nfunc (cd *ChaincodeDefinition) String() string\n```\n\n```go\ntype ChaincodeEndorsementInfo struct {\n\tResources   *Resources\n\tCache       ChaincodeInfoCache\n\tLegacyImpl  LegacyLifecycle\n\tBuiltinSCCs scc.BuiltinSCCs\n}\n```\n\n```go\nfunc (cei *ChaincodeEndorsementInfo) CachedChaincodeInfo(channelID, chaincodeName string, qe ledger.SimpleQueryExecutor) (*LocalChaincodeInfo, bool, error)\n```\n\n```go\nfunc (cei *ChaincodeEndorsementInfo) ChaincodeDefinition(channelID, chaincodeName string, qe ledger.SimpleQueryExecutor) (ccprovider.ChaincodeDefinition, error)\n```\n\n```go\ntype ChaincodeEndorsementInfoSource struct {\n\tResources   *Resources\n\tCache       ChaincodeInfoCache\n\tLegacyImpl  Lifecycle\n\tBuiltinSCCs scc.BuiltinSCCs\n}\n```\n\n```go\nfunc (cei *ChaincodeEndorsementInfoSource) CachedChaincodeInfo(channelID, chaincodeName string, qe ledger.SimpleQueryExecutor) (*LocalChaincodeInfo, bool, error)\n```\n\n```go\nfunc (cei *ChaincodeEndorsementInfoSource) ChaincodeEndorsementInfo(channelID, chaincodeName string, qe ledger.SimpleQueryExecutor) (*ChaincodeEndorsementInfo, error)\n```\n\n```go\ntype ChaincodeInfoCache interface {\n\tChaincodeInfo(channelID, chaincodeName string) (definition *LocalChaincodeInfo, err error)\n}\n```\n\n```go\ntype ChaincodeInfoProvider interface {\n\tChaincodeInfo(channelID, name string) (*LocalChaincodeInfo, error)\n}\n```\n\n```go\ntype ChaincodeInstallInfo struct {\n\tPackageID string\n\tType      string\n\tPath      string\n\tLabel     string\n}\n```\n\n```go\ntype ChaincodeLocalPackage struct {\n\tPackageID string\n}\n```\n\n```go\ntype ChaincodeParameters struct {\n\tEndorsementInfo *lb.ChaincodeEndorsementInfo\n\tValidationInfo  *lb.ChaincodeValidationInfo\n\tCollections     *cb.CollectionConfigPackage\n}\n```\n\n```go\nfunc (cp *ChaincodeParameters) Equal(ocp *ChaincodeParameters) error\n```\n\n```go\ntype ChaincodePrivateLedgerShim struct {\n\tStub       shim.ChaincodeStubInterface\n\tCollection string\n}\n```\n\n```go\nfunc (cls *ChaincodePrivateLedgerShim) CollectionName() string\n```\n\n```go\nfunc (cls *ChaincodePrivateLedgerShim) DelState(key string) error\n```\n\n```go\nfunc (cls *ChaincodePrivateLedgerShim) GetState(key string) ([]byte, error)\n```\n\n```go\nfunc (cls *ChaincodePrivateLedgerShim) GetStateHash(key string) ([]byte, error)\n```\n\n```go\nfunc (cls *ChaincodePrivateLedgerShim) GetStateRange(prefix string) (map[string][]byte, error)\n```\n\n```go\nfunc (cls *ChaincodePrivateLedgerShim) PutState(key string, value []byte) error\n```\n\n```go\ntype ChaincodePublicLedgerShim struct {\n\tshim.ChaincodeStubInterface\n}\n```\n\n```go\nfunc (cls *ChaincodePublicLedgerShim) GetStateRange(prefix string) (map[string][]byte, error)\n```\n\n```go\ntype ChaincodeResultIteratorShim struct {\n\tResultsIterator shim.StateQueryIteratorInterface\n}\n```\n\n```go\nfunc (cris *ChaincodeResultIteratorShim) Close() error\n```\n\n```go\nfunc (cris *ChaincodeResultIteratorShim) Next() (*queryresult.KV, error)\n```\n\n```go\ntype ChaincodeStore interface {\n\tSave(label string, ccInstallPkg []byte) (string, error)\n\tListInstalledChaincodes() ([]chaincode.InstalledChaincode, error)\n\tLoad(packageID string) (ccInstallPkg []byte, err error)\n}\n```\n\n```go\ntype ChannelCache struct {\n\tChaincodes map[string]*CachedChaincodeDefinition\n\n\tInterestingHashes map[string]string\n}\n```\n\n```go\ntype ChannelConfigSource interface {\n\tGetStableChannelConfig(channelID string) channelconfig.Resources\n}\n```\n\n```go\ntype ChannelPolicyReferenceProvider interface {\n\tNewPolicy(channelID, channelConfigPolicyReference string) (policies.Policy, error)\n}\n```\n\n```go\ntype DummyQueryExecutorShim struct {\n}\n```\n\n```go\nfunc (*DummyQueryExecutorShim) GetState(key string) ([]byte, error)\n```\n\n```go\ntype ErrNamespaceNotDefined struct {\n\tNamespace string\n}\n```\n\n```go\nfunc (e ErrNamespaceNotDefined) Error() string\n```\n\n```go\ntype EventBroker struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewEventBroker(chaincodeStore ChaincodeStore, pkgParser PackageParser) *EventBroker\n```\n\n```go\nfunc (b *EventBroker) ApproveOrDefineCommitted(channelID string)\n```\n\n```go\nfunc (b *EventBroker) ProcessApproveOrDefineEvent(channelID string, chaincodeName string, cachedChaincode *CachedChaincodeDefinition)\n```\n\n```go\nfunc (b *EventBroker) ProcessInstallEvent(localChaincode *LocalChaincode)\n```\n\n```go\nfunc (b *EventBroker) RegisterListener(channelID string, listener ledger.ChaincodeLifecycleEventListener)\n```\n\n```go\ntype ExternalFunctions struct {\n\tResources                 *Resources\n\tInstallListener           InstallListener\n\tInstalledChaincodesLister InstalledChaincodesLister\n}\n```\n\n```go\nfunc (ef *ExternalFunctions) ApproveChaincodeDefinitionForOrg(chname, ccname string, cd *ChaincodeDefinition, packageID string, publicState ReadableState, orgState ReadWritableState) error\n```\n\n```go\nfunc (ef *ExternalFunctions) CheckCommitReadiness(chname, ccname string, cd *ChaincodeDefinition, publicState ReadWritableState, orgStates []OpaqueState) (map[string]bool, error)\n```\n\n```go\nfunc (ef *ExternalFunctions) CommitChaincodeDefinition(chname, ccname string, cd *ChaincodeDefinition, publicState ReadWritableState, orgStates []OpaqueState) (map[string]bool, error)\n```\n\n```go\nfunc (ef *ExternalFunctions) DefaultEndorsementPolicyAsBytes(channelID string) ([]byte, error)\n```\n\n```go\nfunc (ef *ExternalFunctions) GetInstalledChaincodePackage(packageID string) ([]byte, error)\n```\n\n```go\nfunc (ef *ExternalFunctions) InstallChaincode(chaincodeInstallPackage []byte) (*chaincode.InstalledChaincode, error)\n```\n\n```go\nfunc (ef *ExternalFunctions) QueryChaincodeDefinition(name string, publicState ReadableState) (*ChaincodeDefinition, error)\n```\n\n```go\nfunc (ef *ExternalFunctions) QueryInstalledChaincode(packageID string) (*chaincode.InstalledChaincode, error)\n```\n\n```go\nfunc (ef *ExternalFunctions) QueryInstalledChaincodes() []*chaincode.InstalledChaincode\n```\n\n```go\nfunc (ef *ExternalFunctions) QueryNamespaceDefinitions(publicState RangeableState) (map[string]string, error)\n```\n\n```go\nfunc (ef *ExternalFunctions) QueryOrgApprovals(name string, cd *ChaincodeDefinition, orgStates []OpaqueState) (map[string]bool, error)\n```\n\n```go\nfunc (ef *ExternalFunctions) SetChaincodeDefinitionDefaults(chname string, cd *ChaincodeDefinition) error\n```\n\n```go\ntype HandleMetadataUpdateFunc func(channel string, metadata chaincode.MetadataSet)\n```\n\n```go\nfunc (handleMetadataUpdate HandleMetadataUpdateFunc) HandleMetadataUpdate(channel string, metadata chaincode.MetadataSet)\n```\n\n```go\ntype InstallListener interface {\n\tHandleChaincodeInstalled(md *persistence.ChaincodePackageMetadata, packageID string)\n}\n```\n\n```go\ntype InstalledChaincodesLister interface {\n\tListInstalledChaincodes() []*chaincode.InstalledChaincode\n\tGetInstalledChaincode(packageID string) (*chaincode.InstalledChaincode, error)\n}\n```\n\n```go\ntype Invocation struct {\n\tChannelID         string\n\tApplicationConfig channelconfig.Application\n\tStub              shim.ChaincodeStubInterface\n\tSCC               *SCC\n}\n```\n\n```go\nfunc (i *Invocation) ApproveChaincodeDefinitionForMyOrg(input *lb.ApproveChaincodeDefinitionForMyOrgArgs) (proto.Message, error)\n```\n\n```go\nfunc (i *Invocation) CheckCommitReadiness(input *lb.CheckCommitReadinessArgs) (proto.Message, error)\n```\n\n```go\nfunc (i *Invocation) CommitChaincodeDefinition(input *lb.CommitChaincodeDefinitionArgs) (proto.Message, error)\n```\n\n```go\nfunc (i *Invocation) GetInstalledChaincodePackage(input *lb.GetInstalledChaincodePackageArgs) (proto.Message, error)\n```\n\n```go\nfunc (i *Invocation) InstallChaincode(input *lb.InstallChaincodeArgs) (proto.Message, error)\n```\n\n```go\nfunc (i *Invocation) QueryChaincodeDefinition(input *lb.QueryChaincodeDefinitionArgs) (proto.Message, error)\n```\n\n```go\nfunc (i *Invocation) QueryChaincodeDefinitions(input *lb.QueryChaincodeDefinitionsArgs) (proto.Message, error)\n```\n\n```go\nfunc (i *Invocation) QueryInstalledChaincode(input *lb.QueryInstalledChaincodeArgs) (proto.Message, error)\n```\n\n```go\nfunc (i *Invocation) QueryInstalledChaincodes(input *lb.QueryInstalledChaincodesArgs) (proto.Message, error)\n```\n\n```go\ntype LegacyDefinition struct {\n\tVersion           string\n\tEndorsementPlugin string\n\tRequiresInitField bool\n\tChaincodeIDField  string\n}\n```\n\n```go\nfunc (ld *LegacyDefinition) CCVersion() string\n```\n\n```go\nfunc (ld *LegacyDefinition) ChaincodeID() string\n```\n\n```go\nfunc (ld *LegacyDefinition) Endorsement() string\n```\n\n```go\nfunc (ld *LegacyDefinition) RequiresInit() bool\n```\n\n```go\ntype LegacyDeployedCCInfoProvider interface {\n\tledger.DeployedChaincodeInfoProvider\n}\n```\n\n```go\ntype LegacyLifecycle interface {\n\tChaincodeDefinition(channelID, chaincodeName string, qe ledger.SimpleQueryExecutor) (ccprovider.ChaincodeDefinition, error)\n}\n```\n\n```go\ntype LegacyMetadataProvider interface {\n\tMetadata(channel string, cc string, includeCollections bool) *chaincode.Metadata\n}\n```\n\n```go\ntype Lifecycle interface {\n\tChaincodeEndorsementInfo(channelID, chaincodeName string, qe ledger.SimpleQueryExecutor) (*ChaincodeEndorsementInfo, error)\n}\n```\n\n```go\ntype LocalChaincode struct {\n\tInfo       *ChaincodeInstallInfo\n\tReferences map[string]map[string]*CachedChaincodeDefinition\n}\n```\n\n```go\nfunc (l *LocalChaincode) ToInstalledChaincode() *chaincode.InstalledChaincode\n```\n\n```go\ntype LocalChaincodeInfo struct {\n\tDefinition  *ChaincodeDefinition\n\tApproved    bool\n\tInstallInfo *ChaincodeInstallInfo\n}\n```\n\n```go\ntype Marshaler func(proto.Message) ([]byte, error)\n```\n\n```go\nfunc (m Marshaler) Marshal(msg proto.Message) ([]byte, error)\n```\n\n```go\ntype MetadataHandler interface {\n\tInitializeMetadata(channel string, chaincodes chaincode.MetadataSet)\n\tUpdateMetadata(channel string, chaincodes chaincode.MetadataSet)\n}\n```\n\n```go\ntype MetadataManager struct {\n\tLegacyMetadataSet map[string]chaincode.MetadataSet\n\tMetadataSet       map[string]chaincode.MetadataSet\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewMetadataManager() *MetadataManager\n```\n\n```go\nfunc (m *MetadataManager) AddListener(listener MetadataUpdateListener)\n```\n\n```go\nfunc (m *MetadataManager) HandleMetadataUpdate(channel string, metadata chaincode.MetadataSet)\n```\n\n```go\nfunc (m *MetadataManager) InitializeMetadata(channel string, metadata chaincode.MetadataSet)\n```\n\n```go\nfunc (m *MetadataManager) UpdateMetadata(channel string, metadata chaincode.MetadataSet)\n```\n\n```go\ntype MetadataProvider struct {\n\tChaincodeInfoProvider          ChaincodeInfoProvider\n\tLegacyMetadataProvider         LegacyMetadataProvider\n\tChannelPolicyReferenceProvider ChannelPolicyReferenceProvider\n}\n```\n\n```go\nfunc NewMetadataProvider(cip ChaincodeInfoProvider, lmp LegacyMetadataProvider, ccs ChannelConfigSource) *MetadataProvider\n```\n\n```go\nfunc (mp *MetadataProvider) Metadata(channel string, ccName string, includeCollections bool) *chaincode.Metadata\n```\n\n```go\ntype MetadataUpdateListener interface {\n\tHandleMetadataUpdate(channel string, metadata chaincode.MetadataSet)\n}\n```\n\n```go\ntype OpaqueState interface {\n\tGetStateHash(key string) (value []byte, err error)\n\tCollectionName() string\n}\n```\n\n```go\ntype PackageParser interface {\n\tParse(data []byte) (*persistence.ChaincodePackage, error)\n}\n```\n\n```go\ntype PrivateQueryExecutor interface {\n\tGetPrivateDataHash(namespace, collection, key string) (value []byte, err error)\n}\n```\n\n```go\ntype PrivateQueryExecutorShim struct {\n\tNamespace  string\n\tCollection string\n\tState      PrivateQueryExecutor\n}\n```\n\n```go\nfunc (pqes *PrivateQueryExecutorShim) CollectionName() string\n```\n\n```go\nfunc (pqes *PrivateQueryExecutorShim) GetStateHash(key string) ([]byte, error)\n```\n\n```go\ntype Protobuf interface {\n\tMarshal(msg proto.Message) (marshaled []byte, err error)\n\tUnmarshal(marshaled []byte, msg proto.Message) error\n}\n```\n\n```go\ntype ProtobufImpl struct{}\n```\n\n```go\nfunc (p ProtobufImpl) Marshal(msg proto.Message) ([]byte, error)\n```\n\n```go\nfunc (p ProtobufImpl) Unmarshal(marshaled []byte, msg proto.Message) error\n```\n\n```go\ntype QueryExecutorProvider interface {\n\tTxQueryExecutor(channelID, txID string) ledger.SimpleQueryExecutor\n}\n```\n\n```go\ntype RangeableState interface {\n\tGetStateRange(prefix string) (map[string][]byte, error)\n}\n```\n\n```go\ntype ReadWritableState interface {\n\tReadableState\n\tPutState(key string, value []byte) error\n\tDelState(key string) error\n}\n```\n\n```go\ntype ReadableState interface {\n\tGetState(key string) (value []byte, err error)\n}\n```\n\n```go\ntype Resources struct {\n\tChannelConfigSource ChannelConfigSource\n\tChaincodeStore      ChaincodeStore\n\tPackageParser       PackageParser\n\tSerializer          *Serializer\n}\n```\n\n```go\nfunc (r *Resources) ChaincodeDefinitionIfDefined(chaincodeName string, state ReadableState) (bool, *ChaincodeDefinition, error)\n```\n\n```go\ntype ResultsIteratorShim struct {\n\tResultsIterator commonledger.ResultsIterator\n}\n```\n\n```go\nfunc (ris *ResultsIteratorShim) Close() error\n```\n\n```go\nfunc (ris *ResultsIteratorShim) Next() (*queryresult.KV, error)\n```\n\n```go\ntype SCC struct {\n\tOrgMSPID string\n\n\tACLProvider aclmgmt.ACLProvider\n\n\tChannelConfigSource ChannelConfigSource\n\n\tDeployedCCInfoProvider ledger.DeployedChaincodeInfoProvider\n\tQueryExecutorProvider  QueryExecutorProvider\n\n\tFunctions SCCFunctions\n\n\tDispatcher *dispatcher.Dispatcher\n}\n```\n\n```go\nfunc (scc *SCC) Chaincode() shim.Chaincode\n```\n\n```go\nfunc (scc *SCC) Init(stub shim.ChaincodeStubInterface) pb.Response\n```\n\n```go\nfunc (scc *SCC) Invoke(stub shim.ChaincodeStubInterface) pb.Response\n```\n\n```go\nfunc (scc *SCC) Name() string\n```\n\n```go\ntype SCCFunctions interface {\n\tInstallChaincode([]byte) (*chaincode.InstalledChaincode, error)\n\n\tQueryInstalledChaincode(packageID string) (*chaincode.InstalledChaincode, error)\n\n\tGetInstalledChaincodePackage(packageID string) ([]byte, error)\n\n\tQueryInstalledChaincodes() []*chaincode.InstalledChaincode\n\n\tApproveChaincodeDefinitionForOrg(chname, ccname string, cd *ChaincodeDefinition, packageID string, publicState ReadableState, orgState ReadWritableState) error\n\n\tCheckCommitReadiness(chname, ccname string, cd *ChaincodeDefinition, publicState ReadWritableState, orgStates []OpaqueState) (map[string]bool, error)\n\n\tCommitChaincodeDefinition(chname, ccname string, cd *ChaincodeDefinition, publicState ReadWritableState, orgStates []OpaqueState) (map[string]bool, error)\n\n\tQueryChaincodeDefinition(name string, publicState ReadableState) (*ChaincodeDefinition, error)\n\n\tQueryOrgApprovals(name string, cd *ChaincodeDefinition, orgStates []OpaqueState) (map[string]bool, error)\n\n\tQueryNamespaceDefinitions(publicState RangeableState) (map[string]string, error)\n}\n```\n\n```go\ntype Serializer struct {\n\tMarshaler Marshaler\n}\n```\n\n```go\nfunc (s *Serializer) Deserialize(namespace, name string, metadata *lb.StateMetadata, structure interface{}, state ReadableState) error\n```\n\n```go\nfunc (s *Serializer) DeserializeAllMetadata(namespace string, state RangeableState) (map[string]*lb.StateMetadata, error)\n```\n\n```go\nfunc (s *Serializer) DeserializeField(namespace, name, field string, state ReadableState) (*lb.StateData, error)\n```\n\n```go\nfunc (s *Serializer) DeserializeFieldAsBytes(namespace, name, field string, state ReadableState) ([]byte, error)\n```\n\n```go\nfunc (s *Serializer) DeserializeFieldAsInt64(namespace, name, field string, state ReadableState) (int64, error)\n```\n\n```go\nfunc (s *Serializer) DeserializeFieldAsProto(namespace, name, field string, state ReadableState, msg proto.Message) error\n```\n\n```go\nfunc (s *Serializer) DeserializeFieldAsString(namespace, name, field string, state ReadableState) (string, error)\n```\n\n```go\nfunc (s *Serializer) DeserializeMetadata(namespace, name string, state ReadableState) (*lb.StateMetadata, bool, error)\n```\n\n```go\nfunc (s *Serializer) IsMetadataSerialized(namespace, name string, structure interface{}, state OpaqueState) (bool, error)\n```\n\n```go\nfunc (s *Serializer) IsSerialized(namespace, name string, structure interface{}, state OpaqueState) (bool, error)\n```\n\n```go\nfunc (s *Serializer) SerializableChecks(structure interface{}) (reflect.Value, []string, error)\n```\n\n```go\nfunc (s *Serializer) Serialize(namespace, name string, structure interface{}, state ReadWritableState) error\n```\n\n```go\ntype SimpleQueryExecutorShim struct {\n\tNamespace           string\n\tSimpleQueryExecutor ledger.SimpleQueryExecutor\n}\n```\n\n```go\nfunc (sqes *SimpleQueryExecutorShim) GetState(key string) ([]byte, error)\n```\n\n```go\nfunc (sqes *SimpleQueryExecutorShim) GetStateRange(prefix string) (map[string][]byte, error)\n```\n\n```go\ntype StateIterator interface {\n\tClose() error\n\tNext() (*queryresult.KV, error)\n}\n```\n\n```go\ntype ValidatorCommitter struct {\n\tResources                    *Resources\n\tLegacyDeployedCCInfoProvider LegacyDeployedCCInfoProvider\n}\n```\n\n```go\nfunc (vc *ValidatorCommitter) ChaincodeImplicitCollections(channelName string) ([]*cb.StaticCollectionConfig, error)\n```\n\n```go\nfunc (vc *ValidatorCommitter) ChaincodeInfo(channelName, chaincodeName string, qe ledger.SimpleQueryExecutor) (*ledger.DeployedChaincodeInfo, error)\n```\n\n```go\nfunc (vc *ValidatorCommitter) CollectionInfo(channelName, chaincodeName, collectionName string, qe ledger.SimpleQueryExecutor) (*cb.StaticCollectionConfig, error)\n```\n\n```go\nfunc (vc *ValidatorCommitter) CollectionValidationInfo(channelID, chaincodeName, collectionName string, state validationState.State) (args []byte, unexpectedErr, validationErr error)\n```\n\n```go\nfunc (vc *ValidatorCommitter) ImplicitCollectionEndorsementPolicyAsBytes(channelID, orgMSPID string) (policy []byte, unexpectedErr, validationErr error)\n```\n\n```go\nfunc (vc *ValidatorCommitter) ImplicitCollections(channelName, chaincodeName string, qe ledger.SimpleQueryExecutor) ([]*cb.StaticCollectionConfig, error)\n```\n\n```go\nfunc (vc *ValidatorCommitter) LifecycleEndorsementPolicyAsBytes(channelID string) ([]byte, error)\n```\n\n```go\nfunc (vc *ValidatorCommitter) Namespaces() []string\n```\n\n```go\nfunc (vc *ValidatorCommitter) UpdatedChaincodes(stateUpdates map[string][]*kvrwset.KVWrite) ([]*ledger.ChaincodeLifecycleInfo, error)\n```\n\n```go\nfunc (vc *ValidatorCommitter) ValidationInfo(channelID, chaincodeName string, qe ledger.SimpleQueryExecutor) (plugin string, args []byte, unexpectedErr error, validationErr error)\n```\n\n```go\ntype ValidatorStateShim struct {\n\tValidatorState validatorstate.State\n\tNamespace      string\n}\n```\n\n```go\nfunc (vss *ValidatorStateShim) GetState(key string) ([]byte, error)\n```\n\n","path":"github.com/mcc-github/blockchain/core/chaincode/lifecycle","name":"lifecycle","synopsis":"","isRedistributable":true}
