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

Method InstallHosts

pkg/toolinstall/hosts.go:70–75  ·  view source on GitHub ↗

InstallHosts returns the hostnames the auto-installer will reach for when installing this package. Always includes the registry-side lookup hosts because the in-sandbox installer re-runs the same LookupByName/LookupByCommand path the host uses here.

()

Source from the content-addressed store, hash-verified

68// lookup hosts because the in-sandbox installer re-runs the same
69// LookupByName/LookupByCommand path the host uses here.
70func (p *Package) InstallHosts() []string {
71 if p.IsGoPackage() {
72 return mergeHosts(lookupHosts, goInstallHosts)
73 }
74 return mergeHosts(lookupHosts, githubReleaseHosts)
75}
76
77// ResolveHosts returns the set of hostnames the auto-installer needs
78// to reach inside a sandbox in order to install command at version.

Calls 2

IsGoPackageMethod · 0.95
mergeHostsFunction · 0.85