keystone.trust.backends package

Submodules

keystone.trust.backends.base module

class keystone.trust.backends.base.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.backends.sql module

class keystone.trust.backends.sql.Trust[source]

Bases: keystone.trust.backends.base.TrustDriverV8

consume_use(*args, **kwargs)[source]
create_trust(*args, **kwargs)[source]
delete_trust(*args, **kwargs)[source]
get_trust(trust_id, deleted=False)[source]
list_trusts(*args, **kwargs)[source]
list_trusts_for_trustee(*args, **kwargs)[source]
list_trusts_for_trustor(*args, **kwargs)[source]
class keystone.trust.backends.sql.TrustModel(*args, **kwargs)[source]

Bases: sqlalchemy.ext.declarative.api.Base, keystone.common.sql.core.DictBase

attributes = ['id', 'trustor_user_id', 'trustee_user_id', 'project_id', 'impersonation', 'expires_at', 'remaining_uses', 'deleted_at']
deleted_at
expires_at
extra
id
impersonation
project_id
remaining_uses
trustee_user_id
trustor_user_id
class keystone.trust.backends.sql.TrustRole(*args, **kwargs)[source]

Bases: sqlalchemy.ext.declarative.api.Base

attributes = ['trust_id', 'role_id']
role_id
trust_id

Module contents

Table Of Contents

Previous topic

keystone.trust package

Next topic

keystone.v2_crud package

Project Source

This Page