Versions in this module Expand all Collapse all v0 v0.10.3 Jun 19, 2020 v0.10.2 Jun 19, 2020 Changes in this version + func NewBasicAuthRoundTripper(username string, password Secret, passwordFile string, rt http.RoundTripper) http.RoundTripper + func NewBearerAuthFileRoundTripper(bearerFile string, rt http.RoundTripper) http.RoundTripper + func NewBearerAuthRoundTripper(token Secret, rt http.RoundTripper) http.RoundTripper + func NewClientFromConfig(cfg HTTPClientConfig, name string, disableKeepAlives bool) (*http.Client, error) + func NewRoundTripperFromConfig(cfg HTTPClientConfig, name string, disableKeepAlives bool) (http.RoundTripper, error) + func NewTLSConfig(cfg *TLSConfig) (*tls.Config, error) + type BasicAuth struct + Password Secret + PasswordFile string + Username string + func (a *BasicAuth) UnmarshalYAML(unmarshal func(interface{}) error) error + type HTTPClientConfig struct + BasicAuth *BasicAuth + BearerToken Secret + BearerTokenFile string + ProxyURL URL + TLSConfig TLSConfig + func (c *HTTPClientConfig) UnmarshalYAML(unmarshal func(interface{}) error) error + func (c *HTTPClientConfig) Validate() error + func (c HTTPClientConfig) String() string + type Secret string + func (s *Secret) UnmarshalYAML(unmarshal func(interface{}) error) error + func (s Secret) MarshalYAML() (interface{}, error) + type TLSConfig struct + CAFile string + CertFile string + InsecureSkipVerify bool + KeyFile string + ServerName string + func (c *TLSConfig) UnmarshalYAML(unmarshal func(interface{}) error) error + type URL struct + func (u *URL) UnmarshalYAML(unmarshal func(interface{}) error) error + func (u URL) MarshalYAML() (interface{}, error)