mirror of
https://github.com/grafana/grafana.git
synced 2024-11-30 04:34:23 -06:00
b5ca2381bc
* provide license token directly via plugin environment
22 lines
440 B
Go
22 lines
440 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
|
|
|
|
LicenseURL(user *SignedInUser) string
|
|
|
|
StateInfo() string
|
|
|
|
TokenRaw() string
|
|
}
|