Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultBaseURL = "https://www.versio.nl/api/v1/"
DefaultBaseURL default API endpoint.
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 API client for Versio DNS.
func (*Client) GetDomain ¶
GetDomain gets domain information. https://www.versio.nl/RESTapidoc/#api-Domains-Domain
func (*Client) UpdateDomain ¶
func (c *Client) UpdateDomain(ctx context.Context, domain string, msg *DomainInfo) (*DomainInfoResponse, error)
UpdateDomain updates domain information. https://www.versio.nl/RESTapidoc/#api-Domains-Update
type DomainInfo ¶
type DomainInfo struct {
DNSRecords []Record `json:"dns_records"`
}
type DomainInfoResponse ¶
type DomainInfoResponse struct {
DomainInfo DomainInfo `json:"domainInfo"`
}
type ErrorMessage ¶
type ErrorMessage struct { Code int `json:"code,omitempty"` Message string `json:"message,omitempty"` }
func (ErrorMessage) Error ¶
func (e ErrorMessage) Error() string
type ErrorResponse ¶
type ErrorResponse struct {
Message ErrorMessage `json:"error"`
}
Click to show internal directories.
Click to hide internal directories.