cloudflare

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var UpdateInterval int

Functions

This section is empty.

Types

type CloudflareClient

type CloudflareClient struct {
	ApiToken                string `json:"apiToken"`
	ZoneIdentifier          string `json:"zoneIdentifier"`
	RecordIdentifier        string `json:"recordIdentifier"`
	UpdateIntervalInMinutes int    `json:"updateIntervalInMinutes"`
	// contains filtered or unexported fields
}

func CreateClient

func CreateClient(apiToken string, zoneIdentifier string, recordIdentifier string, updateInterval int) *CloudflareClient

func (CloudflareClient) UpdateRecord

func (cc CloudflareClient) UpdateRecord() string

func (CloudflareClient) VerifyApiToken

func (cc CloudflareClient) VerifyApiToken(done chan bool) bool

func (CloudflareClient) VerifyDnsRecord

func (cc CloudflareClient) VerifyDnsRecord(done chan bool) bool

func (CloudflareClient) VerifyZone

func (cc CloudflareClient) VerifyZone(done chan bool) bool

type CloudflareResponse

type CloudflareResponse struct {
	Success bool `json:"success"`
	Result  struct {
		Id   string `json:"id"`
		Name string `json:"name"`
	} `json:"result"`
}

Jump to

Keyboard shortcuts

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