dddd

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IdenticalRecords

func IdenticalRecords(a, b cloudflare.DNSRecord, domain string) bool

IdenticalRecords checks that two Cloudflare records have entirely identical configurations

func MatchingRecord

func MatchingRecord(a, b cloudflare.DNSRecord, domain string) bool

MatchingRecord checks that two Cloudflare records have the same uniqueness signature

func MergeConfig

func MergeConfig(targetConfig *Config, sourceConfig Config)

MergeConfig combines the source's valid entries with the target

func Run

func Run(config Config)

Run starts the dynamic DNS update

func ValidateConfig

func ValidateConfig(config *Config) error

ValidateConfig determines whether the given config is sufficient

Types

type Config

type Config struct {
	Key        string `yaml:"key,omitempty"`
	Email      string `yaml:"email,omitempty"`
	Name       string `yaml:"name,omitempty"`
	Domain     string `yaml:"domain,omitempty"`
	IP         string `yaml:"ip,omitempty"`
	RecordType string `yaml:"recordType,omitempty"`
	LogLevel   string `yaml:"logLevel,omitempty"`
}

Config provides configuration for dddd runner

func ParseConfig

func ParseConfig(location string) (Config, error)

ParseConfig is used to load a config from a specific file

Jump to

Keyboard shortcuts

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