MCPcopy
hub / github.com/redspread/spread / remoteName

Function remoteName

pkg/image/image.go:150–153  ·  view source on GitHub ↗

remoteName returns the repository component of the full name, like "library/ubuntu"

(r reference.Named)

Source from the content-addressed store, hash-verified

148
149// remoteName returns the repository component of the full name, like "library/ubuntu"
150func remoteName(r reference.Named) string {
151 _, remoteName := splitHostname(r.Name())
152 return remoteName
153}
154
155// splitHostname splits a repository name to hostname and remotename string.
156// If no valid hostname is found, the default hostname is used. Repository name

Callers 1

NameMethod · 0.85

Calls 2

splitHostnameFunction · 0.85
NameMethod · 0.80

Tested by

no test coverage detected