MCPcopy Create free account
hub / github.com/containers/image / TrimNamed

Function TrimNamed

docker/reference/reference.go:322–328  ·  view source on GitHub ↗

TrimNamed removes any tag or digest from the named reference.

(ref Named)

Source from the content-addressed store, hash-verified

320
321// TrimNamed removes any tag or digest from the named reference.
322func TrimNamed(ref Named) Named {
323 domain, path := SplitHostname(ref)
324 return repository{
325 domain: domain,
326 path: path,
327 }
328}
329
330func getBestReferenceType(ref reference) Reference {
331 if ref.Name() == "" {

Callers 5

toNamedFunction · 0.92
splitUserInputFunction · 0.92
RecordMethod · 0.92

Calls 1

SplitHostnameFunction · 0.85

Tested by 1

toNamedFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…