Add vCenter cache rebuild functionality and related API endpoint
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2026-02-16 08:46:38 +11:00
parent 6fbd6bc9d2
commit bc84931c37
7 changed files with 425 additions and 24 deletions

View File

@@ -59,3 +59,22 @@ type SnapshotRepairSuiteResponse struct {
MonthlyRefined string `json:"monthly_refined"`
MonthlyFailed string `json:"monthly_failed"`
}
// VcenterCacheRebuildResult describes rebuild results for a single vCenter.
type VcenterCacheRebuildResult struct {
Vcenter string `json:"vcenter"`
FolderEntries int `json:"folder_entries"`
ResourcePoolEntries int `json:"resource_pool_entries"`
HostEntries int `json:"host_entries"`
DurationSeconds float64 `json:"duration_seconds"`
Error string `json:"error,omitempty"`
}
// VcenterCacheRebuildResponse describes the vCenter object cache rebuild response.
type VcenterCacheRebuildResponse struct {
Status string `json:"status"`
Total int `json:"total"`
Succeeded int `json:"succeeded"`
Failed int `json:"failed"`
Results []VcenterCacheRebuildResult `json:"results"`
}