Documentation ¶
Overview ¶
Package godaddy provides a DNS backend via the GoDaddy service
Index ¶
- type Config
- func (c *Config) AccessKey(key string)
- func (c *Config) DefaultDomainName() string
- func (c *Config) DefaultRecordName() string
- func (c *Config) DefaultRecordTTL() int
- func (c *Config) Get(domain, name string, typ dns.RType) (string, error)
- func (c *Config) SecretKey(key string)
- func (c *Config) Upsert(domain, name, data string, typ dns.RType) error
- type DNSError
- type DNSErrorLimit
- type DNSRecord
- type DNSRecords
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
Config contains backend configuration
func DefaultConfig ¶
DefaultConfig returns the default backend configuration
func (*Config) DefaultDomainName ¶
DefaultDomainName returns the default domain name
func (*Config) DefaultRecordName ¶
DefaultRecordName returns the default record name
func (*Config) DefaultRecordTTL ¶
DefaultRecordTTL returns the default record ttl
type DNSError ¶
type DNSError struct { Code string `json:"code"` Message string `json:"message"` Fields []struct { Path string `json:"path"` PathRelated string `json:"pathRelated"` Code string `json:"code"` Message string `json:"message"` } `json:"fields"` }
DNSError represents the GoDaddy model shared across the domain APIs https://developer.godaddy.com/doc#!/_v1_domains/list/Error
type DNSErrorLimit ¶
DNSErrorLimit represents the GoDaddy model shared across domain APIs https://developer.godaddy.com/doc#!/_v1_domains/list/ErrorLimit
type DNSRecord ¶
type DNSRecord struct { Type string `json:"type" validate:"required,eq=A|eq=AAAA|eq=CNAME|eq=MX|eq=NS|eq=SOA|eq=SRV|eq=TXT"` Name string `json:"name" validate:"required,min=1,max=255"` Data string `json:"data" validate:"required,min=1,max=255"` Priority *int `json:"priority,omitempty" validate:"omitempty,gte=1"` TTL *int `json:"ttl,omitempty" validate:"omitempty,gte=1"` Service *string `json:"service,omitempty" validate:"omitempty,min=1"` Protocol *string `json:"protocol,omitempty" validate:"omitempty,min=1"` Port *int `json:"port,omitempty" validate:"omitempty,min=1,max=65535"` Weight *int `json:"weight,omitempty" validate:"omitempty,gte=1"` }
DNSRecord represents an element of the GoDaddy model https://developer.godaddy.com/doc#!/_v1_domains/recordReplace/ArrayOfDNSRecord
type DNSRecords ¶
type DNSRecords []DNSRecord
DNSRecords represents the GoDaddy model https://developer.godaddy.com/doc#!/_v1_domains/recordReplace/ArrayOfDNSRecord