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

package digitalocean

import "gomodules.xyz/dns/digitalocean"

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


Package Files


type DNSProvider Uses

type DNSProvider struct {
    // contains filtered or unexported fields

DNSProvider is an implementation of the acme.ChallengeProvider interface that uses DigitalOcean's REST API to manage TXT records for a domain.

func Default Uses

func Default() (*DNSProvider, error)

NewDNSProvider returns a DNSProvider instance configured for Digital Ocean. Credentials must be passed in the environment variable: DO_AUTH_TOKEN.

func New Uses

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

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

func (*DNSProvider) DeleteARecord Uses

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

func (*DNSProvider) DeleteARecords Uses

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

func (*DNSProvider) EnsureARecord Uses

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

type Options Uses

type Options struct {
    AuthToken string `json:"auth_token" envconfig:"DO_AUTH_TOKEN" form:"digitalocean_auth_token"`

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