mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
api/types/container: make ContainerState a concrete type
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@@ -91,6 +91,7 @@ func (ctr *StateCounter) Get() (running int, paused int, stopped int) {
|
||||
ctr.mu.RLock()
|
||||
defer ctr.mu.RUnlock()
|
||||
|
||||
// FIXME(thaJeztah): there's no "container.StateStopped"; should we align these states with actual states?
|
||||
for _, state := range ctr.states {
|
||||
switch state {
|
||||
case "running":
|
||||
|
||||
Reference in New Issue
Block a user