api/types: move ContainerState to api/types/image

This moves the `ContainerState` type to the container package,
renames it to `State`, and deprecates the old location.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn
2024-06-26 00:17:43 +02:00
parent 7053007f71
commit 84ffc644ef
4 changed files with 24 additions and 19 deletions

View File

@@ -146,7 +146,7 @@ func (daemon *Daemon) getInspectData(daemonCfg *config.Config, container *contai
}
}
containerState := &types.ContainerState{
containerState := &containertypes.State{
Status: container.State.StateString(),
Running: container.State.Running,
Paused: container.State.Paused,