Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
# vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2012 OpenStack LLC # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License.
"""Filter out private items in a user dict.
'password', 'tenants' and 'groups' are never returned.
:returns: user_ref
"""
"""Default pivot point for the Identity backend.
See :mod:`keystone.common.manager.Manager` for more details on how this dynamically calls the backend.
"""
tenant_id=None, password=None): """Authenticate a given user and password and authorize them for a tenant. :returns: (user_ref, tenant_ref, metadata_ref) :raises: AssertionError """
"""Interface description for an Identity driver."""
"""Authenticate a given user and password. :returns: user_ref :raises: AssertionError """
"""Authenticate a given user for a tenant. :returns: (user_ref, tenant_ref, metadata_ref) :raises: AssertionError """
"""Get a tenant by name.
:returns: tenant_ref :raises: keystone.exception.ProjectNotFound
"""
"""Get a user by name.
:returns: user_ref :raises: keystone.exception.UserNotFound
"""
"""Add user to a tenant by creating a default role relationship.
:raises: keystone.exception.ProjectNotFound, keystone.exception.UserNotFound
""" tenant_id, config.CONF.member_role_id)
"""Remove user from a tenant
:raises: keystone.exception.ProjectNotFound, keystone.exception.UserNotFound
"""
"""Lists all users with a relationship to the specified project.
:returns: a list of user_refs or an empty set. :raises: keystone.exception.ProjectNotFound
"""
"""Get the tenants associated with a given user.
:returns: a list of tenant_id's. :raises: keystone.exception.UserNotFound
"""
"""Get the roles associated with a user within given tenant.
:returns: a list of role ids. :raises: keystone.exception.UserNotFound, keystone.exception.ProjectNotFound
"""
"""Get the roles associated with a user within given domain.
:returns: a list of role ids. :raises: keystone.exception.UserNotFound, keystone.exception.ProjectNotFound
"""
user_id, domain_id): self.get_metadata(group_id=x['id'], domain_id=domain_id)) except exception.MetadataNotFound: # no group grant, skip pass
user_id, domain_id): domain_id=domain_id))
user_id, domain_id) user_id, domain_id)
"""Add a role to a user within given tenant.
:raises: keystone.exception.UserNotFound, keystone.exception.ProjectNotFound, keystone.exception.RoleNotFound """
"""Remove a role from a user within given tenant.
:raises: keystone.exception.UserNotFound, keystone.exception.ProjectNotFound, keystone.exception.RoleNotFound
"""
# metadata crud domain_id=None, group_id=None): """Gets the metadata for the specified user/group on project/domain.
:raises: keystone.exception.MetadataNotFound :returns: metadata
"""
domain_id=None, group_id=None): """Creates the metadata for the specified user/group on project/domain.
:returns: metadata created
"""
domain_id=None, group_id=None): """Updates the metadata for the specified user/group on project/domain.
:returns: metadata updated
"""
# domain crud """Creates a new domain.
:raises: keystone.exception.Conflict
"""
"""List all domains in the system.
:returns: a list of domain_refs or an empty list.
"""
"""Get a domain by ID.
:returns: domain_ref :raises: keystone.exception.DomainNotFound
"""
"""Get a domain by name.
:returns: domain_ref :raises: keystone.exception.DomainNotFound
"""
"""Updates an existing domain.
:raises: keystone.exception.DomainNotFound, keystone.exception.Conflict
"""
"""Deletes an existing domain.
:raises: keystone.exception.DomainNotFound
"""
# project crud """Creates a new project.
:raises: keystone.exception.Conflict
"""
"""List all projects in the system.
:returns: a list of project_refs or an empty list.
"""
"""List all projects associated with a given user.
:returns: a list of project_refs or an empty list.
"""
"""Get a project by ID.
:returns: project_ref :raises: keystone.exception.ProjectNotFound
"""
"""Updates an existing project.
:raises: keystone.exception.ProjectNotFound, keystone.exception.Conflict
"""
"""Deletes an existing project.
:raises: keystone.exception.ProjectNotFound
"""
# user crud
"""Creates a new user.
:raises: keystone.exception.Conflict
"""
"""List all users in the system.
:returns: a list of user_refs or an empty list.
"""
"""List all users in a group.
:returns: a list of user_refs or an empty list.
"""
"""Get a user by ID.
:returns: user_ref :raises: keystone.exception.UserNotFound
"""
"""Updates an existing user.
:raises: keystone.exception.UserNotFound, keystone.exception.Conflict
"""
"""Adds a user to a group.
:raises: keystone.exception.UserNotFound, keystone.exception.GroupNotFound
"""
"""Checks if a user is a member of a group.
:raises: keystone.exception.UserNotFound, keystone.exception.GroupNotFound
"""
"""Removes a user from a group.
:raises: keystone.exception.NotFound
"""
"""Deletes an existing user.
:raises: keystone.exception.UserNotFound
"""
# role crud
"""Creates a new role.
:raises: keystone.exception.Conflict
"""
"""List all roles in the system.
:returns: a list of role_refs or an empty list.
"""
"""Get a role by ID.
:returns: role_ref :raises: keystone.exception.RoleNotFound
"""
"""Updates an existing role.
:raises: keystone.exception.RoleNotFound, keystone.exception.Conflict
"""
"""Deletes an existing role.
:raises: keystone.exception.RoleNotFound
"""
# group crud
"""Creates a new group.
:raises: keystone.exception.Conflict
"""
"""List all groups in the system.
:returns: a list of group_refs or an empty list.
"""
"""List all groups a user is in
:returns: a list of group_refs or an empty list.
"""
"""Get a group by ID.
:returns: group_ref :raises: keystone.exception.GroupNotFound
"""
"""Updates an existing group.
:raises: keystone.exceptionGroupNotFound, keystone.exception.Conflict
"""
"""Deletes an existing group.
:raises: keystone.exception.GroupNotFound
""" |