Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client Timeweb Cloud client.
func (*Client) CreateRecord ¶
func (c *Client) CreateRecord(ctx context.Context, zone string, record DNSRecord) (*DNSRecord, error)
CreateRecord creates a DNS record. https://timeweb.cloud/api-docs#tag/Domeny/operation/createDomainDNSRecord
func (*Client) DeleteRecord ¶
DeleteRecord deletes a DNS record. https://timeweb.cloud/api-docs#tag/Domeny/operation/deleteDomainDNSRecord
type CreateRecordResponse ¶
type CreateRecordResponse struct {
DNSRecord *DNSRecord `json:"dns_record,omitempty"`
}
type ErrorResponse ¶
type ErrorResponse struct { StatusCode int `json:"status_code,omitempty"` ErrorCode string `json:"error_code,omitempty"` Message string `json:"message,omitempty"` ResponseID string `json:"response_id,omitempty"` }
func (ErrorResponse) Error ¶
func (a ErrorResponse) Error() string
Click to show internal directories.
Click to hide internal directories.