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

Function descriptorFor

try/dockerlayers/main.go:299–308  ·  view source on GitHub ↗
(keyword string)

Source from the content-addressed store, hash-verified

297}
298
299func descriptorFor(keyword string) descriptor {
300 if desc, ok := instructionDescriptors[keyword]; ok {
301 return desc
302 }
303 return descriptor{
304 Effect: effectMetadata,
305 Explanation: "Recorded as metadata. It influences how containers start but does not add filesystem content.",
306 CacheHint: "Cache key ties to the literal instruction, so changing text invalidates the layer.",
307 }
308}
309
310func ensureStage(rep *report, index int) *stageReport {
311 for len(rep.Stages) <= index {

Callers 1

analyzeDockerfileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected