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

Method usingClientCert

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

Source from the content-addressed store, hash-verified

1398}
1399
1400func (c *TLSConfig) usingClientCert() bool {
1401 return len(c.Cert) > 0 || len(c.CertFile) > 0 || len(c.CertRef) > 0
1402}
1403
1404func (c *TLSConfig) usingClientKey() bool {
1405 return len(c.Key) > 0 || len(c.KeyFile) > 0 || len(c.KeyRef) > 0

Callers 2

ValidateMethod · 0.95
NewTLSConfigWithContextFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected