keystone.trust.backends.base module

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:
create_trust(trust_id, trust, roles)[source]

Create a new trust.

Returns:a new trust
delete_trust(trust_id)[source]
delete_trusts_for_project(project_id)[source]

Delete all trusts for a project.

Parameters:project_id – ID of a project to filter trusts by.
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]
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.