Versions in this module Expand all Collapse all v0 v0.0.2 Oct 27, 2022 Changes in this version + func JoinDir(dir, path string) string + 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, enableHTTP2 bool) (*http.Client, error) + func NewRoundTripperFromConfig(cfg HTTPClientConfig, name string, disableKeepAlives, enableHTTP2 bool) (http.RoundTripper, error) + func NewTLSConfig(cfg *TLSConfig) (*tls.Config, error) + type BasicAuth struct + Password Secret + PasswordFile string + Username string + func (a *BasicAuth) SetDirectory(dir string) + func (a *BasicAuth) UnmarshalYAML(unmarshal func(interface{}) error) error + type DirectorySetter interface + SetDirectory func(dir string) + type HTTPClientConfig struct + BasicAuth *BasicAuth + BearerToken Secret + BearerTokenFile string + ProxyURL URL + TLSConfig TLSConfig + func (c *HTTPClientConfig) SetDirectory(dir string) + 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) SetDirectory(dir 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)