(ctx caddy.Context)
| 793 | } |
| 794 | |
| 795 | func (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, |
nothing calls this directly
no test coverage detected