2019-11-01 21:56:12 +08: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 16:24:44 +08:00
|
|
|
|
|
|
|
|
// Return edition
|
|
|
|
|
Edition() string
|
|
|
|
|
|
2021-02-01 17:13:09 +08:00
|
|
|
// Used to build content delivery URL
|
|
|
|
|
ContentDeliveryPrefix() string
|
|
|
|
|
|
2021-10-05 21:54:26 +08:00
|
|
|
LicenseURL(showAdminLicensingPage bool) string
|
2020-01-27 16:24:44 +08:00
|
|
|
|
|
|
|
|
StateInfo() string
|
2022-01-08 04:11:23 +08:00
|
|
|
|
2022-01-22 03:36:28 +08:00
|
|
|
EnabledFeatures() map[string]bool
|
|
|
|
|
|
2022-01-08 04:11:23 +08:00
|
|
|
FeatureEnabled(feature string) bool
|
2021-01-18 21:42:39 +08:00
|
|
|
}
|
2020-07-02 01:02:53 +08:00
|
|
|
|
2021-01-18 21:42:39 +08:00
|
|
|
type LicenseEnvironment interface {
|
|
|
|
|
// Environment is a map of environment variables
|
|
|
|
|
Environment() map[string]string
|
2019-11-01 21:56:12 +08:00
|
|
|
}
|