Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountClaimData ¶
type AccountClaimData struct {
Amount int64 `json:"amount"`
}
type ClaimData ¶
type ClaimData map[string]interface{}
func (*ClaimData) SwitchToAccountData ¶
func (c *ClaimData) SwitchToAccountData(data *AccountClaimData) error
func (*ClaimData) SwitchToClusterData ¶
func (c *ClaimData) SwitchToClusterData(data *ClusterClaimData) error
type Claims ¶
type Claims struct { Type v1.LicenseType `json:"type"` ClusterID string `json:"clusterID"` Data ClaimData `json:"data"` jwt.RegisteredClaims }
Claims is the data structure of license claims
type ClusterClaimData ¶
type ClusterClaimData struct { NodeCount int `json:"nodeCount"` TotalCPU int `json:"totalCPU"` // in core TotalMemory int `json:"totalMemory"` // in GB }
func (*ClusterClaimData) Compare ¶
func (c *ClusterClaimData) Compare(data *ClusterClaimData) bool
Compare compares the claims with the data return true if the claims is equal or lager to the data
Click to show internal directories.
Click to hide internal directories.