Versions in this module Expand all Collapse all v1 v1.0.0 Oct 2, 2019 Changes in this version + type Comment struct + Account string + Content string + ModifiedAt uint64 + type Cryptokey struct + Active bool + Algorithm string + Bits uint64 + DNSkey string + DS []string + ID uint64 + KeyType string + Privatekey string + Type string + ZoneHandle *Zone + func (c *Cryptokey) DeleteCryptokey() error + func (c *Cryptokey) ToggleCryptokey() error + type Error struct + Message string + Status string + func (e Error) Error() string + type Export string + type NotifyResult struct + Result string + type PowerDNS struct + Headers map[string]string + Hostname string + Port string + Scheme string + VHost string + func NewClient(baseURL string, vhost string, headers map[string]string, ...) *PowerDNS + func (p *PowerDNS) AddMasterZone(domain string, dnssec bool, nsec3Param string, nsec3Narrow bool, ...) (*Zone, error) + func (p *PowerDNS) AddNativeZone(domain string, dnssec bool, nsec3Param string, nsec3Narrow bool, ...) (*Zone, error) + func (p *PowerDNS) AddSlaveZone(domain string, masters []string) (*Zone, error) + func (p *PowerDNS) ChangeZone(zone *Zone) error + func (p *PowerDNS) DeleteZone(domain string) error + func (p *PowerDNS) GetServer() (*Server, error) + func (p *PowerDNS) GetServers() ([]Server, error) + func (p *PowerDNS) GetStatistics() ([]Statistic, error) + func (p *PowerDNS) GetZone(domain string) (*Zone, error) + func (p *PowerDNS) GetZones() ([]Zone, error) + type RRset struct + ChangeType string + Comments []Comment + Name string + Records []Record + TTL uint32 + Type string + type RRsets struct + Sets []RRset + type Record struct + Content string + Disabled bool + SetPTR bool + type Server struct + ConfigURL string + DaemonType string + ID string + Type string + URL string + Version string + ZonesURL string + type Statistic struct + Name string + Type string + Value string + type Zone struct + APIRectify bool + Account string + DNSsec bool + ID string + Kind ZoneKind + MasterTSIGKeyIDs []string + Masters []string + Name string + Nameservers []string + NotifiedSerial uint32 + Nsec3Narrow bool + Nsec3Param string + PowerDNSHandle *PowerDNS + Presigned bool + RRsets []RRset + SOAEdit string + SOAEditAPI string + Serial uint32 + SlaveTSIGKeyIDs []string + Type ZoneType + URL string + Zone string + func (z *Zone) AddRecord(name string, recordType string, ttl uint32, content []string) error + func (z *Zone) ChangeRecord(name string, recordType string, ttl uint32, content []string) error + func (z *Zone) DeleteCryptokey(id uint64) error + func (z *Zone) DeleteRecord(name string, recordType string) error + func (z *Zone) DeleteZone() error + func (z *Zone) Export() (Export, error) + func (z *Zone) GetCryptokey(id uint64) (*Cryptokey, error) + func (z *Zone) GetCryptokeys() ([]Cryptokey, error) + func (z *Zone) Notify() (*NotifyResult, error) + func (z *Zone) ToggleCryptokey(id uint64) error + type ZoneKind string + const MasterZoneKind + const NativeZoneKind + const SlaveZoneKind + type ZoneType string + const ZoneZoneType