mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
api/types: move container Health types to api/types/container
This moves the `Health` and `HealthcheckResult` types to the container package, as well as the related `NoHealthcheck`, `Starting`, `Healthy`, and `Unhealthy` consts. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@@ -137,12 +137,12 @@ func (daemon *Daemon) getInspectData(daemonCfg *config.Config, container *contai
|
||||
}
|
||||
}
|
||||
|
||||
var containerHealth *types.Health
|
||||
var containerHealth *containertypes.Health
|
||||
if container.State.Health != nil {
|
||||
containerHealth = &types.Health{
|
||||
containerHealth = &containertypes.Health{
|
||||
Status: container.State.Health.Status(),
|
||||
FailingStreak: container.State.Health.FailingStreak,
|
||||
Log: append([]*types.HealthcheckResult{}, container.State.Health.Log...),
|
||||
Log: append([]*containertypes.HealthcheckResult{}, container.State.Health.Log...),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user