Documentation ¶
Index ¶
- Constants
- type APIError
- type Client
- func (c *Client) DeleteTxtRecords(ctx context.Context, domainZone, recordName string) error
- func (c *Client) GetRecords(ctx context.Context, domainZone, rType, recordName string) ([]DNSRecord, error)
- func (c *Client) UpdateTxtRecords(ctx context.Context, records []DNSRecord, domainZone, recordName string) error
- type DNSRecord
- type Field
Constants ¶
View Source
const DefaultBaseURL = "https://api.godaddy.com"
DefaultBaseURL represents the API endpoint to call.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIError ¶
type Client ¶
func (*Client) DeleteTxtRecords ¶
DeleteTxtRecords deletes all DNS Records for the specified Domain with the specified Type and Name. https://developer.godaddy.com/doc/endpoint/domains#/v1/recordDeleteTypeName
func (*Client) GetRecords ¶
func (c *Client) GetRecords(ctx context.Context, domainZone, rType, recordName string) ([]DNSRecord, error)
GetRecords retrieves DNS Records for the specified Domain. https://developer.godaddy.com/doc/endpoint/domains#/v1/recordGet
func (*Client) UpdateTxtRecords ¶
func (c *Client) UpdateTxtRecords(ctx context.Context, records []DNSRecord, domainZone, recordName string) error
UpdateTxtRecords replaces all DNS Records for the specified Domain with the specified Type. https://developer.godaddy.com/doc/endpoint/domains#/v1/recordReplaceType
type DNSRecord ¶
type DNSRecord struct { Name string `json:"name,omitempty"` Type string `json:"type,omitempty"` Data string `json:"data"` TTL int `json:"ttl,omitempty"` Priority int `json:"priority,omitempty"` Port int `json:"port,omitempty"` Protocol string `json:"protocol,omitempty"` Service string `json:"service,omitempty"` Weight int `json:"weight,omitempty"` }
DNSRecord a DNS record.
Click to show internal directories.
Click to hide internal directories.