keystone.trust package

Submodules

keystone.trust.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.

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'

keystone.trust.core module

Main entry point into the Trust service.

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(*args, **kwargs)[source]

Create a new trust.

Returns:a new trust
delete_trust(*args, **kwargs)[source]

Remove a trust.

Raises keystone.exception.TrustNotFound:
 If the trust doesn’t exist.

Recursively remove given and redelegated trusts

driver_namespace = 'keystone.trust'
get_trust(*args, **kwargs)[source]
get_trust_pedigree(*args, **kwargs)[source]
class keystone.trust.core.TrustDriverV8[source]

Bases: object

consume_use(trust_id)[source]

Consume one use of a trust.

One use of a trust is consumed when the trust was created with a limitation on its uses, provided there are still uses available.

Raises:
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]

keystone.trust.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]

keystone.trust.schema module

Module contents