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