Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { HTTPClient *http.Client BaseURL string // contains filtered or unexported fields }
Client the Hetzner client.
func (*Client) CreateRecord ¶
CreateRecord creates a DNS record. https://dns.hetzner.com/api-docs#operation/CreateRecord
func (*Client) DeleteRecord ¶
DeleteRecord deletes a DNS record. https://dns.hetzner.com/api-docs#operation/DeleteRecord
func (*Client) GetTxtRecord ¶
GetTxtRecord gets a TXT record.
type DNSRecord ¶
type DNSRecord struct { ID string `json:"id,omitempty"` Name string `json:"name,omitempty"` Type string `json:"type,omitempty"` Value string `json:"value"` Priority int `json:"priority,omitempty"` TTL int `json:"ttl,omitempty"` ZoneID string `json:"zone_id,omitempty"` }
DNSRecord a DNS record.
type DNSRecords ¶
type DNSRecords struct {
Records []DNSRecord `json:"records"`
}
DNSRecords a set of DNS record.
Click to show internal directories.
Click to hide internal directories.