Documentation
¶
Index ¶
- type Provider
- func (p *Provider) AppendRecords(ctx context.Context, zone string, records []libdns.Record) ([]libdns.Record, error)
- 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) SetRecords(ctx context.Context, zone string, records []libdns.Record) ([]libdns.Record, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct { // The DuckDNS API token. APIToken string `json:"api_token,omitempty"` // An override to the domain, useful if the domain being // managed does not belong to DuckDNS, and instead is // pointing to DuckDNS using a CNAME record. This allows // using DuckDNS' API to manage records for other domains // which have worse or no programmable APIs. OverrideDomain string `json:"override_domain,omitempty"` // An optional resolver to use when doing DNS queries to // load the current records. By default, 8.8.8.8:53 is used, // i.e. Google's public DNS server. Resolver string `json:"resolver,omitempty"` // contains filtered or unexported fields }
Provider implements the libdns interfaces for Duck DNS.
func (*Provider) AppendRecords ¶
func (p *Provider) AppendRecords(ctx context.Context, zone string, records []libdns.Record) ([]libdns.Record, error)
AppendRecords adds records to the zone and returns the records that were created.
func (*Provider) DeleteRecords ¶
func (p *Provider) DeleteRecords(ctx context.Context, zone string, records []libdns.Record) ([]libdns.Record, error)
DeleteRecords deletes records from the zone and returns the records that were deleted.
func (*Provider) GetRecords ¶
GetRecords lists all the records in the zone.
Click to show internal directories.
Click to hide internal directories.