ImageWrite writes the formatter images using the ImageContext
(ctx ImageContext, images []image.Summary)
| 75 | |
| 76 | // ImageWrite writes the formatter images using the ImageContext |
| 77 | func 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 |
| 85 | func needDigest(ctx ImageContext) bool { |
searching dependent graphs…