Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client the API client for Variomedia.
func (Client) CreateDNSRecord ¶
func (c Client) CreateDNSRecord(ctx context.Context, record DNSRecord) (*CreateDNSRecordResponse, error)
CreateDNSRecord creates a new DNS entry. https://api.variomedia.de/docs/dns-records.html#erstellen
func (Client) DeleteDNSRecord ¶
DeleteDNSRecord deletes a DNS record. https://api.variomedia.de/docs/dns-records.html#l%C3%B6schen
func (Client) GetJob ¶
GetJob returns a single job based on its ID. https://api.variomedia.de/docs/job-queue.html
type CreateDNSRecordRequest ¶
type CreateDNSRecordRequest struct {
Data Data `json:"data"`
}
type CreateDNSRecordResponse ¶
type DeleteRecordResponse ¶
type DeleteRecordResponse struct { Data struct { ID string `json:"id"` Type string `json:"type"` Attributes struct { JobType string `json:"job_type"` Status string `json:"status"` } `json:"attributes"` Links struct { Self string `json:"self"` Object string `json:"object"` } `json:"links"` } `json:"data"` }
type GetJobResponse ¶
type GetJobResponse struct { Data struct { ID string `json:"id"` Type string `json:"type"` Attributes struct { JobType string `json:"job_type"` Status string `json:"status"` } `json:"attributes"` Links struct { Self string `json:"self"` Object string `json:"object"` } `json:"links"` } `json:"data"` }
Click to show internal directories.
Click to hide internal directories.