monasca-api  3.1.0
About: OpenStack Monasca API is a RESTful API server that is designed with a layered architecture and supports Monitoring as a Service (MONaaS).
The "Train" series (maintained release).
  Fossies Dox: monasca-api-3.1.0.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

policy_engine.py File Reference

Go to the source code of this file.

Classes

class  monasca_api.common.policy.policy_engine.IsAdminCheck
 

Namespaces

 monasca_api.common.policy.policy_engine
 

Functions

def monasca_api.common.policy.policy_engine.reset ()
 
def monasca_api.common.policy.policy_engine.init (policy_file=None, rules=None, default_rule=None, use_conf=True)
 
def monasca_api.common.policy.policy_engine._serialize_rules (rules)
 
def monasca_api.common.policy.policy_engine._warning_for_deprecated_user_based_rules (rules)
 
def monasca_api.common.policy.policy_engine.register_rules (enforcer)
 
def monasca_api.common.policy.policy_engine.authorize (context, action, target, do_raise=True)
 
def monasca_api.common.policy.policy_engine.check_is_admin (context)
 
def monasca_api.common.policy.policy_engine.set_rules (rules, overwrite=True, use_conf=False)
 
def monasca_api.common.policy.policy_engine.verify_deprecated_policy (old_policy, new_policy, default_rule, context)
 
def monasca_api.common.policy.policy_engine.get_rules ()
 
def monasca_api.common.policy.policy_engine.get_enforcer ()
 

Variables

 monasca_api.common.policy.policy_engine.CONF = cfg.CONF
 
 monasca_api.common.policy.policy_engine.LOG = logging.getLogger(__name__)
 
 monasca_api.common.policy.policy_engine.POLICIES = None
 
list monasca_api.common.policy.policy_engine.USER_BASED_RESOURCES = ['os-keypairs']
 
 monasca_api.common.policy.policy_engine.KEY_EXPR = re.compile(r'%\((\w+)\)s')
 
 monasca_api.common.policy.policy_engine._ENFORCER = None
 
list monasca_api.common.policy.policy_engine.saved_file_rules = []