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

Function isDangling

cli/command/formatter/image.go:28–33  ·  view source on GitHub ↗
(img image.Summary)

Source from the content-addressed store, hash-verified

26}
27
28func isDangling(img image.Summary) bool {
29 if len(img.RepoTags) == 0 && len(img.RepoDigests) == 0 {
30 return true
31 }
32 return len(img.RepoTags) == 1 && img.RepoTags[0] == "<none>:<none>" && len(img.RepoDigests) == 1 && img.RepoDigests[0] == "<none>@<none>"
33}
34
35// NewImageFormat returns a format for rendering an ImageContext
36func NewImageFormat(source string, quiet bool, digest bool) Format {

Callers 2

imageFormatFunction · 0.70
verboseWriteMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…