utils

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2016 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DNSTimeout = 10 * time.Second
View Source
var RecursiveNameservers = []string{
	"google-public-dns-a.google.com:53",
	"google-public-dns-b.google.com:53",
}

Functions

func CheckDNSPropagation

func CheckDNSPropagation(fqdn, value string) (bool, error)

checkDNSPropagation checks if the expected TXT record has been propagated to all authoritative nameservers.

func DNS01Record

func DNS01Record(domain string) (fqdn string)

DNS01Record returns a DNS record which will fulfill the `dns-01` challenge

func DomainBelongsToProvider added in v0.0.2

func DomainBelongsToProvider(d string, l []string) bool

func Dump

func Dump(cls interface{})

func FindZoneByFqdn

func FindZoneByFqdn(fqdn string) (string, error)

FindZoneByFqdn determines the zone of the given fqdn

func StirngInSlice

func StirngInSlice(s string, l []string) bool

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 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