karbor.services.protection.protectable_registry Module¶karbor.services.protection.protectable_registry.ProtectablePluginLoadFailed(message=None, **kwargs)¶Bases: karbor.exception.KarborException
message = u'Could not load %(name)s: %(error)s'¶karbor.services.protection.protectable_registry.ProtectableRegistry¶Bases: object
build_graph(context, resources)¶fetch_dependent_resources(context, resource)¶List dependent resources under given parent resource.
| Parameters: | resource – The parent resource to list dependent resources. |
|---|---|
| Returns: | The list of dependent resources. |
get_protectable_resource_plugin(resource_type)¶Get the protectable plugin with the specified type.
list_resource_types()¶List all resource types supported by protectables.
| Returns: | The list of supported resource types. |
|---|
list_resources(context, resource_type, parameters=None)¶List resource instances of given type.
| Parameters: | resource_type – The resource type to list instance. |
|---|---|
| Returns: | The list of resource instance. |
load_plugins()¶Load all protectable plugins configured and register them.
register_plugin(plugin)¶show_resource(context, resource_type, resource_id, parameters=None)¶List resource instances of given type.
| Parameters: |
|
|---|---|
| Returns: | The show of resource instance. |
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.