-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
inconspicuously leverage org_quota model (#88)
* add quota model * fixup quota json * swap back nil and err ordering * swap nil err to err nil, maybe its better the existing way just doing it for consistentcy * swap out quota for org_quota, try to make change as minimally impactful as possible * swap out getorgmemorylimit for just getorgquota * rm unnecessary typecast
- Loading branch information
1 parent
98e483e
commit f984711
Showing
5 changed files
with
57 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package models | ||
|
||
// OrgQuota - | ||
// A space quota looks very similar but it uses a different (v2) API endpoint | ||
// just to be safe, going to explicitly reference this as a way to get quota of an Org | ||
type OrgQuota struct { | ||
Name string `json:"name"` | ||
TotalServices int `json:"total_services"` | ||
TotalRoutes int `json:"total_routes"` | ||
TotalPrivateDomains int `json:"total_private_domains"` | ||
MemoryLimit int `json:"memory_limit"` | ||
InstanceMemoryLimit int `json:"instance_memory_limit"` | ||
AppInstanceLimit int `json:"app_instance_limit"` | ||
AppTaskLimit int `json:"app_task_limit"` | ||
TotalServiceKeys int `json:"total_service_keys"` | ||
TotalReservedRoutePorts int `json:"total_reserved_route_ports"` | ||
} |