fix: typos. (#954)

This commit is contained in:
Ludovic Fernandez 2019-08-20 18:40:41 +02:00 committed by GitHub
parent 76c850a580
commit cf879d0b3c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
52 changed files with 54 additions and 53 deletions

View file

@ -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 -->

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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")

View file

@ -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

View file

@ -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
} }

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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
} }

View file

@ -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

View file

@ -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")

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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"

View file

@ -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
} }

View file

@ -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")

View file

@ -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

View file

@ -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")

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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")

View file

@ -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

View file

@ -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

View file

@ -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")