Merge "Update contributor doc"

This commit is contained in:
Zuul 2019-11-09 08:42:06 +00:00 committed by Gerrit Code Review
commit 41f77bcd2f
2 changed files with 13 additions and 0 deletions

View File

@ -100,5 +100,6 @@ Add the configuration of the bank plugin
id = 6659007d-6f66-4a0f-9cb4-17d6aded0bb9
plugin=karbor-volume-protection-plugin
bank=karbor-fs-bank-plugin
enabled=True

View File

@ -59,6 +59,12 @@ Each plugin must implement the following interface:
def get_restore_operation(self, resource):
pass
def get_verify_operation(self, resource):
pass
def get_copy_operation(self, resource):
pass
def get_delete_operation(self, resource):
pass
@ -82,6 +88,10 @@ Each plugin must implement the following interface:
def get_saved_info(cls, metadata_store, resource):
pass
@classmethod
def get_verify_schema(cls, resource_type):
pass
#. **get_supported_resources_types**: this method should return a list of
resource types this plugin handles. The plugin's methods will be called for
each resource of these types. For example: `OS::Nova::Instance`,
@ -94,6 +104,8 @@ Each plugin must implement the following interface:
in a checkpoint
#. **get_restore_schema**: returns a schema of parameters available for restore
operation.
#. **get_verify_schema**: returns a schema of parameters available for verify
operation.
#. **get_protect_operation**, **get_restore_operation**,
**get_delete_operation**: each returns an Operation instance to be used for
the protect, restore, and delete operations respectively. This instance may