bootils.plugins package¶
Package and namespace for plugin implementations.
Built-in plugins live in bootils.plugins.core,
and custome plugins are loaded from the file system into
the bootils.plugins.custom namespace.
Subpackages¶
Submodules¶
bootils.plugins.loader module¶
Plugin management.
-
class
bootils.plugins.loader.PluginBase(context)[source]¶ Bases:
objectBase class for plugins.
This class defines the plugin interface (callbacks), and provides sensible default implementations so that a plugin only has to define those callbacks it needs to override.
-
control(command, *args, **options)[source]¶ Control a service / process.
This delegates to a
control_‹command›method of a subclass, if one is found.Returns: True if the command was handled successfully. Return type: bool
-
name¶ Name of the plugin (e.g. for reporting).
-
-
class
bootils.plugins.loader.PluginExecutor(loader)[source]¶ Bases:
objectCall plugin hooks in different life-cycle phases.
-
class
bootils.plugins.loader.PluginLoader(cfg, appname)[source]¶ Bases:
objectLoad and manage plugins, both core and custom ones.
See also Package Discovery and Resource Access using pkg_resources.
-
DEFAULT_PLUGIN_PATH= [u'/etc/{appname}/plugin.d', u'{appdir}/plugin.d']¶
-