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

Interface TLSConfigOption

config/http_config.go:1253–1255  ·  view source on GitHub ↗

TLSConfigOption defines an option that can be applied to the HTTP client.

Source from the content-addressed store, hash-verified

1251
1252// TLSConfigOption defines an option that can be applied to the HTTP client.
1253type TLSConfigOption interface {
1254 applyToTLSConfigOptions(options *tlsConfigOptions)
1255}
1256
1257// NewTLSConfig creates a new tls.Config from the given TLSConfig.
1258func NewTLSConfig(cfg *TLSConfig, optFuncs ...TLSConfigOption) (*tls.Config, error) {

Callers 1

NewTLSConfigWithContextFunction · 0.65

Implementers 1

secretManagerOptionconfig/http_config.go

Calls

no outgoing calls

Tested by

no test coverage detected