Documentation
¶
Index ¶
- type LegoDeprecated
- func (LegoDeprecated) CaddyModule() caddy.ModuleInfo
- func (ld LegoDeprecated) CleanUp(_ context.Context, challenge acme.Challenge) error
- func (ld LegoDeprecated) Present(_ context.Context, challenge acme.Challenge) error
- func (ld *LegoDeprecated) Provision(ctx caddy.Context) error
- func (ld *LegoDeprecated) UnmarshalCaddyfile(d *caddyfile.Dispenser) error
- func (LegoDeprecated) Wait(ctx context.Context, challenge acme.Challenge) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LegoDeprecated ¶
type LegoDeprecated struct { ProviderName string `json:"provider_name,omitempty"` // contains filtered or unexported fields }
LegoDeprecated is a shim module that allows any and all of the DNS providers in go-acme/lego to be used with Caddy. They must be configured via environment variables, they do not support cancellation in the case of frequent config changes.
Even though this module is in the dns.providers namespace, it is only a special case for solving ACME challenges, intended to replace the modules that used to be in the now-defunct tls.dns namespace. Using it in other places of the Caddy config will result in errors.
This module will eventually go away in favor of the modules that make use of the libdns APIs: https://github.com/libdns
func (LegoDeprecated) CaddyModule ¶
func (LegoDeprecated) CaddyModule() caddy.ModuleInfo
CaddyModule returns the Caddy module information.
func (LegoDeprecated) CleanUp ¶
CleanUp wraps the go-acme/lego/v4/challenge.Provider interface with the acmez.Solver interface. Normally, DNS providers in the caddy-dns repositories would implement the libdns interfaces (https://github.com/libdns/libdns) instead, but this module is a special case to give time for more DNS providers to be ported over to the libdns interfaces from the deprecated lego interface.
func (LegoDeprecated) Present ¶
Present wraps the go-acme/lego/v4/challenge.Provider interface with the certmagic.ACMEDNSProvider interface. Normally, DNS providers in the caddy-dns repositories would implement the libdns interfaces (https://github.com/libdns/libdns) instead, but this module is a special case to give time for more DNS providers to be ported over to the libdns interfaces from the deprecated lego interface.
func (*LegoDeprecated) Provision ¶
func (ld *LegoDeprecated) Provision(ctx caddy.Context) error
Provision initializes the underlying DNS provider.
func (*LegoDeprecated) UnmarshalCaddyfile ¶
func (ld *LegoDeprecated) UnmarshalCaddyfile(d *caddyfile.Dispenser) error
UnmarshalCaddyfile sets up the DNS provider from Caddyfile tokens. Syntax:
lego_deprecated <provider>