Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Claims ¶
type Claims struct { InstanceCount int `json:"instanceCount"` Trialing bool `json:"trialing"` Plan string `json:"plan"` jwt.StandardClaims }
Claims creates a struct that will be encoded to a JWT. We add jwt.StandardClaims as an embedded type, to provide fields like name.
type LicenseService ¶
type LicenseService struct {
// contains filtered or unexported fields
}
LicenseService is the service for enterprise license.
func NewLicenseService ¶
NewLicenseService will create a new enterprise license service.
func (*LicenseService) LoadLicense ¶
func (s *LicenseService) LoadLicense() (*enterpriseAPI.License, error)
LoadLicense will load license from file and validate it.
func (*LicenseService) StoreLicense ¶
func (s *LicenseService) StoreLicense(tokenString string) error
StoreLicense will store license into file.
Click to show internal directories.
Click to hide internal directories.