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

Function isDone

pkg/compose/push.go:174–182  ·  pkg/compose/push.go::isDone
(msg jsonstream.Message)

Source from the content-addressed store, hash-verified

172}
173
174func isDone(msg jsonstream.Message) bool {
175 // TODO there should be a better way to detect push is done than such a status message check
176 switch strings.ToLower(msg.Status) {
177 case "pushed", "layer already exists":
178 return true
179 default:
180 return false
181 }
182}
183
184// progressText is a minimal variant of [jsonmessage.JSONProgress.String()]
185//

Callers 1

toPushProgressEventFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected