keystone.contrib.example package

Submodules

keystone.contrib.example.controllers module

class keystone.contrib.example.controllers.ExampleV3Controller(*args, **kwargs)[source]

Bases: keystone.common.controller.V3Controller

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

Description of the controller logic.

keystone.contrib.example.core module

class keystone.contrib.example.core.ExampleDriver[source]

Bases: object

Interface description for Example driver.

do_something(data)[source]

Do something

Parameters:data (string) – example data
Raises:keystone.exception,
Returns:None.
class keystone.contrib.example.core.ExampleManager(*args, **kwargs)[source]

Bases: keystone.common.manager.Manager

Example Manager.

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

project_created_callback(service, resource_type, operation, payload)[source]
project_deleted_callback(service, resource_type, operation, payload)[source]

keystone.contrib.example.routers module

class keystone.contrib.example.routers.ExampleRouter(application, mapper=None)[source]

Bases: keystone.common.wsgi.V3ExtensionRouter

PATH_PREFIX = '/OS-EXAMPLE'
add_routes(mapper)[source]

Module contents