feat: changes module version.

This commit is contained in:
Fernandez Ludovic 2020-09-02 03:20:01 +02:00 committed by Ludovic Fernandez
parent 50a87b031e
commit 2582acc932
233 changed files with 531 additions and 531 deletions

View file

@ -2,7 +2,7 @@
Let's Encrypt client and ACME library written in Go.
[![GoDoc](https://godoc.org/github.com/go-acme/lego?status.svg)](https://pkg.go.dev/mod/github.com/go-acme/lego/v3)
[![GoDoc](https://godoc.org/github.com/go-acme/lego?status.svg)](https://pkg.go.dev/mod/github.com/go-acme/lego/v4)
[![Build Status](https://travis-ci.com/go-acme/lego.svg?branch=master)](https://travis-ci.com/go-acme/lego)
[![Docker Pulls](https://img.shields.io/docker/pulls/goacme/lego.svg)](https://hub.docker.com/r/goacme/lego/)

View file

@ -5,7 +5,7 @@ import (
"errors"
"fmt"
"github.com/go-acme/lego/v3/acme"
"github.com/go-acme/lego/v4/acme"
)
type AccountService service

View file

@ -11,11 +11,11 @@ import (
"time"
"github.com/cenkalti/backoff/v4"
"github.com/go-acme/lego/v3/acme"
"github.com/go-acme/lego/v3/acme/api/internal/nonces"
"github.com/go-acme/lego/v3/acme/api/internal/secure"
"github.com/go-acme/lego/v3/acme/api/internal/sender"
"github.com/go-acme/lego/v3/log"
"github.com/go-acme/lego/v4/acme"
"github.com/go-acme/lego/v4/acme/api/internal/nonces"
"github.com/go-acme/lego/v4/acme/api/internal/secure"
"github.com/go-acme/lego/v4/acme/api/internal/sender"
"github.com/go-acme/lego/v4/log"
)
// Core ACME/LE core API.

View file

@ -3,7 +3,7 @@ package api
import (
"errors"
"github.com/go-acme/lego/v3/acme"
"github.com/go-acme/lego/v4/acme"
)
type AuthorizationService service

View file

@ -7,9 +7,9 @@ import (
"io/ioutil"
"net/http"
"github.com/go-acme/lego/v3/acme"
"github.com/go-acme/lego/v3/certcrypto"
"github.com/go-acme/lego/v3/log"
"github.com/go-acme/lego/v4/acme"
"github.com/go-acme/lego/v4/certcrypto"
"github.com/go-acme/lego/v4/log"
)
// maxBodySize is the maximum size of body that we will read.

View file

@ -7,7 +7,7 @@ import (
"net/http"
"testing"
"github.com/go-acme/lego/v3/platform/tester"
"github.com/go-acme/lego/v4/platform/tester"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)

View file

@ -3,7 +3,7 @@ package api
import (
"errors"
"github.com/go-acme/lego/v3/acme"
"github.com/go-acme/lego/v4/acme"
)
type ChallengeService service

View file

@ -6,7 +6,7 @@ import (
"net/http"
"sync"
"github.com/go-acme/lego/v3/acme/api/internal/sender"
"github.com/go-acme/lego/v4/acme/api/internal/sender"
)
// Manager Manages nonces.

View file

@ -6,9 +6,9 @@ import (
"testing"
"time"
"github.com/go-acme/lego/v3/acme"
"github.com/go-acme/lego/v3/acme/api/internal/sender"
"github.com/go-acme/lego/v3/platform/tester"
"github.com/go-acme/lego/v4/acme"
"github.com/go-acme/lego/v4/acme/api/internal/sender"
"github.com/go-acme/lego/v4/platform/tester"
)
func TestNotHoldingLockWhileMakingHTTPRequests(t *testing.T) {

View file

@ -8,7 +8,7 @@ import (
"encoding/base64"
"fmt"
"github.com/go-acme/lego/v3/acme/api/internal/nonces"
"github.com/go-acme/lego/v4/acme/api/internal/nonces"
jose "gopkg.in/square/go-jose.v2"
)

View file

@ -6,10 +6,10 @@ import (
"testing"
"time"
"github.com/go-acme/lego/v3/acme"
"github.com/go-acme/lego/v3/acme/api/internal/nonces"
"github.com/go-acme/lego/v3/acme/api/internal/sender"
"github.com/go-acme/lego/v3/platform/tester"
"github.com/go-acme/lego/v4/acme"
"github.com/go-acme/lego/v4/acme/api/internal/nonces"
"github.com/go-acme/lego/v4/acme/api/internal/sender"
"github.com/go-acme/lego/v4/platform/tester"
)
func TestNotHoldingLockWhileMakingHTTPRequests(t *testing.T) {

View file

@ -9,7 +9,7 @@ import (
"runtime"
"strings"
"github.com/go-acme/lego/v3/acme"
"github.com/go-acme/lego/v4/acme"
)
type RequestOption func(*http.Request) error

View file

@ -4,7 +4,7 @@ import (
"encoding/base64"
"errors"
"github.com/go-acme/lego/v3/acme"
"github.com/go-acme/lego/v4/acme"
)
type OrderService service

View file

@ -8,8 +8,8 @@ import (
"net/http"
"testing"
"github.com/go-acme/lego/v3/acme"
"github.com/go-acme/lego/v3/platform/tester"
"github.com/go-acme/lego/v4/acme"
"github.com/go-acme/lego/v4/platform/tester"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
jose "gopkg.in/square/go-jose.v2"

View file

@ -3,8 +3,8 @@ package certificate
import (
"time"
"github.com/go-acme/lego/v3/acme"
"github.com/go-acme/lego/v3/log"
"github.com/go-acme/lego/v4/acme"
"github.com/go-acme/lego/v4/log"
)
const (

View file

@ -12,12 +12,12 @@ import (
"strings"
"time"
"github.com/go-acme/lego/v3/acme"
"github.com/go-acme/lego/v3/acme/api"
"github.com/go-acme/lego/v3/certcrypto"
"github.com/go-acme/lego/v3/challenge"
"github.com/go-acme/lego/v3/log"
"github.com/go-acme/lego/v3/platform/wait"
"github.com/go-acme/lego/v4/acme"
"github.com/go-acme/lego/v4/acme/api"
"github.com/go-acme/lego/v4/certcrypto"
"github.com/go-acme/lego/v4/challenge"
"github.com/go-acme/lego/v4/log"
"github.com/go-acme/lego/v4/platform/wait"
"golang.org/x/crypto/ocsp"
"golang.org/x/net/idna"
)

View file

@ -7,10 +7,10 @@ import (
"net/http"
"testing"
"github.com/go-acme/lego/v3/acme"
"github.com/go-acme/lego/v3/acme/api"
"github.com/go-acme/lego/v3/certcrypto"
"github.com/go-acme/lego/v3/platform/tester"
"github.com/go-acme/lego/v4/acme"
"github.com/go-acme/lego/v4/acme/api"
"github.com/go-acme/lego/v4/certcrypto"
"github.com/go-acme/lego/v4/platform/tester"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)

View file

@ -3,7 +3,7 @@ package challenge
import (
"fmt"
"github.com/go-acme/lego/v3/acme"
"github.com/go-acme/lego/v4/acme"
)
// Type is a string that identifies a particular challenge type and version of ACME challenge.

View file

@ -8,11 +8,11 @@ import (
"strconv"
"time"
"github.com/go-acme/lego/v3/acme"
"github.com/go-acme/lego/v3/acme/api"
"github.com/go-acme/lego/v3/challenge"
"github.com/go-acme/lego/v3/log"
"github.com/go-acme/lego/v3/platform/wait"
"github.com/go-acme/lego/v4/acme"
"github.com/go-acme/lego/v4/acme/api"
"github.com/go-acme/lego/v4/challenge"
"github.com/go-acme/lego/v4/log"
"github.com/go-acme/lego/v4/platform/wait"
"github.com/miekg/dns"
)

View file

@ -8,10 +8,10 @@ import (
"testing"
"time"
"github.com/go-acme/lego/v3/acme"
"github.com/go-acme/lego/v3/acme/api"
"github.com/go-acme/lego/v3/challenge"
"github.com/go-acme/lego/v3/platform/tester"
"github.com/go-acme/lego/v4/acme"
"github.com/go-acme/lego/v4/acme/api"
"github.com/go-acme/lego/v4/challenge"
"github.com/go-acme/lego/v4/platform/tester"
"github.com/stretchr/testify/require"
)

View file

@ -3,10 +3,10 @@ package http01
import (
"fmt"
"github.com/go-acme/lego/v3/acme"
"github.com/go-acme/lego/v3/acme/api"
"github.com/go-acme/lego/v3/challenge"
"github.com/go-acme/lego/v3/log"
"github.com/go-acme/lego/v4/acme"
"github.com/go-acme/lego/v4/acme/api"
"github.com/go-acme/lego/v4/challenge"
"github.com/go-acme/lego/v4/log"
)
type ValidateFunc func(core *api.Core, domain string, chlng acme.Challenge) error

View file

@ -7,7 +7,7 @@ import (
"net/textproto"
"strings"
"github.com/go-acme/lego/v3/log"
"github.com/go-acme/lego/v4/log"
)
// ProviderServer implements ChallengeProvider for `http-01` challenge.

View file

@ -9,10 +9,10 @@ import (
"net/textproto"
"testing"
"github.com/go-acme/lego/v3/acme"
"github.com/go-acme/lego/v3/acme/api"
"github.com/go-acme/lego/v3/challenge"
"github.com/go-acme/lego/v3/platform/tester"
"github.com/go-acme/lego/v4/acme"
"github.com/go-acme/lego/v4/acme/api"
"github.com/go-acme/lego/v4/challenge"
"github.com/go-acme/lego/v4/platform/tester"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)

View file

@ -4,9 +4,9 @@ import (
"fmt"
"time"
"github.com/go-acme/lego/v3/acme"
"github.com/go-acme/lego/v3/challenge"
"github.com/go-acme/lego/v3/log"
"github.com/go-acme/lego/v4/acme"
"github.com/go-acme/lego/v4/challenge"
"github.com/go-acme/lego/v4/log"
)
// Interface for all challenge solvers to implement.

View file

@ -3,8 +3,8 @@ package resolver
import (
"time"
"github.com/go-acme/lego/v3/acme"
"github.com/go-acme/lego/v3/challenge"
"github.com/go-acme/lego/v4/acme"
"github.com/go-acme/lego/v4/challenge"
)
type preSolverMock struct {

View file

@ -4,8 +4,8 @@ import (
"errors"
"testing"
"github.com/go-acme/lego/v3/acme"
"github.com/go-acme/lego/v3/challenge"
"github.com/go-acme/lego/v4/acme"
"github.com/go-acme/lego/v4/challenge"
"github.com/stretchr/testify/require"
)

View file

@ -9,13 +9,13 @@ import (
"time"
"github.com/cenkalti/backoff/v4"
"github.com/go-acme/lego/v3/acme"
"github.com/go-acme/lego/v3/acme/api"
"github.com/go-acme/lego/v3/challenge"
"github.com/go-acme/lego/v3/challenge/dns01"
"github.com/go-acme/lego/v3/challenge/http01"
"github.com/go-acme/lego/v3/challenge/tlsalpn01"
"github.com/go-acme/lego/v3/log"
"github.com/go-acme/lego/v4/acme"
"github.com/go-acme/lego/v4/acme/api"
"github.com/go-acme/lego/v4/challenge"
"github.com/go-acme/lego/v4/challenge/dns01"
"github.com/go-acme/lego/v4/challenge/http01"
"github.com/go-acme/lego/v4/challenge/tlsalpn01"
"github.com/go-acme/lego/v4/log"
)
type byType []acme.Challenge

View file

@ -9,9 +9,9 @@ import (
"sort"
"testing"
"github.com/go-acme/lego/v3/acme"
"github.com/go-acme/lego/v3/acme/api"
"github.com/go-acme/lego/v3/platform/tester"
"github.com/go-acme/lego/v4/acme"
"github.com/go-acme/lego/v4/acme/api"
"github.com/go-acme/lego/v4/platform/tester"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
jose "gopkg.in/square/go-jose.v2"

View file

@ -8,11 +8,11 @@ import (
"encoding/asn1"
"fmt"
"github.com/go-acme/lego/v3/acme"
"github.com/go-acme/lego/v3/acme/api"
"github.com/go-acme/lego/v3/certcrypto"
"github.com/go-acme/lego/v3/challenge"
"github.com/go-acme/lego/v3/log"
"github.com/go-acme/lego/v4/acme"
"github.com/go-acme/lego/v4/acme/api"
"github.com/go-acme/lego/v4/certcrypto"
"github.com/go-acme/lego/v4/challenge"
"github.com/go-acme/lego/v4/log"
)
// idPeAcmeIdentifierV1 is the SMI Security for PKIX Certification Extension OID referencing the ACME extension.

View file

@ -7,7 +7,7 @@ import (
"net/http"
"strings"
"github.com/go-acme/lego/v3/log"
"github.com/go-acme/lego/v4/log"
)
const (

View file

@ -10,10 +10,10 @@ import (
"net/http"
"testing"
"github.com/go-acme/lego/v3/acme"
"github.com/go-acme/lego/v3/acme/api"
"github.com/go-acme/lego/v3/challenge"
"github.com/go-acme/lego/v3/platform/tester"
"github.com/go-acme/lego/v4/acme"
"github.com/go-acme/lego/v4/acme/api"
"github.com/go-acme/lego/v4/challenge"
"github.com/go-acme/lego/v4/platform/tester"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)

View file

@ -3,7 +3,7 @@ package cmd
import (
"crypto"
"github.com/go-acme/lego/v3/registration"
"github.com/go-acme/lego/v4/registration"
)
// Account represents a users local saved credentials.

View file

@ -13,10 +13,10 @@ import (
"path/filepath"
"strings"
"github.com/go-acme/lego/v3/certcrypto"
"github.com/go-acme/lego/v3/lego"
"github.com/go-acme/lego/v3/log"
"github.com/go-acme/lego/v3/registration"
"github.com/go-acme/lego/v4/certcrypto"
"github.com/go-acme/lego/v4/lego"
"github.com/go-acme/lego/v4/log"
"github.com/go-acme/lego/v4/registration"
"github.com/urfave/cli"
)

View file

@ -11,9 +11,9 @@ import (
"strings"
"time"
"github.com/go-acme/lego/v3/certcrypto"
"github.com/go-acme/lego/v3/certificate"
"github.com/go-acme/lego/v3/log"
"github.com/go-acme/lego/v4/certcrypto"
"github.com/go-acme/lego/v4/certificate"
"github.com/go-acme/lego/v4/log"
"github.com/urfave/cli"
"golang.org/x/net/idna"
)

View file

@ -1,7 +1,7 @@
package cmd
import (
"github.com/go-acme/lego/v3/log"
"github.com/go-acme/lego/v4/log"
"github.com/urfave/cli"
)

View file

@ -8,7 +8,7 @@ import (
"path/filepath"
"strings"
"github.com/go-acme/lego/v3/certcrypto"
"github.com/go-acme/lego/v4/certcrypto"
"github.com/urfave/cli"
)

View file

@ -5,10 +5,10 @@ import (
"crypto/x509"
"time"
"github.com/go-acme/lego/v3/certcrypto"
"github.com/go-acme/lego/v3/certificate"
"github.com/go-acme/lego/v3/lego"
"github.com/go-acme/lego/v3/log"
"github.com/go-acme/lego/v4/certcrypto"
"github.com/go-acme/lego/v4/certificate"
"github.com/go-acme/lego/v4/lego"
"github.com/go-acme/lego/v4/log"
"github.com/urfave/cli"
)

View file

@ -1,7 +1,7 @@
package cmd
import (
"github.com/go-acme/lego/v3/log"
"github.com/go-acme/lego/v4/log"
"github.com/urfave/cli"
)

View file

@ -6,10 +6,10 @@ import (
"os"
"strings"
"github.com/go-acme/lego/v3/certificate"
"github.com/go-acme/lego/v3/lego"
"github.com/go-acme/lego/v3/log"
"github.com/go-acme/lego/v3/registration"
"github.com/go-acme/lego/v4/certificate"
"github.com/go-acme/lego/v4/lego"
"github.com/go-acme/lego/v4/log"
"github.com/go-acme/lego/v4/registration"
"github.com/urfave/cli"
)

View file

@ -1,7 +1,7 @@
package cmd
import (
"github.com/go-acme/lego/v3/lego"
"github.com/go-acme/lego/v4/lego"
"github.com/urfave/cli"
)

View file

@ -8,8 +8,8 @@ import (
"path/filepath"
"runtime"
"github.com/go-acme/lego/v3/cmd"
"github.com/go-acme/lego/v3/log"
"github.com/go-acme/lego/v4/cmd"
"github.com/go-acme/lego/v4/log"
"github.com/urfave/cli"
)

View file

@ -9,10 +9,10 @@ import (
"strings"
"time"
"github.com/go-acme/lego/v3/certcrypto"
"github.com/go-acme/lego/v3/lego"
"github.com/go-acme/lego/v3/log"
"github.com/go-acme/lego/v3/registration"
"github.com/go-acme/lego/v4/certcrypto"
"github.com/go-acme/lego/v4/lego"
"github.com/go-acme/lego/v4/log"
"github.com/go-acme/lego/v4/registration"
"github.com/urfave/cli"
)

View file

@ -5,15 +5,15 @@ import (
"strings"
"time"
"github.com/go-acme/lego/v3/challenge"
"github.com/go-acme/lego/v3/challenge/dns01"
"github.com/go-acme/lego/v3/challenge/http01"
"github.com/go-acme/lego/v3/challenge/tlsalpn01"
"github.com/go-acme/lego/v3/lego"
"github.com/go-acme/lego/v3/log"
"github.com/go-acme/lego/v3/providers/dns"
"github.com/go-acme/lego/v3/providers/http/memcached"
"github.com/go-acme/lego/v3/providers/http/webroot"
"github.com/go-acme/lego/v4/challenge"
"github.com/go-acme/lego/v4/challenge/dns01"
"github.com/go-acme/lego/v4/challenge/http01"
"github.com/go-acme/lego/v4/challenge/tlsalpn01"
"github.com/go-acme/lego/v4/lego"
"github.com/go-acme/lego/v4/log"
"github.com/go-acme/lego/v4/providers/dns"
"github.com/go-acme/lego/v4/providers/http/memcached"
"github.com/go-acme/lego/v4/providers/http/webroot"
"github.com/urfave/cli"
)

View file

@ -48,7 +48,7 @@ Requirements:
To install the latest development version from sources, just run:
```bash
go get -u github.com/go-acme/lego/v3/cmd/lego
go get -u github.com/go-acme/lego/v4/cmd/lego
```
or

View file

@ -27,12 +27,12 @@ import (
"fmt"
"log"
"github.com/go-acme/lego/v3/certcrypto"
"github.com/go-acme/lego/v3/certificate"
"github.com/go-acme/lego/v3/challenge/http01"
"github.com/go-acme/lego/v3/challenge/tlsalpn01"
"github.com/go-acme/lego/v3/lego"
"github.com/go-acme/lego/v3/registration"
"github.com/go-acme/lego/v4/certcrypto"
"github.com/go-acme/lego/v4/certificate"
"github.com/go-acme/lego/v4/challenge/http01"
"github.com/go-acme/lego/v4/challenge/tlsalpn01"
"github.com/go-acme/lego/v4/lego"
"github.com/go-acme/lego/v4/registration"
)
// You'll need a user or account type that implements acme.User

View file

@ -10,12 +10,12 @@ import (
"os"
"testing"
"github.com/go-acme/lego/v3/certificate"
"github.com/go-acme/lego/v3/challenge/http01"
"github.com/go-acme/lego/v3/challenge/tlsalpn01"
"github.com/go-acme/lego/v3/e2e/loader"
"github.com/go-acme/lego/v3/lego"
"github.com/go-acme/lego/v3/registration"
"github.com/go-acme/lego/v4/certificate"
"github.com/go-acme/lego/v4/challenge/http01"
"github.com/go-acme/lego/v4/challenge/tlsalpn01"
"github.com/go-acme/lego/v4/e2e/loader"
"github.com/go-acme/lego/v4/lego"
"github.com/go-acme/lego/v4/registration"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)

View file

@ -8,12 +8,12 @@ import (
"os"
"testing"
"github.com/go-acme/lego/v3/certificate"
"github.com/go-acme/lego/v3/challenge/dns01"
"github.com/go-acme/lego/v3/e2e/loader"
"github.com/go-acme/lego/v3/lego"
"github.com/go-acme/lego/v3/providers/dns"
"github.com/go-acme/lego/v3/registration"
"github.com/go-acme/lego/v4/certificate"
"github.com/go-acme/lego/v4/challenge/dns01"
"github.com/go-acme/lego/v4/e2e/loader"
"github.com/go-acme/lego/v4/lego"
"github.com/go-acme/lego/v4/providers/dns"
"github.com/go-acme/lego/v4/registration"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)

View file

@ -15,7 +15,7 @@ import (
"testing"
"time"
"github.com/go-acme/lego/v3/platform/wait"
"github.com/go-acme/lego/v4/platform/wait"
)
const (

2
go.mod
View file

@ -1,4 +1,4 @@
module github.com/go-acme/lego/v3
module github.com/go-acme/lego/v4
go 1.14

View file

@ -4,10 +4,10 @@ import (
"errors"
"net/url"
"github.com/go-acme/lego/v3/acme/api"
"github.com/go-acme/lego/v3/certificate"
"github.com/go-acme/lego/v3/challenge/resolver"
"github.com/go-acme/lego/v3/registration"
"github.com/go-acme/lego/v4/acme/api"
"github.com/go-acme/lego/v4/certificate"
"github.com/go-acme/lego/v4/challenge/resolver"
"github.com/go-acme/lego/v4/registration"
)
// Client is the user-friendly way to ACME.

View file

@ -10,8 +10,8 @@ import (
"os"
"time"
"github.com/go-acme/lego/v3/certcrypto"
"github.com/go-acme/lego/v3/registration"
"github.com/go-acme/lego/v4/certcrypto"
"github.com/go-acme/lego/v4/registration"
)
const (

View file

@ -6,8 +6,8 @@ import (
"crypto/rsa"
"testing"
"github.com/go-acme/lego/v3/platform/tester"
"github.com/go-acme/lego/v3/registration"
"github.com/go-acme/lego/v4/platform/tester"
"github.com/go-acme/lego/v4/registration"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)

View file

@ -9,7 +9,7 @@ import (
"strings"
"time"
"github.com/go-acme/lego/v3/log"
"github.com/go-acme/lego/v4/log"
)
// Get environment variables.

View file

@ -5,7 +5,7 @@ import (
"net/http"
"net/http/httptest"
"github.com/go-acme/lego/v3/acme"
"github.com/go-acme/lego/v4/acme"
)
// SetupFakeAPI Minimal stub ACME server for validation.

View file

@ -5,7 +5,7 @@ import (
"strings"
"testing"
"github.com/go-acme/lego/v3/platform/tester"
"github.com/go-acme/lego/v4/platform/tester"
"github.com/stretchr/testify/assert"
)

View file

@ -4,7 +4,7 @@ import (
"fmt"
"time"
"github.com/go-acme/lego/v3/log"
"github.com/go-acme/lego/v4/log"
)
// For polls the given function 'f', once every 'interval', up to 'timeout'.

View file

@ -7,8 +7,8 @@ import (
"fmt"
"github.com/cpu/goacmedns"
"github.com/go-acme/lego/v3/challenge/dns01"
"github.com/go-acme/lego/v3/platform/config/env"
"github.com/go-acme/lego/v4/challenge/dns01"
"github.com/go-acme/lego/v4/platform/config/env"
)
const (

View file

@ -11,8 +11,8 @@ import (
"github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials"
"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
"github.com/aliyun/alibaba-cloud-sdk-go/services/alidns"
"github.com/go-acme/lego/v3/challenge/dns01"
"github.com/go-acme/lego/v3/platform/config/env"
"github.com/go-acme/lego/v4/challenge/dns01"
"github.com/go-acme/lego/v4/platform/config/env"
"golang.org/x/net/idna"
)

View file

@ -4,7 +4,7 @@ import (
"testing"
"time"
"github.com/go-acme/lego/v3/platform/tester"
"github.com/go-acme/lego/v4/platform/tester"
"github.com/stretchr/testify/require"
)

View file

@ -9,9 +9,9 @@ import (
"sync"
"time"
"github.com/go-acme/lego/v3/challenge/dns01"
"github.com/go-acme/lego/v3/platform/config/env"
"github.com/go-acme/lego/v3/providers/dns/arvancloud/internal"
"github.com/go-acme/lego/v4/challenge/dns01"
"github.com/go-acme/lego/v4/platform/config/env"
"github.com/go-acme/lego/v4/providers/dns/arvancloud/internal"
)
const minTTL = 600

View file

@ -3,7 +3,7 @@ package arvancloud
import (
"testing"
"github.com/go-acme/lego/v3/platform/tester"
"github.com/go-acme/lego/v4/platform/tester"
"github.com/stretchr/testify/require"
)

View file

@ -7,8 +7,8 @@ import (
"sync"
"time"
"github.com/go-acme/lego/v3/challenge/dns01"
"github.com/go-acme/lego/v3/platform/config/env"
"github.com/go-acme/lego/v4/challenge/dns01"
"github.com/go-acme/lego/v4/platform/config/env"
"github.com/nrdcg/auroradns"
)

View file

@ -7,7 +7,7 @@ import (
"net/http/httptest"
"testing"
"github.com/go-acme/lego/v3/platform/tester"
"github.com/go-acme/lego/v4/platform/tester"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)

View file

@ -8,8 +8,8 @@ import (
"net/url"
"time"
"github.com/go-acme/lego/v3/challenge/dns01"
"github.com/go-acme/lego/v3/platform/config/env"
"github.com/go-acme/lego/v4/challenge/dns01"
"github.com/go-acme/lego/v4/platform/config/env"
)
// Environment variables names.

View file

@ -3,7 +3,7 @@ package autodns
import (
"testing"
"github.com/go-acme/lego/v3/platform/tester"
"github.com/go-acme/lego/v4/platform/tester"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)

View file

@ -16,8 +16,8 @@ import (
aazure "github.com/Azure/go-autorest/autorest/azure"
"github.com/Azure/go-autorest/autorest/azure/auth"
"github.com/Azure/go-autorest/autorest/to"
"github.com/go-acme/lego/v3/challenge/dns01"
"github.com/go-acme/lego/v3/platform/config/env"
"github.com/go-acme/lego/v4/challenge/dns01"
"github.com/go-acme/lego/v4/platform/config/env"
)
const defaultMetadataEndpoint = "http://169.254.169.254"

View file

@ -6,7 +6,7 @@ import (
"testing"
"time"
"github.com/go-acme/lego/v3/platform/tester"
"github.com/go-acme/lego/v4/platform/tester"
"github.com/stretchr/testify/require"
)

View file

@ -7,8 +7,8 @@ import (
"net/http"
"time"
"github.com/go-acme/lego/v3/challenge/dns01"
"github.com/go-acme/lego/v3/platform/config/env"
"github.com/go-acme/lego/v4/challenge/dns01"
"github.com/go-acme/lego/v4/platform/config/env"
"github.com/labbsr0x/bindman-dns-webhook/src/client"
)

View file

@ -7,7 +7,7 @@ import (
"testing"
"time"
"github.com/go-acme/lego/v3/platform/tester"
"github.com/go-acme/lego/v4/platform/tester"
bindmanClient "github.com/labbsr0x/bindman-dns-webhook/src/client"
"github.com/stretchr/testify/require"
)

View file

@ -10,8 +10,8 @@ import (
"strconv"
"time"
"github.com/go-acme/lego/v3/challenge/dns01"
"github.com/go-acme/lego/v3/platform/config/env"
"github.com/go-acme/lego/v4/challenge/dns01"
"github.com/go-acme/lego/v4/platform/config/env"
)
const (

View file

@ -4,7 +4,7 @@ import (
"testing"
"time"
"github.com/go-acme/lego/v3/platform/tester"
"github.com/go-acme/lego/v4/platform/tester"
"github.com/stretchr/testify/require"
)

View file

@ -9,8 +9,8 @@ import (
"sync"
"time"
"github.com/go-acme/lego/v3/challenge/dns01"
"github.com/go-acme/lego/v3/platform/config/env"
"github.com/go-acme/lego/v4/challenge/dns01"
"github.com/go-acme/lego/v4/platform/config/env"
)
// Environment variables names.

View file

@ -4,7 +4,7 @@ import (
"net/url"
"testing"
"github.com/go-acme/lego/v3/platform/tester"
"github.com/go-acme/lego/v4/platform/tester"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)

View file

@ -10,7 +10,7 @@ import (
"reflect"
"testing"
"github.com/go-acme/lego/v3/challenge/dns01"
"github.com/go-acme/lego/v4/challenge/dns01"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)

View file

@ -7,9 +7,9 @@ import (
"net/http"
"time"
"github.com/go-acme/lego/v3/challenge/dns01"
"github.com/go-acme/lego/v3/platform/config/env"
"github.com/go-acme/lego/v3/providers/dns/clouddns/internal"
"github.com/go-acme/lego/v4/challenge/dns01"
"github.com/go-acme/lego/v4/platform/config/env"
"github.com/go-acme/lego/v4/providers/dns/clouddns/internal"
)
// Environment variables names.

View file

@ -4,7 +4,7 @@ import (
"testing"
"time"
"github.com/go-acme/lego/v3/platform/tester"
"github.com/go-acme/lego/v4/platform/tester"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)

View file

@ -4,7 +4,7 @@ import (
"sync"
"github.com/cloudflare/cloudflare-go"
"github.com/go-acme/lego/v3/challenge/dns01"
"github.com/go-acme/lego/v4/challenge/dns01"
)
type metaClient struct {

View file

@ -9,9 +9,9 @@ import (
"time"
cloudflare "github.com/cloudflare/cloudflare-go"
"github.com/go-acme/lego/v3/challenge/dns01"
"github.com/go-acme/lego/v3/log"
"github.com/go-acme/lego/v3/platform/config/env"
"github.com/go-acme/lego/v4/challenge/dns01"
"github.com/go-acme/lego/v4/log"
"github.com/go-acme/lego/v4/platform/config/env"
)
const (

View file

@ -4,7 +4,7 @@ import (
"testing"
"time"
"github.com/go-acme/lego/v3/platform/tester"
"github.com/go-acme/lego/v4/platform/tester"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)

View file

@ -7,9 +7,9 @@ import (
"net/http"
"time"
"github.com/go-acme/lego/v3/challenge/dns01"
"github.com/go-acme/lego/v3/platform/config/env"
"github.com/go-acme/lego/v3/providers/dns/cloudns/internal"
"github.com/go-acme/lego/v4/challenge/dns01"
"github.com/go-acme/lego/v4/platform/config/env"
"github.com/go-acme/lego/v4/providers/dns/cloudns/internal"
)
// Environment variables names.

View file

@ -4,7 +4,7 @@ import (
"testing"
"time"
"github.com/go-acme/lego/v3/platform/tester"
"github.com/go-acme/lego/v4/platform/tester"
"github.com/stretchr/testify/require"
)

View file

@ -10,7 +10,7 @@ import (
"strconv"
"strings"
"github.com/go-acme/lego/v3/challenge/dns01"
"github.com/go-acme/lego/v4/challenge/dns01"
)
const defaultBaseURL = "https://api.cloudns.net/dns/"

View file

@ -7,9 +7,9 @@ import (
"net/http"
"time"
"github.com/go-acme/lego/v3/challenge/dns01"
"github.com/go-acme/lego/v3/platform/config/env"
"github.com/go-acme/lego/v3/providers/dns/cloudxns/internal"
"github.com/go-acme/lego/v4/challenge/dns01"
"github.com/go-acme/lego/v4/platform/config/env"
"github.com/go-acme/lego/v4/providers/dns/cloudxns/internal"
)
// Environment variables names.

View file

@ -4,7 +4,7 @@ import (
"testing"
"time"
"github.com/go-acme/lego/v3/platform/tester"
"github.com/go-acme/lego/v4/platform/tester"
"github.com/stretchr/testify/require"
)

View file

@ -13,7 +13,7 @@ import (
"strings"
"time"
"github.com/go-acme/lego/v3/challenge/dns01"
"github.com/go-acme/lego/v4/challenge/dns01"
)
const defaultBaseURL = "https://www.cloudxns.net/api2/"

View file

@ -7,9 +7,9 @@ import (
"net/http"
"time"
"github.com/go-acme/lego/v3/challenge/dns01"
"github.com/go-acme/lego/v3/platform/config/env"
"github.com/go-acme/lego/v3/providers/dns/conoha/internal"
"github.com/go-acme/lego/v4/challenge/dns01"
"github.com/go-acme/lego/v4/platform/config/env"
"github.com/go-acme/lego/v4/providers/dns/conoha/internal"
)
// Environment variables names.

View file

@ -4,7 +4,7 @@ import (
"testing"
"time"
"github.com/go-acme/lego/v3/platform/tester"
"github.com/go-acme/lego/v4/platform/tester"
"github.com/stretchr/testify/require"
)

View file

@ -7,9 +7,9 @@ import (
"net/http"
"time"
"github.com/go-acme/lego/v3/challenge/dns01"
"github.com/go-acme/lego/v3/platform/config/env"
"github.com/go-acme/lego/v3/providers/dns/constellix/internal"
"github.com/go-acme/lego/v4/challenge/dns01"
"github.com/go-acme/lego/v4/platform/config/env"
"github.com/go-acme/lego/v4/providers/dns/constellix/internal"
)
// Environment variables names.

View file

@ -4,7 +4,7 @@ import (
"testing"
"time"
"github.com/go-acme/lego/v3/platform/tester"
"github.com/go-acme/lego/v4/platform/tester"
"github.com/stretchr/testify/require"
)

View file

@ -7,8 +7,8 @@ import (
"net/http"
"time"
"github.com/go-acme/lego/v3/challenge/dns01"
"github.com/go-acme/lego/v3/platform/config/env"
"github.com/go-acme/lego/v4/challenge/dns01"
"github.com/go-acme/lego/v4/platform/config/env"
"github.com/nrdcg/desec"
)

View file

@ -4,7 +4,7 @@ import (
"testing"
"time"
"github.com/go-acme/lego/v3/platform/tester"
"github.com/go-acme/lego/v4/platform/tester"
"github.com/stretchr/testify/require"
)

View file

@ -9,8 +9,8 @@ import (
"sync"
"time"
"github.com/go-acme/lego/v3/challenge/dns01"
"github.com/go-acme/lego/v3/platform/config/env"
"github.com/go-acme/lego/v4/challenge/dns01"
"github.com/go-acme/lego/v4/platform/config/env"
"github.com/gophercloud/gophercloud"
"github.com/gophercloud/gophercloud/openstack"
"github.com/gophercloud/gophercloud/openstack/dns/v2/recordsets"

View file

@ -8,7 +8,7 @@ import (
"testing"
"time"
"github.com/go-acme/lego/v3/platform/tester"
"github.com/go-acme/lego/v4/platform/tester"
"github.com/gophercloud/utils/openstack/clientconfig"
"github.com/stretchr/testify/require"
"gopkg.in/yaml.v2"

View file

@ -9,7 +9,7 @@ import (
"io/ioutil"
"net/http"
"github.com/go-acme/lego/v3/challenge/dns01"
"github.com/go-acme/lego/v4/challenge/dns01"
)
const defaultBaseURL = "https://api.digitalocean.com"

View file

@ -8,8 +8,8 @@ import (
"sync"
"time"
"github.com/go-acme/lego/v3/challenge/dns01"
"github.com/go-acme/lego/v3/platform/config/env"
"github.com/go-acme/lego/v4/challenge/dns01"
"github.com/go-acme/lego/v4/platform/config/env"
)
// Environment variables names.

View file

@ -7,7 +7,7 @@ import (
"net/http/httptest"
"testing"
"github.com/go-acme/lego/v3/platform/tester"
"github.com/go-acme/lego/v4/platform/tester"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)

View file

@ -3,85 +3,85 @@ 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/arvancloud"
"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/desec"
"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/edgedns"
"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/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/hetzner"
"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/hyperone"
"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/liquidweb"
"github.com/go-acme/lego/v3/providers/dns/luadns"
"github.com/go-acme/lego/v3/providers/dns/mydnsjp"
"github.com/go-acme/lego/v3/providers/dns/mythicbeasts"
"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/netlify"
"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"
"github.com/go-acme/lego/v4/challenge"
"github.com/go-acme/lego/v4/challenge/dns01"
"github.com/go-acme/lego/v4/providers/dns/acmedns"
"github.com/go-acme/lego/v4/providers/dns/alidns"
"github.com/go-acme/lego/v4/providers/dns/arvancloud"
"github.com/go-acme/lego/v4/providers/dns/auroradns"
"github.com/go-acme/lego/v4/providers/dns/autodns"
"github.com/go-acme/lego/v4/providers/dns/azure"
"github.com/go-acme/lego/v4/providers/dns/bindman"
"github.com/go-acme/lego/v4/providers/dns/bluecat"
"github.com/go-acme/lego/v4/providers/dns/checkdomain"
"github.com/go-acme/lego/v4/providers/dns/clouddns"
"github.com/go-acme/lego/v4/providers/dns/cloudflare"
"github.com/go-acme/lego/v4/providers/dns/cloudns"
"github.com/go-acme/lego/v4/providers/dns/cloudxns"
"github.com/go-acme/lego/v4/providers/dns/conoha"
"github.com/go-acme/lego/v4/providers/dns/constellix"
"github.com/go-acme/lego/v4/providers/dns/desec"
"github.com/go-acme/lego/v4/providers/dns/designate"
"github.com/go-acme/lego/v4/providers/dns/digitalocean"
"github.com/go-acme/lego/v4/providers/dns/dnsimple"
"github.com/go-acme/lego/v4/providers/dns/dnsmadeeasy"
"github.com/go-acme/lego/v4/providers/dns/dnspod"
"github.com/go-acme/lego/v4/providers/dns/dode"
"github.com/go-acme/lego/v4/providers/dns/dreamhost"
"github.com/go-acme/lego/v4/providers/dns/duckdns"
"github.com/go-acme/lego/v4/providers/dns/dyn"
"github.com/go-acme/lego/v4/providers/dns/dynu"
"github.com/go-acme/lego/v4/providers/dns/easydns"
"github.com/go-acme/lego/v4/providers/dns/edgedns"
"github.com/go-acme/lego/v4/providers/dns/exec"
"github.com/go-acme/lego/v4/providers/dns/exoscale"
"github.com/go-acme/lego/v4/providers/dns/gandi"
"github.com/go-acme/lego/v4/providers/dns/gandiv5"
"github.com/go-acme/lego/v4/providers/dns/gcloud"
"github.com/go-acme/lego/v4/providers/dns/glesys"
"github.com/go-acme/lego/v4/providers/dns/godaddy"
"github.com/go-acme/lego/v4/providers/dns/hetzner"
"github.com/go-acme/lego/v4/providers/dns/hostingde"
"github.com/go-acme/lego/v4/providers/dns/httpreq"
"github.com/go-acme/lego/v4/providers/dns/hyperone"
"github.com/go-acme/lego/v4/providers/dns/iij"
"github.com/go-acme/lego/v4/providers/dns/inwx"
"github.com/go-acme/lego/v4/providers/dns/joker"
"github.com/go-acme/lego/v4/providers/dns/lightsail"
"github.com/go-acme/lego/v4/providers/dns/linode"
"github.com/go-acme/lego/v4/providers/dns/liquidweb"
"github.com/go-acme/lego/v4/providers/dns/luadns"
"github.com/go-acme/lego/v4/providers/dns/mydnsjp"
"github.com/go-acme/lego/v4/providers/dns/mythicbeasts"
"github.com/go-acme/lego/v4/providers/dns/namecheap"
"github.com/go-acme/lego/v4/providers/dns/namedotcom"
"github.com/go-acme/lego/v4/providers/dns/namesilo"
"github.com/go-acme/lego/v4/providers/dns/netcup"
"github.com/go-acme/lego/v4/providers/dns/netlify"
"github.com/go-acme/lego/v4/providers/dns/nifcloud"
"github.com/go-acme/lego/v4/providers/dns/ns1"
"github.com/go-acme/lego/v4/providers/dns/oraclecloud"
"github.com/go-acme/lego/v4/providers/dns/otc"
"github.com/go-acme/lego/v4/providers/dns/ovh"
"github.com/go-acme/lego/v4/providers/dns/pdns"
"github.com/go-acme/lego/v4/providers/dns/rackspace"
"github.com/go-acme/lego/v4/providers/dns/regru"
"github.com/go-acme/lego/v4/providers/dns/rfc2136"
"github.com/go-acme/lego/v4/providers/dns/rimuhosting"
"github.com/go-acme/lego/v4/providers/dns/route53"
"github.com/go-acme/lego/v4/providers/dns/sakuracloud"
"github.com/go-acme/lego/v4/providers/dns/scaleway"
"github.com/go-acme/lego/v4/providers/dns/selectel"
"github.com/go-acme/lego/v4/providers/dns/servercow"
"github.com/go-acme/lego/v4/providers/dns/stackpath"
"github.com/go-acme/lego/v4/providers/dns/transip"
"github.com/go-acme/lego/v4/providers/dns/vegadns"
"github.com/go-acme/lego/v4/providers/dns/versio"
"github.com/go-acme/lego/v4/providers/dns/vscale"
"github.com/go-acme/lego/v4/providers/dns/vultr"
"github.com/go-acme/lego/v4/providers/dns/yandex"
"github.com/go-acme/lego/v4/providers/dns/zoneee"
"github.com/go-acme/lego/v4/providers/dns/zonomi"
)
// NewDNSChallengeProviderByName Factory for DNS providers.

View file

@ -3,8 +3,8 @@ package dns
import (
"testing"
"github.com/go-acme/lego/v3/platform/tester"
"github.com/go-acme/lego/v3/providers/dns/exec"
"github.com/go-acme/lego/v4/platform/tester"
"github.com/go-acme/lego/v4/providers/dns/exec"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)

View file

@ -10,8 +10,8 @@ import (
"time"
"github.com/dnsimple/dnsimple-go/dnsimple"
"github.com/go-acme/lego/v3/challenge/dns01"
"github.com/go-acme/lego/v3/platform/config/env"
"github.com/go-acme/lego/v4/challenge/dns01"
"github.com/go-acme/lego/v4/platform/config/env"
"golang.org/x/oauth2"
)

View file

@ -5,7 +5,7 @@ import (
"testing"
"time"
"github.com/go-acme/lego/v3/platform/tester"
"github.com/go-acme/lego/v4/platform/tester"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)

Some files were not shown because too many files have changed in this diff Show more