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

Function writeCertificate

config/http_config_test.go:1033–1041  ·  view source on GitHub ↗
(bs map[string][]byte, src, dst string)

Source from the content-addressed store, hash-verified

1031}
1032
1033func writeCertificate(bs map[string][]byte, src, dst string) {
1034 b, ok := bs[src]
1035 if !ok {
1036 panic(fmt.Sprintf("Couldn't find %q in bs", src))
1037 }
1038 if err := os.WriteFile(dst, b, 0o664); err != nil {
1039 panic(err)
1040 }
1041}
1042
1043func TestTLSRoundTripper(t *testing.T) {
1044 bs := getCertificateBlobs(t)

Callers 4

TestTLSRoundTripperFunction · 0.85
TestTLSRoundTripperRacesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…