]> git.proxmox.com Git - proxmox-backup.git/commit
api: datstore status: introduce proper structs and restore compatibility
authorDominik Csapak <d.csapak@proxmox.com>
Thu, 29 Oct 2020 10:51:26 +0000 (11:51 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 29 Oct 2020 11:31:27 +0000 (12:31 +0100)
commit14e086250987ea68a5b1763515d74f08966dbe26
tree45857bb7edc84f1edd10a40acebb6ed233683f5d
parent9e733dae48cae337f7e02c4437106646417f6fb7
api: datstore status: introduce proper structs and restore compatibility

by moving the properties of the storage status out again to the top
level object

also introduce proper structs for the types used, to get type-safety
and better documentation for the api calls

this changes the backup counts from an array of [groups,snapshots] to
an object/struct with { groups, snapshots } and include 'other' types
(though we do not have any at this moment)

this way it is better documented

this also adapts the ui code to cope with the api changes

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
src/api2/admin/datastore.rs
src/api2/types/mod.rs
src/bin/proxmox-backup-client.rs
www/DataStoreSummary.js