licensing.go 440 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11
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
12 13 14 15 16 17 18

	// Return edition
	Edition() string

	LicenseURL(user *SignedInUser) string

	StateInfo() string
19 20

	TokenRaw() string
21
}