github.com/hechain20/hechain@v0.0.0-20220316014945-b544036ba106/core/aclmgmt/resources/resources.go (about) 1 /* 2 Copyright hechain. All Rights Reserved. 3 4 SPDX-License-Identifier: Apache-2.0 5 */ 6 7 // Package roesources contains resource names used in fabric for ACL checks. 8 // Note that some of the checks such as Lscc_INSTALL are "peer wide" (current 9 // access checks in peer are based on local MSP). These are not currently 10 // covered by resource or default ACLProviders 11 package resources 12 13 const ( 14 // _lifecycle resources 15 Lifecycle_InstallChaincode = "_lifecycle/InstallChaincode" 16 Lifecycle_QueryInstalledChaincode = "_lifecycle/QueryInstalledChaincode" 17 Lifecycle_GetInstalledChaincodePackage = "_lifecycle/GetInstalledChaincodePackage" 18 Lifecycle_QueryInstalledChaincodes = "_lifecycle/QueryInstalledChaincodes" 19 Lifecycle_ApproveChaincodeDefinitionForMyOrg = "_lifecycle/ApproveChaincodeDefinitionForMyOrg" 20 Lifecycle_QueryApprovedChaincodeDefinition = "_lifecycle/QueryApprovedChaincodeDefinition" 21 Lifecycle_CommitChaincodeDefinition = "_lifecycle/CommitChaincodeDefinition" 22 Lifecycle_QueryChaincodeDefinition = "_lifecycle/QueryChaincodeDefinition" 23 Lifecycle_QueryChaincodeDefinitions = "_lifecycle/QueryChaincodeDefinitions" 24 Lifecycle_CheckCommitReadiness = "_lifecycle/CheckCommitReadiness" 25 26 // snapshot resources 27 Snapshot_submitrequest = "snapshot/submitrequest" 28 Snapshot_cancelrequest = "snapshot/cancelrequest" 29 Snapshot_listpending = "snapshot/listpending" 30 31 // Lscc resources 32 Lscc_Install = "lscc/Install" 33 Lscc_Deploy = "lscc/Deploy" 34 Lscc_Upgrade = "lscc/Upgrade" 35 Lscc_ChaincodeExists = "lscc/ChaincodeExists" 36 Lscc_GetDeploymentSpec = "lscc/GetDeploymentSpec" 37 Lscc_GetChaincodeData = "lscc/GetChaincodeData" 38 Lscc_GetInstantiatedChaincodes = "lscc/GetInstantiatedChaincodes" 39 Lscc_GetInstalledChaincodes = "lscc/GetInstalledChaincodes" 40 Lscc_GetCollectionsConfig = "lscc/GetCollectionsConfig" 41 42 // Qscc resources 43 Qscc_GetChainInfo = "qscc/GetChainInfo" 44 Qscc_GetBlockByNumber = "qscc/GetBlockByNumber" 45 Qscc_GetBlockByHash = "qscc/GetBlockByHash" 46 Qscc_GetTransactionByID = "qscc/GetTransactionByID" 47 Qscc_GetBlockByTxID = "qscc/GetBlockByTxID" 48 49 // Cscc resources 50 Cscc_JoinChain = "cscc/JoinChain" 51 Cscc_JoinChainBySnapshot = "cscc/JoinChainBySnapshot" 52 Cscc_JoinBySnapshotStatus = "cscc/JoinBySnapshotStatus" 53 Cscc_GetConfigBlock = "cscc/GetConfigBlock" 54 Cscc_GetChannelConfig = "cscc/GetChannelConfig" 55 Cscc_GetChannels = "cscc/GetChannels" 56 57 // Peer resources 58 Peer_Propose = "peer/Propose" 59 Peer_ChaincodeToChaincode = "peer/ChaincodeToChaincode" 60 61 // Events 62 Event_Block = "event/Block" 63 Event_FilteredBlock = "event/FilteredBlock" 64 65 // Gateway resources 66 Gateway_CommitStatus = "gateway/CommitStatus" 67 Gateway_ChaincodeEvents = "gateway/ChaincodeEvents" 68 )