getAppDetails extracts application details from environment
()
| 228 | |
| 229 | // getAppDetails extracts application details from environment |
| 230 | func (j *JVMKillAgent) getAppDetails() appDetails { |
| 231 | // These are set by Cloud Foundry |
| 232 | return appDetails{ |
| 233 | appName: os.Getenv("VCAP_APPLICATION_NAME"), |
| 234 | appID: os.Getenv("VCAP_APPLICATION_ID"), |
| 235 | spaceName: os.Getenv("VCAP_APPLICATION_SPACE_NAME"), |
| 236 | spaceID: os.Getenv("VCAP_APPLICATION_SPACE_ID"), |
| 237 | } |
| 238 | } |