這裡列出了處理id 的程式 與classes
\OpenStack\keystone-2014.1\keystone\credential\backends\sql.py
class CredentialModel(sql.ModelBase, sql.DictBase):class Credential(credential.Driver):
def db_sync(self, version=None):
def create_credential(self, credential_id, credential):
def list_credentials(self, **filters):
def _get_credential(self, session, credential_id):
def get_credential(self, credential_id):
def update_credential(self, credential_id, credential):
def delete_credential(self, credential_id):
def delete_credentials_for_project(self, project_id):
def delete_credentials_for_user(self, user_id):
\OpenStack\keystone-2014.1\keystone\credential\backends\__init__.py
\OpenStack\keystone-2014.1\keystone\credential\controllers.py
class CredentialV3(controller.V3Controller):def __init__(self):
def _assign_unique_id(self, ref, trust_id=None):
def create_credential(self, context, credential):
def _blob_to_json(ref):
def list_credentials(self, context):
def get_credential(self, context, credential_id):
def update_credential(self, context, credential_id, credential):
def delete_credential(self, context, credential_id):
\OpenStack\keystone-2014.1\keystone\credential\core.py
class Manager(manager.Manager):def __init__(self):
class Driver(object):
def create_credential(self, credential_id, credential):
def list_credentials(self, **filters):
def get_credential(self, credential_id):
def update_credential(self, credential_id, credential):
def delete_credential(self, credential_id):
def delete_credentials_for_project(self, project_id):
def delete_credentials_for_user(self, user_id):
def _delete_credentials(self, match_fn):
\OpenStack\keystone-2014.1\keystone\credential\routers.py
def append_v3_routers(mapper, routers):\OpenStack\keystone-2014.1\keystone\credential\__init__.py
\OpenStack\keystone-2014.1\keystone\exception.py
class Error(Exception):def __init__(self, message=None, **kwargs):
def _build_message(self, message, **kwargs):
class ValidationError(Error):
class ValidationTimeStampError(Error):
class StringLengthExceeded(ValidationError):
class ValidationSizeError(Error):
class PKITokenExpected(Error):
class SecurityError(Error):
def _build_message(self, message, **kwargs):
class Unauthorized(SecurityError):
class AuthPluginException(Unauthorized):
def __init__(self, *args, **kwargs):
class MissingGroups(Unauthorized):
class AuthMethodNotSupported(AuthPluginException):
def __init__(self, *args, **kwargs):
class AdditionalAuthRequired(AuthPluginException):
def __init__(self, auth_response=None, **kwargs):
class Forbidden(SecurityError):
class ForbiddenAction(Forbidden):
class ImmutableAttributeError(Forbidden):
class NotFound(Error):
class EndpointNotFound(NotFound):
class MetadataNotFound(NotFound):
class PolicyNotFound(NotFound):
class RoleNotFound(NotFound):
class RegionNotFound(NotFound):
class ServiceNotFound(NotFound):
class DomainNotFound(NotFound):
class ProjectNotFound(NotFound):
class TokenNotFound(NotFound):
class UserNotFound(NotFound):
class GroupNotFound(NotFound):
class MappingNotFound(NotFound):
class TrustNotFound(NotFound):
class TrustUseLimitReached(Forbidden):
class CredentialNotFound(NotFound):
class VersionNotFound(NotFound):
class IdentityProviderNotFound(NotFound):
class FederatedProtocolNotFound(NotFound):
class Conflict(Error):
class RequestTooLarge(Error):
class UnexpectedError(SecurityError):
def message_format(self):
def _build_message(self, message, **kwargs):
class CertificateFilesUnavailable(UnexpectedError):
class MalformedEndpoint(UnexpectedError):
class MappedGroupNotFound(UnexpectedError):
class NotImplemented(Error):
class Gone(Error):
class ConfigFileNotFound(UnexpectedError):
class MigrationNotProvided(Exception):
def __init__(self, mod_name, path):
\OpenStack\keystone-2014.1\keystone\identity\backends\kvs.py
class _UserIdToDomainId(object):def __init__(self, db):
def _calc_key(self, user_id):
def notify_user_created(self, user_id, domain_id):
def notify_user_deleted(self, user_id):
def get(self, user_id):
class Identity(kvs.Base, identity.Driver):
def __init__(self):
def default_assignment_driver(self):
def is_domain_aware(self):
def authenticate(self, user_id, password):
def _get_user(self, user_id):
def _calc_user_name_key(self, name, domain_id):
def _get_user_by_name(self, user_name, domain_id):
def get_user(self, user_id):
def get_user_by_name(self, user_name, domain_id):
def list_users(self, hints):
def create_user(self, user_id, user):
def update_user(self, user_id, user):
def add_user_to_group(self, user_id, group_id):
def check_user_in_group(self, user_id, group_id):
def remove_user_from_group(self, user_id, group_id):
def list_users_in_group(self, group_id, hints):
def list_groups_for_user(self, user_id, hints):
def delete_user(self, user_id):
def create_group(self, group_id, group):
def list_groups(self, hints):
def get_group(self, group_id):
def update_group(self, group_id, group):
def delete_group(self, group_id):
\OpenStack\keystone-2014.1\keystone\identity\backends\ldap.py
class Identity(identity.Driver):def __init__(self, conf=None):
def default_assignment_driver(self):
def is_domain_aware(self):
def authenticate(self, user_id, password):
def _get_user(self, user_id):
def get_user(self, user_id):
def list_users(self, hints):
def get_user_by_name(self, user_name, domain_id):
def create_user(self, user_id, user):
def update_user(self, user_id, user):
def delete_user(self, user_id):
def create_group(self, group_id, group):
def get_group(self, group_id):
def update_group(self, group_id, group):
def delete_group(self, group_id):
def add_user_to_group(self, user_id, group_id):
def remove_user_from_group(self, user_id, group_id):
def list_groups_for_user(self, user_id, hints):
def list_groups(self, hints):
def list_users_in_group(self, group_id, hints):
def check_user_in_group(self, user_id, group_id):
class UserApi(common_ldap.EnabledEmuMixIn, common_ldap.BaseLdap):
def __init__(self, conf):
def _ldap_res_to_model(self, res):
def mask_enabled_attribute(self, values):
def create(self, values):
def check_password(self, user_id, password):
def get_filtered(self, user_id):
def get_all_filtered(self):
class GroupApi(common_ldap.BaseLdap):
def __init__(self, conf):
def create(self, values):
def delete(self, group_id):
def update(self, group_id, values):
def add_user(self, user_dn, group_id, user_id):
def remove_user(self, user_dn, group_id, user_id):
def list_user_groups(self, user_dn):
def list_group_users(self, group_id):
\OpenStack\keystone-2014.1\keystone\identity\backends\sql.py
class User(sql.ModelBase, sql.DictBase):def to_dict(self, include_extra_dict=False):
class Group(sql.ModelBase, sql.DictBase):
class UserGroupMembership(sql.ModelBase, sql.DictBase):
class Identity(identity.Driver):
def default_assignment_driver(self):
def db_sync(self, version=None):
def _check_password(self, password, user_ref):
def is_domain_aware(self):
def authenticate(self, user_id, password):
def create_user(self, user_id, user):
def list_users(self, hints):
def _get_user(self, session, user_id):
def get_user(self, user_id):
def get_user_by_name(self, user_name, domain_id):
def update_user(self, user_id, user):
def add_user_to_group(self, user_id, group_id):
def check_user_in_group(self, user_id, group_id):
def remove_user_from_group(self, user_id, group_id):
def list_groups_for_user(self, user_id, hints):
def list_users_in_group(self, group_id, hints):
def delete_user(self, user_id):
def create_group(self, group_id, group):
def list_groups(self, hints):
def _get_group(self, session, group_id):
def get_group(self, group_id):
def update_group(self, group_id, group):
def delete_group(self, group_id):
\OpenStack\keystone-2014.1\keystone\identity\backends\__init__.py
\OpenStack\keystone-2014.1\keystone\identity\controllers.py
class DeprecatedMeta(type):def moved_to_assignment(class_name):
def inner(f):
def _is_wrappable(item):
def __new__(mcs, class_name, bases, namespace):
def get_attribute(self, item):
def __getattribute__(cls, item):
class User(controller.V2Controller):
def get_user(self, context, user_id):
def get_users(self, context):
def get_user_by_name(self, context, user_name):
def create_user(self, context, user):
def update_user(self, context, user_id, user):
def delete_user(self, context, user_id):
def set_user_enabled(self, context, user_id, user):
def set_user_password(self, context, user_id, user):
def _normalize_OSKSADM_password_on_request(ref):
class UserV3(controller.V3Controller):
def __init__(self):
def _check_user_and_group_protection(self, context, prep_info, user_id, group_id):
def create_user(self, context, user):
def list_users(self, context, filters):
def list_users_in_group(self, context, filters, group_id):
def get_user(self, context, user_id):
def _update_user(self, context, user_id, user, domain_scope):
def update_user(self, context, user_id, user):
def add_user_to_group(self, context, user_id, group_id):
def check_user_in_group(self, context, user_id, group_id):
def remove_user_from_group(self, context, user_id, group_id):
def delete_user(self, context, user_id):
def change_password(self, context, user_id, user):
class GroupV3(controller.V3Controller):
def __init__(self):
def create_group(self, context, group):
def list_groups(self, context, filters):
def list_groups_for_user(self, context, filters, user_id):
def get_group(self, context, group_id):
def update_group(self, context, group_id, group):
def delete_group(self, context, group_id):
class Tenant(assignment_controllers.Tenant):
class Role(assignment_controllers.Role):
class DomainV3(assignment_controllers.DomainV3):
class ProjectV3(assignment_controllers.ProjectV3):
class RoleV3(assignment_controllers.RoleV3):
class RoleAssignmentV3(assignment_controllers.RoleAssignmentV3):
\OpenStack\keystone-2014.1\keystone\identity\core.py
def moved_to_assignment(f):def filter_user(user_ref):
class DomainConfigs(dict):
def _load_driver(self, assignment_api, domain_id):
def _load_config(self, assignment_api, file_list, domain_name):
def setup_domain_drivers(self, standard_driver, assignment_api):
def get_domain_driver(self, domain_id):
def get_domain_conf(self, domain_id):
def reload_domain_driver(self, assignment_api, domain_id):
def domains_configured(f):
def wrapper(self, *args, **kwargs):
class Manager(manager.Manager):
def __init__(self):
def _set_domain_id(self, ref, domain_id):
def _clear_domain_id(self, ref):
def _normalize_scope(self, domain_scope):
def _select_identity_driver(self, domain_id):
def _get_domain_id_and_driver(self, domain_scope):
def _mark_domain_id_filter_satisfied(self, hints):
def authenticate(self, context, user_id, password, domain_scope=None):
def create_user(self, user_id, user_ref):
def get_user(self, user_id, domain_scope=None):
def get_user_by_name(self, user_name, domain_id):
def list_users(self, domain_scope=None, hints=None):
def update_user(self, user_id, user_ref, domain_scope=None):
def delete_user(self, user_id, domain_scope=None):
def create_group(self, group_id, group_ref):
def get_group(self, group_id, domain_scope=None):
def update_group(self, group_id, group, domain_scope=None):
def revoke_tokens_for_group(self, group_id, domain_scope):
def delete_group(self, group_id, domain_scope=None):
def add_user_to_group(self, user_id, group_id, domain_scope=None):
def remove_user_from_group(self, user_id, group_id, domain_scope=None):
def list_groups_for_user(self, user_id, domain_scope=None, hints=None):
def list_groups(self, domain_scope=None, hints=None):
def list_users_in_group(self, group_id, domain_scope=None, hints=None):
def check_user_in_group(self, user_id, group_id, domain_scope=None):
def change_password(self, context, user_id, original_password, new_password, domain_scope):
def get_domain_by_name(self, domain_name):
def get_domain(self, domain_id):
def update_domain(self, domain_id, domain):
def list_domains(self, hints=None):
def delete_domain(self, domain_id):
def create_domain(self, domain_id, domain):
def list_projects_for_user(self, user_id):
def add_user_to_project(self, tenant_id, user_id):
def remove_user_from_project(self, tenant_id, user_id):
def get_project(self, tenant_id):
def list_projects(self, hints=None):
def get_role(self, role_id):
def list_roles(self, hints=None):
def get_project_users(self, tenant_id):
def get_roles_for_user_and_project(self, user_id, tenant_id):
def get_roles_for_user_and_domain(self, user_id, domain_id):
def add_role_to_user_and_project(self, user_id, tenant_id, role_id):
def create_role(self, role_id, role):
def delete_role(self, role_id):
def remove_role_from_user_and_project(self, user_id, tenant_id, role_id):
def update_role(self, role_id, role):
def create_grant(self, role_id, user_id=None, group_id=None, domain_id=None, project_id=None, inherited_to_projects=False):
def list_grants(self, user_id=None, group_id=None, domain_id=None, project_id=None, inherited_to_projects=False):
def get_grant(self, role_id, user_id=None, group_id=None, domain_id=None, project_id=None, inherited_to_projects=False):
def delete_grant(self, role_id, user_id=None, group_id=None, domain_id=None, project_id=None, inherited_to_projects=False):
class Driver(object):
def _get_list_limit(self):
def authenticate(self, user_id, password):
def create_user(self, user_id, user):
def list_users(self, hints):
def list_users_in_group(self, group_id, hints):
def get_user(self, user_id):
def update_user(self, user_id, user):
def add_user_to_group(self, user_id, group_id):
def check_user_in_group(self, user_id, group_id):
def remove_user_from_group(self, user_id, group_id):
def delete_user(self, user_id):
def get_user_by_name(self, user_name, domain_id):
def create_group(self, group_id, group):
def list_groups(self, hints):
def list_groups_for_user(self, user_id, hints):
def get_group(self, group_id):
def update_group(self, group_id, group):
def delete_group(self, group_id):
def is_domain_aware(self):
\OpenStack\keystone-2014.1\keystone\identity\routers.py
class Admin(wsgi.ComposableRouter):def add_routes(self, mapper):
def append_v3_routers(mapper, routers):
沒有留言:
張貼留言