mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2026-11-19 06:26:14 -05:00
feat: schedule nonblocking Windows HIP patch checks
This commit is contained in:
13 files changed
+318
-19
No files matched your search
@@ -45,3 +45,18 @@ mod tests {
|
||||
assert_eq!(serde_json::from_value::<HipSource>(json).unwrap(), source);
|
||||
}
|
||||
}
|
||||
|
||||
/// Collection metadata for the exact XML returned by a generated preview.
|
||||
#[derive(Debug, Clone, Default, PartialEq, Eq, Serialize, Deserialize, Type)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
pub struct HipReport {
|
||||
pub xml: String,
|
||||
pub windows_updates: Option<WindowsUpdateStatus>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Default, PartialEq, Eq, Serialize, Deserialize, Type)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
pub struct WindowsUpdateStatus {
|
||||
/// Present only when this report includes a completed local patch observation.
|
||||
pub checked_at: Option<u64>,
|
||||
}
|
||||
Reference in new issue
Block a user