api/types/container: make ContainerState a concrete type

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn
2025-11-07 18:18:25 +01:00
parent 69c4524355
commit 1fd87e9fdf
13 changed files with 43 additions and 31 deletions

View File

@@ -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":