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

Method usingClientCert

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

Source from the content-addressed store, hash-verified

1396}
1397
1398func (c *TLSConfig) usingClientCert() bool {
1399 return len(c.Cert) > 0 || len(c.CertFile) > 0 || len(c.CertRef) > 0
1400}
1401
1402func (c *TLSConfig) usingClientKey() bool {
1403 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