mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
chore: move models/licensing into licensing service (#61878)
This commit is contained in:
25
pkg/services/licensing/models.go
Normal file
25
pkg/services/licensing/models.go
Normal file
@@ -0,0 +1,25 @@
|
||||
package licensing
|
||||
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user