Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( RecordAlreadyExists = errors.New("Record already exists") RecordNotFound = errors.New("Record not found") )
Functions ¶
This section is empty.
Types ¶
type Cloudflare ¶
type Cloudflare interface {
// CreateRecord Creates a new DNS record
CreateRecord(subdomain, ip string) error
// UpdateRecord Updates an existing DNS record
UpdateRecord(subdomain, ip string) error
// DeleteRecord Deletes a DNS record
DeleteRecord(subdomain string) error
}
func New ¶
func New(cfg *Config, domain string) Cloudflare
Click to show internal directories.
Click to hide internal directories.