Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var API *cloudflare.API
API handle
Functions ¶
func CreateDNSRecord ¶
CreateDNSRecord creates a new DNS record for the zone
func DeleteDNSRecord ¶
DeleteDNSRecord deletes DNS record specified by recordID in zone.
func GetAPI ¶
func GetAPI() (*cloudflare.API, error)
GetAPI returns api handle for the given user, api key. Error is returned otherwise.
func GetDNSRecords ¶
func GetDNSRecords(zone string) ([]cloudflare.DNSRecord, error)
GetDNSRecords returns a list of DNS records for the given domain name. Error returned otherewise.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.