MCPcopy Index your code
hub / github.com/docker/cli / replicatedProgressUpdater

Struct replicatedProgressUpdater

cli/command/service/progress/progress.go:283–292  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

281}
282
283type replicatedProgressUpdater struct {
284 progressOut progress.Output
285
286 // used for mapping slots to a contiguous space
287 // this also causes progress bars to appear in order
288 slotMap map[int]int
289
290 initialized bool
291 done bool
292}
293
294func (u *replicatedProgressUpdater) update(service swarm.Service, tasks []swarm.Task, activeNodes map[string]struct{}, rollback bool) (bool, error) {
295 if service.Spec.Mode.Replicated == nil || service.Spec.Mode.Replicated.Replicas == nil {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected