Versions in this module Expand all Collapse all v0 v0.0.6 Dec 20, 2021 Changes in this version + func NewClient(cfg ClientConfig) (*http.Client, error) + func WithCACert(fpath string) func(*tls.Config) error + func WithClientCertificate(cert, key string) func(*tls.Config) error + func WithInsecureSkipVerify() func(*tls.Config) + func WithTransport(rt http.RoundTripper) func(*http.Client) + type ClientConfig struct + Password string + RequestTimeout time.Duration + TLSCACert string + TLSClientCert string + TLSClientKey string + TLSSkipVerify bool + Username string + Verbose bool + func (c ClientConfig) Validate() error + type DigestAuthTransport struct + Password string + Username string + func NewDigestAuthTransport(username, password string, rt http.RoundTripper) *DigestAuthTransport + func (t *DigestAuthTransport) RoundTrip(req *http.Request) (*http.Response, error) + type DumpTransport struct + R http.RoundTripper + func NewDumpTransport(rt http.RoundTripper) *DumpTransport + func (d *DumpTransport) RoundTrip(h *http.Request) (*http.Response, error)