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

Function fullName

pkg/image/image.go:138–141  ·  view source on GitHub ↗

fullName returns full repository name with hostname, like "docker.io/library/ubuntu"

(r reference.Named)

Source from the content-addressed store, hash-verified

136
137// fullName returns full repository name with hostname, like "docker.io/library/ubuntu"
138func fullName(r reference.Named) string {
139 hostname, remoteName := splitHostname(r.Name())
140 return hostname + "/" + remoteName
141}
142
143// hostname returns hostname for the reference, like "docker.io"
144func hostname(r reference.Named) string {

Callers 1

PushOptionsMethod · 0.85

Calls 2

splitHostnameFunction · 0.85
NameMethod · 0.80

Tested by

no test coverage detected