Documentation ¶
Index ¶
- Constants
- func OAuthStaticAccessToken(client *http.Client, accessToken string) *http.Client
- type Client
- func (c *Client) CheckNameservers(ctx context.Context, domainID int) error
- func (c *Client) CleanCache(fqdn string)
- func (c *Client) CreateRecord(ctx context.Context, domainID int, record *Record) error
- func (c *Client) DeleteTXTRecord(ctx context.Context, domainID int, recordName, recordValue string) error
- func (c *Client) GetDomainIDByName(ctx context.Context, name string) (int, error)
- type Domain
- type DomainListingResponse
- type DomainResponse
- type EmbeddedDomainList
- type EmbeddedRecordList
- type Nameserver
- type NameserverGeneral
- type NameserverResponse
- type NameserverSOA
- type Record
- type RecordListingResponse
Constants ¶
View Source
const DefaultEndpoint = "https://api.checkdomain.de"
DefaultEndpoint the default API endpoint.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
Client the Autodns API client.
func (*Client) CheckNameservers ¶
func (*Client) CleanCache ¶
func (*Client) CreateRecord ¶
func (*Client) DeleteTXTRecord ¶
func (c *Client) DeleteTXTRecord(ctx context.Context, domainID int, recordName, recordValue string) error
DeleteTXTRecord Checkdomain doesn't seem provide a way to delete records but one can replace all records at once. The current solution is to fetch all records and then use that list minus the record deleted as the new record list. TODO: Simplify this function once Checkdomain do provide the functionality.
type DomainListingResponse ¶
type DomainListingResponse struct { Page int `json:"page"` Limit int `json:"limit"` Pages int `json:"pages"` Total int `json:"total"` Embedded EmbeddedDomainList `json:"_embedded"` }
type DomainResponse ¶
type EmbeddedDomainList ¶
type EmbeddedDomainList struct {
Domains []*Domain `json:"domains"`
}
type EmbeddedRecordList ¶
type EmbeddedRecordList struct {
Records []*Record `json:"records"`
}
type Nameserver ¶
type Nameserver struct {
Name string `json:"name"`
}
type NameserverGeneral ¶
type NameserverResponse ¶
type NameserverResponse struct { General NameserverGeneral `json:"general"` Nameservers []*Nameserver `json:"nameservers"` SOA NameserverSOA `json:"soa"` }
type NameserverSOA ¶
type RecordListingResponse ¶
type RecordListingResponse struct { Page int `json:"page"` Limit int `json:"limit"` Pages int `json:"pages"` Total int `json:"total"` Embedded EmbeddedRecordList `json:"_embedded"` }
Click to show internal directories.
Click to hide internal directories.