Versions in this module Expand all Collapse all v1 v1.0.0 Feb 3, 2016 Changes in this version + type APICredentials struct + Email string + Token string + func NewAPICredentials(email, token string) (APICredentials, error) + type CredentialDeleter interface + DeleteCredentials func() error + type CredentialProvider interface + GetCredentials func() (APICredentials, error) + type CredentialSaver interface + SaveCredentials func(credentials APICredentials) error + type CredentialStore interface + type DNSClient interface + CreateRecord func(domain string, opts *dnsimple.ChangeRecord) (string, error) + DestroyRecord func(domain string, id string) error + GetDomains func() ([]dnsimple.Domain, error) + GetRecords func(domain string) ([]dnsimple.Record, error) + UpdateRecord func(domain string, id string, opts *dnsimple.ChangeRecord) (string, error) + func NewDNSClient(credentials APICredentials) (DNSClient, error) + type DNSEditor struct + func (editor *DNSEditor) CreateSubdomain(domain, subdomain string, timeToLive int, ip net.IP) error + func (editor *DNSEditor) DeleteSubdomain(domain, subdomain string, recordType string) error + func (editor *DNSEditor) UpdateSubdomain(domain, subdomain string, ip net.IP) error + type DNSInfoProvider interface + GetDomainNames func() ([]string, error) + GetDomainRecords func(domain string) ([]dnsimple.Record, error) + GetSubdomainRecord func(domain, subdomain, recordType string) (dnsimple.Record, error) + GetSubdomainRecords func(domain, subdomain string) ([]dnsimple.Record, error) + func NewDNSInfoProvider(client DNSClient) DNSInfoProvider + type DNSRecordCreator interface + CreateSubdomain func(domain, subDomainName string, timeToLive int, ip net.IP) error + type DNSRecordDeleter interface + DeleteSubdomain func(domain, subDomainName string, recordType string) error + type DNSRecordEditor interface + func NewDNSEditor(client DNSClient, infoProvider DNSInfoProvider) DNSRecordEditor + type DNSRecordUpdater interface + UpdateSubdomain func(domain, subDomainName string, ip net.IP) error