Documentation ¶
Index ¶
Constants ¶
View Source
const HCLOUD_DNS_API_TOKEN_KEY = "HCLOUD_DNS_API_TOKEN"
View Source
const HCLOUD_DNS_ZONE_ID_KEY = "HCLOUD_DNS_ZONE_ID"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DNSRecordResponse ¶
type DNSRecordResponses ¶
type DNSRecordResponses struct {
Records []DNSRecordResponse `json:"records"`
}
func SendGetRecords ¶
func SendGetRecords(dnsToken, zoneID string) DNSRecordResponses
type DNSRecords ¶
type DNSRecords struct {
Records []DNSRecord `json:"records"`
}
func GetDnsRecordsByType ¶
func GetDnsRecordsByType(dnsToken string, zoneID string, recordTypes ...RecordTypeCreatable) DNSRecords
type RecordTypeCreatable ¶
type RecordTypeCreatable string
const ( A RecordTypeCreatable = "A" AAAA RecordTypeCreatable = "AAAA" NS RecordTypeCreatable = "NS" MX RecordTypeCreatable = "MX" CNAME RecordTypeCreatable = "CNAME" RP RecordTypeCreatable = "RP" TXT RecordTypeCreatable = "TXT" SOA RecordTypeCreatable = "SOA" HINFO RecordTypeCreatable = "HINFO" SRV RecordTypeCreatable = "SRV" DANE RecordTypeCreatable = "DANE" TLSA RecordTypeCreatable = "TLSA" DS RecordTypeCreatable = "DS" CAA RecordTypeCreatable = "CAA" )
Click to show internal directories.
Click to hide internal directories.