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)
| 945 | // http for registry endpoints with configurations for both http and TLS, |
| 946 | // such as defaulted localhost endpoints. |
| 947 | func NewHTTPFallback(transport http.RoundTripper) http.RoundTripper { |
| 948 | return &httpFallback{ |
| 949 | super: transport, |
| 950 | } |
| 951 | } |
| 952 | |
| 953 | type httpFallback struct { |
| 954 | super http.RoundTripper |
no outgoing calls
searching dependent graphs…