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

Method observedSummaries

pkg/compose/reconcile.go:833–840  ·  view source on GitHub ↗

observedSummaries returns the raw container.Summary list for a service, needed by nextContainerNumber which expects []container.Summary.

(serviceName string)

Source from the content-addressed store, hash-verified

831// observedSummaries returns the raw container.Summary list for a service,
832// needed by nextContainerNumber which expects []container.Summary.
833func (r *reconciler) observedSummaries(serviceName string) []container.Summary {
834 ocs := r.observed.Containers[serviceName]
835 result := make([]container.Summary, len(ocs))
836 for i, oc := range ocs {
837 result[i] = oc.Summary
838 }
839 return result
840}
841
842// sortedKeys returns the keys of a map sorted alphabetically.
843// This ensures deterministic iteration order for reproducible plan output in tests.

Callers 1

reconcileServiceMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected