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

Function Path

docker/reference/reference.go:158–164  ·  view source on GitHub ↗

Path returns the name without the domain part of the Named reference

(named Named)

Source from the content-addressed store, hash-verified

156
157// Path returns the name without the domain part of the Named reference
158func Path(named Named) (name string) {
159 if r, ok := named.(namedRepository); ok {
160 return r.Path()
161 }
162 _, path := splitDomain(named.Name())
163 return path
164}
165
166func splitDomain(name string) (string, string) {
167 match := anchoredNameRegexp.FindStringSubmatch(name)

Callers 15

UpdatedImageMethod · 0.92
NewReferenceFunction · 0.92
newDockerClientFromRefFunction · 0.92
fetchManifestMethod · 0.92
getBlobMethod · 0.92
PutBlobWithOptionsMethod · 0.92
blobExistsMethod · 0.92
mountBlobMethod · 0.92

Calls 3

splitDomainFunction · 0.85
PathMethod · 0.65
NameMethod · 0.65

Tested by 1

TestParseRepositoryInfoFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…