MCPcopy Create free account
hub / github.com/docker/docker-agent / SharedRegistry

Function SharedRegistry

pkg/toolinstall/registry.go:182–187  ·  view source on GitHub ↗

SharedRegistry returns a package-level Registry instance that is reused across all tool resolutions within a docker agent session, avoiding repeated YAML parsing and HTTP fetches.

()

Source from the content-addressed store, hash-verified

180// across all tool resolutions within a docker agent session, avoiding repeated
181// YAML parsing and HTTP fetches.
182func SharedRegistry() *Registry {
183 sharedRegistryOnce.Do(func() {
184 sharedRegistry = NewRegistry()
185 })
186 return sharedRegistry
187}
188
189// LookupByName searches the registry for a package by "owner/repo" identifier.
190// Searches the full registry index first, then falls back to fetching the

Callers 2

ResolveHostsFunction · 0.85
doInstallFunction · 0.85

Calls 2

NewRegistryFunction · 0.70
DoMethod · 0.65

Tested by

no test coverage detected