api: node/apt: add versions call

very basic, based on API/concepts of PVE one.

Still missing, addint an extra_info string option to APTUpdateInfo
and pass along running kernel/PBS version there.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht
2020-11-09 16:31:51 +01:00
parent f3b4820d06
commit ed2beb334d
2 changed files with 102 additions and 1 deletions

View File

@ -1153,7 +1153,7 @@ pub enum RRDTimeFrameResolution {
}
#[api()]
#[derive(Debug, Serialize, Deserialize)]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "PascalCase")]
/// Describes a package for which an update is available.
pub struct APTUpdateInfo {