cloudflare

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoDNSResults           = errors.New("the dns return no results for the given record")
	ErrUnexpectedResponseType = errors.New("the dns return an unexpected response type")
)
View Source
var (
	ErrInvalidIPType = errors.New("provided IP type doesn't match record type")
)

Functions

This section is empty.

Types

type API added in v1.0.0

type API struct {
	DNSServers []string
	// contains filtered or unexported fields
}

func NewWithKey added in v1.0.0

func NewWithKey(apiKey, email string) (*API, error)

NewWithKey creates a new Cloudflare API client using API Key

func NewWithToken added in v1.0.0

func NewWithToken(token string) (*API, error)

NewWithToken creates a new Cloudflare API client using API Tokens

func (*API) UpdateAAAARecord added in v1.0.0

func (api *API) UpdateAAAARecord(name string, ip net.IP) error

func (*API) UpdateARecord added in v1.0.0

func (api *API) UpdateARecord(name string, ip net.IP) error

Jump to

Keyboard shortcuts

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