Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrZoneNotFound will be returned if the zone cannot be found at Digital Ocean. ErrZoneNotFound = errors.New("Zone not found") )
Functions ¶
This section is empty.
Types ¶
type Domain ¶
Domain represents a DNS domain from Digital Ocean.
type Record ¶
type Record struct { godo.DomainRecord Matched bool // contains filtered or unexported fields }
Record represents a domain record from Digital Ocean with extra properties to keep track of sync state.
func NewRecord ¶
func NewRecord(record godo.DomainRecord, zoneName ZoneName) *Record
NewRecord will instantiate a new Record from a DomainRecord and a zoneName.
type ZoneName ¶
type ZoneName string
ZoneName is a zone name without the traling dot.
func NewZoneName ¶
NewZoneName will return a new ZoneName. If zoneName contains a trailing dot, it will be removed.
Click to show internal directories.
Click to hide internal directories.