Documentation ¶
Index ¶
- type CombinedRecord
- type Error
- type PowerDNS
- func (p *PowerDNS) AddRecord(name string, recordType string, ttl int, content []string) (*Zone, error)
- func (p *PowerDNS) ChangeRecord(name string, recordType string, ttl int, content []string, action string) (*Zone, error)
- func (p *PowerDNS) DeleteRecord(name string, recordType string, ttl int, content []string) (*Zone, error)
- type RRset
- type RRsets
- type Record
- type Zone
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CombinedRecord ¶
CombinedRecord strct
type PowerDNS ¶
type PowerDNS struct {
// contains filtered or unexported fields
}
PowerDNS struct
func (*PowerDNS) AddRecord ¶
func (p *PowerDNS) AddRecord(name string, recordType string, ttl int, content []string) (*Zone, error)
AddRecord ...
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 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
Click to show internal directories.
Click to hide internal directories.