Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct{ *cloudflare.Provider }
Provider wraps the provider implementation as a Caddy module.
func (Provider) CaddyModule ¶
func (Provider) CaddyModule() caddy.ModuleInfo
CaddyModule returns the Caddy module information.
func (*Provider) Provision ¶
Before using the provider config, resolve placeholders in the API token(s). Implements caddy.Provisioner.
func (*Provider) UnmarshalCaddyfile ¶
UnmarshalCaddyfile sets up the DNS provider from Caddyfile tokens. Three syntaxes supported:
Seperate Zone/DNS tokens
cloudflare { api_token <api_token> // Zone DNS write access - scoped to applicable Zone(s) zone_token <zone_token> // Zone read access - all zones } Single API Token cloudflare <api_token> // Zone read access and Zone DNS write for all zones Single API Token, alternative syntax cloudflare { api_token <api_token> // Zone read access and Zone DNS write for all zones }
Expansion of placeholders in the API token is left to the JSON config caddy.Provisioner (above).
Click to show internal directories.
Click to hide internal directories.