MCPcopy Index your code
hub / github.com/containerd/containerd / NewHTTPFallback

Function NewHTTPFallback

core/remotes/docker/resolver.go:947–951  ·  view source on GitHub ↗

NewHTTPFallback returns http.RoundTripper which allows fallback from https to http for registry endpoints with configurations for both http and TLS, such as defaulted localhost endpoints.

(transport http.RoundTripper)

Source from the content-addressed store, hash-verified

945// http for registry endpoints with configurations for both http and TLS,
946// such as defaulted localhost endpoints.
947func NewHTTPFallback(transport http.RoundTripper) http.RoundTripper {
948 return &httpFallback{
949 super: transport,
950 }
951}
952
953type httpFallback struct {
954 super http.RoundTripper

Callers 4

ConfigureHostsFunction · 0.92
TestPusherHTTPFallbackFunction · 0.85
TestHTTPFallbackResolverFunction · 0.85

Calls

no outgoing calls

Tested by 3

TestPusherHTTPFallbackFunction · 0.68
TestHTTPFallbackResolverFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…