MCPcopy Create free account
hub / github.com/nikivdev/go / buildLayer

Function buildLayer

try/dockerlayers/main.go:288–297  ·  view source on GitHub ↗
(inst parsedInstruction, desc descriptor, extraNotes []string)

Source from the content-addressed store, hash-verified

286}
287
288func buildLayer(inst parsedInstruction, desc descriptor, extraNotes []string) layerReport {
289 layer := layerReport{
290 Instruction: inst,
291 Effect: desc.Effect,
292 Explanation: desc.Explanation,
293 CacheHint: desc.CacheHint,
294 }
295 layer.Notes = append(layer.Notes, extraNotes...)
296 return layer
297}
298
299func descriptorFor(keyword string) descriptor {
300 if desc, ok := instructionDescriptors[keyword]; ok {

Callers 1

analyzeDockerfileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected