cloudflare

package
v0.0.0-...-2acc106 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckConfig

func CheckConfig() error

CheckConfig checks the cloudflare configuration

Types

type Cloudflare

type Cloudflare struct {
	// contains filtered or unexported fields
}

Cloudflare is the cloudflare client

func New

func New() (*Cloudflare, error)

New instantiates a new cloudflare client

func (*Cloudflare) CreateA

func (c *Cloudflare) CreateA(name string, ip net.IP) (result cf.DNSRecord, err error)

CreateA creates an A-record

func (*Cloudflare) FetchA

func (c *Cloudflare) FetchA(host string) (result map[string]cf.DNSRecord, err error)

FetchA fetches an A-record

func (*Cloudflare) UpdateA

func (c *Cloudflare) UpdateA(recordID string, name string, ip net.IP) (err error)

UpdateA updates an A-record

Jump to

Keyboard shortcuts

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