dns: gomodules.xyz/dns/linode Index | Files

package linode

import "gomodules.xyz/dns/linode"

Package linode implements a DNS provider for solving the DNS-01 challenge using Linode DNS.


Package Files


type DNSProvider Uses

type DNSProvider struct {
    // contains filtered or unexported fields

DNSProvider implements the acme.ChallengeProvider interface.

func Default Uses

func Default() (*DNSProvider, error)

NewDNSProvider returns a DNSProvider instance configured for Linode. Credentials must be passed in the environment variable: LINODE_API_KEY.

func New Uses

func New(opt Options) (*DNSProvider, error)

NewDNSProviderCredentials uses the supplied credentials to return a DNSProvider instance configured for Linode.

func (*DNSProvider) DeleteARecord Uses

func (p *DNSProvider) DeleteARecord(domain string, ip string) error

func (*DNSProvider) DeleteARecords Uses

func (p *DNSProvider) DeleteARecords(domain string) error

func (*DNSProvider) EnsureARecord Uses

func (p *DNSProvider) EnsureARecord(domain string, ip string) error

func (*DNSProvider) Timeout Uses

func (p *DNSProvider) Timeout() (timeout, interval time.Duration)

Timeout returns the timeout and interval to use when checking for DNS propagation. Adjusting here to cope with spikes in propagation times.

type Options Uses

type Options struct {
    ApiKey string `json:"api_key" envconfig:"LINODE_API_KEY" form:"linode_api_key"`

Package linode imports 13 packages (graph) and is imported by 3 packages. Updated 2019-06-08. Refresh now. Tools for package owners.