Documentation
¶
Index ¶
- type APIVersion
- type Error
- type PowerDNS
- func (p *PowerDNS) AddRecord(name string, recordType string, ttl int, content []string) error
- func (p *PowerDNS) ChangeRecord(name string, recordType string, ttl int, contents []string, action string) error
- func (p *PowerDNS) DeleteRecord(name string, recordType string, ttl int, content []string) error
- func (p *PowerDNS) GetRecords() ([]Record, error)
- type RRset
- type RRsets
- type Record
- type ServerInfo
- type Zone
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIVersion ¶ added in v1.1.1
APIVersion struct
type PowerDNS ¶
type PowerDNS struct {
// contains filtered or unexported fields
}
PowerDNS struct
func (*PowerDNS) ChangeRecord ¶
func (p *PowerDNS) ChangeRecord(name string, recordType string, ttl int, contents []string, action string) error
ChangeRecord ...
func (*PowerDNS) DeleteRecord ¶
DeleteRecord ...
type RRset ¶
type RRset struct { Name string `json:"name"` Type string `json:"type"` TTL int `json:"ttl"` Records []Record `json:"records"` ChangeType string `json:"changetype"` }
RRset struct
type Record ¶
type Record struct { Name string `json:"name"` Type string `json:"type"` Content string `json:"content"` TTL int `json:"ttl"` Disabled bool `json:"disabled"` }
Record struct
type ServerInfo ¶
type ServerInfo struct { ConfigURL string `json:"config_url"` DaemonType string `json:"daemon_type"` ID string `json:"id"` Type string `json:"type"` URL string `json:"url"` Version string `json:"version"` ZonesURL string `json:"zones_url"` }
ServerInfo 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"` RRsets []RRset `json:"rrsets"` Records []Record `json:"records"` }
Zone struct
Click to show internal directories.
Click to hide internal directories.