MCPcopy
hub / github.com/google/go-containerregistry / hasImplicitNamespace

Function hasImplicitNamespace

pkg/name/repository.go:42–44  ·  view source on GitHub ↗

See https://docs.docker.com/docker-hub/official_repos

(repo string, reg Registry)

Source from the content-addressed store, hash-verified

40
41// See https://docs.docker.com/docker-hub/official_repos
42func hasImplicitNamespace(repo string, reg Registry) bool {
43 return !strings.ContainsRune(repo, '/') && reg.RegistryStr() == DefaultRegistry
44}
45
46// RepositoryStr returns the repository component of the Repository.
47func (r Repository) RepositoryStr() string {

Callers 2

RepositoryStrMethod · 0.85
NewRepositoryFunction · 0.85

Calls 1

RegistryStrMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…