hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
permissions.hpp File Reference
#include <bitset>
#include <functional>
#include <initializer_list>
#include <string>
Include dependency graph for permissions.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  shared_model::interface::PermissionSet< Perm >
 

Namespaces

 shared_model
 
 shared_model::interface
 
 shared_model::interface::permissions
 

Typedefs

using shared_model::interface::RolePermissionSet = PermissionSet< permissions::Role >
 
using shared_model::interface::GrantablePermissionSet = PermissionSet< permissions::Grantable >
 

Enumerations

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

Functions

Role shared_model::interface::permissions::permissionFor (Grantable g)
 
bool shared_model::interface::permissions::isValid (Role perm) noexcept
 
bool shared_model::interface::permissions::isValid (Grantable perm) noexcept