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