1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00

NEW PROVIDER: GANDI_V5 (deprecates GANDI) (#572)

* GANDI_v5: Add Registrar support
* Add GANDI deprecation warning
* vendor github.com/tiramiseb/go-gandi
This commit is contained in:
Tom Limoncelli
2020-01-20 14:13:32 -05:00
committed by GitHub
parent 2c6878237e
commit f6ce421fdd
35 changed files with 2047 additions and 385 deletions

View File

@@ -6,6 +6,18 @@ type DNSProvider interface {
GetDomainCorrections(dc *DomainConfig) ([]*Correction, error)
}
// DNSProvider3 will replace DNSProvider in 3.0.
// If you want to future-proof your code, implement these
// functions and implement GetDomainCorrections() as in
// providers/gandi_v5/gandi_v5Provider.go
//type DNSProvider3 interface {
// GetNameservers(domain string) ([]*Nameserver, error)
// GetZoneRecords(domain string) (Records, error)
// PrepFoundRecords(recs Records) Records
// PrepDesiredRecords(dc *DomainConfig)
// GenerateDomainCorrections(dc *DomainConfig, existing Records) ([]*Correction, error)
//}
// Registrar is an interface for Registrar plug-ins.
type Registrar interface {
GetRegistrarCorrections(dc *DomainConfig) ([]*Correction, error)