pve-storage/PVE/API2/Storage
Thomas Lamprecht 3932ca0d1b add on_add and on_delete hooks
on_add_hook allows to encapsulate storage specific add steps, like
copying a keyring (RDB) or creating a volume group (LVM) in a clean
manner.
The same for deletion with on_delete_hook, here all should be cleaned
up, as much as possible.

Until now, this was done directly in the api config CREATE and DELETE
code, respectively, with a series of

if ($storage_type eq 'foo) {
    ...
} elsif ($storage_type eq 'bar') {
    ...
}

which isn't really that nice...

Another nice result of this approach is that also external plugins
can use those hooks and to their setup/cleanup steps sanely.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-07-03 12:27:34 +02:00
..
Config.pm add on_add and on_delete hooks 2018-07-03 12:27:34 +02:00
Content.pm Revert "free: added snapshot parameter" 2017-05-23 13:31:21 +02:00
Makefile do not install replication code 2017-05-10 07:06:35 +02:00
Replication.pm PVE::API2::Storage::Replication - add reasonable permission checks 2017-05-05 11:55:34 +02:00
Scan.pm Add cifsscan to API 2018-03-16 12:07:14 +01:00
Status.pm whitespace fixup 2018-05-14 08:35:22 +02:00