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

Method usingClientCert

config/http_config.go:951–953  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

949}
950
951func (c *TLSConfig) usingClientCert() bool {
952 return len(c.Cert) > 0 || len(c.CertFile) > 0
953}
954
955func (c *TLSConfig) usingClientKey() bool {
956 return len(c.Key) > 0 || len(c.KeyFile) > 0

Callers 2

ValidateMethod · 0.95
NewTLSConfigFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected