(img image.Summary)
| 26 | } |
| 27 | |
| 28 | func 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 |
| 36 | func NewImageFormat(source string, quiet bool, digest bool) Format { |
no outgoing calls
no test coverage detected
searching dependent graphs…