Documentation ¶
Index ¶
- type Client
- func (c *Client) AddTxtRecord(ctx context.Context, zoneName, fqdn, value string, ttl int) error
- func (c *Client) FindTxtRecord(ctx context.Context, zoneName, fqdn string) (*TXTRecord, error)
- func (c *Client) GetUpdateStatus(ctx context.Context, zoneName string) (*SyncProgress, error)
- func (c *Client) GetZone(ctx context.Context, authFQDN string) (*Zone, error)
- func (c *Client) ListTxtRecords(ctx context.Context, zoneName, fqdn string) ([]TXTRecord, error)
- func (c *Client) RemoveTxtRecord(ctx context.Context, 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 { BaseURL *url.URL HTTPClient *http.Client // 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 ¶
GetUpdateStatus gets sync progress of all CloudDNS NS servers.
func (*Client) ListTxtRecords ¶
ListTxtRecords returns the TXT records a zone ID and a FQDN.
type SyncProgress ¶
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.