cf

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2025 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RECORD_TYPE_IPV4 = "A"
	RECORD_TYPE_IPV6 = "AAAA"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CFDNS

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

func NewCFDNS

func NewCFDNS(cfg config.Config) (*CFDNS, error)

NewCFDNS creates a new Cloudflare DNS updater instance

func (*CFDNS) Close

func (cfdns *CFDNS) Close()

Close aborts all pending tasks and closes the worker pool

func (*CFDNS) Process

func (cfdns *CFDNS) Process(ctx context.Context)

func (*CFDNS) SetConfig

func (cfdns *CFDNS) SetConfig(cfg *config.Config) error

func (*CFDNS) Wait

func (cfdns *CFDNS) Wait()

Wait will wait for all tasks in the pool to complete

func (*CFDNS) ZoneIsValid

func (cfdns *CFDNS) ZoneIsValid(ctx context.Context) (bool, error)

ZoneIsValid checks if the configured zone ID is valid for the provided API token

Jump to

Keyboard shortcuts

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