example Package

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.

core Module

Main entry point into this Example service.

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

Default pivot point for this Example backend.

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

driver_namespace = 'keystone.example'
project_created_callback(service, resource_type, operation, payload)[source]
project_deleted_callback(service, resource_type, operation, payload)[source]

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]

Table Of Contents

This Page