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

Function ImageWrite

cli/command/formatter/image.go:77–82  ·  view source on GitHub ↗

ImageWrite writes the formatter images using the ImageContext

(ctx ImageContext, images []image.Summary)

Source from the content-addressed store, hash-verified

75
76// ImageWrite writes the formatter images using the ImageContext
77func ImageWrite(ctx ImageContext, images []image.Summary) error {
78 render := func(format func(subContext SubContext) error) error {
79 return imageFormat(ctx, images, format)
80 }
81 return ctx.Write(newImageContext(), render)
82}
83
84// needDigest determines whether the image digest should be ignored or not when writing image context
85func needDigest(ctx ImageContext) bool {

Callers 2

TestImageContextWriteFunction · 0.85

Calls 3

imageFormatFunction · 0.85
newImageContextFunction · 0.85
WriteMethod · 0.45

Tested by 2

TestImageContextWriteFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…