mirror of
https://github.com/grafana/grafana.git
synced 2024-11-26 02:40:26 -06:00
c04bc805b5
* CDN: Initial poc support for serving assets over a CDN * Minor fix * added build path and test * fix lint error * Added edition to cdn path * Move master builds to a separate path * Added error handling for the url parsing, changed setting name, and added docs * Updated sample.ini * Some property renames * updated * Minor update to html * index template improvements * Update docs/sources/administration/configuration.md Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com> * Update docs/sources/administration/configuration.md Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com> * Added ContentDeliveryPrefix to Licence service * updated docs * Updated test mock Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>
28 lines
614 B
Go
28 lines
614 B
Go
package models
|
|
|
|
type Licensing interface {
|
|
// HasValidLicense is true if a valid license exists
|
|
HasValidLicense() bool
|
|
|
|
// HasLicense is true if there is a license provided
|
|
HasLicense() bool
|
|
|
|
// 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(user *SignedInUser) string
|
|
|
|
StateInfo() string
|
|
}
|
|
|
|
type LicenseEnvironment interface {
|
|
// Environment is a map of environment variables
|
|
Environment() map[string]string
|
|
}
|