forked from TrueCloudLab/lego
fix: typos. (#954)
This commit is contained in:
parent
76c850a580
commit
cf879d0b3c
52 changed files with 54 additions and 53 deletions
|
@ -61,6 +61,7 @@ More information [here](/lego/dns/#configuration-and-credentials).
|
||||||
## More information
|
## More information
|
||||||
|
|
||||||
- [API documentation](https://cart.liquidweb.com/storm/api/docs/v1/)
|
- [API documentation](https://cart.liquidweb.com/storm/api/docs/v1/)
|
||||||
|
- [Go client](https://github.com/liquidweb/liquidweb-go)
|
||||||
|
|
||||||
<!-- THIS DOCUMENTATION IS AUTO-GENERATED. PLEASE DO NOT EDIT. -->
|
<!-- THIS DOCUMENTATION IS AUTO-GENERATED. PLEASE DO NOT EDIT. -->
|
||||||
<!-- providers/dns/liquidweb/liquidweb.toml -->
|
<!-- providers/dns/liquidweb/liquidweb.toml -->
|
||||||
|
|
|
@ -33,7 +33,7 @@ type acmeDNSClient interface {
|
||||||
RegisterAccount([]string) (goacmedns.Account, error)
|
RegisterAccount([]string) (goacmedns.Account, error)
|
||||||
}
|
}
|
||||||
|
|
||||||
// DNSProvider is an implementation of the acme.ChallengeProvider interface for
|
// DNSProvider is an implementation of the challenge.Provider interface for
|
||||||
// an ACME-DNS server.
|
// an ACME-DNS server.
|
||||||
type DNSProvider struct {
|
type DNSProvider struct {
|
||||||
client acmeDNSClient
|
client acmeDNSClient
|
||||||
|
|
|
@ -38,7 +38,7 @@ func NewDefaultConfig() *Config {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// DNSProvider is an implementation of the acme.ChallengeProvider interface
|
// DNSProvider is an implementation of the challenge.Provider interface
|
||||||
type DNSProvider struct {
|
type DNSProvider struct {
|
||||||
config *Config
|
config *Config
|
||||||
client *alidns.Client
|
client *alidns.Client
|
||||||
|
|
|
@ -51,7 +51,7 @@ func NewDefaultConfig() *Config {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// DNSProvider is an implementation of the acme.ChallengeProvider interface
|
// DNSProvider is an implementation of the challenge.Provider interface
|
||||||
type DNSProvider struct {
|
type DNSProvider struct {
|
||||||
config *Config
|
config *Config
|
||||||
authorizer autorest.Authorizer
|
authorizer autorest.Authorizer
|
||||||
|
|
|
@ -31,7 +31,7 @@ func NewDefaultConfig() *Config {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// DNSProvider is an implementation of the acme.ChallengeProvider interface that uses
|
// DNSProvider is an implementation of the challenge.Provider interface that uses
|
||||||
// Bindman's Address Manager REST API to manage TXT records for a domain.
|
// Bindman's Address Manager REST API to manage TXT records for a domain.
|
||||||
type DNSProvider struct {
|
type DNSProvider struct {
|
||||||
config *Config
|
config *Config
|
||||||
|
|
|
@ -46,7 +46,7 @@ func NewDefaultConfig() *Config {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// DNSProvider is an implementation of the acme.ChallengeProvider interface that uses
|
// DNSProvider is an implementation of the challenge.Provider interface that uses
|
||||||
// Bluecat's Address Manager REST API to manage TXT records for a domain.
|
// Bluecat's Address Manager REST API to manage TXT records for a domain.
|
||||||
type DNSProvider struct {
|
type DNSProvider struct {
|
||||||
config *Config
|
config *Config
|
||||||
|
|
|
@ -39,7 +39,7 @@ func NewDefaultConfig() *Config {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// DNSProvider is an implementation of the acme.ChallengeProvider interface
|
// DNSProvider is an implementation of the challenge.Provider interface
|
||||||
type DNSProvider struct {
|
type DNSProvider struct {
|
||||||
client *cloudflare.API
|
client *cloudflare.API
|
||||||
config *Config
|
config *Config
|
||||||
|
|
|
@ -34,7 +34,7 @@ func NewDefaultConfig() *Config {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// DNSProvider is an implementation of the acme.ChallengeProvider interface
|
// DNSProvider is an implementation of the challenge.Provider interface
|
||||||
type DNSProvider struct {
|
type DNSProvider struct {
|
||||||
config *Config
|
config *Config
|
||||||
client *internal.Client
|
client *internal.Client
|
||||||
|
|
|
@ -34,7 +34,7 @@ func NewDefaultConfig() *Config {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// DNSProvider is an implementation of the acme.ChallengeProvider interface
|
// DNSProvider is an implementation of the challenge.Provider interface
|
||||||
type DNSProvider struct {
|
type DNSProvider struct {
|
||||||
config *Config
|
config *Config
|
||||||
client *internal.Client
|
client *internal.Client
|
||||||
|
|
|
@ -37,7 +37,7 @@ func NewDefaultConfig() *Config {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// DNSProvider is an implementation of the acme.ChallengeProvider interface
|
// DNSProvider is an implementation of the challenge.Provider interface
|
||||||
type DNSProvider struct {
|
type DNSProvider struct {
|
||||||
config *Config
|
config *Config
|
||||||
client *internal.Client
|
client *internal.Client
|
||||||
|
|
|
@ -35,7 +35,7 @@ func NewDefaultConfig() *Config {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// DNSProvider is an implementation of the acme.ChallengeProvider interface
|
// DNSProvider is an implementation of the challenge.Provider interface
|
||||||
// that uses DigitalOcean's REST API to manage TXT records for a domain.
|
// that uses DigitalOcean's REST API to manage TXT records for a domain.
|
||||||
type DNSProvider struct {
|
type DNSProvider struct {
|
||||||
config *Config
|
config *Config
|
||||||
|
|
|
@ -33,7 +33,7 @@ func NewDefaultConfig() *Config {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// DNSProvider is an implementation of the acme.ChallengeProvider interface.
|
// DNSProvider is an implementation of the challenge.Provider interface.
|
||||||
type DNSProvider struct {
|
type DNSProvider struct {
|
||||||
config *Config
|
config *Config
|
||||||
client *dnsimple.Client
|
client *dnsimple.Client
|
||||||
|
|
|
@ -41,7 +41,7 @@ func NewDefaultConfig() *Config {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// DNSProvider is an implementation of the acme.ChallengeProvider interface that uses
|
// DNSProvider is an implementation of the challenge.Provider interface that uses
|
||||||
// DNSMadeEasy's DNS API to manage TXT records for a domain.
|
// DNSMadeEasy's DNS API to manage TXT records for a domain.
|
||||||
type DNSProvider struct {
|
type DNSProvider struct {
|
||||||
config *Config
|
config *Config
|
||||||
|
|
|
@ -35,7 +35,7 @@ func NewDefaultConfig() *Config {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// DNSProvider is an implementation of the acme.ChallengeProvider interface.
|
// DNSProvider is an implementation of the challenge.Provider interface.
|
||||||
type DNSProvider struct {
|
type DNSProvider struct {
|
||||||
config *Config
|
config *Config
|
||||||
client *dnspod.Client
|
client *dnspod.Client
|
||||||
|
|
|
@ -35,7 +35,7 @@ func NewDefaultConfig() *Config {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// DNSProvider is an implementation of the acme.ChallengeProvider interface that uses
|
// DNSProvider is an implementation of the challenge.Provider interface that uses
|
||||||
// Dyn's Managed DNS API to manage TXT records for a domain.
|
// Dyn's Managed DNS API to manage TXT records for a domain.
|
||||||
type DNSProvider struct {
|
type DNSProvider struct {
|
||||||
config *Config
|
config *Config
|
||||||
|
|
|
@ -11,10 +11,9 @@ import (
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/miekg/dns"
|
|
||||||
|
|
||||||
"github.com/go-acme/lego/v3/challenge/dns01"
|
"github.com/go-acme/lego/v3/challenge/dns01"
|
||||||
"github.com/go-acme/lego/v3/platform/config/env"
|
"github.com/go-acme/lego/v3/platform/config/env"
|
||||||
|
"github.com/miekg/dns"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Config is used to configure the creation of the DNSProvider
|
// Config is used to configure the creation of the DNSProvider
|
||||||
|
@ -70,7 +69,7 @@ func NewDNSProvider() (*DNSProvider, error) {
|
||||||
return NewDNSProviderConfig(config)
|
return NewDNSProviderConfig(config)
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewDNSProviderConfig return a DNSProvider .
|
// NewDNSProviderConfig return a DNSProvider instance configured for EasyDNS.
|
||||||
func NewDNSProviderConfig(config *Config) (*DNSProvider, error) {
|
func NewDNSProviderConfig(config *Config) (*DNSProvider, error) {
|
||||||
if config == nil {
|
if config == nil {
|
||||||
return nil, errors.New("easydns: the configuration of the DNS provider is nil")
|
return nil, errors.New("easydns: the configuration of the DNS provider is nil")
|
||||||
|
|
|
@ -38,7 +38,7 @@ func NewDefaultConfig() *Config {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// DNSProvider is an implementation of the acme.ChallengeProvider interface.
|
// DNSProvider is an implementation of the challenge.Provider interface.
|
||||||
type DNSProvider struct {
|
type DNSProvider struct {
|
||||||
config *Config
|
config *Config
|
||||||
client *egoscale.Client
|
client *egoscale.Client
|
||||||
|
|
|
@ -30,7 +30,7 @@ func NewDefaultConfig() *Config {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// DNSProvider is an implementation of the acme.ChallengeProvider interface.
|
// DNSProvider is an implementation of the challenge.Provider interface.
|
||||||
type DNSProvider struct {
|
type DNSProvider struct {
|
||||||
config *Config
|
config *Config
|
||||||
}
|
}
|
||||||
|
|
|
@ -52,7 +52,7 @@ type inProgressInfo struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
// DNSProvider is an implementation of the
|
// DNSProvider is an implementation of the
|
||||||
// acme.ChallengeProviderTimeout interface that uses Gandi's XML-RPC
|
// challenge.ProviderTimeout interface that uses Gandi's XML-RPC
|
||||||
// API to manage TXT records for a domain.
|
// API to manage TXT records for a domain.
|
||||||
type DNSProvider struct {
|
type DNSProvider struct {
|
||||||
inProgressFQDNs map[string]inProgressInfo
|
inProgressFQDNs map[string]inProgressInfo
|
||||||
|
|
|
@ -50,7 +50,7 @@ func NewDefaultConfig() *Config {
|
||||||
}
|
}
|
||||||
|
|
||||||
// DNSProvider is an implementation of the
|
// DNSProvider is an implementation of the
|
||||||
// acme.ChallengeProviderTimeout interface that uses Gandi's LiveDNS
|
// challenge.ProviderTimeout interface that uses Gandi's LiveDNS
|
||||||
// API to manage TXT records for a domain.
|
// API to manage TXT records for a domain.
|
||||||
type DNSProvider struct {
|
type DNSProvider struct {
|
||||||
config *Config
|
config *Config
|
||||||
|
|
|
@ -42,7 +42,7 @@ func NewDefaultConfig() *Config {
|
||||||
}
|
}
|
||||||
|
|
||||||
// DNSProvider is an implementation of the
|
// DNSProvider is an implementation of the
|
||||||
// acme.ChallengeProviderTimeout interface that uses GleSYS
|
// challenge.ProviderTimeout interface that uses GleSYS
|
||||||
// API to manage TXT records for a domain.
|
// API to manage TXT records for a domain.
|
||||||
type DNSProvider struct {
|
type DNSProvider struct {
|
||||||
config *Config
|
config *Config
|
||||||
|
|
|
@ -42,7 +42,7 @@ func NewDefaultConfig() *Config {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// DNSProvider is an implementation of the acme.ChallengeProvider interface
|
// DNSProvider is an implementation of the challenge.Provider interface
|
||||||
type DNSProvider struct {
|
type DNSProvider struct {
|
||||||
config *Config
|
config *Config
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,7 +34,7 @@ func NewDefaultConfig() *Config {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// DNSProvider is an implementation of the acme.ChallengeProvider interface
|
// DNSProvider is an implementation of the challenge.Provider interface
|
||||||
type DNSProvider struct {
|
type DNSProvider struct {
|
||||||
config *Config
|
config *Config
|
||||||
recordIDs map[string]string
|
recordIDs map[string]string
|
||||||
|
|
|
@ -75,7 +75,7 @@ func NewDNSProvider() (*DNSProvider, error) {
|
||||||
return NewDNSProviderConfig(config)
|
return NewDNSProviderConfig(config)
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewDNSProviderConfig return a DNSProvider .
|
// NewDNSProviderConfig return a DNSProvider.
|
||||||
func NewDNSProviderConfig(config *Config) (*DNSProvider, error) {
|
func NewDNSProviderConfig(config *Config) (*DNSProvider, error) {
|
||||||
if config == nil {
|
if config == nil {
|
||||||
return nil, errors.New("httpreq: the configuration of the DNS provider is nil")
|
return nil, errors.New("httpreq: the configuration of the DNS provider is nil")
|
||||||
|
|
|
@ -32,7 +32,7 @@ func NewDefaultConfig() *Config {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// DNSProvider implements the acme.ChallengeProvider interface
|
// DNSProvider implements the challenge.Provider interface
|
||||||
type DNSProvider struct {
|
type DNSProvider struct {
|
||||||
api *doapi.API
|
api *doapi.API
|
||||||
config *Config
|
config *Config
|
||||||
|
|
|
@ -32,7 +32,7 @@ func NewDefaultConfig() *Config {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// DNSProvider is an implementation of the acme.ChallengeProvider interface
|
// DNSProvider is an implementation of the challenge.Provider interface
|
||||||
type DNSProvider struct {
|
type DNSProvider struct {
|
||||||
config *Config
|
config *Config
|
||||||
client *goinwx.Client
|
client *goinwx.Client
|
||||||
|
|
|
@ -59,7 +59,7 @@ func NewDefaultConfig() *Config {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// DNSProvider implements the acme.ChallengeProvider interface
|
// DNSProvider implements the challenge.Provider interface
|
||||||
type DNSProvider struct {
|
type DNSProvider struct {
|
||||||
client *lightsail.Lightsail
|
client *lightsail.Lightsail
|
||||||
config *Config
|
config *Config
|
||||||
|
|
|
@ -38,7 +38,7 @@ type hostedZoneInfo struct {
|
||||||
resourceName string
|
resourceName string
|
||||||
}
|
}
|
||||||
|
|
||||||
// DNSProvider implements the acme.ChallengeProvider interface.
|
// DNSProvider implements the challenge.Provider interface.
|
||||||
type DNSProvider struct {
|
type DNSProvider struct {
|
||||||
config *Config
|
config *Config
|
||||||
client *dns.DNS
|
client *dns.DNS
|
||||||
|
|
|
@ -44,7 +44,7 @@ type hostedZoneInfo struct {
|
||||||
resourceName string
|
resourceName string
|
||||||
}
|
}
|
||||||
|
|
||||||
// DNSProvider implements the acme.ChallengeProvider interface.
|
// DNSProvider implements the challenge.Provider interface.
|
||||||
type DNSProvider struct {
|
type DNSProvider struct {
|
||||||
config *Config
|
config *Config
|
||||||
client *linodego.Client
|
client *linodego.Client
|
||||||
|
|
|
@ -41,7 +41,7 @@ func NewDefaultConfig() *Config {
|
||||||
return config
|
return config
|
||||||
}
|
}
|
||||||
|
|
||||||
// DNSProvider is an implementation of the acme.ChallengeProvider interface
|
// DNSProvider is an implementation of the challenge.Provider interface
|
||||||
// that uses Liquid Web's REST API to manage TXT records for a domain.
|
// that uses Liquid Web's REST API to manage TXT records for a domain.
|
||||||
type DNSProvider struct {
|
type DNSProvider struct {
|
||||||
config *Config
|
config *Config
|
||||||
|
|
|
@ -25,3 +25,4 @@ lego --dns liquidweb --email someaccount@email.com --domains "foo.email.com" run
|
||||||
|
|
||||||
[Links]
|
[Links]
|
||||||
API = "https://cart.liquidweb.com/storm/api/docs/v1/"
|
API = "https://cart.liquidweb.com/storm/api/docs/v1/"
|
||||||
|
GoClient = "https://github.com/liquidweb/liquidweb-go"
|
||||||
|
|
|
@ -33,7 +33,7 @@ func NewDefaultConfig() *Config {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// DNSProvider is an implementation of the acme.ChallengeProvider interface
|
// DNSProvider is an implementation of the challenge.Provider interface
|
||||||
type DNSProvider struct {
|
type DNSProvider struct {
|
||||||
config *Config
|
config *Config
|
||||||
}
|
}
|
||||||
|
|
|
@ -94,7 +94,7 @@ func NewDNSProvider() (*DNSProvider, error) {
|
||||||
return NewDNSProviderConfig(config)
|
return NewDNSProviderConfig(config)
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewDNSProviderConfig return a DNSProvider instance configured for namecheap.
|
// NewDNSProviderConfig return a DNSProvider instance configured for Namecheap.
|
||||||
func NewDNSProviderConfig(config *Config) (*DNSProvider, error) {
|
func NewDNSProviderConfig(config *Config) (*DNSProvider, error) {
|
||||||
if config == nil {
|
if config == nil {
|
||||||
return nil, errors.New("namecheap: the configuration of the DNS provider is nil")
|
return nil, errors.New("namecheap: the configuration of the DNS provider is nil")
|
||||||
|
|
|
@ -39,7 +39,7 @@ func NewDefaultConfig() *Config {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// DNSProvider is an implementation of the acme.ChallengeProvider interface.
|
// DNSProvider is an implementation of the challenge.Provider interface.
|
||||||
type DNSProvider struct {
|
type DNSProvider struct {
|
||||||
client *namecom.NameCom
|
client *namecom.NameCom
|
||||||
config *Config
|
config *Config
|
||||||
|
|
|
@ -34,7 +34,7 @@ func NewDefaultConfig() *Config {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// DNSProvider is an implementation of the acme.ChallengeProvider interface.
|
// DNSProvider is an implementation of the challenge.Provider interface.
|
||||||
type DNSProvider struct {
|
type DNSProvider struct {
|
||||||
client *namesilo.Client
|
client *namesilo.Client
|
||||||
config *Config
|
config *Config
|
||||||
|
@ -56,7 +56,7 @@ func NewDNSProvider() (*DNSProvider, error) {
|
||||||
return NewDNSProviderConfig(config)
|
return NewDNSProviderConfig(config)
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewDNSProviderConfig return a DNSProvider instance configured for DNSimple.
|
// NewDNSProviderConfig return a DNSProvider instance configured for Namesilo.
|
||||||
func NewDNSProviderConfig(config *Config) (*DNSProvider, error) {
|
func NewDNSProviderConfig(config *Config) (*DNSProvider, error) {
|
||||||
if config == nil {
|
if config == nil {
|
||||||
return nil, errors.New("namesilo: the configuration of the DNS provider is nil")
|
return nil, errors.New("namesilo: the configuration of the DNS provider is nil")
|
||||||
|
|
|
@ -38,7 +38,7 @@ func NewDefaultConfig() *Config {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// DNSProvider is an implementation of the acme.ChallengeProvider interface
|
// DNSProvider is an implementation of the challenge.Provider interface
|
||||||
type DNSProvider struct {
|
type DNSProvider struct {
|
||||||
client *internal.Client
|
client *internal.Client
|
||||||
config *Config
|
config *Config
|
||||||
|
|
|
@ -37,7 +37,7 @@ func NewDefaultConfig() *Config {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// DNSProvider implements the acme.ChallengeProvider interface
|
// DNSProvider implements the challenge.Provider interface
|
||||||
type DNSProvider struct {
|
type DNSProvider struct {
|
||||||
client *internal.Client
|
client *internal.Client
|
||||||
config *Config
|
config *Config
|
||||||
|
|
|
@ -36,7 +36,7 @@ func NewDefaultConfig() *Config {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// DNSProvider is an implementation of the acme.ChallengeProvider interface.
|
// DNSProvider is an implementation of the challenge.Provider interface.
|
||||||
type DNSProvider struct {
|
type DNSProvider struct {
|
||||||
client *rest.Client
|
client *rest.Client
|
||||||
config *Config
|
config *Config
|
||||||
|
|
|
@ -35,7 +35,7 @@ func NewDefaultConfig() *Config {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// DNSProvider is an implementation of the acme.ChallengeProvider interface.
|
// DNSProvider is an implementation of the challenge.Provider interface.
|
||||||
type DNSProvider struct {
|
type DNSProvider struct {
|
||||||
client *dns.DnsClient
|
client *dns.DnsClient
|
||||||
config *Config
|
config *Config
|
||||||
|
|
|
@ -58,7 +58,7 @@ func NewDefaultConfig() *Config {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// DNSProvider is an implementation of the acme.ChallengeProvider interface that uses
|
// DNSProvider is an implementation of the challenge.Provider interface that uses
|
||||||
// OTC's Managed DNS API to manage TXT records for a domain.
|
// OTC's Managed DNS API to manage TXT records for a domain.
|
||||||
type DNSProvider struct {
|
type DNSProvider struct {
|
||||||
config *Config
|
config *Config
|
||||||
|
|
|
@ -51,7 +51,7 @@ func NewDefaultConfig() *Config {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// DNSProvider is an implementation of the acme.ChallengeProvider interface
|
// DNSProvider is an implementation of the challenge.Provider interface
|
||||||
// that uses OVH's REST API to manage TXT records for a domain.
|
// that uses OVH's REST API to manage TXT records for a domain.
|
||||||
type DNSProvider struct {
|
type DNSProvider struct {
|
||||||
config *Config
|
config *Config
|
||||||
|
|
|
@ -37,7 +37,7 @@ func NewDefaultConfig() *Config {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// DNSProvider is an implementation of the acme.ChallengeProvider interface
|
// DNSProvider is an implementation of the challenge.Provider interface
|
||||||
type DNSProvider struct {
|
type DNSProvider struct {
|
||||||
apiVersion int
|
apiVersion int
|
||||||
config *Config
|
config *Config
|
||||||
|
|
|
@ -40,7 +40,7 @@ func NewDefaultConfig() *Config {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// DNSProvider is an implementation of the acme.ChallengeProvider interface
|
// DNSProvider is an implementation of the challenge.Provider interface
|
||||||
// used to store the reusable token and DNS API endpoint
|
// used to store the reusable token and DNS API endpoint
|
||||||
type DNSProvider struct {
|
type DNSProvider struct {
|
||||||
config *Config
|
config *Config
|
||||||
|
|
|
@ -38,7 +38,7 @@ func NewDefaultConfig() *Config {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// DNSProvider is an implementation of the acme.ChallengeProvider interface that
|
// DNSProvider is an implementation of the challenge.Provider interface that
|
||||||
// uses dynamic DNS updates (RFC 2136) to create TXT records on a nameserver.
|
// uses dynamic DNS updates (RFC 2136) to create TXT records on a nameserver.
|
||||||
type DNSProvider struct {
|
type DNSProvider struct {
|
||||||
config *Config
|
config *Config
|
||||||
|
|
|
@ -38,7 +38,7 @@ func NewDefaultConfig() *Config {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// DNSProvider implements the acme.ChallengeProvider interface
|
// DNSProvider implements the challenge.Provider interface
|
||||||
type DNSProvider struct {
|
type DNSProvider struct {
|
||||||
client *route53.Route53
|
client *route53.Route53
|
||||||
config *Config
|
config *Config
|
||||||
|
|
|
@ -34,7 +34,7 @@ func NewDefaultConfig() *Config {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// DNSProvider is an implementation of the acme.ChallengeProvider interface.
|
// DNSProvider is an implementation of the challenge.Provider interface.
|
||||||
type DNSProvider struct {
|
type DNSProvider struct {
|
||||||
config *Config
|
config *Config
|
||||||
client *api.DNSAPI
|
client *api.DNSAPI
|
||||||
|
|
|
@ -52,7 +52,7 @@ func NewDefaultConfig() *Config {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// DNSProvider is an implementation of the acme.ChallengeProvider interface.
|
// DNSProvider is an implementation of the challenge.Provider interface.
|
||||||
type DNSProvider struct {
|
type DNSProvider struct {
|
||||||
config *Config
|
config *Config
|
||||||
client *internal.Client
|
client *internal.Client
|
||||||
|
|
|
@ -41,7 +41,7 @@ func NewDefaultConfig() *Config {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// DNSProvider is an implementation of the acme.ChallengeProvider interface.
|
// DNSProvider is an implementation of the challenge.Provider interface.
|
||||||
type DNSProvider struct {
|
type DNSProvider struct {
|
||||||
BaseURL *url.URL
|
BaseURL *url.URL
|
||||||
client *http.Client
|
client *http.Client
|
||||||
|
|
|
@ -64,7 +64,7 @@ func NewDNSProvider() (*DNSProvider, error) {
|
||||||
return NewDNSProviderConfig(config)
|
return NewDNSProviderConfig(config)
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewDNSProviderConfig return a DNSProvider .
|
// NewDNSProviderConfig return a DNSProvider instance configured for Versio.
|
||||||
func NewDNSProviderConfig(config *Config) (*DNSProvider, error) {
|
func NewDNSProviderConfig(config *Config) (*DNSProvider, error) {
|
||||||
if config == nil {
|
if config == nil {
|
||||||
return nil, errors.New("versio: the configuration of the DNS provider is nil")
|
return nil, errors.New("versio: the configuration of the DNS provider is nil")
|
||||||
|
|
|
@ -53,7 +53,7 @@ func NewDefaultConfig() *Config {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// DNSProvider is an implementation of the acme.ChallengeProvider interface.
|
// DNSProvider is an implementation of the challenge.Provider interface.
|
||||||
type DNSProvider struct {
|
type DNSProvider struct {
|
||||||
config *Config
|
config *Config
|
||||||
client *internal.Client
|
client *internal.Client
|
||||||
|
|
|
@ -42,7 +42,7 @@ func NewDefaultConfig() *Config {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// DNSProvider is an implementation of the acme.ChallengeProvider interface.
|
// DNSProvider is an implementation of the challenge.Provider interface.
|
||||||
type DNSProvider struct {
|
type DNSProvider struct {
|
||||||
config *Config
|
config *Config
|
||||||
client *govultr.Client
|
client *govultr.Client
|
||||||
|
|
|
@ -63,7 +63,7 @@ func NewDNSProvider() (*DNSProvider, error) {
|
||||||
return NewDNSProviderConfig(config)
|
return NewDNSProviderConfig(config)
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewDNSProviderConfig return a DNSProvider .
|
// NewDNSProviderConfig return a DNSProvider instance configured for Zone.ee
|
||||||
func NewDNSProviderConfig(config *Config) (*DNSProvider, error) {
|
func NewDNSProviderConfig(config *Config) (*DNSProvider, error) {
|
||||||
if config == nil {
|
if config == nil {
|
||||||
return nil, errors.New("zoneee: the configuration of the DNS provider is nil")
|
return nil, errors.New("zoneee: the configuration of the DNS provider is nil")
|
||||||
|
|
Loading…
Reference in a new issue