@@ -206,34 +206,34 @@ type InspectMount struct {
206
206
// Docker, but here we see more fields that are unused (nonsensical in the
207
207
// context of Libpod).
208
208
type InspectContainerState struct {
209
- OciVersion string `json:"OciVersion"`
210
- Status string `json:"Status"`
211
- Running bool `json:"Running"`
212
- Paused bool `json:"Paused"`
213
- Restarting bool `json:"Restarting"` // TODO
214
- OOMKilled bool `json:"OOMKilled"`
215
- Dead bool `json:"Dead"`
216
- Pid int `json:"Pid"`
217
- ConmonPid int `json:"ConmonPid,omitempty"`
218
- ExitCode int32 `json:"ExitCode"`
219
- Error string `json:"Error"` // TODO
220
- StartedAt time.Time `json:"StartedAt"`
221
- FinishedAt time.Time `json:"FinishedAt"`
222
- Health HealthCheckResults `json:"Health,omitempty"`
223
- Checkpointed bool `json:"Checkpointed,omitempty"`
224
- CgroupPath string `json:"CgroupPath,omitempty"`
225
- CheckpointedAt time.Time `json:"CheckpointedAt,omitempty"`
226
- RestoredAt time.Time `json:"RestoredAt,omitempty"`
227
- CheckpointLog string `json:"CheckpointLog,omitempty"`
228
- CheckpointPath string `json:"CheckpointPath,omitempty"`
229
- RestoreLog string `json:"RestoreLog,omitempty"`
230
- Restored bool `json:"Restored,omitempty"`
231
- StoppedByUser bool `json:"StoppedByUser,omitempty"`
209
+ OciVersion string `json:"OciVersion"`
210
+ Status string `json:"Status"`
211
+ Running bool `json:"Running"`
212
+ Paused bool `json:"Paused"`
213
+ Restarting bool `json:"Restarting"` // TODO
214
+ OOMKilled bool `json:"OOMKilled"`
215
+ Dead bool `json:"Dead"`
216
+ Pid int `json:"Pid"`
217
+ ConmonPid int `json:"ConmonPid,omitempty"`
218
+ ExitCode int32 `json:"ExitCode"`
219
+ Error string `json:"Error"` // TODO
220
+ StartedAt time.Time `json:"StartedAt"`
221
+ FinishedAt time.Time `json:"FinishedAt"`
222
+ Health * HealthCheckResults `json:"Health,omitempty"`
223
+ Checkpointed bool `json:"Checkpointed,omitempty"`
224
+ CgroupPath string `json:"CgroupPath,omitempty"`
225
+ CheckpointedAt time.Time `json:"CheckpointedAt,omitempty"`
226
+ RestoredAt time.Time `json:"RestoredAt,omitempty"`
227
+ CheckpointLog string `json:"CheckpointLog,omitempty"`
228
+ CheckpointPath string `json:"CheckpointPath,omitempty"`
229
+ RestoreLog string `json:"RestoreLog,omitempty"`
230
+ Restored bool `json:"Restored,omitempty"`
231
+ StoppedByUser bool `json:"StoppedByUser,omitempty"`
232
232
}
233
233
234
234
// Healthcheck returns the HealthCheckResults. This is used for old podman compat
235
235
// to make the "Healthcheck" key available in the go template.
236
- func (s * InspectContainerState ) Healthcheck () HealthCheckResults {
236
+ func (s * InspectContainerState ) Healthcheck () * HealthCheckResults {
237
237
return s .Health
238
238
}
239
239
0 commit comments