1
0
Fork 0
traefik/vendor/github.com/docker/docker/client/transport.go
2018-01-22 12:16:03 +01:00

17 lines
319 B
Go

package client
import (
"crypto/tls"
"net/http"
)
// resolveTLSConfig attempts to resolve the TLS configuration from the
// RoundTripper.
func resolveTLSConfig(transport http.RoundTripper) *tls.Config {
switch tr := transport.(type) {
case *http.Transport:
return tr.TLSClientConfig
default:
return nil
}
}