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

Method usingClientKey

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

Source from the content-addressed store, hash-verified

1400}
1401
1402func (c *TLSConfig) usingClientKey() bool {
1403 return len(c.Key) > 0 || len(c.KeyFile) > 0 || len(c.KeyRef) > 0
1404}
1405
1406func (c *TLSConfig) roundTripperSettings(secretManager SecretManager) (TLSRoundTripperSettings, error) {
1407 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