MCPcopy
hub / github.com/caddyserver/caddy / Provision

Method Provision

modules/caddytls/ech.go:795–807  ·  view source on GitHub ↗
(ctx caddy.Context)

Source from the content-addressed store, hash-verified

793}
794
795func (dnsPub *ECHDNSPublisher) Provision(ctx caddy.Context) error {
796 dnsProvMod, err := ctx.LoadModule(dnsPub, "ProviderRaw")
797 if err != nil {
798 return fmt.Errorf("loading ECH DNS provider module: %v", err)
799 }
800 prov, ok := dnsProvMod.(ECHDNSProvider)
801 if !ok {
802 return fmt.Errorf("ECH DNS provider module is not an ECH DNS Provider: %v", err)
803 }
804 dnsPub.provider = prov
805 dnsPub.logger = ctx.Logger()
806 return nil
807}
808
809// PublisherKey returns the name of the DNS provider module.
810// We intentionally omit specific provider configuration (or a hash thereof,

Callers

nothing calls this directly

Calls 2

LoadModuleMethod · 0.80
LoggerMethod · 0.45

Tested by

no test coverage detected