1
0
mirror of https://github.com/go-acme/lego.git synced 2024-12-05 03:58:54 +02:00
lego/providers/dns/dns_providers.go

190 lines
5.9 KiB
Go
Raw Normal View History

2019-03-11 18:56:48 +02:00
package dns
import (
"fmt"
2019-03-11 18:56:48 +02:00
"github.com/go-acme/lego/challenge"
"github.com/go-acme/lego/challenge/dns01"
"github.com/go-acme/lego/providers/dns/acmedns"
"github.com/go-acme/lego/providers/dns/alidns"
"github.com/go-acme/lego/providers/dns/auroradns"
"github.com/go-acme/lego/providers/dns/azure"
"github.com/go-acme/lego/providers/dns/bindman"
2019-03-11 18:56:48 +02:00
"github.com/go-acme/lego/providers/dns/bluecat"
"github.com/go-acme/lego/providers/dns/cloudflare"
"github.com/go-acme/lego/providers/dns/cloudns"
"github.com/go-acme/lego/providers/dns/cloudxns"
"github.com/go-acme/lego/providers/dns/conoha"
"github.com/go-acme/lego/providers/dns/designate"
"github.com/go-acme/lego/providers/dns/digitalocean"
"github.com/go-acme/lego/providers/dns/dnsimple"
"github.com/go-acme/lego/providers/dns/dnsmadeeasy"
"github.com/go-acme/lego/providers/dns/dnspod"
"github.com/go-acme/lego/providers/dns/dode"
2019-03-11 18:56:48 +02:00
"github.com/go-acme/lego/providers/dns/dreamhost"
"github.com/go-acme/lego/providers/dns/duckdns"
"github.com/go-acme/lego/providers/dns/dyn"
2019-04-29 02:03:04 +02:00
"github.com/go-acme/lego/providers/dns/easydns"
2019-03-11 18:56:48 +02:00
"github.com/go-acme/lego/providers/dns/exec"
"github.com/go-acme/lego/providers/dns/exoscale"
"github.com/go-acme/lego/providers/dns/fastdns"
"github.com/go-acme/lego/providers/dns/gandi"
"github.com/go-acme/lego/providers/dns/gandiv5"
"github.com/go-acme/lego/providers/dns/gcloud"
"github.com/go-acme/lego/providers/dns/glesys"
"github.com/go-acme/lego/providers/dns/godaddy"
"github.com/go-acme/lego/providers/dns/hostingde"
"github.com/go-acme/lego/providers/dns/httpreq"
"github.com/go-acme/lego/providers/dns/iij"
"github.com/go-acme/lego/providers/dns/inwx"
2019-04-28 14:33:50 +02:00
"github.com/go-acme/lego/providers/dns/joker"
2019-03-11 18:56:48 +02:00
"github.com/go-acme/lego/providers/dns/lightsail"
"github.com/go-acme/lego/providers/dns/linode"
"github.com/go-acme/lego/providers/dns/linodev4"
"github.com/go-acme/lego/providers/dns/mydnsjp"
"github.com/go-acme/lego/providers/dns/namecheap"
"github.com/go-acme/lego/providers/dns/namedotcom"
"github.com/go-acme/lego/providers/dns/netcup"
"github.com/go-acme/lego/providers/dns/nifcloud"
"github.com/go-acme/lego/providers/dns/ns1"
"github.com/go-acme/lego/providers/dns/oraclecloud"
"github.com/go-acme/lego/providers/dns/otc"
"github.com/go-acme/lego/providers/dns/ovh"
"github.com/go-acme/lego/providers/dns/pdns"
"github.com/go-acme/lego/providers/dns/rackspace"
"github.com/go-acme/lego/providers/dns/rfc2136"
"github.com/go-acme/lego/providers/dns/route53"
"github.com/go-acme/lego/providers/dns/sakuracloud"
"github.com/go-acme/lego/providers/dns/selectel"
"github.com/go-acme/lego/providers/dns/stackpath"
"github.com/go-acme/lego/providers/dns/transip"
"github.com/go-acme/lego/providers/dns/vegadns"
"github.com/go-acme/lego/providers/dns/vscale"
"github.com/go-acme/lego/providers/dns/vultr"
"github.com/go-acme/lego/providers/dns/zoneee"
)
2018-05-30 19:53:04 +02:00
// NewDNSChallengeProviderByName Factory for DNS providers
func NewDNSChallengeProviderByName(name string) (challenge.Provider, error) {
switch name {
case "acme-dns":
return acmedns.NewDNSProvider()
2018-09-08 15:17:23 +02:00
case "alidns":
return alidns.NewDNSProvider()
case "azure":
return azure.NewDNSProvider()
case "auroradns":
return auroradns.NewDNSProvider()
case "bindman":
return bindman.NewDNSProvider()
2018-04-03 04:50:15 +02:00
case "bluecat":
return bluecat.NewDNSProvider()
case "cloudflare":
return cloudflare.NewDNSProvider()
case "cloudns":
return cloudns.NewDNSProvider()
case "cloudxns":
return cloudxns.NewDNSProvider()
2018-11-02 03:30:09 +02:00
case "conoha":
return conoha.NewDNSProvider()
case "designate":
return designate.NewDNSProvider()
case "digitalocean":
return digitalocean.NewDNSProvider()
case "dnsimple":
return dnsimple.NewDNSProvider()
case "dnsmadeeasy":
return dnsmadeeasy.NewDNSProvider()
case "dnspod":
return dnspod.NewDNSProvider()
case "dode":
return dode.NewDNSProvider()
case "dreamhost":
return dreamhost.NewDNSProvider()
case "duckdns":
return duckdns.NewDNSProvider()
case "dyn":
return dyn.NewDNSProvider()
case "fastdns":
return fastdns.NewDNSProvider()
2019-04-29 02:03:04 +02:00
case "easydns":
return easydns.NewDNSProvider()
case "exec":
return exec.NewDNSProvider()
case "exoscale":
return exoscale.NewDNSProvider()
case "gandi":
return gandi.NewDNSProvider()
case "gandiv5":
return gandiv5.NewDNSProvider()
case "glesys":
return glesys.NewDNSProvider()
case "gcloud":
return gcloud.NewDNSProvider()
case "godaddy":
return godaddy.NewDNSProvider()
2018-09-15 23:25:14 +02:00
case "hostingde":
return hostingde.NewDNSProvider()
2018-11-09 02:53:21 +02:00
case "httpreq":
return httpreq.NewDNSProvider()
2018-09-08 12:52:36 +02:00
case "iij":
return iij.NewDNSProvider()
2018-11-06 12:49:50 +02:00
case "inwx":
return inwx.NewDNSProvider()
2019-04-28 14:33:50 +02:00
case "joker":
return joker.NewDNSProvider()
case "lightsail":
return lightsail.NewDNSProvider()
case "linode":
return linode.NewDNSProvider()
case "linodev4":
return linodev4.NewDNSProvider()
case "manual":
return dns01.NewDNSProviderManual()
2018-11-04 16:37:29 +02:00
case "mydnsjp":
return mydnsjp.NewDNSProvider()
case "namecheap":
return namecheap.NewDNSProvider()
case "namedotcom":
return namedotcom.NewDNSProvider()
2018-09-08 14:08:07 +02:00
case "netcup":
return netcup.NewDNSProvider()
case "nifcloud":
return nifcloud.NewDNSProvider()
case "ns1":
return ns1.NewDNSProvider()
case "oraclecloud":
return oraclecloud.NewDNSProvider()
case "otc":
return otc.NewDNSProvider()
case "ovh":
return ovh.NewDNSProvider()
case "pdns":
return pdns.NewDNSProvider()
case "rackspace":
return rackspace.NewDNSProvider()
case "route53":
return route53.NewDNSProvider()
case "rfc2136":
return rfc2136.NewDNSProvider()
case "sakuracloud":
return sakuracloud.NewDNSProvider()
2018-10-09 21:58:32 +02:00
case "stackpath":
return stackpath.NewDNSProvider()
2018-11-04 03:36:04 +02:00
case "selectel":
return selectel.NewDNSProvider()
2018-11-06 12:56:28 +02:00
case "transip":
return transip.NewDNSProvider()
2018-07-01 01:45:24 +02:00
case "vegadns":
return vegadns.NewDNSProvider()
case "vultr":
return vultr.NewDNSProvider()
2018-11-08 11:31:42 +02:00
case "vscale":
return vscale.NewDNSProvider()
case "zoneee":
return zoneee.NewDNSProvider()
default:
return nil, fmt.Errorf("unrecognised DNS provider: %s", name)
}
}