-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathlimits.go
More file actions
21 lines (19 loc) · 760 Bytes
/
limits.go
File metadata and controls
21 lines (19 loc) · 760 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package api
// LimitSpec is the definition of GET /v2/limits/specs/
type LimitSpec struct {
ID string `json:"id"`
CPU map[string]interface{} `json:"cpu"`
Memory map[string]interface{} `json:"memory"`
Features map[string]interface{} `json:"features"`
Keywords []string `json:"keywords"`
Disabled bool `json:"disabled"`
}
// LimitPlan is the definition of GET /v2/limits/plans/
type LimitPlan struct {
ID string `json:"id"`
Spec LimitSpec `json:"spec"`
CPU int `json:"cpu"`
Memory int `json:"memory"`
Features map[string]interface{} `json:"features"`
Disabled bool `json:"disabled"`
}