pdns

package
v0.0.0-...-2c389fc Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2016 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RRset

type RRset struct {
	Name       string    `json:"name"`
	Type       string    `json:"type"`
	ChangeType string    `json:"changetype"`
	Records    []*Record `json:"records"`
}

type RRsetContainer

type RRsetContainer struct {
	RRsets []*RRset `json:"rrsets"`
}

type Record

type Record struct {
	TTL      int    `json:"ttl"`
	Type     string `json:"type"`
	Content  string `json:"content"`
	Name     string `json:"name"`
	Priority int    `json:"priority"`
	Disabled bool   `json:"disabled"`
}

type Zone

type Zone struct {
	Serial         int       `json:"serial"`
	SOAEditApi     string    `json:"soa_edit_api"`
	SOAEdit        string    `json:"soa_edit"`
	URL            string    `json:"url"`
	Records        []*Record `json:"records"`
	Type           string    `json:"type"`
	Comments       []string  `json:"comments"`
	Name           string    `json:"name"`
	NotifiedSerial int       `json:"notified_serial"`
	Masters        []string  `json:"masters"`
	Nameservers    []string  `json:"nameservers"`
	Kind           string    `json:"kind"`
	LastCheck      int       `json:"last_check"`
	DNSSEC         bool      `json:"dnssec"`
}

func GetZone

func GetZone(name string) (*Zone, []error)

func (*Zone) DeleteRecord

func (z *Zone) DeleteRecord(r *Record) []error

func (*Zone) UpdateRecords

func (z *Zone) UpdateRecords(rs []*Record) []error

type ZoneItem

type ZoneItem struct {
	DNSSEC         bool   `json:"dnssec"`
	Id             string `json:"id"`
	Kind           string `json:"kind"`
	LastCheck      int    `json:"last_check"`
	Name           string `json:"name"`
	NotifiedSerial int    `json:"notified_serial"`
	Serial         int    `json:"serial"`
	URL            string `json:"url"`
}

func GetZones

func GetZones() ([]ZoneItem, []error)

Jump to

Keyboard shortcuts

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