stevedore.driver.
DriverManager
(namespace, name, invoke_on_load=False, invoke_args=(), invoke_kwds={}, on_load_failure_callback=None, verify_requirements=False, warn_on_missing_entrypoint=True)¶Load a single plugin with a given name from the namespace.
Parameters: |
|
---|
stevedore.hook.
HookManager
(namespace, name, invoke_on_load=False, invoke_args=(), invoke_kwds={}, on_load_failure_callback=None, verify_requirements=False, on_missing_entrypoints_callback=None, warn_on_missing_entrypoint=False)¶Coordinate execution of multiple extensions using a common name.
Parameters: |
|
---|
stevedore.named.
NamedExtensionManager
(namespace, names, invoke_on_load=False, invoke_args=(), invoke_kwds={}, name_order=False, propagate_map_exceptions=False, on_load_failure_callback=None, on_missing_entrypoints_callback=None, verify_requirements=False, warn_on_missing_entrypoint=True)¶Loads only the named extensions.
This is useful for explicitly enabling extensions in a configuration file, for example.
Parameters: |
|
---|
stevedore.enabled.
EnabledExtensionManager
(namespace, check_func, invoke_on_load=False, invoke_args=(), invoke_kwds={}, propagate_map_exceptions=False, on_load_failure_callback=None, verify_requirements=False)¶Loads only plugins that pass a check function.
The check_func argument should return a boolean, with True
indicating that the extension should be loaded and made available
and False
indicating that the extension should be ignored.
Parameters: |
|
---|
stevedore.dispatch.
DispatchExtensionManager
(namespace, check_func, invoke_on_load=False, invoke_args=(), invoke_kwds={}, propagate_map_exceptions=False, on_load_failure_callback=None, verify_requirements=False)¶Loads all plugins and filters on execution.
This is useful for long-running processes that need to pass different inputs to different extensions.
Parameters: |
|
---|
stevedore.dispatch.
NameDispatchExtensionManager
(namespace, check_func, invoke_on_load=False, invoke_args=(), invoke_kwds={}, propagate_map_exceptions=False, on_load_failure_callback=None, verify_requirements=False)¶Loads all plugins and filters on execution.
This is useful for long-running processes that need to pass different inputs to different extensions and can predict the name of the extensions before calling them.
The check_func argument should return a boolean, with True
indicating that the extension should be loaded and made available
and False
indicating that the extension should be ignored.
Parameters: |
|
---|
stevedore.extension.
ExtensionManager
(namespace, invoke_on_load=False, invoke_args=(), invoke_kwds={}, propagate_map_exceptions=False, on_load_failure_callback=None, verify_requirements=False)¶Base class for all of the other managers.
Parameters: |
|
---|
stevedore.extension.
Extension
(name, entry_point, plugin, obj)¶Bases: object
Book-keeping object for tracking extensions.
The arguments passed to the constructor are saved as attributes of
the instance using the same names, and can be accessed by the
callables passed to map()
or when iterating over an
ExtensionManager
directly.
Parameters: |
|
---|
entry_point_target
¶The module and attribute referenced by this extension’s entry_point.
Returns: | A string representation of the target of the entry point in ‘dotted.module:object’ format. |
---|
stevedore.tests.manager.
TestExtensionManager
(extensions, namespace='test', invoke_on_load=False, invoke_args=(), invoke_kwds={})¶ExtensionManager that is explicitly initialized for tests.
Deprecated since version 0.13: Use the make_test_instance()
class method of the class
being replaced by the test instance instead of using this class
directly.
Parameters: |
|
---|
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.