policy Package

policy Package

controllers Module

class keystone.policy.controllers.PolicyV3(*args, **kwargs)[source]

Bases: keystone.common.controller.V3Controller

collection_name = 'policies'
create_policy(context, *args, **kwargs)[source]
delete_policy(context, *args, **kwargs)[source]
get_policy(context, *args, **kwargs)[source]
list_policies(context, **kwargs)[source]
member_name = 'policy'
update_policy(context, *args, **kwargs)[source]

core Module

Main entry point into the Policy service.

class keystone.policy.core.Driver[source]

Bases: object

create_policy(policy_id, policy)[source]

Store a policy blob.

Raises :keystone.exception.Conflict
delete_policy(policy_id)[source]

Remove a policy blob.

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

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)[source]

Retrieve a specific policy blob.

Raises :keystone.exception.PolicyNotFound
list_policies()[source]

List all policies.

update_policy(policy_id, policy)[source]

Update a policy blob.

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

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.

create_policy(*args, **kwargs)[source]

Send a notification if the wrapped callable is successful.

delete_policy(*args, **kwargs)[source]

Send a notification if the wrapped callable is successful.

get_policy(policy_id)[source]
list_policies(*args, **kwargs)[source]
update_policy(*args, **kwargs)[source]

Send a notification if the wrapped callable is successful.

routers Module

class keystone.policy.routers.Routers[source]

Bases: keystone.common.wsgi.RoutersBase

append_v3_routers(mapper, routers)[source]

schema Module

Table Of Contents

Previous topic

config Package

Next topic

backends Package

This Page