keystone.trust.backends package¶
Submodules¶
keystone.trust.backends.base module¶
-
class
keystone.trust.backends.base.
TrustDriverBase
[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: - keystone.exception.TrustUseLimitReached – If no remaining uses for trust.
- keystone.exception.TrustNotFound – If the trust doesn’t exist.
-
delete_trusts_for_project
(project_id)[source]¶ Delete all trusts for a project.
Parameters: project_id – ID of a project to filter trusts by.
-
keystone.trust.backends.sql module¶
-
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
¶
-