ddns5libdns

package module
v0.0.0-...-f62ae7c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 12, 2021 License: MIT Imports: 9 Imported by: 1

README

ddns5.com DNS for libdns

This package implements the libdns interfaces for ddns5.com DDNS service.

Authenticating

This package uses API Token authentication. Refer to the Duck DNS documentation for more information.

You can use a 32 character random string for your token.

Post questions at github in the discussions for questions.

Thanks to Duckdns.org for the open source original for this package. Please consider using their service, or donating to them. Duck DNS

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct {
	APIToken       string `json:"api_token,omitempty"`
	OverrideDomain string `json:"override_domain,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

func (p *Provider) GetRecords(ctx context.Context, zone string) ([]libdns.Record, error)

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, and returns the recordsthat were updated.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL