Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client Lua DNS API client.
func (*Client) CreateRecord ¶
func (c *Client) CreateRecord(ctx context.Context, zone DNSZone, newRecord DNSRecord) (*DNSRecord, error)
CreateRecord creates a new record in a zone. https://luadns.com/api.html#create-a-record
func (*Client) DeleteRecord ¶
DeleteRecord deletes a record. https://luadns.com/api.html#delete-a-record
type DNSRecord ¶
type DNSRecord struct { ID int `json:"id,omitempty"` Name string `json:"name,omitempty"` Type string `json:"type,omitempty"` Content string `json:"content,omitempty"` TTL int `json:"ttl,omitempty"` ZoneID int `json:"zone_id,omitempty"` }
DNSRecord a DNS record.
type DNSZone ¶
type DNSZone struct { ID int `json:"id"` Name string `json:"name,omitempty"` Synced bool `json:"synced,omitempty"` QueriesCount int `json:"queries_count,omitempty"` RecordsCount int `json:"records_count,omitempty"` AliasesCount int `json:"aliases_count,omitempty"` RedirectsCount int `json:"redirects_count,omitempty"` ForwardsCount int `json:"forwards_count,omitempty"` TemplateID int `json:"template_id,omitempty"` }
DNSZone a DNS zone.
Click to show internal directories.
Click to hide internal directories.