MCPcopy
hub / github.com/caddyserver/certmagic / Remove

Method Remove

cache.go:429–436  ·  view source on GitHub ↗

Remove removes certificates with the given hashes from the cache. This is effectively used to unload manually-loaded certificates.

(hashes []string)

Source from the content-addressed store, hash-verified

427// Remove removes certificates with the given hashes from the cache.
428// This is effectively used to unload manually-loaded certificates.
429func (certCache *Cache) Remove(hashes []string) {
430 certCache.mu.Lock()
431 for _, h := range hashes {
432 cert := certCache.cache[h]
433 certCache.removeCertificate(cert)
434 }
435 certCache.mu.Unlock()
436}
437
438var (
439 defaultCache *Cache

Callers 5

RemoveManagedMethod · 0.95
obtainLockMethod · 0.80
UnlockMethod · 0.80
CloseMethod · 0.80
CancelMethod · 0.80

Calls 3

removeCertificateMethod · 0.95
LockMethod · 0.65
UnlockMethod · 0.65

Tested by

no test coverage detected