The karbor.services.protection.protectable_plugin
Module¶
-
class
karbor.services.protection.protectable_plugin.
ProtectablePlugin
(context=None)¶ Bases:
object
Base abstract class for protectable plugin.
-
get_dependent_resources
(context, parent_resource)¶ List dependent resource instances.
The listed resource instances are of type this plugin supported, and dependent by the given parent resource.
Parameters: parent_resource (one of parent resource types.) – the parent resource instance. Returns: the list of dependent resource instances.
-
get_parent_resource_types
()¶ Return the possible parent resource types.
Subclasses can implement as a classmethod
-
get_resource_type
()¶ Return the resource type that this plugin supports.
Subclasses can implement as a classmethod
-
instance
(context)¶
-
list_resources
(context, parameters=None)¶ List resource instances of type this plugin supported.
Returns: The list of resource instance.
-
show_resource
(context, resource_id, parameters=None)¶ Show resource detail information.
-