keystone.credential package¶
Subpackages¶
Submodules¶
keystone.credential.controllers module¶
-
class
keystone.credential.controllers.
CredentialV3
[source]¶ Bases:
keystone.common.controller.V3Controller
-
collection_name
= 'credentials'¶
-
member_name
= 'credential'¶
-
keystone.credential.core module¶
Main entry point into the Credential service.
-
class
keystone.credential.core.
CredentialDriverV8
[source]¶ Bases:
object
-
create_credential
(credential_id, credential)¶ Creates a new credential.
Raises keystone.exception.Conflict: If a duplicate credential exists.
-
delete_credential
(credential_id)¶ Deletes an existing credential.
Raises keystone.exception.CredentialNotFound: If credential doesn’t exist.
-
delete_credentials_for_project
(project_id)¶ Deletes all credentials for a project.
-
delete_credentials_for_user
(user_id)¶ Deletes all credentials for a user.
-
get_credential
(credential_id)¶ Get a credential by ID.
Returns: credential_ref Raises keystone.exception.CredentialNotFound: If credential doesn’t exist.
-
list_credentials
(hints)¶ List all credentials.
Parameters: hints – contains the list of filters yet to be satisfied. Any filters satisfied here will be removed so that the caller will know if any filters remain. Returns: a list of credential_refs or an empty list.
-
list_credentials_for_user
(user_id, type=None)¶ List credentials for a user.
Parameters: - user_id – ID of a user to filter credentials by.
- type – type of credentials to filter on.
Returns: a list of credential_refs or an empty list.
-
update_credential
(credential_id, credential)¶ Updates an existing credential.
Raises: - keystone.exception.CredentialNotFound – If credential doesn’t exist.
- keystone.exception.Conflict – If a duplicate credential exists.
-
-
class
keystone.credential.core.
Manager
(*args, **kwargs)[source]¶ Bases:
keystone.common.manager.Manager
Default pivot point for the Credential backend.
See
keystone.common.manager.Manager
for more details on how this dynamically calls the backend.-
driver_namespace
= 'keystone.credential'¶
-
keystone.credential.routers module¶
WSGI Routers for the Credentials service.
-
class
keystone.credential.routers.
Routers
[source]¶ Bases:
keystone.common.wsgi.RoutersBase
-
append_v3_routers
(mapper, routers)¶
-