Documentation ¶
Index ¶
Constants ¶
View Source
const ClusterIDZero = "00000000-0000-0000-0000-000000000000"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Bundle ¶
type Bundle struct {
// contains filtered or unexported fields
}
func BundleFromContext ¶
func LoadBundle ¶
func (*Bundle) GetLicenseClaims ¶
func (l *Bundle) GetLicenseClaims() (*LicenseClaims, error)
func (*Bundle) GetLicenseInfo ¶
type Info ¶
type Info struct { ValidLicense bool LicenseErr error Claims *LicenseClaims CanConnectCloud bool SystemaURL string }
type LicenseClaims ¶
type LicenseClaims struct { jwt.Claims AccountID string `json:"accountId"` Limits any `json:"limits"` Scope string `json:"scope"` }
func (*LicenseClaims) GetClusterID ¶
func (lc *LicenseClaims) GetClusterID() (string, error)
func (*LicenseClaims) IsValidForCluster ¶
func (lc *LicenseClaims) IsValidForCluster(cid string) error
Click to show internal directories.
Click to hide internal directories.