Documentation ¶
Index ¶
- type Client
- func (c *Client) AddTxtRecord(zoneName, fqdn, value string, ttl int) error
- func (c *Client) FindTxtRecord(zoneName, fqdn string) (*TXTRecord, error)
- func (c *Client) GetUpdateStatus(zoneName string) (*SyncProgress, error)
- func (c *Client) GetZone(authFQDN string) (*Zone, error)
- func (c *Client) ListTxtRecords(zoneName, fqdn string) ([]TXTRecord, error)
- func (c *Client) RemoveTxtRecord(recordID int, zoneName string) error
- type SyncProgress
- type TXTRecord
- type UpdateRecord
- type Zone
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 *url.URL // contains filtered or unexported fields }
Client the ClouDNS client.
func (*Client) AddTxtRecord ¶
AddTxtRecord adds a TXT record.
func (*Client) FindTxtRecord ¶
FindTxtRecord returns the TXT record a zone ID and a FQDN.
func (*Client) GetUpdateStatus ¶ added in v4.3.0
func (c *Client) GetUpdateStatus(zoneName string) (*SyncProgress, error)
GetUpdateStatus gets sync progress of all CloudDNS NS servers.
func (*Client) ListTxtRecords ¶ added in v4.3.0
ListTxtRecords returns the TXT records a zone ID and a FQDN.
type SyncProgress ¶ added in v4.3.0
type TXTRecord ¶
type TXTRecord struct { ID int `json:"id,string"` Type string `json:"type"` Host string `json:"host"` Record string `json:"record"` Failover int `json:"failover,string"` TTL int `json:"ttl,string"` Status int `json:"status"` }
TXTRecord is a TXT record.
Click to show internal directories.
Click to hide internal directories.