For caddy v1 in our org (#4018)

* For caddy v1 in our org

This RP changes all imports for caddyserver/caddy to coredns/caddy. This
is the v1 code of caddy.

For the coredns/caddy repo the following changes have been made:

* anything not needed by us is deleted
* all `telemetry` stuff is deleted
* all its import paths are also changed to point to coredns/caddy
* the v1 branch has been moved to the master branch
* a v1.1.0 tag has been added to signal the latest release

Signed-off-by: Miek Gieben <miek@miek.nl>

* Fix imports

Signed-off-by: Miek Gieben <miek@miek.nl>

* Group coredns/caddy with out plugins

Signed-off-by: Miek Gieben <miek@miek.nl>

* remove this file

Signed-off-by: Miek Gieben <miek@miek.nl>

* Relax import ordering

github.com/coredns is now also a coredns dep, this makes
github.com/coredns/caddy fit more natural in the list.

Signed-off-by: Miek Gieben <miek@miek.nl>

* Fix final import

Signed-off-by: Miek Gieben <miek@miek.nl>
This commit is contained in:
Miek Gieben
2020-09-24 18:14:41 +02:00
committed by GitHub
parent 24e668ecf0
commit b003d06003
121 changed files with 135 additions and 289 deletions

View File

@@ -4,9 +4,9 @@ import (
"context"
"testing"
"github.com/coredns/caddy"
"github.com/coredns/coredns/plugin/test"
"github.com/caddyserver/caddy"
"github.com/miekg/dns"
)

View File

@@ -4,10 +4,10 @@ import (
"net"
"strings"
"github.com/coredns/caddy"
"github.com/coredns/coredns/core/dnsserver"
"github.com/coredns/coredns/plugin"
"github.com/caddyserver/caddy"
"github.com/infobloxopen/go-trees/iptree"
"github.com/miekg/dns"
)

View File

@@ -3,7 +3,7 @@ package acl
import (
"testing"
"github.com/caddyserver/caddy"
"github.com/coredns/caddy"
)
func TestSetup(t *testing.T) {

View File

@@ -1,10 +1,9 @@
package any
import (
"github.com/coredns/caddy"
"github.com/coredns/coredns/core/dnsserver"
"github.com/coredns/coredns/plugin"
"github.com/caddyserver/caddy"
)
func init() { plugin.Register("any", setup) }

View File

@@ -6,14 +6,13 @@ import (
"regexp"
"time"
"github.com/coredns/caddy"
"github.com/coredns/coredns/core/dnsserver"
"github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/plugin/metrics"
clog "github.com/coredns/coredns/plugin/pkg/log"
"github.com/coredns/coredns/plugin/pkg/parse"
"github.com/coredns/coredns/plugin/pkg/upstream"
"github.com/caddyserver/caddy"
)
var log = clog.NewWithPlugin("auto")

View File

@@ -4,7 +4,7 @@ import (
"testing"
"time"
"github.com/caddyserver/caddy"
"github.com/coredns/caddy"
)
func TestAutoParse(t *testing.T) {

View File

@@ -3,10 +3,10 @@ package autopath
import (
"fmt"
"github.com/coredns/caddy"
"github.com/coredns/coredns/core/dnsserver"
"github.com/coredns/coredns/plugin"
"github.com/caddyserver/caddy"
"github.com/miekg/dns"
)

View File

@@ -6,9 +6,8 @@ import (
"strings"
"testing"
"github.com/coredns/caddy"
"github.com/coredns/coredns/plugin/test"
"github.com/caddyserver/caddy"
)
func TestSetupAutoPath(t *testing.T) {

View File

@@ -4,6 +4,7 @@ import (
"context"
"strings"
"github.com/coredns/caddy"
"github.com/coredns/coredns/core/dnsserver"
"github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/plugin/pkg/fall"
@@ -13,7 +14,6 @@ import (
privateAzureDNS "github.com/Azure/azure-sdk-for-go/profiles/latest/privatedns/mgmt/privatedns"
azurerest "github.com/Azure/go-autorest/autorest/azure"
"github.com/Azure/go-autorest/autorest/azure/auth"
"github.com/caddyserver/caddy"
)
var log = clog.NewWithPlugin("azure")

View File

@@ -3,7 +3,7 @@ package azure
import (
"testing"
"github.com/caddyserver/caddy"
"github.com/coredns/caddy"
)
func TestSetup(t *testing.T) {

View File

@@ -4,10 +4,9 @@ import (
"fmt"
"net"
"github.com/coredns/caddy"
"github.com/coredns/coredns/core/dnsserver"
"github.com/coredns/coredns/plugin"
"github.com/caddyserver/caddy"
)
func setup(c *caddy.Controller) error {

View File

@@ -3,9 +3,8 @@ package bind
import (
"testing"
"github.com/coredns/caddy"
"github.com/coredns/coredns/core/dnsserver"
"github.com/caddyserver/caddy"
)
func TestSetup(t *testing.T) {

View File

@@ -3,10 +3,9 @@ package bufsize
import (
"strconv"
"github.com/coredns/caddy"
"github.com/coredns/coredns/core/dnsserver"
"github.com/coredns/coredns/plugin"
"github.com/caddyserver/caddy"
)
func init() { plugin.Register("bufsize", setup) }

View File

@@ -4,7 +4,7 @@ import (
"strings"
"testing"
"github.com/caddyserver/caddy"
"github.com/coredns/caddy"
)
func TestSetupBufsize(t *testing.T) {

View File

@@ -6,12 +6,11 @@ import (
"strconv"
"time"
"github.com/coredns/caddy"
"github.com/coredns/coredns/core/dnsserver"
"github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/plugin/pkg/cache"
clog "github.com/coredns/coredns/plugin/pkg/log"
"github.com/caddyserver/caddy"
)
var log = clog.NewWithPlugin("cache")

View File

@@ -5,7 +5,7 @@ import (
"testing"
"time"
"github.com/caddyserver/caddy"
"github.com/coredns/caddy"
)
func TestSetup(t *testing.T) {

View File

@@ -6,10 +6,10 @@ import (
"fmt"
"time"
"github.com/coredns/caddy"
"github.com/coredns/coredns/core/dnsserver"
"github.com/coredns/coredns/plugin"
"github.com/caddyserver/caddy"
"github.com/miekg/dns"
)

View File

@@ -3,7 +3,7 @@ package cancel
import (
"testing"
"github.com/caddyserver/caddy"
"github.com/coredns/caddy"
)
func TestSetup(t *testing.T) {

View File

@@ -5,10 +5,9 @@ package chaos
import (
"sort"
"github.com/coredns/caddy"
"github.com/coredns/coredns/core/dnsserver"
"github.com/coredns/coredns/plugin"
"github.com/caddyserver/caddy"
)
func init() { plugin.Register("chaos", setup) }

View File

@@ -4,7 +4,7 @@ import (
"strings"
"testing"
"github.com/caddyserver/caddy"
"github.com/coredns/caddy"
)
func TestSetupChaos(t *testing.T) {

View File

@@ -4,13 +4,13 @@ import (
"context"
"strings"
"github.com/coredns/caddy"
"github.com/coredns/coredns/core/dnsserver"
"github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/plugin/pkg/fall"
clog "github.com/coredns/coredns/plugin/pkg/log"
"github.com/coredns/coredns/plugin/pkg/upstream"
"github.com/caddyserver/caddy"
gcp "google.golang.org/api/dns/v1"
"google.golang.org/api/option"
)

View File

@@ -4,7 +4,8 @@ import (
"context"
"testing"
"github.com/caddyserver/caddy"
"github.com/coredns/caddy"
"google.golang.org/api/option"
)

View File

@@ -1,10 +1,9 @@
package debug
import (
"github.com/coredns/caddy"
"github.com/coredns/coredns/core/dnsserver"
"github.com/coredns/coredns/plugin"
"github.com/caddyserver/caddy"
)
func init() { plugin.Register("debug", setup) }

View File

@@ -3,9 +3,8 @@ package debug
import (
"testing"
"github.com/coredns/caddy"
"github.com/coredns/coredns/core/dnsserver"
"github.com/caddyserver/caddy"
)
func TestDebug(t *testing.T) {

View File

@@ -1,6 +1,6 @@
// Package deprecated is used when we deprecated plugin. In plugin.cfg just go from
//
// startup:github.com/caddyserver/caddy/startupshutdown
// startup:github.com/coredns/caddy/startupshutdown
//
// To:
//
@@ -14,9 +14,8 @@ package deprecated
import (
"errors"
"github.com/coredns/caddy"
"github.com/coredns/coredns/plugin"
"github.com/caddyserver/caddy"
)
// removed has the names of the plugins that need to error on startup.

View File

@@ -3,12 +3,11 @@ package dns64
import (
"net"
"github.com/coredns/caddy"
"github.com/coredns/coredns/core/dnsserver"
"github.com/coredns/coredns/plugin"
clog "github.com/coredns/coredns/plugin/pkg/log"
"github.com/coredns/coredns/plugin/pkg/upstream"
"github.com/caddyserver/caddy"
)
const pluginName = "dns64"

View File

@@ -3,7 +3,7 @@ package dns64
import (
"testing"
"github.com/caddyserver/caddy"
"github.com/coredns/caddy"
)
func TestSetupDns64(t *testing.T) {

View File

@@ -6,12 +6,11 @@ import (
"strconv"
"strings"
"github.com/coredns/caddy"
"github.com/coredns/coredns/core/dnsserver"
"github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/plugin/pkg/cache"
clog "github.com/coredns/coredns/plugin/pkg/log"
"github.com/caddyserver/caddy"
)
var log = clog.NewWithPlugin("dnssec")

View File

@@ -6,7 +6,7 @@ import (
"strings"
"testing"
"github.com/caddyserver/caddy"
"github.com/coredns/caddy"
)
func TestSetupDnssec(t *testing.T) {

View File

@@ -3,12 +3,11 @@ package dnstap
import (
"strings"
"github.com/coredns/caddy"
"github.com/coredns/coredns/core/dnsserver"
"github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/plugin/dnstap/dnstapio"
"github.com/coredns/coredns/plugin/pkg/parse"
"github.com/caddyserver/caddy"
)
func init() { plugin.Register("dnstap", wrapSetup) }

View File

@@ -3,7 +3,7 @@ package dnstap
import (
"testing"
"github.com/caddyserver/caddy"
"github.com/coredns/caddy"
)
func TestConfig(t *testing.T) {

View File

@@ -5,10 +5,9 @@ import (
"strconv"
"time"
"github.com/coredns/caddy"
"github.com/coredns/coredns/core/dnsserver"
"github.com/coredns/coredns/plugin"
"github.com/caddyserver/caddy"
)
func init() { plugin.Register("erratic", setup) }

View File

@@ -3,7 +3,7 @@ package erratic
import (
"testing"
"github.com/caddyserver/caddy"
"github.com/coredns/caddy"
)
func TestSetup(t *testing.T) {

View File

@@ -4,10 +4,9 @@ import (
"regexp"
"time"
"github.com/coredns/caddy"
"github.com/coredns/coredns/core/dnsserver"
"github.com/coredns/coredns/plugin"
"github.com/caddyserver/caddy"
)
func init() { plugin.Register("errors", setup) }

View File

@@ -3,7 +3,7 @@ package errors
import (
"testing"
"github.com/caddyserver/caddy"
"github.com/coredns/caddy"
)
func TestErrorsParse(t *testing.T) {

View File

@@ -3,12 +3,12 @@ package etcd
import (
"crypto/tls"
"github.com/coredns/caddy"
"github.com/coredns/coredns/core/dnsserver"
"github.com/coredns/coredns/plugin"
mwtls "github.com/coredns/coredns/plugin/pkg/tls"
"github.com/coredns/coredns/plugin/pkg/upstream"
"github.com/caddyserver/caddy"
etcdcv3 "go.etcd.io/etcd/clientv3"
)

View File

@@ -6,7 +6,7 @@ import (
"strings"
"testing"
"github.com/caddyserver/caddy"
"github.com/coredns/caddy"
)
func TestSetupEtcd(t *testing.T) {

View File

@@ -5,12 +5,11 @@ import (
"path/filepath"
"time"
"github.com/coredns/caddy"
"github.com/coredns/coredns/core/dnsserver"
"github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/plugin/pkg/parse"
"github.com/coredns/coredns/plugin/pkg/upstream"
"github.com/caddyserver/caddy"
)
func init() { plugin.Register("file", setup) }

View File

@@ -4,9 +4,8 @@ import (
"testing"
"time"
"github.com/coredns/caddy"
"github.com/coredns/coredns/plugin/test"
"github.com/caddyserver/caddy"
)
func TestFileParse(t *testing.T) {

View File

@@ -4,12 +4,12 @@ import (
"context"
"testing"
"github.com/coredns/caddy"
"github.com/coredns/coredns/plugin/pkg/dnstest"
"github.com/coredns/coredns/plugin/pkg/transport"
"github.com/coredns/coredns/plugin/test"
"github.com/coredns/coredns/request"
"github.com/caddyserver/caddy"
"github.com/miekg/dns"
)

View File

@@ -7,13 +7,12 @@ import (
"strconv"
"time"
"github.com/coredns/caddy"
"github.com/coredns/coredns/core/dnsserver"
"github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/plugin/pkg/parse"
pkgtls "github.com/coredns/coredns/plugin/pkg/tls"
"github.com/coredns/coredns/plugin/pkg/transport"
"github.com/caddyserver/caddy"
)
func init() { plugin.Register("forward", setup) }

View File

@@ -4,7 +4,7 @@ import (
"strings"
"testing"
"github.com/caddyserver/caddy"
"github.com/coredns/caddy"
)
func TestSetupPolicy(t *testing.T) {

View File

@@ -7,7 +7,7 @@ import (
"strings"
"testing"
"github.com/caddyserver/caddy"
"github.com/coredns/caddy"
)
func TestSetup(t *testing.T) {

View File

@@ -4,12 +4,11 @@ import (
"crypto/tls"
"fmt"
"github.com/coredns/caddy"
"github.com/coredns/coredns/core/dnsserver"
"github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/plugin/pkg/parse"
pkgtls "github.com/coredns/coredns/plugin/pkg/tls"
"github.com/caddyserver/caddy"
)
func init() { plugin.Register("grpc", setup) }

View File

@@ -4,7 +4,7 @@ import (
"strings"
"testing"
"github.com/caddyserver/caddy"
"github.com/coredns/caddy"
)
func TestSetupPolicy(t *testing.T) {

View File

@@ -7,7 +7,7 @@ import (
"strings"
"testing"
"github.com/caddyserver/caddy"
"github.com/coredns/caddy"
)
func TestSetup(t *testing.T) {

View File

@@ -5,9 +5,8 @@ import (
"net"
"time"
"github.com/coredns/caddy"
"github.com/coredns/coredns/plugin"
"github.com/caddyserver/caddy"
)
func init() { plugin.Register("health", setup) }

View File

@@ -3,7 +3,7 @@ package health
import (
"testing"
"github.com/caddyserver/caddy"
"github.com/coredns/caddy"
)
func TestSetupHealth(t *testing.T) {

View File

@@ -7,11 +7,10 @@ import (
"strings"
"time"
"github.com/coredns/caddy"
"github.com/coredns/coredns/core/dnsserver"
"github.com/coredns/coredns/plugin"
clog "github.com/coredns/coredns/plugin/pkg/log"
"github.com/caddyserver/caddy"
)
var log = clog.NewWithPlugin("hosts")

View File

@@ -3,9 +3,8 @@ package hosts
import (
"testing"
"github.com/coredns/caddy"
"github.com/coredns/coredns/plugin/pkg/fall"
"github.com/caddyserver/caddy"
)
func TestHostsParse(t *testing.T) {

View File

@@ -3,11 +3,10 @@ package external
import (
"strconv"
"github.com/coredns/caddy"
"github.com/coredns/coredns/core/dnsserver"
"github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/plugin/pkg/upstream"
"github.com/caddyserver/caddy"
)
func init() { plugin.Register("k8s_external", setup) }

View File

@@ -3,7 +3,7 @@ package external
import (
"testing"
"github.com/caddyserver/caddy"
"github.com/coredns/caddy"
)
func TestSetup(t *testing.T) {

View File

@@ -3,7 +3,7 @@ package kubernetes
import (
"net"
"github.com/caddyserver/caddy"
"github.com/coredns/caddy"
"github.com/coredns/coredns/core/dnsserver"
)

View File

@@ -9,6 +9,7 @@ import (
"strings"
"time"
"github.com/coredns/caddy"
"github.com/coredns/coredns/core/dnsserver"
"github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/plugin/pkg/dnsutil"
@@ -16,7 +17,6 @@ import (
"github.com/coredns/coredns/plugin/pkg/parse"
"github.com/coredns/coredns/plugin/pkg/upstream"
"github.com/caddyserver/caddy"
"github.com/miekg/dns"
meta "k8s.io/apimachinery/pkg/apis/meta/v1"
_ "k8s.io/client-go/plugin/pkg/client/auth/gcp" // pull this in here, because we want it excluded if plugin.cfg doesn't have k8s

View File

@@ -3,7 +3,7 @@ package kubernetes
import (
"testing"
"github.com/caddyserver/caddy"
"github.com/coredns/caddy"
)
func TestKubernetesParseReverseZone(t *testing.T) {

View File

@@ -4,9 +4,9 @@ import (
"strings"
"testing"
"github.com/coredns/caddy"
"github.com/coredns/coredns/plugin/pkg/fall"
"github.com/caddyserver/caddy"
meta "k8s.io/apimachinery/pkg/apis/meta/v1"
)

View File

@@ -3,7 +3,7 @@ package kubernetes
import (
"testing"
"github.com/caddyserver/caddy"
"github.com/coredns/caddy"
)
func TestKubernetesParseTransfer(t *testing.T) {

View File

@@ -3,7 +3,7 @@ package kubernetes
import (
"testing"
"github.com/caddyserver/caddy"
"github.com/coredns/caddy"
)
func TestKubernetesParseTTL(t *testing.T) {

View File

@@ -3,11 +3,10 @@ package loadbalance
import (
"fmt"
"github.com/coredns/caddy"
"github.com/coredns/coredns/core/dnsserver"
"github.com/coredns/coredns/plugin"
clog "github.com/coredns/coredns/plugin/pkg/log"
"github.com/caddyserver/caddy"
)
var log = clog.NewWithPlugin("loadbalance")

View File

@@ -4,7 +4,7 @@ import (
"strings"
"testing"
"github.com/caddyserver/caddy"
"github.com/coredns/caddy"
)
func TestSetup(t *testing.T) {

View File

@@ -3,12 +3,12 @@ package log
import (
"strings"
"github.com/coredns/caddy"
"github.com/coredns/coredns/core/dnsserver"
"github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/plugin/pkg/replacer"
"github.com/coredns/coredns/plugin/pkg/response"
"github.com/caddyserver/caddy"
"github.com/miekg/dns"
)

View File

@@ -4,9 +4,8 @@ import (
"reflect"
"testing"
"github.com/coredns/caddy"
"github.com/coredns/coredns/plugin/pkg/response"
"github.com/caddyserver/caddy"
)
func TestLogParse(t *testing.T) {

View File

@@ -6,11 +6,10 @@ import (
"strconv"
"time"
"github.com/coredns/caddy"
"github.com/coredns/coredns/core/dnsserver"
"github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/plugin/pkg/dnsutil"
"github.com/caddyserver/caddy"
)
func init() { plugin.Register("loop", setup) }

View File

@@ -3,7 +3,7 @@ package loop
import (
"testing"
"github.com/caddyserver/caddy"
"github.com/coredns/caddy"
)
func TestSetup(t *testing.T) {

View File

@@ -1,10 +1,9 @@
package metadata
import (
"github.com/coredns/caddy"
"github.com/coredns/coredns/core/dnsserver"
"github.com/coredns/coredns/plugin"
"github.com/caddyserver/caddy"
)
func init() { plugin.Register("metadata", setup) }

View File

@@ -4,7 +4,7 @@ import (
"reflect"
"testing"
"github.com/caddyserver/caddy"
"github.com/coredns/caddy"
)
func TestSetup(t *testing.T) {

View File

@@ -4,14 +4,13 @@ import (
"net"
"runtime"
"github.com/coredns/caddy"
"github.com/coredns/coredns/core/dnsserver"
"github.com/coredns/coredns/coremain"
"github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/plugin/metrics/vars"
clog "github.com/coredns/coredns/plugin/pkg/log"
"github.com/coredns/coredns/plugin/pkg/uniq"
"github.com/caddyserver/caddy"
)
var (

View File

@@ -3,7 +3,7 @@ package metrics
import (
"testing"
"github.com/caddyserver/caddy"
"github.com/coredns/caddy"
)
func TestPrometheusParse(t *testing.T) {

View File

@@ -4,10 +4,9 @@ import (
"os"
"strings"
"github.com/coredns/caddy"
"github.com/coredns/coredns/core/dnsserver"
"github.com/coredns/coredns/plugin"
"github.com/caddyserver/caddy"
)
func init() { plugin.Register("nsid", setup) }

View File

@@ -5,7 +5,7 @@ import (
"strings"
"testing"
"github.com/caddyserver/caddy"
"github.com/coredns/caddy"
)
func TestSetupNsid(t *testing.T) {

View File

@@ -4,9 +4,8 @@ package parse
import (
"fmt"
"github.com/coredns/caddy"
"github.com/coredns/coredns/plugin/pkg/transport"
"github.com/caddyserver/caddy"
)
// Transfer parses transfer statements: 'transfer [to|from] [address...]'.

View File

@@ -3,7 +3,7 @@ package parse
import (
"testing"
"github.com/caddyserver/caddy"
"github.com/coredns/caddy"
)
func TestTransfer(t *testing.T) {

View File

@@ -4,10 +4,9 @@ import (
"net"
"strconv"
"github.com/coredns/caddy"
"github.com/coredns/coredns/plugin"
clog "github.com/coredns/coredns/plugin/pkg/log"
"github.com/caddyserver/caddy"
)
var log = clog.NewWithPlugin("pprof")

View File

@@ -3,7 +3,7 @@ package pprof
import (
"testing"
"github.com/caddyserver/caddy"
"github.com/coredns/caddy"
)
func TestPProf(t *testing.T) {

View File

@@ -3,10 +3,9 @@ package ready
import (
"net"
"github.com/coredns/caddy"
"github.com/coredns/coredns/core/dnsserver"
"github.com/coredns/coredns/plugin"
"github.com/caddyserver/caddy"
)
func init() { plugin.Register("ready", setup) }

View File

@@ -3,7 +3,7 @@ package ready
import (
"testing"
"github.com/caddyserver/caddy"
"github.com/coredns/caddy"
)
func TestSetupReady(t *testing.T) {

View File

@@ -1,6 +1,6 @@
package plugin
import "github.com/caddyserver/caddy"
import "github.com/coredns/caddy"
// Register registers your plugin with CoreDNS and allows it to be called when the server is running.
func Register(name string, action caddy.SetupFunc) {

View File

@@ -9,8 +9,9 @@ import (
"sync"
"time"
"github.com/caddyserver/caddy"
"github.com/caddyserver/caddy/caddyfile"
"github.com/coredns/caddy"
"github.com/coredns/caddy/caddyfile"
"github.com/prometheus/client_golang/prometheus"
)

View File

@@ -6,10 +6,9 @@ import (
"sync"
"time"
"github.com/coredns/caddy"
"github.com/coredns/coredns/plugin"
clog "github.com/coredns/coredns/plugin/pkg/log"
"github.com/caddyserver/caddy"
)
var log = clog.NewWithPlugin("reload")

View File

@@ -3,7 +3,7 @@ package reload
import (
"testing"
"github.com/caddyserver/caddy"
"github.com/coredns/caddy"
)
func TestSetupReload(t *testing.T) {

View File

@@ -3,9 +3,8 @@
package rewrite
import (
"github.com/coredns/caddy"
"github.com/coredns/coredns/plugin/pkg/fuzz"
"github.com/caddyserver/caddy"
)
// Fuzz fuzzes rewrite.

View File

@@ -1,10 +1,9 @@
package rewrite
import (
"github.com/coredns/caddy"
"github.com/coredns/coredns/core/dnsserver"
"github.com/coredns/coredns/plugin"
"github.com/caddyserver/caddy"
)
func init() { plugin.Register("rewrite", setup) }

View File

@@ -4,7 +4,7 @@ import (
"strings"
"testing"
"github.com/caddyserver/caddy"
"github.com/coredns/caddy"
)
func TestParse(t *testing.T) {

View File

@@ -3,11 +3,10 @@ package root
import (
"os"
"github.com/coredns/caddy"
"github.com/coredns/coredns/core/dnsserver"
"github.com/coredns/coredns/plugin"
clog "github.com/coredns/coredns/plugin/pkg/log"
"github.com/caddyserver/caddy"
)
var log = clog.NewWithPlugin("root")

View File

@@ -8,9 +8,8 @@ import (
"strings"
"testing"
"github.com/coredns/caddy"
"github.com/coredns/coredns/core/dnsserver"
"github.com/caddyserver/caddy"
)
func TestRoot(t *testing.T) {

View File

@@ -7,6 +7,7 @@ import (
"strings"
"time"
"github.com/coredns/caddy"
"github.com/coredns/coredns/core/dnsserver"
"github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/plugin/pkg/fall"
@@ -19,7 +20,6 @@ import (
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/route53"
"github.com/aws/aws-sdk-go/service/route53/route53iface"
"github.com/caddyserver/caddy"
)
var log = clog.NewWithPlugin("route53")

View File

@@ -3,9 +3,10 @@ package route53
import (
"testing"
"github.com/coredns/caddy"
"github.com/aws/aws-sdk-go/aws/credentials"
"github.com/aws/aws-sdk-go/service/route53/route53iface"
"github.com/caddyserver/caddy"
)
func TestSetupRoute53(t *testing.T) {

View File

@@ -1,13 +1,12 @@
package secondary
import (
"github.com/coredns/caddy"
"github.com/coredns/coredns/core/dnsserver"
"github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/plugin/file"
"github.com/coredns/coredns/plugin/pkg/parse"
"github.com/coredns/coredns/plugin/pkg/upstream"
"github.com/caddyserver/caddy"
)
func init() { plugin.Register("secondary", setup) }

View File

@@ -3,7 +3,7 @@ package secondary
import (
"testing"
"github.com/caddyserver/caddy"
"github.com/coredns/caddy"
)
func TestSecondaryParse(t *testing.T) {

View File

@@ -11,9 +11,9 @@ import (
"strconv"
"strings"
"github.com/coredns/caddy"
"github.com/coredns/coredns/core/dnsserver"
"github.com/caddyserver/caddy"
"github.com/miekg/dns"
"golang.org/x/crypto/ed25519"
)

View File

@@ -6,10 +6,9 @@ import (
"path/filepath"
"time"
"github.com/coredns/caddy"
"github.com/coredns/coredns/core/dnsserver"
"github.com/coredns/coredns/plugin"
"github.com/caddyserver/caddy"
)
func init() { plugin.Register("sign", setup) }

View File

@@ -3,7 +3,7 @@ package sign
import (
"testing"
"github.com/caddyserver/caddy"
"github.com/coredns/caddy"
)
func TestParse(t *testing.T) {

View File

@@ -7,7 +7,8 @@ import (
"testing"
"time"
"github.com/caddyserver/caddy"
"github.com/coredns/caddy"
"github.com/miekg/dns"
)

View File

@@ -2,6 +2,7 @@ package template
import (
"github.com/coredns/coredns/plugin"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promauto"
)

View File

@@ -4,11 +4,11 @@ import (
"regexp"
gotmpl "text/template"
"github.com/coredns/caddy"
"github.com/coredns/coredns/core/dnsserver"
"github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/plugin/pkg/upstream"
"github.com/caddyserver/caddy"
"github.com/miekg/dns"
)

View File

@@ -3,7 +3,7 @@ package template
import (
"testing"
"github.com/caddyserver/caddy"
"github.com/coredns/caddy"
)
func TestSetup(t *testing.T) {

View File

@@ -7,12 +7,12 @@ import (
"testing"
gotmpl "text/template"
"github.com/coredns/caddy"
"github.com/coredns/coredns/plugin/metadata"
"github.com/coredns/coredns/plugin/pkg/dnstest"
"github.com/coredns/coredns/plugin/pkg/fall"
"github.com/coredns/coredns/plugin/test"
"github.com/caddyserver/caddy"
"github.com/miekg/dns"
)

View File

@@ -3,11 +3,10 @@ package tls
import (
ctls "crypto/tls"
"github.com/coredns/caddy"
"github.com/coredns/coredns/core/dnsserver"
"github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/plugin/pkg/tls"
"github.com/caddyserver/caddy"
)
func init() { plugin.Register("tls", setup) }

View File

@@ -5,9 +5,8 @@ import (
"strings"
"testing"
"github.com/coredns/caddy"
"github.com/coredns/coredns/core/dnsserver"
"github.com/caddyserver/caddy"
)
func TestTLS(t *testing.T) {

View File

@@ -5,10 +5,9 @@ import (
"strconv"
"strings"
"github.com/coredns/caddy"
"github.com/coredns/coredns/core/dnsserver"
"github.com/coredns/coredns/plugin"
"github.com/caddyserver/caddy"
)
func init() { plugin.Register("trace", setup) }

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