1package models 2 3type Licensing interface { 4 // HasValidLicense is true if a valid license exists 5 HasValidLicense() bool 6 7 // HasLicense is true if there is a license provided 8 HasLicense() bool 9 10 // Expiry returns the unix epoch timestamp when the license expires, or 0 if no valid license is provided 11 Expiry() int64 12 13 // Return edition 14 Edition() string 15 16 // Used to build content delivery URL 17 ContentDeliveryPrefix() string 18 19 LicenseURL(showAdminLicensingPage bool) string 20 21 StateInfo() string 22} 23 24type LicenseEnvironment interface { 25 // Environment is a map of environment variables 26 Environment() map[string]string 27} 28