Versions in this module Expand all Collapse all v1 v1.1.1 Oct 11, 2019 Changes in this version type RRSetChange + TTL int v1.1.0 Jan 23, 2019 Changes in this version + type ClientInterface interface + NewRequest func() *resty.Request + ResponseToRC0StatusResponse func(response *resty.Response) (*StatusResponse, error) + type ListOptions struct + func NewListOptions() *ListOptions + func (o *ListOptions) PageNumber() int + func (o *ListOptions) PageNumberAsString() string + func (o *ListOptions) PageSize() int + func (o *ListOptions) PageSizeAsString() string + func (o *ListOptions) SetPageNumber(number int) + func (o *ListOptions) SetPageSize(size int) type Page + func (p *Page) IsLastPage() bool + type RRSetChange struct + ChangeType string + Name string + Records []*Record + Type string type RRSetService + func (s *RRSetService) DecryptTXT(key []byte, rrType *RRType) + func (s *RRSetService) EncryptTXT(key []byte, rrType *RRSetChange) + func (s *RRSetService) SubmitChangeSet(zone string, changeSet []*RRSetChange) (*StatusResponse, error) + type RRSetServiceInterface interface + Create func(zone string, rrsetCreate []*RRSetChange) (*StatusResponse, error) + DecryptTXT func(key []byte, rrType *RRType) + Delete func(zone string, rrsetDelete []*RRSetChange) (*StatusResponse, error) + Edit func(zone string, rrsetEdit []*RRSetChange) (*StatusResponse, error) + EncryptTXT func(key []byte, rrType *RRSetChange) + List func(zone string, options *ListOptions) ([]*RRType, *Page, error) + SubmitChangeSet func(zone string, changeSet []*RRSetChange) (*StatusResponse, error) type StatusResponse + func (sr *StatusResponse) HasError() bool + type ZoneManagementServiceInterface interface + Create func(zoneCreate *ZoneCreate) (*StatusResponse, error) + Delete func(zone string) (*StatusResponse, error) + Edit func(zone string, zoneEdit *ZoneEdit) (*StatusResponse, error) + Get func(zone string) (*Zone, error) + List func(options *ListOptions) (zones []*Zone, page *Page, err error) + Transfer func(zone string) (*StatusResponse, error) v1.0.0 Jan 15, 2019 Changes in this version + const ChangeTypeADD + const ChangeTypeDELETE + const ChangeTypeUPDATE + const RC0AccSecondaries + const RC0AccSettings + const RC0AccStatsCountries + const RC0AccStatsQueries + const RC0AccStatsTopDNSMagnitude + const RC0AccStatsTopNXDomains + const RC0AccStatsTopQNames + const RC0AccStatsTopZones + const RC0AccTsigout + const RC0AckMessage + const RC0Messages + const RC0ReportsAccounting + const RC0ReportsNXDomains + const RC0ReportsProblematiczones + const RC0ReportsQueryrates + const RC0Zone + const RC0ZoneDNSSecDSREMOVED + const RC0ZoneDNSSecDSSEEN + const RC0ZoneDNSSecDSUpdate + const RC0ZoneDNSSecKeyRollover + const RC0ZoneDNSSecSign + const RC0ZoneDNSSecUnsign + const RC0ZoneRRSets + const RC0ZoneStatsMagnitude + const RC0ZoneStatsNXDomains + const RC0ZoneStatsQNames + const RC0ZoneStatsQueries + const RC0ZoneTransfer + const RC0Zones + type AccSettingsService service + func (s *AccSettingsService) Get() (*GlobalSetting, error) + func (s *AccSettingsService) RemoveSecondaries() (*StatusResponse, error) + func (s *AccSettingsService) RemoveTSIG() (*StatusResponse, error) + func (s *AccSettingsService) SetSecondaries(secondaries []string) (*StatusResponse, error) + func (s *AccSettingsService) SetTSIG(tsigkey string) (*StatusResponse, error) + type AccountStatsService service + func (s *AccountStatsService) TopMagnitude(days int) ([]*TopMagnitude, error) + func (s *AccountStatsService) TopNXDomains(days int) ([]*TopNXDomain, error) + func (s *AccountStatsService) TopQNames(days int) ([]*TopQuery, error) + func (s *AccountStatsService) TopZones(days int) ([]*TopZone, error) + func (s *AccountStatsService) TotalQueryCount(days int) ([]*QueryCount, error) + func (s *AccountStatsService) TotalQueryCountPerCountry(days int) ([]*CountryQueryCount, error) + type Client struct + APIVersion string + AccStats *AccountStatsService + BaseURL *url.URL + DNSSEC *DNSSECService + Messages *MessageService + RRSet *RRSetService + Reports *ReportService + Settings *AccSettingsService + Token string + UserAgent string + ZoneStats *ZoneStatsService + Zones *ZoneManagementService + func NewClient(token string) (*Client, error) + func (c *Client) NewRequest() *resty.Request + func (c *Client) ResponseToRC0StatusResponse(response *resty.Response) (*StatusResponse, error) + type CountryQueryCount struct + Country string + CountryCode string + QueryCount int + Region string + Subregion string + type DNSSECService service + func (s *DNSSECService) DSUpdate(zone string) (*StatusResponse, error) + func (s *DNSSECService) KeyRollover(zone string) (*StatusResponse, error) + func (s *DNSSECService) Sign(zone string) (*StatusResponse, error) + func (s *DNSSECService) SimulateDSREMOVEDEvent(zone string) (*StatusResponse, error) + func (s *DNSSECService) SimulateDSSEENEvent(zone string) (*StatusResponse, error) + func (s *DNSSECService) Unsign(zone string) (*StatusResponse, error) + type GlobalSetting struct + Secondaries []string + TSIGOut string + type Magnitude struct + Date string + Magnitude string + type Message struct + Comment string + Date string + Domain string + ID int + Type string + type MessageService service + func (s *MessageService) AckAndDelete(id int) (*StatusResponse, error) + func (s *MessageService) GetLatest() (*Message, error) + type NXDomain struct + Count int + Name string + Type string + type Page struct + CurrentPage int + Data []interface{} + From int + LastPage int + NextPageURL string + Path string + PerPage int + PrevPageURL string + To int + Total int + type PerDay struct + Date string + NXDomains int + Queries int + type ProbZone struct + Created string + DNSSEC string + Domain string + LastCheck string + Masters []string + Serial interface{} + Type string + type Query struct + Count int + Name string + Type string + type QueryCount struct + Count int + Date string + NXCount int + type RRSetEdit struct + ChangeType string + Name string + Records []*Record + Type string + type RRSetService service + func (s *RRSetService) Create(zone string, rrsetCreate []*RRSetEdit) (*StatusResponse, error) + func (s *RRSetService) Delete(zone string, rrsetDelete []*RRSetEdit) (*StatusResponse, error) + func (s *RRSetService) Edit(zone string, rrsetEdit []*RRSetEdit) (*StatusResponse, error) + func (s *RRSetService) List(zone string) ([]*RRType, *Page, error) + type RRType struct + Name string + Records []*Record + TTL int + Type string + type Record struct + Content string + Disabled bool + type ReportService service + func (s *ReportService) ProblematicZones() ([]*ProbZone, *Page, error) + type StatusResponse struct + Message string + Status string + type TopMagnitude struct + Domain string + ID int + Magnitude float32 + type TopNXDomain struct + Domain string + ID int + type TopQuery struct + Domain string + ID int + type TopZone struct + Count int + Domain string + ID int + type Zone struct + DNSSECDNSKey string + DNSSECDS string + DNSSECKSKStatus string + DNSSECKSKStatusDetail string + DNSSECSafeToUnsign string + DNSSECStatus string + DNSSECStatusDetail string + Domain string + ID int + LastCheck string + Masters []string + Serial int + Type string + type ZoneCreate struct + Domain string + Masters []string + Type string + type ZoneEdit struct + Masters []string + Type string + type ZoneManagementService service + func (s *ZoneManagementService) Create(zoneCreate *ZoneCreate) (*StatusResponse, error) + func (s *ZoneManagementService) Delete(zone string) (*StatusResponse, error) + func (s *ZoneManagementService) Edit(zone string, zoneEdit *ZoneEdit) (*StatusResponse, error) + func (s *ZoneManagementService) Get(zone string) (*Zone, error) + func (s *ZoneManagementService) List() (zones []*Zone, page *Page, err error) + func (s *ZoneManagementService) Transfer(zone string) (*StatusResponse, error) + type ZoneStatsService service + func (s *ZoneStatsService) Magnitude(zone string) ([]*Magnitude, error) + func (s *ZoneStatsService) NXDomains(zone string) ([]*NXDomain, error) + func (s *ZoneStatsService) QNames(zone string) ([]*Query, error) + func (s *ZoneStatsService) Queries(zone string) ([]*PerDay, error)