Skip to content

armgit / Pulse

Public Imported from GitHub
0

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.

391 B
Raw Blame
//go:build release

package mockruntime

func startupEnabledFromEnv() bool {
	return false
}

// ValidateEnablement fail-closes release builds unless runtime authorization
// has been granted by the active entitlement.
func ValidateEnablement(enable bool) error {
	if !enable {
		return nil
	}
	if !releaseFixturesAuthorized.Load() {
		return ErrReleaseFixturesUnauthorized
	}
	return nil
}