mirror of
https://github.com/gravitl/netmaker.git
synced 2025-09-18 02:54:31 +08:00
revert license response to limits tag for backward compatibility (#2519)
* revert license response to limits tag for backward compatibility * revert tags
This commit is contained in:
parent
daaf488216
commit
f6dded0f2d
1 changed files with 8 additions and 8 deletions
16
ee/types.go
16
ee/types.go
|
@ -26,13 +26,13 @@ var errValidation = fmt.Errorf(license_validation_err_msg)
|
|||
type LicenseKey struct {
|
||||
LicenseValue string `json:"license_value"` // actual (public) key and the unique value for the key
|
||||
Expiration int64 `json:"expiration"`
|
||||
UsageServers int `json:"usage_servers"`
|
||||
UsageUsers int `json:"usage_users"`
|
||||
UsageClients int `json:"usage_clients"`
|
||||
UsageHosts int `json:"usage_hosts"`
|
||||
UsageNetworks int `json:"usage_networks"`
|
||||
UsageIngresses int `json:"usage_ingresses"`
|
||||
UsageEgresses int `json:"usage_egresses"`
|
||||
UsageServers int `json:"limit_servers"`
|
||||
UsageUsers int `json:"limit_users"`
|
||||
UsageClients int `json:"limit_clients"`
|
||||
UsageHosts int `json:"limit_hosts"`
|
||||
UsageNetworks int `json:"limit_networks"`
|
||||
UsageIngresses int `json:"limit_ingresses"`
|
||||
UsageEgresses int `json:"limit_egresses"`
|
||||
Metadata string `json:"metadata"`
|
||||
IsActive bool `json:"is_active"` // yes if active
|
||||
}
|
||||
|
@ -46,7 +46,7 @@ type ValidatedLicense struct {
|
|||
// LicenseSecret - the encrypted struct for sending user-id
|
||||
type LicenseSecret struct {
|
||||
AssociatedID string `json:"associated_id" binding:"required"` // UUID for user foreign key to User table
|
||||
Usage Usage `json:"usage" binding:"required"`
|
||||
Usage Usage `json:"limits" binding:"required"`
|
||||
}
|
||||
|
||||
// Usage - struct for license usage
|
||||
|
|
Loading…
Add table
Reference in a new issue