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.
type Meta ¶ added in v4.10.0
type Meta struct {
Pagination Pagination `json:"pagination,omitempty"`
}
Meta response metadata.
type Pagination ¶ added in v4.10.0
type Pagination struct { Page int `json:"page,omitempty" url:"page"` PerPage int `json:"per_page,omitempty" url:"per_page"` LastPage int `json:"last_page,omitempty" url:"-"` TotalEntries int `json:"total_entries,omitempty" url:"-"` }
Pagination information about pagination.
Click to show internal directories.
Click to hide internal directories.