Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPConfig ¶
type HTTPConfig struct { IdleConnTimeout time.Duration `yaml:"idle_conn_timeout" category:"advanced"` ResponseHeaderTimeout time.Duration `yaml:"response_header_timeout" category:"advanced"` InsecureSkipVerify bool `yaml:"insecure_skip_verify" category:"advanced"` TLSHandshakeTimeout time.Duration `yaml:"tls_handshake_timeout" category:"advanced"` ExpectContinueTimeout time.Duration `yaml:"expect_continue_timeout" category:"advanced"` MaxIdleConns int `yaml:"max_idle_connections" category:"advanced"` MaxIdleConnsPerHost int `yaml:"max_idle_connections_per_host" category:"advanced"` MaxConnsPerHost int `yaml:"max_connections_per_host" category:"advanced"` // Allow upstream callers to inject a round tripper Transport http.RoundTripper `yaml:"-"` TLSConfig TLSConfig `yaml:",inline"` }
HTTPConfig stores the http.Transport configuration for an object storage client
func (*HTTPConfig) RegisterFlagsWithPrefix ¶
func (cfg *HTTPConfig) RegisterFlagsWithPrefix(prefix string, f *flag.FlagSet)
func (*HTTPConfig) ToExtHTTP ¶
func (cfg *HTTPConfig) ToExtHTTP() exthttp.HTTPConfig
type TLSConfig ¶
type TLSConfig struct { CAPath string `yaml:"tls_ca_path" category:"advanced"` CertPath string `yaml:"tls_cert_path" category:"advanced"` KeyPath string `yaml:"tls_key_path" category:"advanced"` ServerName string `yaml:"tls_server_name" category:"advanced"` }
TLSConfig configures the options for TLS connections.
func (*TLSConfig) RegisterFlagsWithPrefix ¶
Click to show internal directories.
Click to hide internal directories.