Documentation
¶
Overview ¶
Package httpdefaults provides default HTTP client settings for Talos.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LazyTransport ¶
func LazyTransport(newTransport func() *http.Transport) http.RoundTripper
LazyTransport returns a http.RoundTripper which builds the underlying transport on first use.
Building a patched transport loads the trusted CA bundle, so this avoids the cost for processes which never make an HTTP request through the returned transport.
func PatchTransport ¶
PatchTransport updates *http.Transport with Talos-specific settings.
Settings applied here only make sense when running in Talos root filesystem.
func RootCAs ¶
RootCAs provides a cached, but refreshed, list of root CAs.
If loading certificates fails for any reason, function returns nil.
func RootCAsTLSConfig ¶ added in v1.11.3
RootCAsTLSConfig provides a TLS configuration with the root CAs.
Types ¶
This section is empty.