cloudflare

package
v3.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2020 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudflareAPI added in v3.3.0

type CloudflareAPI struct {
	ApiKey      string `json:"apikey"`
	ApiToken    string `json:"apitoken"`
	ApiUser     string `json:"apiuser"`
	AccountID   string `json:"accountid"`
	AccountName string `json:"accountname"`
	// contains filtered or unexported fields
}

CloudflareAPI is the handle for API calls.

func (*CloudflareAPI) EnsureDomainExists added in v3.3.0

func (c *CloudflareAPI) EnsureDomainExists(domain string) error

EnsureDomainExists returns an error of domain does not exist.

func (*CloudflareAPI) GetDomainCorrections added in v3.3.0

func (c *CloudflareAPI) GetDomainCorrections(dc *models.DomainConfig) ([]*models.Correction, error)

GetDomainCorrections returns a list of corrections to update a domain.

func (*CloudflareAPI) GetNameservers added in v3.3.0

func (c *CloudflareAPI) GetNameservers(domain string) ([]*models.Nameserver, error)

GetNameservers returns the nameservers for a domain.

func (*CloudflareAPI) GetZoneRecords added in v3.3.0

func (c *CloudflareAPI) GetZoneRecords(domain string) (models.Records, error)

GetZoneRecords gets the records of a zone and returns them in RecordConfig format.

func (*CloudflareAPI) ListZones added in v3.3.0

func (c *CloudflareAPI) ListZones() ([]string, error)

ListZones returns a list of the DNS zones.

Jump to

Keyboard shortcuts

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