mirror of
https://github.com/go-acme/lego.git
synced 2024-12-05 12:00:24 +02:00
232 lines
7.6 KiB
Go
232 lines
7.6 KiB
Go
package dns
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/go-acme/lego/v3/challenge"
|
|
"github.com/go-acme/lego/v3/challenge/dns01"
|
|
"github.com/go-acme/lego/v3/providers/dns/acmedns"
|
|
"github.com/go-acme/lego/v3/providers/dns/alidns"
|
|
"github.com/go-acme/lego/v3/providers/dns/auroradns"
|
|
"github.com/go-acme/lego/v3/providers/dns/autodns"
|
|
"github.com/go-acme/lego/v3/providers/dns/azure"
|
|
"github.com/go-acme/lego/v3/providers/dns/bindman"
|
|
"github.com/go-acme/lego/v3/providers/dns/bluecat"
|
|
"github.com/go-acme/lego/v3/providers/dns/checkdomain"
|
|
"github.com/go-acme/lego/v3/providers/dns/clouddns"
|
|
"github.com/go-acme/lego/v3/providers/dns/cloudflare"
|
|
"github.com/go-acme/lego/v3/providers/dns/cloudns"
|
|
"github.com/go-acme/lego/v3/providers/dns/cloudxns"
|
|
"github.com/go-acme/lego/v3/providers/dns/conoha"
|
|
"github.com/go-acme/lego/v3/providers/dns/constellix"
|
|
"github.com/go-acme/lego/v3/providers/dns/designate"
|
|
"github.com/go-acme/lego/v3/providers/dns/digitalocean"
|
|
"github.com/go-acme/lego/v3/providers/dns/dnsimple"
|
|
"github.com/go-acme/lego/v3/providers/dns/dnsmadeeasy"
|
|
"github.com/go-acme/lego/v3/providers/dns/dnspod"
|
|
"github.com/go-acme/lego/v3/providers/dns/dode"
|
|
"github.com/go-acme/lego/v3/providers/dns/dreamhost"
|
|
"github.com/go-acme/lego/v3/providers/dns/duckdns"
|
|
"github.com/go-acme/lego/v3/providers/dns/dyn"
|
|
"github.com/go-acme/lego/v3/providers/dns/dynu"
|
|
"github.com/go-acme/lego/v3/providers/dns/easydns"
|
|
"github.com/go-acme/lego/v3/providers/dns/exec"
|
|
"github.com/go-acme/lego/v3/providers/dns/exoscale"
|
|
"github.com/go-acme/lego/v3/providers/dns/fastdns"
|
|
"github.com/go-acme/lego/v3/providers/dns/gandi"
|
|
"github.com/go-acme/lego/v3/providers/dns/gandiv5"
|
|
"github.com/go-acme/lego/v3/providers/dns/gcloud"
|
|
"github.com/go-acme/lego/v3/providers/dns/glesys"
|
|
"github.com/go-acme/lego/v3/providers/dns/godaddy"
|
|
"github.com/go-acme/lego/v3/providers/dns/hostingde"
|
|
"github.com/go-acme/lego/v3/providers/dns/httpreq"
|
|
"github.com/go-acme/lego/v3/providers/dns/iij"
|
|
"github.com/go-acme/lego/v3/providers/dns/inwx"
|
|
"github.com/go-acme/lego/v3/providers/dns/joker"
|
|
"github.com/go-acme/lego/v3/providers/dns/lightsail"
|
|
"github.com/go-acme/lego/v3/providers/dns/linode"
|
|
"github.com/go-acme/lego/v3/providers/dns/linodev4"
|
|
"github.com/go-acme/lego/v3/providers/dns/liquidweb"
|
|
"github.com/go-acme/lego/v3/providers/dns/mydnsjp"
|
|
"github.com/go-acme/lego/v3/providers/dns/namecheap"
|
|
"github.com/go-acme/lego/v3/providers/dns/namedotcom"
|
|
"github.com/go-acme/lego/v3/providers/dns/namesilo"
|
|
"github.com/go-acme/lego/v3/providers/dns/netcup"
|
|
"github.com/go-acme/lego/v3/providers/dns/nifcloud"
|
|
"github.com/go-acme/lego/v3/providers/dns/ns1"
|
|
"github.com/go-acme/lego/v3/providers/dns/oraclecloud"
|
|
"github.com/go-acme/lego/v3/providers/dns/otc"
|
|
"github.com/go-acme/lego/v3/providers/dns/ovh"
|
|
"github.com/go-acme/lego/v3/providers/dns/pdns"
|
|
"github.com/go-acme/lego/v3/providers/dns/rackspace"
|
|
"github.com/go-acme/lego/v3/providers/dns/regru"
|
|
"github.com/go-acme/lego/v3/providers/dns/rfc2136"
|
|
"github.com/go-acme/lego/v3/providers/dns/rimuhosting"
|
|
"github.com/go-acme/lego/v3/providers/dns/route53"
|
|
"github.com/go-acme/lego/v3/providers/dns/sakuracloud"
|
|
"github.com/go-acme/lego/v3/providers/dns/scaleway"
|
|
"github.com/go-acme/lego/v3/providers/dns/selectel"
|
|
"github.com/go-acme/lego/v3/providers/dns/servercow"
|
|
"github.com/go-acme/lego/v3/providers/dns/stackpath"
|
|
"github.com/go-acme/lego/v3/providers/dns/transip"
|
|
"github.com/go-acme/lego/v3/providers/dns/vegadns"
|
|
"github.com/go-acme/lego/v3/providers/dns/versio"
|
|
"github.com/go-acme/lego/v3/providers/dns/vscale"
|
|
"github.com/go-acme/lego/v3/providers/dns/vultr"
|
|
"github.com/go-acme/lego/v3/providers/dns/yandex"
|
|
"github.com/go-acme/lego/v3/providers/dns/zoneee"
|
|
"github.com/go-acme/lego/v3/providers/dns/zonomi"
|
|
)
|
|
|
|
// NewDNSChallengeProviderByName Factory for DNS providers
|
|
func NewDNSChallengeProviderByName(name string) (challenge.Provider, error) {
|
|
switch name {
|
|
case "acme-dns":
|
|
return acmedns.NewDNSProvider()
|
|
case "alidns":
|
|
return alidns.NewDNSProvider()
|
|
case "azure":
|
|
return azure.NewDNSProvider()
|
|
case "auroradns":
|
|
return auroradns.NewDNSProvider()
|
|
case "autodns":
|
|
return autodns.NewDNSProvider()
|
|
case "bindman":
|
|
return bindman.NewDNSProvider()
|
|
case "bluecat":
|
|
return bluecat.NewDNSProvider()
|
|
case "checkdomain":
|
|
return checkdomain.NewDNSProvider()
|
|
case "clouddns":
|
|
return clouddns.NewDNSProvider()
|
|
case "cloudflare":
|
|
return cloudflare.NewDNSProvider()
|
|
case "cloudns":
|
|
return cloudns.NewDNSProvider()
|
|
case "cloudxns":
|
|
return cloudxns.NewDNSProvider()
|
|
case "conoha":
|
|
return conoha.NewDNSProvider()
|
|
case "constellix":
|
|
return constellix.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 "dynu":
|
|
return dynu.NewDNSProvider()
|
|
case "fastdns":
|
|
return fastdns.NewDNSProvider()
|
|
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()
|
|
case "hostingde":
|
|
return hostingde.NewDNSProvider()
|
|
case "httpreq":
|
|
return httpreq.NewDNSProvider()
|
|
case "iij":
|
|
return iij.NewDNSProvider()
|
|
case "inwx":
|
|
return inwx.NewDNSProvider()
|
|
case "joker":
|
|
return joker.NewDNSProvider()
|
|
case "lightsail":
|
|
return lightsail.NewDNSProvider()
|
|
case "linode":
|
|
return linode.NewDNSProvider()
|
|
case "linodev4":
|
|
return linodev4.NewDNSProvider()
|
|
case "liquidweb":
|
|
return liquidweb.NewDNSProvider()
|
|
case "manual":
|
|
return dns01.NewDNSProviderManual()
|
|
case "mydnsjp":
|
|
return mydnsjp.NewDNSProvider()
|
|
case "namecheap":
|
|
return namecheap.NewDNSProvider()
|
|
case "namedotcom":
|
|
return namedotcom.NewDNSProvider()
|
|
case "namesilo":
|
|
return namesilo.NewDNSProvider()
|
|
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 "regru":
|
|
return regru.NewDNSProvider()
|
|
case "rfc2136":
|
|
return rfc2136.NewDNSProvider()
|
|
case "rimuhosting":
|
|
return rimuhosting.NewDNSProvider()
|
|
case "route53":
|
|
return route53.NewDNSProvider()
|
|
case "sakuracloud":
|
|
return sakuracloud.NewDNSProvider()
|
|
case "scaleway":
|
|
return scaleway.NewDNSProvider()
|
|
case "selectel":
|
|
return selectel.NewDNSProvider()
|
|
case "servercow":
|
|
return servercow.NewDNSProvider()
|
|
case "stackpath":
|
|
return stackpath.NewDNSProvider()
|
|
case "transip":
|
|
return transip.NewDNSProvider()
|
|
case "vegadns":
|
|
return vegadns.NewDNSProvider()
|
|
case "versio":
|
|
return versio.NewDNSProvider()
|
|
case "vultr":
|
|
return vultr.NewDNSProvider()
|
|
case "vscale":
|
|
return vscale.NewDNSProvider()
|
|
case "yandex":
|
|
return yandex.NewDNSProvider()
|
|
case "zoneee":
|
|
return zoneee.NewDNSProvider()
|
|
case "zonomi":
|
|
return zonomi.NewDNSProvider()
|
|
default:
|
|
return nil, fmt.Errorf("unrecognized DNS provider: %s", name)
|
|
}
|
|
}
|