powerdns

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

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

Go to latest
Published: Jun 8, 2016 License: Apache-2.0 Imports: 5 Imported by: 6 modules, 6 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

powerdns

Go PowerDNS API Client

Forked from github.com/waynz0r/powerdns

Documentation to come.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CombinedRecord

type CombinedRecord struct {
	Name    string
	Type    string
	TTL     int
	Records []string
}

CombinedRecord strct

type Error

type Error struct {
	Message string `json:"error"`
}

Error strct

func (Error) Error

func (e Error) Error() string

Error Returns

type PowerDNS

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

PowerDNS struct

func New

func New(baseURL string, vhost string, domain string, apikey string) *PowerDNS

New returns a new PowerDNS

func (*PowerDNS) AddRecord

func (p *PowerDNS) AddRecord(name string, recordType string, ttl int, content []string) (*Zone, error)

AddRecord ...

func (*PowerDNS) ChangeRecord

func (p *PowerDNS) ChangeRecord(name string, recordType string, ttl int, content []string, action string) (*Zone, error)

ChangeRecord ...

func (*PowerDNS) DeleteRecord

func (p *PowerDNS) DeleteRecord(name string, recordType string, ttl int, content []string) (*Zone, error)

DeleteRecord ...

func (*PowerDNS) GetCombinedRecords

func (p *PowerDNS) GetCombinedRecords() ([]CombinedRecord, error)

GetCombinedRecords ...

func (*PowerDNS) GetRecords

func (p *PowerDNS) GetRecords() ([]Record, error)

GetRecords ...

type RRset

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

RRset struct

type RRsets

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

RRsets struct

type Record

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

Record struct

type Zone

type Zone struct {
	ID             string `json:"id"`
	URL            string `json:"url"`
	Name           string `json:"name"`
	Type           string `json:"type"`
	DNSsec         bool   `json:"dnssec"`
	Serial         int    `json:"serial"`
	NotifiedSerial int    `json:"notified_serial"`
	LastCheck      int    `json:"last_check"`
	Records        []struct {
		Name     string `json:"name"`
		Type     string `json:"type"`
		TTL      int    `json:"ttl"`
		Priority int    `json:"priority"`
		Disabled bool   `json:"disabled"`
		Content  string `json:"content"`
	} `json:"records"`
}

Zone struct

Jump to

Keyboard shortcuts

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