The nova.openstack.common.plugin.plugin Module

class Plugin(service_name)

Bases: object

Defines an interface for adding functionality to an OpenStack service.

A plugin interacts with a service via the following pathways:

  • An optional set of notifiers, managed by calling add_notifier() or by overriding _notifiers()
  • A set of api extensions, managed via add_api_extension_descriptor()
  • Direct calls to service functions.
  • Whatever else the plugin wants to do on its own.

This is the reference implementation.

api_extension_descriptors

Return a list of API extension descriptors.

Called by a project API during its load sequence.

notifiers

Returns list of notifiers for this plugin.

Previous topic

The nova.openstack.common.plugin.callbackplugin Module

Next topic

The nova.openstack.common.plugin.pluginmanager Module

This Page