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

Method roundTripperSettings

config/http_config.go:959–968  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

957}
958
959func (c *TLSConfig) roundTripperSettings() TLSRoundTripperSettings {
960 return TLSRoundTripperSettings{
961 CA: c.CA,
962 CAFile: c.CAFile,
963 Cert: c.Cert,
964 CertFile: c.CertFile,
965 Key: string(c.Key),
966 KeyFile: c.KeyFile,
967 }
968}
969
970// getClientCertificate reads the pair of client cert and key from disk and returns a tls.Certificate.
971func (c *TLSConfig) getClientCertificate(_ *tls.CertificateRequestInfo) (*tls.Certificate, error) {

Callers 2

RoundTripMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected