Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeResourceRecordSet ¶
func MakeResourceRecordSet(domain string, ips []string, ttl int) []*dns.ResourceRecordSet
func UniqueMerge ¶
Types ¶
type Config ¶
type Config struct { Project string PropagationTimeout time.Duration PollingInterval time.Duration TTL int HTTPClient *http.Client `json:"-"` }
Config is used to configure the creation of the DNSProvider
func NewDefaultConfig ¶
func NewDefaultConfig() *Config
NewDefaultConfig returns a default configuration for the DNSProvider
type DNSProvider ¶
DNSProvider is an implementation of the DNSProvider interface.
func NewDNSProvider ¶
func NewDNSProvider() (*DNSProvider, error)
func NewDNSProviderConfig ¶
func NewDNSProviderConfig(config *Config) (*DNSProvider, error)
NewDNSProviderConfig return a DNSProvider instance configured for Google Cloud DNS.
func NewDNSProviderServiceAccount ¶
func NewDNSProviderServiceAccount(saFile string) (*DNSProvider, error)
NewDNSProviderServiceAccount uses the supplied service account JSON file to return a DNSProvider instance configured for Google Cloud DNS.
func (*DNSProvider) GetResourceRecordSets ¶
func (d *DNSProvider) GetResourceRecordSets(domain string) ([]string, error)
func (*DNSProvider) MakeChange ¶
func (d *DNSProvider) MakeChange(rec DNSRecord, adding bool) error
Click to show internal directories.
Click to hide internal directories.