MCPcopy
hub / github.com/containers/toolbox / ImageReferenceGetDomain

Function ImageReferenceGetDomain

src/pkg/utils/utils.go:591–599  ·  view source on GitHub ↗
(image string)

Source from the content-addressed store, hash-verified

589}
590
591func ImageReferenceGetDomain(image string) string {
592 if !ImageReferenceHasDomain(image) {
593 return ""
594 }
595
596 i := strings.IndexRune(image, '/')
597 domain := image[:i]
598 return domain
599}
600
601func ImageReferenceGetTag(image string) string {
602 var i int

Callers

nothing calls this directly

Calls 1

ImageReferenceHasDomainFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…