MCPcopy Create free account
hub / github.com/prometheus/common / TLSConfig

Struct TLSConfig

config/http_config.go:886–907  ·  view source on GitHub ↗

TLSConfig configures the options for TLS connections.

Source from the content-addressed store, hash-verified

884
885// TLSConfig configures the options for TLS connections.
886type TLSConfig struct {
887 // Text of the CA cert to use for the targets.
888 CA string `yaml:"ca,omitempty" json:"ca,omitempty"`
889 // Text of the client cert file for the targets.
890 Cert string `yaml:"cert,omitempty" json:"cert,omitempty"`
891 // Text of the client key file for the targets.
892 Key Secret `yaml:"key,omitempty" json:"key,omitempty"`
893 // The CA cert to use for the targets.
894 CAFile string `yaml:"ca_file,omitempty" json:"ca_file,omitempty"`
895 // The client cert file for the targets.
896 CertFile string `yaml:"cert_file,omitempty" json:"cert_file,omitempty"`
897 // The client key file for the targets.
898 KeyFile string `yaml:"key_file,omitempty" json:"key_file,omitempty"`
899 // Used to verify the hostname for the targets.
900 ServerName string `yaml:"server_name,omitempty" json:"server_name,omitempty"`
901 // Disable target certificate validation.
902 InsecureSkipVerify bool `yaml:"insecure_skip_verify" json:"insecure_skip_verify"`
903 // Minimum TLS version.
904 MinVersion TLSVersion `yaml:"min_version,omitempty" json:"min_version,omitempty"`
905 // Maximum TLS version.
906 MaxVersion TLSVersion `yaml:"max_version,omitempty" json:"max_version,omitempty"`
907}
908
909// SetDirectory joins any relative file paths with dir.
910func (c *TLSConfig) SetDirectory(dir string) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected