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

package vultr

import "gomodules.xyz/dns/vultr"

Package vultr implements a DNS provider for solving the DNS-01 challenge using the vultr DNS. See https://www.vultr.com/api/#dns

Index

Package Files

vultr.go

type DNSProvider Uses

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

DNSProvider is an implementation of the acme.ChallengeProvider interface.

func Default Uses

func Default() (*DNSProvider, error)

NewDNSProvider returns a DNSProvider instance with a configured Vultr client. Authentication uses the VULTR_API_KEY environment variable.

func New Uses

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

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

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 {
    ApiKey string `json:"api_key" envconfig:"VULTR_API_KEY" form:"vultr_api_key"`
}

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