powerdns

package
v0.0.0-...-4e88557 Latest Latest
Warning

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

Go to latest
Published: May 14, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

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 ...

type RRset

type RRset struct {
	Name       string   `json:"name"`
	Type       string   `json:"type"`
	TTL        int      `json:"ttl"`
	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 {
	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