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

Function needDigest

cli/command/formatter/image.go:85–87  ·  view source on GitHub ↗

needDigest determines whether the image digest should be ignored or not when writing image context

(ctx ImageContext)

Source from the content-addressed store, hash-verified

83
84// needDigest determines whether the image digest should be ignored or not when writing image context
85func needDigest(ctx ImageContext) bool {
86 return ctx.Digest || ctx.Format.Contains("{{.Digest}}")
87}
88
89func imageFormat(ctx ImageContext, images []image.Summary, format func(subContext SubContext) error) error {
90 for _, img := range images {

Callers 1

Calls 1

ContainsMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…