cloudflare

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(opts Options) ddns.Provider

New returns a new Cloudflare provider.

func ValidateOptions

func ValidateOptions(opts Options) error

ValidateOptions validates the options for the Cloudflare provider.

Types

type Options

type Options struct {
	Token    string `json:"token"`
	ZoneID   string `json:"zoneID"`
	Hostname string `json:"hostname"`
}

Options is the set of options for the Cloudflare provider.

type Provider

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

Provider implements the ddns.Provider interface for Cloudflare.

func (*Provider) Update

func (p *Provider) Update(ipv4, ipv6 net.IP) error

Update implements the ddns.Provider interface for DuckDNS.

Jump to

Keyboard shortcuts

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