Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { IdleConnTimeout time.Duration `yaml:"idle_conn_timeout"` ResponseHeaderTimeout time.Duration `yaml:"response_header_timeout"` InsecureSkipVerify bool `yaml:"insecure_skip_verify"` TLSHandshakeTimeout time.Duration `yaml:"tls_handshake_timeout"` ExpectContinueTimeout time.Duration `yaml:"expect_continue_timeout"` MaxIdleConns int `yaml:"max_idle_connections"` MaxIdleConnsPerHost int `yaml:"max_idle_connections_per_host"` MaxConnsPerHost int `yaml:"max_connections_per_host"` // Allow upstream callers to inject a round tripper Transport http.RoundTripper `yaml:"-"` TLSConfig TLSConfig `yaml:",inline"` }
Config stores the http.Client configuration for the storage clients.
func (*Config) RegisterFlags ¶
RegisterFlags registers the flags for the storage HTTP client.
type TLSConfig ¶ added in v3.4.0
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.
Click to show internal directories.
Click to hide internal directories.