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

Function hostname

pkg/image/image.go:144–147  ·  view source on GitHub ↗

hostname returns hostname for the reference, like "docker.io"

(r reference.Named)

Source from the content-addressed store, hash-verified

142
143// hostname returns hostname for the reference, like "docker.io"
144func hostname(r reference.Named) string {
145 hostname, _ := splitHostname(r.Name())
146 return hostname
147}
148
149// remoteName returns the repository component of the full name, like "library/ubuntu"
150func remoteName(r reference.Named) string {

Callers 1

PushOptionsMethod · 0.85

Calls 2

splitHostnameFunction · 0.85
NameMethod · 0.80

Tested by

no test coverage detected