cloudflare

package
v0.0.0-...-6c998e2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 17, 2021 License: Unlicense Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

API handle

Functions

func CreateDNSRecord

func CreateDNSRecord(zone, name, rtype, content string, ttl int, proxy bool) error

CreateDNSRecord creates a new DNS record for the zone

func DeleteDNSRecord

func DeleteDNSRecord(zone, recordID string) error

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.

func InitAPI

func InitAPI(user, apiKey string) error

InitAPI has to be called first to initialize user, domain and api key for the cloudflare API access

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL