trust Package

trust Package

controllers Module

class keystone.trust.controllers.TrustV3(*args, **kwargs)[source]

Bases: keystone.common.controller.V3Controller

classmethod base_url(context, path=None)[source]

Construct a path and pass it to V3Controller.base_url method.

check_role_for_trust(*args, **kwargs)[source]
collection_name = 'trusts'
create_trust(context, *args, **kwargs)[source]

Create a new trust.

The user creating the trust must be the trustor.

delete_trust(context, *args, **kwargs)[source]
get_role_for_trust(context, *args, **kwargs)[source]

Get a role that has been assigned to a trust.

get_trust(context, trust_id)[source]
list_roles_for_trust(context, *args, **kwargs)[source]
list_trusts(context, *args, **kwargs)[source]
member_name = 'trust'

core Module

Main entry point into the Trust service.

class keystone.trust.core.Driver[source]

Bases: object

consume_use(trust_id)[source]

Consume one use when a trust was created with a limitation on its uses, provided there are still uses available.

Raises :keystone.exception.TrustUseLimitReached, keystone.exception.TrustNotFound
create_trust(trust_id, trust, roles)[source]

Create a new trust.

Returns:a new trust
delete_trust(trust_id)[source]
get_trust(trust_id, deleted=False)[source]

Get a trust by the trust id.

Parameters:
  • trust_id (string) – the trust identifier
  • deleted (bool) – return the trust even if it is deleted, expired, or has no consumptions left
list_trusts()[source]
list_trusts_for_trustee(trustee)[source]
list_trusts_for_trustor(trustor)[source]
class keystone.trust.core.Manager(*args, **kwargs)[source]

Bases: keystone.common.manager.Manager

Default pivot point for the Trust backend.

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

create_trust(trust_id, trust, roles, redelegated_trust=None, initiator=None)[source]

Create a new trust.

Returns:a new trust
delete_trust(trust_id, initiator=None)[source]

Remove a trust.

Raises :keystone.exception.TrustNotFound

Recursively remove given and redelegated trusts

driver_namespace = 'keystone.trust'
get_trust(trust_id, deleted=False)[source]
get_trust_pedigree(trust_id)[source]

routers Module

WSGI Routers for the Trust service.

class keystone.trust.routers.Routers[source]

Bases: keystone.common.wsgi.RoutersBase

append_v3_routers(mapper, routers)[source]

schema Module

Table Of Contents

This Page