(service string, id string, status containerType.ContainerState, health containerType.HealthStatus, exitCode int)
| 96 | } |
| 97 | |
| 98 | func containerDetails(service string, id string, status containerType.ContainerState, health containerType.HealthStatus, exitCode int) (containerType.Summary, containerType.InspectResponse) { |
| 99 | ctr := containerType.Summary{ |
| 100 | ID: id, |
| 101 | Names: []string{"/" + id}, |
| 102 | Image: "foo", |
| 103 | Labels: containerLabels(service, false), |
| 104 | State: status, |
| 105 | } |
| 106 | inspect := containerType.InspectResponse{ |
| 107 | State: &containerType.State{ |
| 108 | Status: status, |
| 109 | Health: &containerType.Health{Status: health}, |
| 110 | ExitCode: exitCode, |
| 111 | }, |
| 112 | } |
| 113 | return ctr, inspect |
| 114 | } |
no test coverage detected