# Functions
JoinDir joins dir and path if path is relative.
LoadHTTPConfig parses the YAML input s into a HTTPClientConfig.
LoadHTTPConfigFile parses the given YAML file into a HTTPClientConfig.
NewAuthorizationCredentialsRoundTripper adds the authorization credentials read from the provided SecretReader to a request unless the authorization header has already been set.
NewBasicAuthRoundTripper will apply a BASIC auth authorization header to a request unless it has already been set.
NewClientFromConfig returns a new HTTP client configured for the given config.HTTPClientConfig and config.HTTPClientOption.
No description provided by the author
NewHeadersRoundTripper returns a RoundTripper that sets HTTP headers on requests as configured.
NewHostRoundTripper sets the [http.Request.Host] of every request.
No description provided by the author
No description provided by the author
NewRoundTripperFromConfig returns a new HTTP RoundTripper configured for the given config.HTTPClientConfig and config.HTTPClientOption.
NewRoundTripperFromConfigWithContext returns a new HTTP RoundTripper configured for the given config.HTTPClientConfig and config.HTTPClientOption.
NewTLSConfig creates a new tls.Config from the given TLSConfig.
NewTLSConfigWithContext creates a new tls.Config from the given TLSConfig.
No description provided by the author
No description provided by the author
NewUserAgentRoundTripper adds the user agent every request header.
WithDialContextFunc allows you to override the func gets used for the dialing.
WithHost allows setting the host header.
WithHTTP2Disabled allows to disable HTTP2.
WithIdleConnTimeout allows setting the idle connection timeout.
WithKeepAlivesDisabled allows to disable HTTP keepalive.
WithNewTLSConfigFunc allows you to override the func that creates the TLS config from the prometheus http config.
WithSecretManager allows setting the secret manager.
WithUserAgent allows setting the user agent.
# Variables
DefaultHTTPClientConfig is the default HTTP client configuration.
MarshalSecretValue if set to true will expose Secret type through the marshal interfaces.
No description provided by the author
# Structs
Authorization contains HTTP authorization credentials.
BasicAuth contains basic HTTP authentication credentials.
No description provided by the author
Header represents the configuration for a single HTTP header.
Headers represents the configuration for HTTP headers.
HTTPClientConfig configures an HTTP client.
No description provided by the author
OAuth2 is the oauth2 client configuration.
No description provided by the author
TLSConfig configures the options for TLS connections.
No description provided by the author
URL is a custom URL type that allows validation at configuration load time.
# Interfaces
DirectorySetter is a config type that contains file paths that may be relative to the file containing the config.
HTTPClientOption defines an option that can be applied to the HTTP client.
SecretManager manages secret data mapped to names known as "references" or "refs".
No description provided by the author
TLSConfigOption defines an option that can be applied to the HTTP client.
# Type aliases
DialContextFunc defines the signature of the DialContext() function implemented by net.Dialer.
NewTLSConfigFunc returns tls.Config.
No description provided by the author
Secret special type for storing secrets.
No description provided by the author