| 22 | } |
| 23 | |
| 24 | type ApplicationFromSummary struct { |
| 25 | GUID string |
| 26 | Name string |
| 27 | Routes []RouteSummary |
| 28 | Services []ServicePlanSummary |
| 29 | RunningInstances int `json:"running_instances"` |
| 30 | Memory int64 |
| 31 | Instances int |
| 32 | DiskQuota int64 `json:"disk_quota"` |
| 33 | URLs []string |
| 34 | EnvironmentVars map[string]interface{} `json:"environment_json,omitempty"` |
| 35 | HealthCheckTimeout int `json:"health_check_timeout"` |
| 36 | HealthCheckType string `json:"health_check_type"` |
| 37 | HealthCheckHTTPEndpoint string `json:"health_check_http_endpoint"` |
| 38 | State string |
| 39 | DetectedStartCommand string `json:"detected_start_command"` |
| 40 | SpaceGUID string `json:"space_guid"` |
| 41 | StackGUID string `json:"stack_guid"` |
| 42 | Command string `json:"command"` |
| 43 | PackageState string `json:"package_state"` |
| 44 | PackageUpdatedAt *time.Time `json:"package_updated_at"` |
| 45 | Buildpack string |
| 46 | } |
| 47 | |
| 48 | func (resource ApplicationFromSummary) ToFields() (app models.ApplicationFields) { |
| 49 | app = models.ApplicationFields{} |
nothing calls this directly
no outgoing calls
no test coverage detected