github.com/osdi23p228/fabric@v0.0.0-20221218062954-77808885f5db/core/aclmgmt/resources/resources.go (about)

     1  /*
     2  Copyright IBM Corp. 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  	//Lscc resources
    27  	Lscc_Install                   = "lscc/Install"
    28  	Lscc_Deploy                    = "lscc/Deploy"
    29  	Lscc_Upgrade                   = "lscc/Upgrade"
    30  	Lscc_ChaincodeExists           = "lscc/ChaincodeExists"
    31  	Lscc_GetDeploymentSpec         = "lscc/GetDeploymentSpec"
    32  	Lscc_GetChaincodeData          = "lscc/GetChaincodeData"
    33  	Lscc_GetInstantiatedChaincodes = "lscc/GetInstantiatedChaincodes"
    34  	Lscc_GetInstalledChaincodes    = "lscc/GetInstalledChaincodes"
    35  	Lscc_GetCollectionsConfig      = "lscc/GetCollectionsConfig"
    36  
    37  	//Qscc resources
    38  	Qscc_GetChainInfo       = "qscc/GetChainInfo"
    39  	Qscc_GetBlockByNumber   = "qscc/GetBlockByNumber"
    40  	Qscc_GetBlockByHash     = "qscc/GetBlockByHash"
    41  	Qscc_GetTransactionByID = "qscc/GetTransactionByID"
    42  	Qscc_GetBlockByTxID     = "qscc/GetBlockByTxID"
    43  
    44  	//Cscc resources
    45  	Cscc_JoinChain      = "cscc/JoinChain"
    46  	Cscc_GetConfigBlock = "cscc/GetConfigBlock"
    47  	Cscc_GetChannels    = "cscc/GetChannels"
    48  
    49  	//Peer resources
    50  	Peer_Propose              = "peer/Propose"
    51  	Peer_ChaincodeToChaincode = "peer/ChaincodeToChaincode"
    52  
    53  	//Events
    54  	Event_Block         = "event/Block"
    55  	Event_FilteredBlock = "event/FilteredBlock"
    56  )