forked from cloudfoundry-community/go-cfenv
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapplication.go
30 lines (28 loc) · 1.69 KB
/
application.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package cfenv
// An App holds information about the current app running on Cloud Foundry
type App struct {
ID string `json:"-"` // DEPRECATED id of the instance
InstanceID string `json:"instance_id"` // id of the instance
AppID string `json:"application_id"` // id of the application
Index int `json:"instance_index"` // index of the app
Name string `json:"name"` // name of the app
Host string `json:"host"` // host of the app
Port int `json:"port"` // port of the app
Version string `json:"version"` // version of the app
ApplicationURIs []string `json:"application_uris"` // application uri of the app
SpaceID string `json:"space_id"` // id of the space
SpaceName string `json:"space_name"` // name of the space
Home string // root folder for the deployed app
MemoryLimit string // maximum amount of memory that each instance of the application can consume
WorkingDir string // present working directory, where the buildpack that processed the application ran
TempDir string // directory location where temporary and staging files are stored
User string // user account under which the DEA runs
Services Services // services bound to the app
CFAPI string `json:"cf_api"` // URL for the Cloud Foundry API endpoint
Limits *Limits `json:"limits"` // limits imposed on this process
}
type Limits struct {
Disk int `json:"disk"` // disk limit
FDs int `json:"fds"` // file descriptors limit
Mem int `json:"mem"` // memory limit
}