Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cloudflare ¶
Cloudflare represents the Cloudflare API and zoneID
func NewCloudflare ¶
func NewCloudflare(token, zone, record string) (*Cloudflare, error)
NewCloudflare retuns a Cloudflare struct
func (*Cloudflare) GetRecordDetails ¶
func (c *Cloudflare) GetRecordDetails() (cf.DNSRecord, error)
GetRecordDetails returns the Cloudflare DNS zone details
func (*Cloudflare) UpdateDNSRecord ¶
func (c *Cloudflare) UpdateDNSRecord(proxy bool) error
UpdateDNSRecord updates the provided DNS record with the provided IP address
Click to show internal directories.
Click to hide internal directories.