Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIError ¶
type APIError struct {
Error ErrorContent `json:"error"`
}
type AuthResponse ¶
type AuthResponse struct {
Auth Auth `json:"auth,omitempty"`
}
type Authorization ¶
type Client ¶
type Client struct { AccessToken string ClientID string Email string Password string TTL int HTTPClient *http.Client // contains filtered or unexported fields }
Client handles all communication with CloudDNS API.
func NewClient ¶
NewClient returns a Client instance configured to handle CloudDNS API communication.
func (*Client) DeleteRecord ¶
DeleteRecord is a high level method to remove a record from zone.
type DomainInfo ¶
type ErrorContent ¶
type Record ¶
type Record struct { ID string `json:"id,omitempty"` DomainID string `json:"domainId,omitempty"` Name string `json:"name,omitempty"` Value string `json:"value,omitempty"` Type string `json:"type,omitempty"` }
Record represents a DNS record.
type Search ¶
type Search struct { Name string `json:"name,omitempty"` Operator string `json:"operator,omitempty"` Type string `json:"type,omitempty"` Value string `json:"value,omitempty"` }
Search used for searches in the CloudDNS API.
type SearchQuery ¶
type SearchResponse ¶
Click to show internal directories.
Click to hide internal directories.