hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
shared_model::interface::permissions Namespace Reference

Enumerations

enum  Role {
  Role::kAppendRole, Role::kCreateRole, Role::kDetachRole, Role::kAddAssetQty,
  Role::kSubtractAssetQty, Role::kAddPeer, Role::kAddSignatory, Role::kRemoveSignatory,
  Role::kSetQuorum, Role::kCreateAccount, Role::kSetDetail, Role::kCreateAsset,
  Role::kTransfer, Role::kReceive, Role::kCreateDomain, Role::kReadAssets,
  Role::kGetRoles, Role::kGetMyAccount, Role::kGetAllAccounts, Role::kGetDomainAccounts,
  Role::kGetMySignatories, Role::kGetAllSignatories, Role::kGetDomainSignatories, Role::kGetMyAccAst,
  Role::kGetAllAccAst, Role::kGetDomainAccAst, Role::kGetMyAccDetail, Role::kGetAllAccDetail,
  Role::kGetDomainAccDetail, Role::kGetMyAccTxs, Role::kGetAllAccTxs, Role::kGetDomainAccTxs,
  Role::kGetMyAccAstTxs, Role::kGetAllAccAstTxs, Role::kGetDomainAccAstTxs, Role::kGetMyTxs,
  Role::kGetAllTxs, Role::kSetMyQuorum, Role::kAddMySignatory, Role::kRemoveMySignatory,
  Role::kTransferMyAssets, Role::kSetMyAccountDetail, Role::kGetBlocks, Role::kAddDomainAssetQty,
  Role::kSubtractDomainAssetQty, Role::COUNT
}
 
enum  Grantable {
  Grantable::kAddMySignatory, Grantable::kRemoveMySignatory, Grantable::kSetMyQuorum, Grantable::kSetMyAccountDetail,
  Grantable::kTransferMyAssets, Grantable::COUNT
}
 

Functions

Role permissionFor (Grantable g)
 
bool isValid (Role perm) noexcept
 
bool isValid (Grantable perm) noexcept
 

Enumeration Type Documentation

Enumerator
kAddMySignatory 
kRemoveMySignatory 
kSetMyQuorum 
kSetMyAccountDetail 
kTransferMyAssets 
COUNT 
Enumerator
kAppendRole 
kCreateRole 
kDetachRole 
kAddAssetQty 
kSubtractAssetQty 
kAddPeer 
kAddSignatory 
kRemoveSignatory 
kSetQuorum 
kCreateAccount 
kSetDetail 
kCreateAsset 
kTransfer 
kReceive 
kCreateDomain 
kReadAssets 
kGetRoles 
kGetMyAccount 
kGetAllAccounts 
kGetDomainAccounts 
kGetMySignatories 
kGetAllSignatories 
kGetDomainSignatories 
kGetMyAccAst 
kGetAllAccAst 
kGetDomainAccAst 
kGetMyAccDetail 
kGetAllAccDetail 
kGetDomainAccDetail 
kGetMyAccTxs 
kGetAllAccTxs 
kGetDomainAccTxs 
kGetMyAccAstTxs 
kGetAllAccAstTxs 
kGetDomainAccAstTxs 
kGetMyTxs 
kGetAllTxs 
kSetMyQuorum 
kAddMySignatory 
kRemoveMySignatory 
kTransferMyAssets 
kSetMyAccountDetail 
kGetBlocks 
kAddDomainAssetQty 
kSubtractDomainAssetQty 
COUNT 

Function Documentation

bool shared_model::interface::permissions::isValid ( interface::permissions::Role  perm)
noexcept
Parameters
permprotocol object for checking
Returns
true if valid, false otherwise

Here is the caller graph for this function:

bool shared_model::interface::permissions::isValid ( interface::permissions::Grantable  perm)
noexcept
Parameters
permprotocol object for checking
Returns
true if valid, false otherwise
Role shared_model::interface::permissions::permissionFor ( Grantable  g)

Here is the caller graph for this function: