WIP: domain listing with Gandi

Rethinking the interface already.
This commit is contained in:
2021-10-18 22:16:29 +02:00
parent 7ea3df45d4
commit 597b4b586e
10 changed files with 161 additions and 145 deletions

15
pkg/dns/gandi/gandi.go Normal file
View File

@ -0,0 +1,15 @@
package gandi
import (
"coopcloud.tech/abra/pkg/dns"
"github.com/libdns/gandi"
)
// New constructs a new DNs provider.
func New() (gandi.Provider, error) {
token, err := dns.NewToken("Gandi", "GANDI_TOKEN")
if err != nil {
return gandi.Provider{}, err
}
return gandi.Provider{APIToken: token}, nil
}