Documentation ¶
Index ¶
- type LegoDeprecated
- func (LegoDeprecated) CaddyModule() caddy.ModuleInfo
- func (ld LegoDeprecated) CleanUp(domain, token, keyAuth string) error
- func (ld LegoDeprecated) Present(domain, token, keyAuth string) error
- func (ld *LegoDeprecated) Provision(ctx caddy.Context) error
- func (ld *LegoDeprecated) UnmarshalCaddyfile(d *caddyfile.Dispenser) 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 ¶
func (ld LegoDeprecated) CleanUp(domain, token, keyAuth string) error
CleanUp wraps the challenge.Provider interface.
func (LegoDeprecated) Present ¶
func (ld LegoDeprecated) Present(domain, token, keyAuth string) error
Present wraps the challenge.Provider 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>