The keystone.policy.core Module

Main entry point into the Policy service.

class keystone.policy.core.Driver

Bases: object

create_policy(policy_id, policy)

Store a policy blob.

Raises :keystone.exception.Conflict
delete_policy(policy_id)

Remove a policy blob.

Raises :keystone.exception.PolicyNotFound
enforce(context, credentials, action, target)

Verify that a user is authorized to perform action.

For more information on a full implementation of this see: keystone.common.policy.enforce.

get_policy(policy_id)

Retrieve a specific policy blob.

Raises :keystone.exception.PolicyNotFound
list_policies()

List all policies.

update_policy(policy_id, policy)

Update a policy blob.

Raises :keystone.exception.PolicyNotFound
class keystone.policy.core.Manager(*args, **kwargs)

Bases: keystone.common.manager.Manager

Default pivot point for the Policy backend.

See keystone.common.manager.Manager for more details on how this dynamically calls the backend.

delete_policy(context, policy_id)
get_policy(context, policy_id)
update_policy(context, policy_id, policy)

Previous topic

The keystone.policy.controllers Module

Next topic

The keystone.policy.routers Module

This Page