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.

328 B
Raw Blame
package licensing

func IsHostedSubscriptionValid(subState SubscriptionState, hasTrialEnd bool) bool {
	switch subState {
	case SubStateActive, SubStateGrace:
		return true
	case SubStateTrial:
		// Only allow trials with an explicit end date to prevent "infinite free Cloud".
		return hasTrialEnd
	default:
		return false
	}
}