karbor.policy
Module¶Policy Engine For karbor
karbor.policy.
check_is_admin
(roles, context=None)¶Whether or not user is admin according to policy setting.
karbor.policy.
enforce
(context, action, target)¶Verifies that the action is valid on the target in this context.
Parameters: |
|
---|---|
Raises: | PolicyNotAuthorized – if verification fails. |
karbor.policy.
enforce_action
(context, action)¶Checks that the action can be done by the given context.
Applies a check to ensure the context’s project_id and user_id can be applied to the given action using the policy enforcement api.
karbor.policy.
init
()¶Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.