autodns

package
v0.0.0-...-ee41f6b Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct {
	// contains filtered or unexported fields
}

Provider represents a provider which is able to manage zones using the AutoDNS API

func NewProvider

func NewProvider(username string, password string) *Provider

NewProvider creates a new instance of the autodns provider.

func (*Provider) CreateZone

func (p *Provider) CreateZone(zone dns.Zone) error

CreateZone creates the passed zone

func (*Provider) DeleteZone

func (p *Provider) DeleteZone(name string) error

DeleteZone deletes the passed zone from the provider. UNTESTED.

func (*Provider) GetZone

func (p *Provider) GetZone(name string) (dns.Zone, error)

GetZone retrieves the zone information for the zone with the passed name.

func (*Provider) ListZones

func (p *Provider) ListZones() ([]string, error)

ListZones lists all zones from the provider.

func (*Provider) UpdateZone

func (p *Provider) UpdateZone(zone dns.Zone) error

UpdateZone updates the zone on the provider.

Jump to

Keyboard shortcuts

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