sfu1net

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

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

Go to latest
Published: Feb 10, 2021 License: MIT Imports: 9 Imported by: 0

README

sfu1.net DNS for libdns

This package implements the libdns interfaces for sfu1.net DNS.

Authenticating

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

Contact us at sfu1.net DNS regarding getting your own token.

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