util

package
v0.7.0-rio.1 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2019 License: Apache-2.0, MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DNSTimeout = 10 * time.Second

DNSTimeout is used to override the default DNS timeout of 10 seconds.

View Source
var (
	// PreCheckDNS checks DNS propagation before notifying ACME that
	// the DNS challenge is ready.
	PreCheckDNS preCheckDNSFunc = checkDNSPropagation
)
View Source
var RecursiveNameservers = getNameservers(defaultResolvConf, defaultNameservers)

Functions

func DNS01Record

func DNS01Record(domain, value string, nameservers []string, followCNAME bool) (string, string, int, error)

DNS01Record returns a DNS record which will fulfill the `dns-01` challenge TODO: move this into a non-generic place by resolving import cycle in dns package

func FindZoneByFqdn

func FindZoneByFqdn(fqdn string, nameservers []string) (string, error)

FindZoneByFqdn determines the zone apex for the given fqdn by recursing up the domain labels until the nameserver returns a SOA record in the answer section.

func ToFqdn

func ToFqdn(name string) string

ToFqdn converts the name into a fqdn appending a trailing dot.

func UnFqdn

func UnFqdn(name string) string

UnFqdn converts the fqdn into a name removing the trailing dot.

func ValidateCAA

func ValidateCAA(domain string, issuerID []string, iswildcard bool, nameservers []string) error

func WaitFor

func WaitFor(timeout, interval time.Duration, f func() (bool, error)) error

WaitFor polls the given function 'f', once every 'interval', up to 'timeout'.

Types

This section is empty.

Jump to

Keyboard shortcuts

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