mirror of
https://github.com/grafana/grafana.git
synced 2024-11-27 03:11:01 -06:00
65bdb3a899
* Revert "FeatureToggles: register all enterprise feature toggles (#44336)" This reverts commitf53b3fb007
. * Revert "FeatureFlags: manage feature flags outside of settings.Cfg (#43692)" This reverts commitf94c0decbd
.
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
|
|
}
|