selfupdate: report progress events; reports carry update stage, percent and log
CI / test (push) Successful in 1m11s

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
VeillaxandClaude Sonnet 5.5 committed 2026-10-26 17:56:55 -06:00
1 parent ce4baacd47
commit a61c79fa69
3 files changed
+121 -10

No files matched your search

+8
View File
@@ -308,6 +308,10 @@ type EdgeReport struct {
AutoUpdate bool `json:"autoUpdate,omitempty"`
UpdateMsg string `json:"updateMsg,omitempty"` // outcome of the update asked for by UpdateID
UpdateID string `json:"updateId,omitempty"`
// progress of that update, for the dashboard's progress bar and log
UpdateStage string `json:"updateStage,omitempty"`
UpdatePct int `json:"updatePct,omitempty"`
UpdateLog []string `json:"updateLog,omitempty"`
}
// EdgeRef tells a site where to dial.
@@ -340,6 +344,10 @@ type SiteReport struct {
AutoUpdate bool `json:"autoUpdate,omitempty"`
UpdateMsg string `json:"updateMsg,omitempty"`
UpdateID string `json:"updateId,omitempty"`
// progress of that update, for the dashboard's progress bar and log
UpdateStage string `json:"updateStage,omitempty"`
UpdatePct int `json:"updatePct,omitempty"`
UpdateLog []string `json:"updateLog,omitempty"`
}
// HostMatches reports whether host matches an exact name or a "*.example.com" pattern.