Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
Provider lets Caddy read and manipulate DNS records hosted by this DNS provider.
func (Provider) CaddyModule ¶
func (Provider) CaddyModule() caddy.ModuleInfo
CaddyModule returns the Caddy module information.
func (*Provider) UnmarshalCaddyfile ¶
UnmarshalCaddyfile sets up the DNS provider from Caddyfile tokens. Syntax:
regfish {
api_key <api_key>
}
func (*Provider) UnmarshalJSON ¶
UnmarshalJSON reads the module configuration. The API key is accepted under "api_token" and "api_key". "APIToken" is accepted as well: it was the only working key before the provider carried a JSON tag, so configurations written for earlier versions keep working. Unknown keys are rejected, as Caddy does for every module.