api: add support for notes on backup groups

Stored in atomically-updated 'notes' file in backup group directory.
Available via dedicated GET/PUT API calls, as well as the first line
being included in list_groups (similar to list_snapshots).

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Stefan Reiter 2021-07-08 16:45:27 +02:00 committed by Thomas Lamprecht
parent 1e00eae767
commit a5093db6f3

View File

@ -380,6 +380,9 @@ pub struct GroupListItem {
/// The owner of group /// The owner of group
#[serde(skip_serializing_if = "Option::is_none")] #[serde(skip_serializing_if = "Option::is_none")]
pub owner: Option<Authid>, pub owner: Option<Authid>,
/// The first line from group "notes"
#[serde(skip_serializing_if="Option::is_none")]
pub comment: Option<String>,
} }
#[api( #[api(