abra/pkg/dns/gandi/gandi.go
decentral1se 597b4b586e
All checks were successful
continuous-integration/drone/push Build is passing
WIP: domain listing with Gandi
Rethinking the interface already.
2021-10-18 22:16:29 +02:00

16 lines
310 B
Go

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
}