MCPcopy Create free account
hub / github.com/coder/coder / NewCertCache

Function NewCertCache

enterprise/aibridgeproxyd/certcache.go:22–26  ·  view source on GitHub ↗

NewCertCache creates a new certificate cache that maps hostnames to their generated TLS certificates.

()

Source from the content-addressed store, hash-verified

20// NewCertCache creates a new certificate cache that maps hostnames to their
21// generated TLS certificates.
22func NewCertCache() *CertCache {
23 return &CertCache{
24 certs: make(map[string]*tls.Certificate),
25 }
26}
27
28// Fetch retrieves a cached certificate for the given hostname, or generates
29// and caches a new one using the provided generator function.

Callers 3

TestProxy_CertCachingFunction · 0.92
TestCertCache_FetchFunction · 0.92
NewFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestProxy_CertCachingFunction · 0.74
TestCertCache_FetchFunction · 0.74