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

Method usingClientCert

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

Source from the content-addressed store, hash-verified

1400}
1401
1402func (c *TLSConfig) usingClientCert() bool {
1403 return len(c.Cert) > 0 || len(c.CertFile) > 0 || len(c.CertRef) > 0
1404}
1405
1406func (c *TLSConfig) usingClientKey() bool {
1407 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