Versions in this module Expand all Collapse all v1 v1.2.1 Nov 5, 2018 v1.2.0 Nov 5, 2018 Changes in this version + type InfoDNSRecordsRequest struct + APIKey string + APISessionID string + ClientRequestID string + CustomerNumber string + DomainName string + type InfoDNSRecordsResponse struct + APISessionID string + DNSRecords []DNSRecord + type LoginRequest struct + APIKey string + APIPassword string + ClientRequestID string + CustomerNumber string + type LoginResponse struct + APISessionID string + type LogoutRequest struct + APIKey string + APISessionID string + ClientRequestID string + CustomerNumber string type ResponseMsg + func (r *ResponseMsg) Error() string + type UpdateDNSRecordsRequest struct + APIKey string + APISessionID string + ClientRequestID string + CustomerNumber string + DNSRecordSet DNSRecordSet + DomainName string v1.1.0 Oct 17, 2018 Changes in this version + func GetDNSRecordIdx(records []DNSRecord, record DNSRecord) (int, error) + type Client struct + BaseURL string + HTTPClient *http.Client + func NewClient(customerNumber string, apiKey string, apiPassword string) *Client + func (c *Client) GetDNSRecords(hostname, apiSessionID string) ([]DNSRecord, error) + func (c *Client) Login() (string, error) + func (c *Client) Logout(sessionID string) error + func (c *Client) UpdateDNSRecord(sessionID, domainName string, record DNSRecord) error + type Config struct + Customer string + HTTPClient *http.Client + Key string + Password string + PollingInterval time.Duration + PropagationTimeout time.Duration + TTL int + func NewDefaultConfig() *Config + type DNSProvider struct + func NewDNSProvider() (*DNSProvider, error) + func NewDNSProviderConfig(config *Config) (*DNSProvider, error) + func NewDNSProviderCredentials(customer, key, password string) (*DNSProvider, error) + func (d *DNSProvider) CleanUp(domainname, token, keyAuth string) error + func (d *DNSProvider) Present(domainName, token, keyAuth string) error + func (d *DNSProvider) Timeout() (timeout, interval time.Duration) + type DNSRecord struct + DeleteRecord bool + Destination string + Hostname string + ID int + Priority string + RecordType string + State string + TTL int + func CreateTxtRecord(hostname, value string, ttl int) DNSRecord + type DNSRecordSet struct + DNSRecords []DNSRecord + type InfoDNSRecordsMsg struct + APIKey string + APISessionID string + ClientRequestID string + CustomerNumber string + DomainName string + type LoginMsg struct + APIKey string + APIPassword string + ClientRequestID string + CustomerNumber string + type LogoutMsg struct + APIKey string + APISessionID string + ClientRequestID string + CustomerNumber string + type LogoutResponseMsg struct + Action string + ClientRequestID string + LongMessage string + ResponseData string + ServerRequestID string + ShortMessage string + Status string + StatusCode int + type Request struct + Action string + Param interface{} + type ResponseData struct + APISessionID string + DNSRecords []DNSRecord + type ResponseMsg struct + Action string + ClientRequestID string + LongMessage string + ResponseData ResponseData + ServerRequestID string + ShortMessage string + Status string + StatusCode int + type UpdateDNSRecordsMsg struct + APIKey string + APISessionID string + ClientRequestID string + CustomerNumber string + DNSRecordSet DNSRecordSet + DomainName string