MCPcopy
hub / github.com/containerd/containerd / WithPlainHTTP

Function WithPlainHTTP

core/remotes/docker/registry.go:131–135  ·  view source on GitHub ↗

WithPlainHTTP configures registries to use plaintext http scheme for the provided host match function.

(f func(string) (bool, error))

Source from the content-addressed store, hash-verified

129// WithPlainHTTP configures registries to use plaintext http scheme
130// for the provided host match function.
131func WithPlainHTTP(f func(string) (bool, error)) RegistryOpt {
132 return func(opts *registryOpts) {
133 opts.plainHTTP = f
134 }
135}
136
137// WithAuthorizer configures the default authorizer for a registry
138func WithAuthorizer(a Authorizer) RegistryOpt {

Callers 1

NewResolverFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…