MCPcopy
hub / github.com/kubernetes/client-go / TLSConfigFor

Function TLSConfigFor

rest/transport.go:30–36  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.
30func 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

Callers

nothing calls this directly

Calls 2

TLSConfigForFunction · 0.92
TransportConfigMethod · 0.80

Tested by

no test coverage detected