karbor/karbor/services/protection
Yuval Brik a80b9cc283 Stabilize Protection Plugin API
Protection plugin now needs to implement methods for each operation
(protect, delete, restore). Each protection plugin is created in the
context of the flow, while each operation is created in the context of
the resource.

A protection plugin is responsible for returning an Operation class for
each operation. Such Operation class defines the behavior of the
protection plugin by implementing these optional hooks:

- on_prepare_begin hook is invoked before any hook of this resource and
  dependent resources has begun
- on_prepare_finish hook is invoked after any prepare hooks of dependent
  resources are complete.
- on_main hook is invoked after the resource prepare hooks are complete
- on_complete hook is invoked once the resource's main hook is
  complete, and the dependent resources' on_complete hooks are complete

HeatTemplate is now created and supplied from a task instead of being
created and passed to resource tasks before the restore operation began.

Change-Id: I847eec6990b2d24a66a12542d242fbfb682272fe
Co-Authored-By: Saggi Mizrahi <saggi.mizrahi@huawei.com>
Implements: blueprint protection-plugin-is-design
2016-12-19 15:09:55 +02:00
..
bank_plugins Replaces uuid.uuid4 with uuidutils.generate_uuid() 2016-11-22 01:07:27 +00:00
clients add eisoo client factory 2016-11-25 17:07:48 +08:00
flows Stabilize Protection Plugin API 2016-12-19 15:09:55 +02:00
plugins Change Smaug to Karbor 2016-08-18 22:55:34 +08:00
protectable_plugins Add parameters field for protectable instances API 2016-10-14 16:17:45 +08:00
protection_plugins Stabilize Protection Plugin API 2016-12-19 15:09:55 +02:00
__init__.py Change Smaug to Karbor 2016-08-18 22:55:34 +08:00
api.py Remove cfg import unused 2016-11-28 14:46:47 +07:00
bank_plugin.py Remove cfg import unused 2016-11-28 14:46:47 +07:00
checkpoint.py Stabilize Protection Plugin API 2016-12-19 15:09:55 +02:00
client_factory.py Change Smaug to Karbor 2016-08-18 22:55:34 +08:00
graph.py Fix node being added twice when packing a graph 2016-12-11 12:03:28 +02:00
manager.py Stabilize Protection Plugin API 2016-12-19 15:09:55 +02:00
protectable_plugin.py Add parameters field for protectable instances API 2016-10-14 16:17:45 +08:00
protectable_registry.py Add parameters field for protectable instances API 2016-10-14 16:17:45 +08:00
protection_plugin.py Stabilize Protection Plugin API 2016-12-19 15:09:55 +02:00
provider.py Stabilize Protection Plugin API 2016-12-19 15:09:55 +02:00
resource_flow.py Stabilize Protection Plugin API 2016-12-19 15:09:55 +02:00
restore_heat.py Change Smaug to Karbor 2016-08-18 22:55:34 +08:00
rpcapi.py Add parameters field for protectable instances API 2016-10-14 16:17:45 +08:00
utils.py Change Smaug to Karbor 2016-08-18 22:55:34 +08:00