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)
- func (p *PowerDNS) GetCombinedRecords() ([]CombinedRecord, error)
- func (p *PowerDNS) GetRecords() ([]Record, 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 ...
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 ...
type RRset ¶
type RRset struct {
Name string `json:"name"`
Type string `json:"type"`
ChangeType string `json:"changetype"`
Records []Record `json:"records"`
}
RRset 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
Click to show internal directories.
Click to hide internal directories.