Documentation
¶
Index ¶
- type Provider
- func (p *Provider) AppendRecords(ctx context.Context, zone string, records []libdns.Record) ([]libdns.Record, error)
- func (Provider) CaddyModule() caddy.ModuleInfo
- func (p *Provider) DeleteRecords(ctx context.Context, zone string, records []libdns.Record) ([]libdns.Record, error)
- func (p *Provider) GetRecords(ctx context.Context, zone string) ([]libdns.Record, error)
- func (p *Provider) Provision(ctx caddy.Context) error
- func (p *Provider) SetRecords(ctx context.Context, zone string, records []libdns.Record) ([]libdns.Record, error)
- func (p *Provider) UnmarshalCaddyfile(d *caddyfile.Dispenser) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct {
// ServerURL is the URL of the Bluecat Address Manager server
ServerURL string `json:"server_url,omitempty"`
// Username is the API username
Username string `json:"username,omitempty"`
// Password is the API password
Password string `json:"password,omitempty"`
// ConfigurationName is accepted for compatibility but not currently
// applied to zone lookups by libdns/bluecat. A zone name that matches
// more than one zone fails with an ambiguity error instead of guessing.
ConfigurationName string `json:"configuration_name,omitempty"`
// ViewName limits zone lookups to one DNS view (optional)
ViewName string `json:"view_name,omitempty"`
// DeployDelay controls how long to wait after the last DNS record write
// before issuing a QuickDeploy to Bluecat. Writes are debounced per zone,
// so concurrent ACME DNS-01 challenges collapse into a single deploy.
//
// Accepts a Go duration string, e.g. "5s", "30s". Defaults to 5 seconds
// when unset. A negative value ("-1" in the Caddyfile) is a legacy alias
// for DisableDeploy.
DeployDelay caddy.Duration `json:"deploy_delay,omitempty"`
// MaxDeployDelay caps how long debouncing can postpone a deploy, so a
// steady stream of writes during bulk issuance can't delay it forever.
// Defaults to four times DeployDelay or 30 seconds, whichever is larger.
MaxDeployDelay caddy.Duration `json:"max_deploy_delay,omitempty"`
// DisableDeploy suppresses automatic deployment entirely. Records are
// written to Bluecat but not pushed to the DNS servers.
DisableDeploy bool `json:"disable_deploy,omitempty"`
// contains filtered or unexported fields
}
Provider lets Caddy read and manipulate DNS records hosted by Bluecat Address Manager.
func (*Provider) AppendRecords ¶
func (p *Provider) AppendRecords(ctx context.Context, zone string, records []libdns.Record) ([]libdns.Record, error)
AppendRecords adds records to the zone. It returns the records that were added.
func (Provider) CaddyModule ¶
func (Provider) CaddyModule() caddy.ModuleInfo
CaddyModule returns the Caddy module information.
func (*Provider) DeleteRecords ¶
func (p *Provider) DeleteRecords(ctx context.Context, zone string, records []libdns.Record) ([]libdns.Record, error)
DeleteRecords deletes the specified records from the zone.
func (*Provider) GetRecords ¶
GetRecords lists all the records in the zone.
func (*Provider) SetRecords ¶
func (p *Provider) SetRecords(ctx context.Context, zone string, records []libdns.Record) ([]libdns.Record, error)
SetRecords sets the records in the zone, either by updating existing records or creating new ones.
func (*Provider) UnmarshalCaddyfile ¶
UnmarshalCaddyfile sets up the DNS provider from Caddyfile tokens. Syntax:
bluecat {
server_url <url>
username <username>
password <password>
configuration_name <name> // optional
view_name <name> // optional
deploy_delay <duration> // optional, e.g. "5s" (default), "30s"
max_deploy_delay <duration> // optional, default max(4*deploy_delay, 30s)
disable_deploy // optional, never QuickDeploy
}