The karbor.services.protection.protectable_registry
Module¶
-
exception
karbor.services.protection.protectable_registry.
ProtectablePluginLoadFailed
(message=None, **kwargs)¶ Bases:
karbor.exception.KarborException
-
message
= u’Could not load %(name)s: %(error)s’¶
-
-
class
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: - resource_type – The resource type of instance.
- resource_id – The resource id of instance.
Returns: The show of resource instance.
-