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

Method usingClientKey

config/http_config.go:1404–1406  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1402}
1403
1404func (c *TLSConfig) usingClientKey() bool {
1405 return len(c.Key) > 0 || len(c.KeyFile) > 0 || len(c.KeyRef) > 0
1406}
1407
1408func (c *TLSConfig) roundTripperSettings(secretManager SecretManager) (TLSRoundTripperSettings, error) {
1409 ca, err := toSecret(secretManager, Secret(c.CA), c.CAFile, c.CARef)

Callers 2

ValidateMethod · 0.95
NewTLSConfigWithContextFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected