TLSConfigFor returns a tls.Config that will provide the transport level security defined by the provided Config. Will return nil if no transport level security is requested.
(config *Config)
| 28 | // TLSConfigFor returns a tls.Config that will provide the transport level security defined |
| 29 | // by the provided Config. Will return nil if no transport level security is requested. |
| 30 | func TLSConfigFor(config *Config) (*tls.Config, error) { |
| 31 | cfg, err := config.TransportConfig() |
| 32 | if err != nil { |
| 33 | return nil, err |
| 34 | } |
| 35 | return transport.TLSConfigFor(cfg) |
| 36 | } |
| 37 | |
| 38 | // TransportFor returns an http.RoundTripper that will provide the authentication |
| 39 | // or transport level security defined by the provided Config. Will return the |
nothing calls this directly
no test coverage detected