Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct { APIKey string `json:"api_key,omitempty"` APIEndpoint string `json:"api_endpoint,omitempty"` // contains filtered or unexported fields }
func (*Provider) AppendRecords ¶
type ProviderWrapper ¶
type ProviderWrapper struct{ *Provider }
Provider wraps the provider implementation as a Caddy module.
func (ProviderWrapper) CaddyModule ¶
func (ProviderWrapper) CaddyModule() caddy.ModuleInfo
CaddyModule returns the Caddy module information.
func (*ProviderWrapper) Provision ¶
func (p *ProviderWrapper) Provision(ctx caddy.Context) error
Before using the provider config, resolve placeholders in the API token. Implements caddy.Provisioner.
func (*ProviderWrapper) UnmarshalCaddyfile ¶
func (p *ProviderWrapper) UnmarshalCaddyfile(d *caddyfile.Dispenser) error
UnmarshalCaddyfile sets up the DNS provider from Caddyfile tokens. Syntax:
acmerelay { api_key <api_key> endpoint <url> }
Expansion of placeholders is left to the JSON config caddy.Provisioner (above).
Click to show internal directories.
Click to hide internal directories.