duckdns

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 30, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Adds lego support for http://duckdns.org .

See http://www.duckdns.org/spec.jsp for more info on updating TXT records.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DNSProvider

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

DNSProvider adds and removes the record for the DNS challenge

func NewDNSProvider

func NewDNSProvider() (*DNSProvider, error)

NewDNSProvider returns a new DNS provider using environment variable DUCKDNS_TOKEN for adding and removing the DNS record.

func NewDNSProviderCredentials

func NewDNSProviderCredentials(duckdnsToken string) (*DNSProvider, error)

NewDNSProviderCredentials uses the supplied credentials to return a DNSProvider instance configured for http://duckdns.org .

func (*DNSProvider) CleanUp

func (d *DNSProvider) CleanUp(domain, token, keyAuth string) error

CleanUp clears duckdns TXT record

func (*DNSProvider) Present

func (d *DNSProvider) Present(domain, token, keyAuth string) error

Present creates a TXT record to fulfil the dns-01 challenge. In duckdns you only have one TXT record shared with the domain and all sub domains.

To update the TXT record we just need to make one simple get request.

Jump to

Keyboard shortcuts

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