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

Function Domain

docker/reference/reference.go:149–155  ·  view source on GitHub ↗

Domain returns the domain part of the Named reference

(named Named)

Source from the content-addressed store, hash-verified

147
148// Domain returns the domain part of the Named reference
149func Domain(named Named) string {
150 if r, ok := named.(namedRepository); ok {
151 return r.Domain()
152 }
153 domain, _ := splitDomain(named.Name())
154 return domain
155}
156
157// Path returns the name without the domain part of the Named reference
158func Path(named Named) (name string) {

Callers 12

parseShortNameValueFunction · 0.92
validateShortNameFunction · 0.92
TestParseReferenceFunction · 0.92
newImageDestinationFunction · 0.92
bicTransportScopeFunction · 0.92
newDockerClientFromRefFunction · 0.92
newImageSourceAttemptFunction · 0.92
TestParseRepositoryInfoFunction · 0.85

Calls 3

splitDomainFunction · 0.85
DomainMethod · 0.65
NameMethod · 0.65

Tested by 3

TestParseReferenceFunction · 0.74
TestParseRepositoryInfoFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…