Add note giving credits to libdns DigitalOcean provider

This commit is contained in:
Alexandre Oliveira 2020-11-02 18:59:34 +01:00
parent 8a738c041b
commit 153aa3628d

View File

@ -8,14 +8,16 @@ import (
"github.com/libdns/libdns" "github.com/libdns/libdns"
) )
// Provider implements the libdns interfaces for DigitalOcean // Provider implements the libdns interfaces for Vultr
// Adapted from libdns/digitalocean to work with the Vultr API
type Provider struct { type Provider struct {
Client Client
// APIToken is the DigitalOcean API token - see https://www.digitalocean.com/docs/apis-clis/api/create-personal-access-token/ // APIToken is the Vultr API token
// see https://my.vultr.com/settings/#settingsapi
APIToken string `json:"auth_token"` APIToken string `json:"auth_token"`
} }
// unFQDN trims any trailing "." from fqdn. DigitalOcean's API does not use FQDNs. // unFQDN trims any trailing "." from fqdn.
func (p *Provider) unFQDN(fqdn string) string { func (p *Provider) unFQDN(fqdn string) string {
return strings.TrimSuffix(fqdn, ".") return strings.TrimSuffix(fqdn, ".")
} }