bind

package
v2.10.1-0...-ae299b5 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bind

type Bind struct {
	DefaultNS  []string `json:"default_ns"`
	DefaultSoa SoaInfo  `json:"default_soa"`
	// contains filtered or unexported fields
}

Bind is the provider handle for the Bind driver.

func (*Bind) GetDomainCorrections

func (c *Bind) GetDomainCorrections(dc *models.DomainConfig) ([]*models.Correction, error)

GetDomainCorrections returns a list of corrections to update a domain.

func (*Bind) GetNameservers

func (c *Bind) GetNameservers(string) ([]*models.Nameserver, error)

GetNameservers returns the nameservers for a domain.

func (*Bind) GetZoneRecords

func (c *Bind) GetZoneRecords(domain string) (models.Records, error)

GetZoneRecords gets the records of a zone and returns them in RecordConfig format.

func (*Bind) ListZones

func (c *Bind) ListZones() ([]string, error)

ListZones returns all the zones in an account

type SoaInfo

type SoaInfo struct {
	Ns      string `json:"master"`
	Mbox    string `json:"mbox"`
	Serial  uint32 `json:"serial"`
	Refresh uint32 `json:"refresh"`
	Retry   uint32 `json:"retry"`
	Expire  uint32 `json:"expire"`
	Minttl  uint32 `json:"minttl"`
}

SoaInfo contains the parts of the default SOA settings.

func (SoaInfo) String

func (s SoaInfo) String() string

Jump to

Keyboard shortcuts

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