BuildCacheWrite renders the context for a list of containers
(ctx Context, buildCaches []build.CacheRecord)
| 71 | |
| 72 | // BuildCacheWrite renders the context for a list of containers |
| 73 | func BuildCacheWrite(ctx Context, buildCaches []build.CacheRecord) error { |
| 74 | render := func(format func(subContext SubContext) error) error { |
| 75 | buildCacheSort(buildCaches) |
| 76 | for _, bc := range buildCaches { |
| 77 | err := format(&buildCacheContext{trunc: ctx.Trunc, v: bc}) |
| 78 | if err != nil { |
| 79 | return err |
| 80 | } |
| 81 | } |
| 82 | return nil |
| 83 | } |
| 84 | return ctx.Write(newBuildCacheContext(), render) |
| 85 | } |
| 86 | |
| 87 | type buildCacheContext struct { |
| 88 | HeaderContext |
nothing calls this directly
no test coverage detected
searching dependent graphs…