MCPcopy Create free account
hub / github.com/containers/common / toLocalImageName

Function toLocalImageName

libimage/normalize.go:98–100  ·  view source on GitHub ↗

prefix the specified name with "localhost/".

(name string)

Source from the content-addressed store, hash-verified

96
97// prefix the specified name with "localhost/".
98func toLocalImageName(name string) string {
99 return "localhost/" + strings.TrimLeft(name, "/")
100}
101
102// NameTagPair represents a RepoTag of an image.
103type NameTagPair struct {

Callers 2

NormalizeNameFunction · 0.85
copyFromDefaultMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…