Files
grafana/pkg/models/licensing.go
T

26 lines
544 B
Go
Raw Normal View History

2019-11-01 14:56:12 +01:00
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
2020-01-27 09:24:44 +01:00
// Return edition
Edition() string
// Used to build content delivery URL
ContentDeliveryPrefix() string
LicenseURL(showAdminLicensingPage bool) string
2020-01-27 09:24:44 +01:00
StateInfo() string
EnabledFeatures() map[string]bool
FeatureEnabled(feature string) bool
}
type LicenseEnvironment interface {
// Environment is a map of environment variables
Environment() map[string]string
2019-11-01 14:56:12 +01:00
}