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

Method CleanUp

solvers.go:662–672  ·  view source on GitHub ↗

CleanUp invokes the underlying solver's CleanUp method and also cleans up any assets saved to storage.

(ctx context.Context, chal acme.Challenge)

Source from the content-addressed store, hash-verified

660// CleanUp invokes the underlying solver's CleanUp method
661// and also cleans up any assets saved to storage.
662func (dhs distributedSolver) CleanUp(ctx context.Context, chal acme.Challenge) error {
663 err := dhs.storage.Delete(ctx, dhs.challengeTokensKey(challengeKey(chal)))
664 if err != nil {
665 return err
666 }
667 err = dhs.solver.CleanUp(ctx, chal)
668 if err != nil {
669 return fmt.Errorf("cleaning up embedded provider: %v", err)
670 }
671 return nil
672}
673
674// challengeTokensPrefix returns the key prefix for challenge info.
675func (dhs distributedSolver) challengeTokensPrefix() string {

Callers

nothing calls this directly

Calls 4

challengeTokensKeyMethod · 0.95
challengeKeyFunction · 0.85
DeleteMethod · 0.65
CleanUpMethod · 0.45

Tested by

no test coverage detected