MCPcopy
hub / github.com/docker/compose / viewFromStackList

Function viewFromStackList

cmd/compose/list.go:135–145  ·  view source on GitHub ↗
(stackList []api.Stack)

Source from the content-addressed store, hash-verified

133}
134
135func viewFromStackList(stackList []api.Stack) []stackView {
136 retList := make([]stackView, len(stackList))
137 for i, s := range stackList {
138 retList[i] = stackView{
139 Name: s.Name,
140 Status: strings.TrimSpace(fmt.Sprintf("%s %s", s.Status, s.Reason)),
141 ConfigFiles: s.ConfigFiles,
142 }
143 }
144 return retList
145}

Callers 1

runListFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected