mirror of
https://github.com/grafana/grafana.git
synced 2025-07-30 13:22:17 +08:00

* Revert "FeatureToggles: register all enterprise feature toggles (#44336)" This reverts commit f53b3fb0071c0d6d16a80d5e172a425aa3f72ca9. * Revert "FeatureFlags: manage feature flags outside of settings.Cfg (#43692)" This reverts commit f94c0decbd302140fffe351db200634a5c728545.
26 lines
544 B
Go
26 lines
544 B
Go
package models
|
|
|
|
type Licensing interface {
|
|
// Expiry returns the unix epoch timestamp when the license expires, or 0 if no valid license is provided
|
|
Expiry() int64
|
|
|
|
// Return edition
|
|
Edition() string
|
|
|
|
// Used to build content delivery URL
|
|
ContentDeliveryPrefix() string
|
|
|
|
LicenseURL(showAdminLicensingPage bool) string
|
|
|
|
StateInfo() string
|
|
|
|
EnabledFeatures() map[string]bool
|
|
|
|
FeatureEnabled(feature string) bool
|
|
}
|
|
|
|
type LicenseEnvironment interface {
|
|
// Environment is a map of environment variables
|
|
Environment() map[string]string
|
|
}
|