MCPcopy Create free account
hub / github.com/docker/compose / containerToState

Function containerToState

pkg/compose/ls.go:87–93  ·  view source on GitHub ↗
(containers []container.Summary)

Source from the content-addressed store, hash-verified

85}
86
87func containerToState(containers []container.Summary) []string {
88 statuses := []string{}
89 for _, c := range containers {
90 statuses = append(statuses, string(c.State))
91 }
92 return statuses
93}
94
95func combinedStatus(statuses []string) string {
96 nbByStatus := map[string]int{}

Callers 1

containersToStacksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected