MCPcopy
hub / github.com/nektos/act / cleanImage

Function cleanImage

pkg/container/docker_pull.go:123–131  ·  view source on GitHub ↗
(ctx context.Context, image string)

Source from the content-addressed store, hash-verified

121}
122
123func cleanImage(ctx context.Context, image string) string {
124 ref, err := reference.ParseAnyReference(image)
125 if err != nil {
126 common.Logger(ctx).Error(err)
127 return ""
128 }
129
130 return ref.String()
131}

Callers 2

TestCleanImageFunction · 0.85
NewDockerPullExecutorFunction · 0.85

Calls 3

LoggerFunction · 0.92
ErrorMethod · 0.45
StringMethod · 0.45

Tested by 1

TestCleanImageFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…