keystone.contrib.endpoint_filter package

Submodules

keystone.contrib.endpoint_filter.controllers module

class keystone.contrib.endpoint_filter.controllers.EndpointFilterV3Controller(*args, **kwargs)[source]

Bases: keystone.common.controller.V3Controller

add_endpoint_to_project(context, *args, **kwargs)[source]

Establishes an association between an endpoint and a project.

check_endpoint_in_project(context, *args, **kwargs)[source]

Verifies endpoint is currently associated with given project.

list_endpoints_for_project(context, *args, **kwargs)[source]

Lists all endpoints currently associated with a given project.

list_projects_for_endpoint(context, *args, **kwargs)[source]

Return a list of projects associated with the endpoint.

remove_endpoint_from_project(context, *args, **kwargs)[source]

Remove the endpoint from the association with given project.

keystone.contrib.endpoint_filter.core module

class keystone.contrib.endpoint_filter.core.Driver[source]

Bases: object

Interface description for an Endpoint Filter driver.

add_endpoint_to_project(endpoint_id, project_id)[source]

Creates an endpoint to project association.

Parameters:
  • endpoint_id (string) – identity of endpoint to associate
  • project_id (string) – identity of the project to be associated with
Raises:

keystone.exception.Conflict,

Returns:

None.

check_endpoint_in_project(endpoint_id, project_id)[source]

Checks if an endpoint is associated with a project.

Parameters:
  • endpoint_id (string) – identity of endpoint to check
  • project_id (string) – identity of the project associated with
Raises:

exception.NotFound

Returns:

None.

list_endpoints_for_project(project_id)[source]

List all endpoints associated with a project.

Parameters:project_id (string) – identity of the project to check
Returns:a list of identity endpoint ids or an empty list.
list_projects_for_endpoint(endpoint_id)[source]

List all projects associated with an endpoint.

Parameters:endpoint_id (string) – identity of endpoint to check
Returns:a list of projects or an empty list.
remove_endpoint_from_project(endpoint_id, project_id)[source]

Removes an endpoint to project association.

Parameters:
  • endpoint_id (string) – identity of endpoint to remove
  • project_id (string) – identity of the project associated with
Raises:

exception.NotFound

Returns:

None.

class keystone.contrib.endpoint_filter.core.Manager(*args, **kwargs)[source]

Bases: keystone.common.manager.Manager

Default pivot point for the Endpoint Filter backend.

See keystone.common.manager.Manager for more details on how this dynamically calls the backend.

keystone.contrib.endpoint_filter.routers module

class keystone.contrib.endpoint_filter.routers.EndpointFilterExtension(application, mapper=None)[source]

Bases: keystone.common.wsgi.ExtensionRouter

PATH_PREFIX = '/OS-EP-FILTER'
PATH_PROJECT_ENDPOINT = '/projects/{project_id}/endpoints/{endpoint_id}'
add_routes(mapper)[source]

Module contents