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 # Copyright 2012 Canonical Ltd. # # 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.
"""Safely string formats a user-defined URL with the given data.""" return None {"url": url, "keyerror": str(e)}) "(are you missing brackets ?)") % {"url": url, "keyerror": str(e)}) (are you missing a type notifier ?)") % url)
"""Default pivot point for the Catalog backend.
See :mod:`keystone.common.manager.Manager` for more details on how this dynamically calls the backend.
"""
except exception.NotFound: raise exception.NotFound('Catalog not found for user and tenant')
"""Interface description for an Catalog driver.""" """Creates a new service.
:raises: keystone.exception.Conflict
"""
"""List all services.
:returns: list of service_refs or an empty list.
"""
"""Get service by id.
:returns: service_ref dict :raises: keystone.exception.ServiceNotFound
"""
"""Update service by id.
:returns: service_ref dict :raises: keystone.exception.ServiceNotFound
"""
"""Deletes an existing service.
:raises: keystone.exception.ServiceNotFound
"""
"""Creates a new endpoint for a service.
:raises: keystone.exception.Conflict, keystone.exception.ServiceNotFound
"""
"""Get endpoint by id.
:returns: endpoint_ref dict :raises: keystone.exception.EndpointNotFound
"""
"""List all endpoints.
:returns: list of endpoint_refs or an empty list.
"""
"""Get endpoint by id.
:returns: endpoint_ref dict :raises: keystone.exception.EndpointNotFound keystone.exception.ServiceNotFound
"""
"""Deletes an endpoint for a service.
:raises: keystone.exception.EndpointNotFound
"""
"""Retrieve and format the current service catalog.
Example::
{ 'RegionOne': {'compute': { 'adminURL': u'http://host:8774/v1.1/tenantid', 'internalURL': u'http://host:8774/v1.1/tenant_id', 'name': 'Compute Service', 'publicURL': u'http://host:8774/v1.1/tenantid'}, 'ec2': { 'adminURL': 'http://host:8773/services/Admin', 'internalURL': 'http://host:8773/services/Cloud', 'name': 'EC2 Service', 'publicURL': 'http://host:8773/services/Cloud'}}
:returns: A nested dict representing the service catalog or an empty dict. :raises: keystone.exception.NotFound
"""
"""Retrieve and format the current V3 service catalog.
Example::
[ { "endpoints": [ { "interface": "public", "id": "--endpoint-id--", "region": "RegionOne", "url": "http://external:8776/v1/--project-id--" }, { "interface": "internal", "id": "--endpoint-id--", "region": "RegionOne", "url": "http://internal:8776/v1/--project-id--" }], "id": "--service-id--", "type": "volume" }]
:returns: A list representing the service catalog or an empty list :raises: keystone.exception.NotFound
""" |