-
Notifications
You must be signed in to change notification settings - Fork 112
Expand file tree
/
Copy pathconfig.go
More file actions
24 lines (21 loc) · 875 Bytes
/
config.go
File metadata and controls
24 lines (21 loc) · 875 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package api
// ConfigSet is the definition of POST /v2/apps/<app id>/config/.
type ConfigSet struct {
Values map[string]string `json:"values"`
}
// ConfigUnset is the definition of POST /v2/apps/<app id>/config/.
type ConfigUnset struct {
Values map[string]interface{} `json:"values"`
}
// Config is the structure of an app's config.
type Config struct {
Owner string `json:"owner,omitempty"`
App string `json:"app,omitempty"`
Values map[string]interface{} `json:"values,omitempty"`
Memory map[string]interface{} `json:"memory,omitempty"`
CPU map[string]interface{} `json:"cpu,omitempty"`
Tags map[string]interface{} `json:"tags,omitempty"`
Created string `json:"created,omitempty"`
Updated string `json:"updated,omitempty"`
UUID string `json:"uuid,omitempty"`
}