dns

package
v0.0.0-...-64b876b Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultZoneResolver

func DefaultZoneResolver(fqdn string) (string, error)

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

Types

type Challenge

type Challenge struct {
	EncodedKeyAuth string // encoded key authorization value
	FQDN           string // FQDN we want to verify
}

Challenge holds information about an ACME challenge.

func (Challenge) Validate

func (c Challenge) Validate() error

type Provider

type Provider interface {
	Present(ctx context.Context, c Challenge) error
	Cleanup(ctx context.Context, c Challenge) error
	Underlying() interface {
		libdns.RecordGetter
		libdns.RecordAppender
		libdns.RecordSetter
		libdns.RecordDeleter
	}
}

Provider calls the DNS provider API

func NewProvider

func NewProvider(p libdnsfactory.Provider, resolver ZoneResolver) (Provider, error)

NewProvider creates a new provider

func NewProviderFromConfig

func NewProviderFromConfig(cfg *config.Provider, resolver ZoneResolver) (Provider, error)

NewProviderFromConfig creates a new provider from a config.Provider instance

type ZoneResolver

type ZoneResolver = func(string) (string, error)

ZoneResolver resolve the zone from an FQDN

Jump to

Keyboard shortcuts

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