Documentation
¶
Index ¶
- type CloudflareAPI
- func (c *CloudflareAPI) EnsureDomainExists(domain string) error
- func (c *CloudflareAPI) GetDomainCorrections(dc *models.DomainConfig) ([]*models.Correction, error)
- func (c *CloudflareAPI) GetNameservers(domain string) ([]*models.Nameserver, error)
- func (c *CloudflareAPI) GetZoneRecords(domain string) (models.Records, error)
- func (c *CloudflareAPI) ListZones() ([]string, error)
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.
Click to show internal directories.
Click to hide internal directories.