Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
package mock
import "testing"
// mustSetEnabled toggles the package mock-mode state and fails the test on
// error so callers don't repeat the check at every toggle.
func mustSetEnabled(t testing.TB, enabled bool) {
t.Helper()
if err := SetEnabled(enabled); err != nil {
t.Fatalf("SetEnabled(%v): %v", enabled, err)
}
}