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

Method ObtainCertAsync

config.go:543–545  ·  view source on GitHub ↗

ObtainCertAsync is the same as ObtainCertSync(), except it runs in the background; i.e. non-interactively, and with retries if it fails.

(ctx context.Context, name string)

Source from the content-addressed store, hash-verified

541// ObtainCertAsync is the same as ObtainCertSync(), except it runs in the
542// background; i.e. non-interactively, and with retries if it fails.
543func (cfg *Config) ObtainCertAsync(ctx context.Context, name string) error {
544 return cfg.obtainCert(ctx, name, false)
545}
546
547func (cfg *Config) obtainCert(ctx context.Context, name string, interactive bool) error {
548 if len(cfg.Issuers) == 0 {

Callers 3

forceRenewMethod · 0.95
manageOneMethod · 0.95

Calls 1

obtainCertMethod · 0.95

Tested by

no test coverage detected