cloudflare

package
v0.1.0-alpha Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 dyndns.Provider interface for Cloudflare.

func New

func New(opts Options) *Provider

New returns a new Cloudflare provider.

func (*Provider) Update

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

Update implements the dyndns.Provider interface for DuckDNS.

Jump to

Keyboard shortcuts

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