From 153aa3628d177ed4d2d7c4380c834e4ef583d0c6 Mon Sep 17 00:00:00 2001 From: Alexandre Oliveira Date: Mon, 2 Nov 2020 18:59:34 +0100 Subject: [PATCH] Add note giving credits to libdns DigitalOcean provider --- provider.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/provider.go b/provider.go index ec8875e..972d46d 100644 --- a/provider.go +++ b/provider.go @@ -8,14 +8,16 @@ import ( "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 { 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"` } -// 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 { return strings.TrimSuffix(fqdn, ".") }