package
Version:
v0.0.1
Opens a new window with list of versions in this module.
Published: Mar 15, 2024
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation
¶
func EnsureDNS(api *cloudflare.API, zoneID, domainName string) error
EnsureDNS updates the A record if it does not point to the current IP address
Fetches the current external IP address
func GetDomainARecords(api *cloudflare.API, zoneID, domainName string) (records []cloudflare.DNSRecord, err error)
GetDomainARecords fetches all A records for a given domain.
func InitCFAPI(apiToken string) (*cloudflare.API, error)
InitCFAPI intializes Cloudflare API with the given API token
Source Files
¶
Click to show internal directories.
Click to hide internal directories.