MCPcopy
hub / github.com/containerd/containerd / WithClient

Function WithClient

core/remotes/docker/registry.go:152–156  ·  view source on GitHub ↗

WithClient configures the default http client for a registry

(c *http.Client)

Source from the content-addressed store, hash-verified

150
151// WithClient configures the default http client for a registry
152func WithClient(c *http.Client) RegistryOpt {
153 return func(opts *registryOpts) {
154 opts.client = c
155 }
156}
157
158// ConfigureDefaultRegistries is used to create a default configuration for
159// registries. For more advanced configurations or per-domain setups,

Callers 6

TestBasicResolverFunction · 0.85
withTokenServerFunction · 0.85
withBasicAuthServerFunction · 0.85
tlsServerFunction · 0.85
BasicTestFuncMethod · 0.85
NewResolverFunction · 0.85

Calls

no outgoing calls

Tested by 5

TestBasicResolverFunction · 0.68
withTokenServerFunction · 0.68
withBasicAuthServerFunction · 0.68
tlsServerFunction · 0.68
BasicTestFuncMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…