aboutsummaryrefslogtreecommitdiffhomepage
path: root/modules/caddytls/automation.go
diff options
context:
space:
mode:
authorMatthew Holt <[email protected]>2022-03-25 11:28:54 -0600
committerMatthew Holt <[email protected]>2022-03-25 11:28:54 -0600
commitd06d0e79f839a26ab2cf81b00ba2d180623c57a9 (patch)
treec215c3c16ad9280df4721b53460bd36aa5893489 /modules/caddytls/automation.go
parenta58f240d3ecbb59285303746406cab50217f8d24 (diff)
downloadcaddy-d06d0e79f839a26ab2cf81b00ba2d180623c57a9.tar.gz
caddy-d06d0e79f839a26ab2cf81b00ba2d180623c57a9.zip
go.mod: Upgrade CertMagic to v0.16.0
Includes several breaking changes; code base updated accordingly. - Added lots of context arguments - Use fs.ErrNotExist - Rename ACMEManager -> ACMEIssuer; CertificateManager -> Manager
Diffstat (limited to 'modules/caddytls/automation.go')
-rw-r--r--modules/caddytls/automation.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/caddytls/automation.go b/modules/caddytls/automation.go
index eb97c82d1..26884bce0 100644
--- a/modules/caddytls/automation.go
+++ b/modules/caddytls/automation.go
@@ -141,8 +141,8 @@ type AutomationPolicy struct {
// they are only used to populate an underlying certmagic.Config's
// fields during provisioning so that the modules can survive a
// re-provisioning.
- Issuers []certmagic.Issuer `json:"-"`
- Managers []certmagic.CertificateManager `json:"-"`
+ Issuers []certmagic.Issuer `json:"-"`
+ Managers []certmagic.Manager `json:"-"`
magic *certmagic.Config
storage certmagic.Storage
@@ -199,7 +199,7 @@ func (ap *AutomationPolicy) Provision(tlsApp *TLS) error {
return fmt.Errorf("loading external certificate manager modules: %v", err)
}
for _, getCertVal := range vals.([]interface{}) {
- ap.Managers = append(ap.Managers, getCertVal.(certmagic.CertificateManager))
+ ap.Managers = append(ap.Managers, getCertVal.(certmagic.Manager))
}
}