Commit b003d060 authored by Miek Gieben's avatar Miek Gieben Committed by GitHub

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: default avatarMiek Gieben <miek@miek.nl>

* Fix imports
Signed-off-by: default avatarMiek Gieben <miek@miek.nl>

* Group coredns/caddy with out plugins
Signed-off-by: default avatarMiek Gieben <miek@miek.nl>

* remove this file
Signed-off-by: default avatarMiek 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: default avatarMiek Gieben <miek@miek.nl>

* Fix final import
Signed-off-by: default avatarMiek Gieben <miek@miek.nl>
parent 24e668ec
...@@ -4,9 +4,8 @@ import ( ...@@ -4,9 +4,8 @@ import (
"crypto/tls" "crypto/tls"
"fmt" "fmt"
"github.com/coredns/caddy"
"github.com/coredns/coredns/plugin" "github.com/coredns/coredns/plugin"
"github.com/caddyserver/caddy"
) )
// Config configuration for a single server. // Config configuration for a single server.
......
...@@ -7,13 +7,12 @@ import ( ...@@ -7,13 +7,12 @@ import (
"strings" "strings"
"time" "time"
"github.com/coredns/caddy"
"github.com/coredns/caddy/caddyfile"
"github.com/coredns/coredns/plugin" "github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/plugin/pkg/dnsutil" "github.com/coredns/coredns/plugin/pkg/dnsutil"
"github.com/coredns/coredns/plugin/pkg/parse" "github.com/coredns/coredns/plugin/pkg/parse"
"github.com/coredns/coredns/plugin/pkg/transport" "github.com/coredns/coredns/plugin/pkg/transport"
"github.com/caddyserver/caddy"
"github.com/caddyserver/caddy/caddyfile"
) )
const serverType = "dns" const serverType = "dns"
......
...@@ -10,6 +10,7 @@ import ( ...@@ -10,6 +10,7 @@ import (
"sync" "sync"
"time" "time"
"github.com/coredns/caddy"
"github.com/coredns/coredns/plugin" "github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/plugin/metrics/vars" "github.com/coredns/coredns/plugin/metrics/vars"
"github.com/coredns/coredns/plugin/pkg/edns" "github.com/coredns/coredns/plugin/pkg/edns"
...@@ -20,7 +21,6 @@ import ( ...@@ -20,7 +21,6 @@ import (
"github.com/coredns/coredns/plugin/pkg/transport" "github.com/coredns/coredns/plugin/pkg/transport"
"github.com/coredns/coredns/request" "github.com/coredns/coredns/request"
"github.com/caddyserver/caddy"
"github.com/miekg/dns" "github.com/miekg/dns"
ot "github.com/opentracing/opentracing-go" ot "github.com/opentracing/opentracing-go"
) )
......
...@@ -7,11 +7,11 @@ import ( ...@@ -7,11 +7,11 @@ import (
"fmt" "fmt"
"net" "net"
"github.com/coredns/caddy"
"github.com/coredns/coredns/pb" "github.com/coredns/coredns/pb"
"github.com/coredns/coredns/plugin/pkg/reuseport" "github.com/coredns/coredns/plugin/pkg/reuseport"
"github.com/coredns/coredns/plugin/pkg/transport" "github.com/coredns/coredns/plugin/pkg/transport"
"github.com/caddyserver/caddy"
"github.com/grpc-ecosystem/grpc-opentracing/go/otgrpc" "github.com/grpc-ecosystem/grpc-opentracing/go/otgrpc"
"github.com/miekg/dns" "github.com/miekg/dns"
"github.com/opentracing/opentracing-go" "github.com/opentracing/opentracing-go"
......
...@@ -9,13 +9,12 @@ import ( ...@@ -9,13 +9,12 @@ import (
"strconv" "strconv"
"time" "time"
"github.com/coredns/caddy"
"github.com/coredns/coredns/plugin/pkg/dnsutil" "github.com/coredns/coredns/plugin/pkg/dnsutil"
"github.com/coredns/coredns/plugin/pkg/doh" "github.com/coredns/coredns/plugin/pkg/doh"
"github.com/coredns/coredns/plugin/pkg/response" "github.com/coredns/coredns/plugin/pkg/response"
"github.com/coredns/coredns/plugin/pkg/reuseport" "github.com/coredns/coredns/plugin/pkg/reuseport"
"github.com/coredns/coredns/plugin/pkg/transport" "github.com/coredns/coredns/plugin/pkg/transport"
"github.com/caddyserver/caddy"
) )
// ServerHTTPS represents an instance of a DNS-over-HTTPS server. // ServerHTTPS represents an instance of a DNS-over-HTTPS server.
......
...@@ -6,10 +6,10 @@ import ( ...@@ -6,10 +6,10 @@ import (
"fmt" "fmt"
"net" "net"
"github.com/coredns/caddy"
"github.com/coredns/coredns/plugin/pkg/reuseport" "github.com/coredns/coredns/plugin/pkg/reuseport"
"github.com/coredns/coredns/plugin/pkg/transport" "github.com/coredns/coredns/plugin/pkg/transport"
"github.com/caddyserver/caddy"
"github.com/miekg/dns" "github.com/miekg/dns"
) )
......
...@@ -4,7 +4,7 @@ package plugin ...@@ -4,7 +4,7 @@ package plugin
import ( import (
// Include all plugins. // Include all plugins.
_ "github.com/caddyserver/caddy/onevent" _ "github.com/coredns/caddy/onevent"
_ "github.com/coredns/coredns/plugin/acl" _ "github.com/coredns/coredns/plugin/acl"
_ "github.com/coredns/coredns/plugin/any" _ "github.com/coredns/coredns/plugin/any"
_ "github.com/coredns/coredns/plugin/auto" _ "github.com/coredns/coredns/plugin/auto"
......
...@@ -10,9 +10,8 @@ import ( ...@@ -10,9 +10,8 @@ import (
"runtime" "runtime"
"strings" "strings"
"github.com/coredns/caddy"
"github.com/coredns/coredns/core/dnsserver" "github.com/coredns/coredns/core/dnsserver"
"github.com/caddyserver/caddy"
) )
func init() { func init() {
......
...@@ -6,13 +6,16 @@ require ( ...@@ -6,13 +6,16 @@ require (
github.com/Azure/azure-sdk-for-go v40.6.0+incompatible github.com/Azure/azure-sdk-for-go v40.6.0+incompatible
github.com/Azure/go-autorest/autorest v0.11.6 github.com/Azure/go-autorest/autorest v0.11.6
github.com/Azure/go-autorest/autorest/azure/auth v0.5.2 github.com/Azure/go-autorest/autorest/azure/auth v0.5.2
github.com/Azure/go-autorest/autorest/to v0.2.0 // indirect
github.com/DataDog/datadog-go v3.5.0+incompatible // indirect github.com/DataDog/datadog-go v3.5.0+incompatible // indirect
github.com/aws/aws-sdk-go v1.34.22 github.com/aws/aws-sdk-go v1.34.22
github.com/caddyserver/caddy v1.0.5
github.com/cenkalti/backoff/v4 v4.0.2 github.com/cenkalti/backoff/v4 v4.0.2
github.com/coredns/caddy v1.1.0
github.com/dnstap/golang-dnstap v0.2.1 github.com/dnstap/golang-dnstap v0.2.1
github.com/dustin/go-humanize v1.0.0 // indirect
github.com/farsightsec/golang-framestream v0.3.0 github.com/farsightsec/golang-framestream v0.3.0
github.com/golang/protobuf v1.4.2 github.com/golang/protobuf v1.4.2
github.com/gorilla/websocket v1.4.0 // indirect
github.com/grpc-ecosystem/grpc-opentracing v0.0.0-20180507213350-8e809c8a8645 github.com/grpc-ecosystem/grpc-opentracing v0.0.0-20180507213350-8e809c8a8645
github.com/hashicorp/golang-lru v0.5.4 // indirect github.com/hashicorp/golang-lru v0.5.4 // indirect
github.com/imdario/mergo v0.3.9 // indirect github.com/imdario/mergo v0.3.9 // indirect
......
This diff is collapsed.
...@@ -62,5 +62,5 @@ forward:forward ...@@ -62,5 +62,5 @@ forward:forward
grpc:grpc grpc:grpc
erratic:erratic erratic:erratic
whoami:whoami whoami:whoami
on:github.com/caddyserver/caddy/onevent on:github.com/coredns/caddy/onevent
sign:sign sign:sign
...@@ -4,9 +4,9 @@ import ( ...@@ -4,9 +4,9 @@ import (
"context" "context"
"testing" "testing"
"github.com/coredns/caddy"
"github.com/coredns/coredns/plugin/test" "github.com/coredns/coredns/plugin/test"
"github.com/caddyserver/caddy"
"github.com/miekg/dns" "github.com/miekg/dns"
) )
......
...@@ -4,10 +4,10 @@ import ( ...@@ -4,10 +4,10 @@ import (
"net" "net"
"strings" "strings"
"github.com/coredns/caddy"
"github.com/coredns/coredns/core/dnsserver" "github.com/coredns/coredns/core/dnsserver"
"github.com/coredns/coredns/plugin" "github.com/coredns/coredns/plugin"
"github.com/caddyserver/caddy"
"github.com/infobloxopen/go-trees/iptree" "github.com/infobloxopen/go-trees/iptree"
"github.com/miekg/dns" "github.com/miekg/dns"
) )
......
...@@ -3,7 +3,7 @@ package acl ...@@ -3,7 +3,7 @@ package acl
import ( import (
"testing" "testing"
"github.com/caddyserver/caddy" "github.com/coredns/caddy"
) )
func TestSetup(t *testing.T) { func TestSetup(t *testing.T) {
......
package any package any
import ( import (
"github.com/coredns/caddy"
"github.com/coredns/coredns/core/dnsserver" "github.com/coredns/coredns/core/dnsserver"
"github.com/coredns/coredns/plugin" "github.com/coredns/coredns/plugin"
"github.com/caddyserver/caddy"
) )
func init() { plugin.Register("any", setup) } func init() { plugin.Register("any", setup) }
......
...@@ -6,14 +6,13 @@ import ( ...@@ -6,14 +6,13 @@ import (
"regexp" "regexp"
"time" "time"
"github.com/coredns/caddy"
"github.com/coredns/coredns/core/dnsserver" "github.com/coredns/coredns/core/dnsserver"
"github.com/coredns/coredns/plugin" "github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/plugin/metrics" "github.com/coredns/coredns/plugin/metrics"
clog "github.com/coredns/coredns/plugin/pkg/log" clog "github.com/coredns/coredns/plugin/pkg/log"
"github.com/coredns/coredns/plugin/pkg/parse" "github.com/coredns/coredns/plugin/pkg/parse"
"github.com/coredns/coredns/plugin/pkg/upstream" "github.com/coredns/coredns/plugin/pkg/upstream"
"github.com/caddyserver/caddy"
) )
var log = clog.NewWithPlugin("auto") var log = clog.NewWithPlugin("auto")
......
...@@ -4,7 +4,7 @@ import ( ...@@ -4,7 +4,7 @@ import (
"testing" "testing"
"time" "time"
"github.com/caddyserver/caddy" "github.com/coredns/caddy"
) )
func TestAutoParse(t *testing.T) { func TestAutoParse(t *testing.T) {
......
...@@ -3,10 +3,10 @@ package autopath ...@@ -3,10 +3,10 @@ package autopath
import ( import (
"fmt" "fmt"
"github.com/coredns/caddy"
"github.com/coredns/coredns/core/dnsserver" "github.com/coredns/coredns/core/dnsserver"
"github.com/coredns/coredns/plugin" "github.com/coredns/coredns/plugin"
"github.com/caddyserver/caddy"
"github.com/miekg/dns" "github.com/miekg/dns"
) )
......
...@@ -6,9 +6,8 @@ import ( ...@@ -6,9 +6,8 @@ import (
"strings" "strings"
"testing" "testing"
"github.com/coredns/caddy"
"github.com/coredns/coredns/plugin/test" "github.com/coredns/coredns/plugin/test"
"github.com/caddyserver/caddy"
) )
func TestSetupAutoPath(t *testing.T) { func TestSetupAutoPath(t *testing.T) {
......
...@@ -4,6 +4,7 @@ import ( ...@@ -4,6 +4,7 @@ import (
"context" "context"
"strings" "strings"
"github.com/coredns/caddy"
"github.com/coredns/coredns/core/dnsserver" "github.com/coredns/coredns/core/dnsserver"
"github.com/coredns/coredns/plugin" "github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/plugin/pkg/fall" "github.com/coredns/coredns/plugin/pkg/fall"
...@@ -13,7 +14,6 @@ import ( ...@@ -13,7 +14,6 @@ import (
privateAzureDNS "github.com/Azure/azure-sdk-for-go/profiles/latest/privatedns/mgmt/privatedns" privateAzureDNS "github.com/Azure/azure-sdk-for-go/profiles/latest/privatedns/mgmt/privatedns"
azurerest "github.com/Azure/go-autorest/autorest/azure" azurerest "github.com/Azure/go-autorest/autorest/azure"
"github.com/Azure/go-autorest/autorest/azure/auth" "github.com/Azure/go-autorest/autorest/azure/auth"
"github.com/caddyserver/caddy"
) )
var log = clog.NewWithPlugin("azure") var log = clog.NewWithPlugin("azure")
......
...@@ -3,7 +3,7 @@ package azure ...@@ -3,7 +3,7 @@ package azure
import ( import (
"testing" "testing"
"github.com/caddyserver/caddy" "github.com/coredns/caddy"
) )
func TestSetup(t *testing.T) { func TestSetup(t *testing.T) {
......
...@@ -4,10 +4,9 @@ import ( ...@@ -4,10 +4,9 @@ import (
"fmt" "fmt"
"net" "net"
"github.com/coredns/caddy"
"github.com/coredns/coredns/core/dnsserver" "github.com/coredns/coredns/core/dnsserver"
"github.com/coredns/coredns/plugin" "github.com/coredns/coredns/plugin"
"github.com/caddyserver/caddy"
) )
func setup(c *caddy.Controller) error { func setup(c *caddy.Controller) error {
......
...@@ -3,9 +3,8 @@ package bind ...@@ -3,9 +3,8 @@ package bind
import ( import (
"testing" "testing"
"github.com/coredns/caddy"
"github.com/coredns/coredns/core/dnsserver" "github.com/coredns/coredns/core/dnsserver"
"github.com/caddyserver/caddy"
) )
func TestSetup(t *testing.T) { func TestSetup(t *testing.T) {
......
...@@ -3,10 +3,9 @@ package bufsize ...@@ -3,10 +3,9 @@ package bufsize
import ( import (
"strconv" "strconv"
"github.com/coredns/caddy"
"github.com/coredns/coredns/core/dnsserver" "github.com/coredns/coredns/core/dnsserver"
"github.com/coredns/coredns/plugin" "github.com/coredns/coredns/plugin"
"github.com/caddyserver/caddy"
) )
func init() { plugin.Register("bufsize", setup) } func init() { plugin.Register("bufsize", setup) }
......
...@@ -4,7 +4,7 @@ import ( ...@@ -4,7 +4,7 @@ import (
"strings" "strings"
"testing" "testing"
"github.com/caddyserver/caddy" "github.com/coredns/caddy"
) )
func TestSetupBufsize(t *testing.T) { func TestSetupBufsize(t *testing.T) {
......
...@@ -6,12 +6,11 @@ import ( ...@@ -6,12 +6,11 @@ import (
"strconv" "strconv"
"time" "time"
"github.com/coredns/caddy"
"github.com/coredns/coredns/core/dnsserver" "github.com/coredns/coredns/core/dnsserver"
"github.com/coredns/coredns/plugin" "github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/plugin/pkg/cache" "github.com/coredns/coredns/plugin/pkg/cache"
clog "github.com/coredns/coredns/plugin/pkg/log" clog "github.com/coredns/coredns/plugin/pkg/log"
"github.com/caddyserver/caddy"
) )
var log = clog.NewWithPlugin("cache") var log = clog.NewWithPlugin("cache")
......
...@@ -5,7 +5,7 @@ import ( ...@@ -5,7 +5,7 @@ import (
"testing" "testing"
"time" "time"
"github.com/caddyserver/caddy" "github.com/coredns/caddy"
) )
func TestSetup(t *testing.T) { func TestSetup(t *testing.T) {
......
...@@ -6,10 +6,10 @@ import ( ...@@ -6,10 +6,10 @@ import (
"fmt" "fmt"
"time" "time"
"github.com/coredns/caddy"
"github.com/coredns/coredns/core/dnsserver" "github.com/coredns/coredns/core/dnsserver"
"github.com/coredns/coredns/plugin" "github.com/coredns/coredns/plugin"
"github.com/caddyserver/caddy"
"github.com/miekg/dns" "github.com/miekg/dns"
) )
......
...@@ -3,7 +3,7 @@ package cancel ...@@ -3,7 +3,7 @@ package cancel
import ( import (
"testing" "testing"
"github.com/caddyserver/caddy" "github.com/coredns/caddy"
) )
func TestSetup(t *testing.T) { func TestSetup(t *testing.T) {
......
...@@ -5,10 +5,9 @@ package chaos ...@@ -5,10 +5,9 @@ package chaos
import ( import (
"sort" "sort"
"github.com/coredns/caddy"
"github.com/coredns/coredns/core/dnsserver" "github.com/coredns/coredns/core/dnsserver"
"github.com/coredns/coredns/plugin" "github.com/coredns/coredns/plugin"
"github.com/caddyserver/caddy"
) )
func init() { plugin.Register("chaos", setup) } func init() { plugin.Register("chaos", setup) }
......
...@@ -4,7 +4,7 @@ import ( ...@@ -4,7 +4,7 @@ import (
"strings" "strings"
"testing" "testing"
"github.com/caddyserver/caddy" "github.com/coredns/caddy"
) )
func TestSetupChaos(t *testing.T) { func TestSetupChaos(t *testing.T) {
......
...@@ -4,13 +4,13 @@ import ( ...@@ -4,13 +4,13 @@ import (
"context" "context"
"strings" "strings"
"github.com/coredns/caddy"
"github.com/coredns/coredns/core/dnsserver" "github.com/coredns/coredns/core/dnsserver"
"github.com/coredns/coredns/plugin" "github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/plugin/pkg/fall" "github.com/coredns/coredns/plugin/pkg/fall"
clog "github.com/coredns/coredns/plugin/pkg/log" clog "github.com/coredns/coredns/plugin/pkg/log"
"github.com/coredns/coredns/plugin/pkg/upstream" "github.com/coredns/coredns/plugin/pkg/upstream"
"github.com/caddyserver/caddy"
gcp "google.golang.org/api/dns/v1" gcp "google.golang.org/api/dns/v1"
"google.golang.org/api/option" "google.golang.org/api/option"
) )
......
...@@ -4,7 +4,8 @@ import ( ...@@ -4,7 +4,8 @@ import (
"context" "context"
"testing" "testing"
"github.com/caddyserver/caddy" "github.com/coredns/caddy"
"google.golang.org/api/option" "google.golang.org/api/option"
) )
......
package debug package debug
import ( import (
"github.com/coredns/caddy"
"github.com/coredns/coredns/core/dnsserver" "github.com/coredns/coredns/core/dnsserver"
"github.com/coredns/coredns/plugin" "github.com/coredns/coredns/plugin"
"github.com/caddyserver/caddy"
) )
func init() { plugin.Register("debug", setup) } func init() { plugin.Register("debug", setup) }
......
...@@ -3,9 +3,8 @@ package debug ...@@ -3,9 +3,8 @@ package debug
import ( import (
"testing" "testing"
"github.com/coredns/caddy"
"github.com/coredns/coredns/core/dnsserver" "github.com/coredns/coredns/core/dnsserver"
"github.com/caddyserver/caddy"
) )
func TestDebug(t *testing.T) { func TestDebug(t *testing.T) {
......
// Package deprecated is used when we deprecated plugin. In plugin.cfg just go from // 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: // To:
// //
...@@ -14,9 +14,8 @@ package deprecated ...@@ -14,9 +14,8 @@ package deprecated
import ( import (
"errors" "errors"
"github.com/coredns/caddy"
"github.com/coredns/coredns/plugin" "github.com/coredns/coredns/plugin"
"github.com/caddyserver/caddy"
) )
// removed has the names of the plugins that need to error on startup. // removed has the names of the plugins that need to error on startup.
......
...@@ -3,12 +3,11 @@ package dns64 ...@@ -3,12 +3,11 @@ package dns64
import ( import (
"net" "net"
"github.com/coredns/caddy"
"github.com/coredns/coredns/core/dnsserver" "github.com/coredns/coredns/core/dnsserver"
"github.com/coredns/coredns/plugin" "github.com/coredns/coredns/plugin"
clog "github.com/coredns/coredns/plugin/pkg/log" clog "github.com/coredns/coredns/plugin/pkg/log"
"github.com/coredns/coredns/plugin/pkg/upstream" "github.com/coredns/coredns/plugin/pkg/upstream"
"github.com/caddyserver/caddy"
) )
const pluginName = "dns64" const pluginName = "dns64"
......
...@@ -3,7 +3,7 @@ package dns64 ...@@ -3,7 +3,7 @@ package dns64
import ( import (
"testing" "testing"
"github.com/caddyserver/caddy" "github.com/coredns/caddy"
) )
func TestSetupDns64(t *testing.T) { func TestSetupDns64(t *testing.T) {
......
...@@ -6,12 +6,11 @@ import ( ...@@ -6,12 +6,11 @@ import (
"strconv" "strconv"
"strings" "strings"
"github.com/coredns/caddy"
"github.com/coredns/coredns/core/dnsserver" "github.com/coredns/coredns/core/dnsserver"
"github.com/coredns/coredns/plugin" "github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/plugin/pkg/cache" "github.com/coredns/coredns/plugin/pkg/cache"
clog "github.com/coredns/coredns/plugin/pkg/log" clog "github.com/coredns/coredns/plugin/pkg/log"
"github.com/caddyserver/caddy"
) )
var log = clog.NewWithPlugin("dnssec") var log = clog.NewWithPlugin("dnssec")
......
...@@ -6,7 +6,7 @@ import ( ...@@ -6,7 +6,7 @@ import (
"strings" "strings"
"testing" "testing"
"github.com/caddyserver/caddy" "github.com/coredns/caddy"
) )
func TestSetupDnssec(t *testing.T) { func TestSetupDnssec(t *testing.T) {
......
...@@ -3,12 +3,11 @@ package dnstap ...@@ -3,12 +3,11 @@ package dnstap
import ( import (
"strings" "strings"
"github.com/coredns/caddy"
"github.com/coredns/coredns/core/dnsserver" "github.com/coredns/coredns/core/dnsserver"
"github.com/coredns/coredns/plugin" "github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/plugin/dnstap/dnstapio" "github.com/coredns/coredns/plugin/dnstap/dnstapio"
"github.com/coredns/coredns/plugin/pkg/parse" "github.com/coredns/coredns/plugin/pkg/parse"
"github.com/caddyserver/caddy"
) )
func init() { plugin.Register("dnstap", wrapSetup) } func init() { plugin.Register("dnstap", wrapSetup) }
......
...@@ -3,7 +3,7 @@ package dnstap ...@@ -3,7 +3,7 @@ package dnstap
import ( import (
"testing" "testing"
"github.com/caddyserver/caddy" "github.com/coredns/caddy"
) )
func TestConfig(t *testing.T) { func TestConfig(t *testing.T) {
......
...@@ -5,10 +5,9 @@ import ( ...@@ -5,10 +5,9 @@ import (
"strconv" "strconv"
"time" "time"
"github.com/coredns/caddy"
"github.com/coredns/coredns/core/dnsserver" "github.com/coredns/coredns/core/dnsserver"
"github.com/coredns/coredns/plugin" "github.com/coredns/coredns/plugin"
"github.com/caddyserver/caddy"
) )
func init() { plugin.Register("erratic", setup) } func init() { plugin.Register("erratic", setup) }
......
...@@ -3,7 +3,7 @@ package erratic ...@@ -3,7 +3,7 @@ package erratic
import ( import (
"testing" "testing"
"github.com/caddyserver/caddy" "github.com/coredns/caddy"
) )
func TestSetup(t *testing.T) { func TestSetup(t *testing.T) {
......
...@@ -4,10 +4,9 @@ import ( ...@@ -4,10 +4,9 @@ import (
"regexp" "regexp"
"time" "time"
"github.com/coredns/caddy"
"github.com/coredns/coredns/core/dnsserver" "github.com/coredns/coredns/core/dnsserver"
"github.com/coredns/coredns/plugin" "github.com/coredns/coredns/plugin"
"github.com/caddyserver/caddy"
) )
func init() { plugin.Register("errors", setup) } func init() { plugin.Register("errors", setup) }
......
...@@ -3,7 +3,7 @@ package errors ...@@ -3,7 +3,7 @@ package errors
import ( import (
"testing" "testing"
"github.com/caddyserver/caddy" "github.com/coredns/caddy"
) )
func TestErrorsParse(t *testing.T) { func TestErrorsParse(t *testing.T) {
......
...@@ -3,12 +3,12 @@ package etcd ...@@ -3,12 +3,12 @@ package etcd
import ( import (
"crypto/tls" "crypto/tls"
"github.com/coredns/caddy"
"github.com/coredns/coredns/core/dnsserver" "github.com/coredns/coredns/core/dnsserver"
"github.com/coredns/coredns/plugin" "github.com/coredns/coredns/plugin"
mwtls "github.com/coredns/coredns/plugin/pkg/tls" mwtls "github.com/coredns/coredns/plugin/pkg/tls"
"github.com/coredns/coredns/plugin/pkg/upstream" "github.com/coredns/coredns/plugin/pkg/upstream"
"github.com/caddyserver/caddy"
etcdcv3 "go.etcd.io/etcd/clientv3" etcdcv3 "go.etcd.io/etcd/clientv3"
) )
......
...@@ -6,7 +6,7 @@ import ( ...@@ -6,7 +6,7 @@ import (
"strings" "strings"
"testing" "testing"
"github.com/caddyserver/caddy" "github.com/coredns/caddy"
) )
func TestSetupEtcd(t *testing.T) { func TestSetupEtcd(t *testing.T) {
......
...@@ -5,12 +5,11 @@ import ( ...@@ -5,12 +5,11 @@ import (
"path/filepath" "path/filepath"
"time" "time"
"github.com/coredns/caddy"
"github.com/coredns/coredns/core/dnsserver" "github.com/coredns/coredns/core/dnsserver"
"github.com/coredns/coredns/plugin" "github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/plugin/pkg/parse" "github.com/coredns/coredns/plugin/pkg/parse"
"github.com/coredns/coredns/plugin/pkg/upstream" "github.com/coredns/coredns/plugin/pkg/upstream"
"github.com/caddyserver/caddy"
) )
func init() { plugin.Register("file", setup) } func init() { plugin.Register("file", setup) }
......
...@@ -4,9 +4,8 @@ import ( ...@@ -4,9 +4,8 @@ import (
"testing" "testing"
"time" "time"
"github.com/coredns/caddy"
"github.com/coredns/coredns/plugin/test" "github.com/coredns/coredns/plugin/test"
"github.com/caddyserver/caddy"
) )
func TestFileParse(t *testing.T) { func TestFileParse(t *testing.T) {
......
...@@ -4,12 +4,12 @@ import ( ...@@ -4,12 +4,12 @@ import (
"context" "context"
"testing" "testing"
"github.com/coredns/caddy"
"github.com/coredns/coredns/plugin/pkg/dnstest" "github.com/coredns/coredns/plugin/pkg/dnstest"
"github.com/coredns/coredns/plugin/pkg/transport" "github.com/coredns/coredns/plugin/pkg/transport"
"github.com/coredns/coredns/plugin/test" "github.com/coredns/coredns/plugin/test"
"github.com/coredns/coredns/request" "github.com/coredns/coredns/request"
"github.com/caddyserver/caddy"
"github.com/miekg/dns" "github.com/miekg/dns"
) )
......
...@@ -7,13 +7,12 @@ import ( ...@@ -7,13 +7,12 @@ import (
"strconv" "strconv"
"time" "time"
"github.com/coredns/caddy"
"github.com/coredns/coredns/core/dnsserver" "github.com/coredns/coredns/core/dnsserver"
"github.com/coredns/coredns/plugin" "github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/plugin/pkg/parse" "github.com/coredns/coredns/plugin/pkg/parse"
pkgtls "github.com/coredns/coredns/plugin/pkg/tls" pkgtls "github.com/coredns/coredns/plugin/pkg/tls"
"github.com/coredns/coredns/plugin/pkg/transport" "github.com/coredns/coredns/plugin/pkg/transport"
"github.com/caddyserver/caddy"
) )
func init() { plugin.Register("forward", setup) } func init() { plugin.Register("forward", setup) }
......
...@@ -4,7 +4,7 @@ import ( ...@@ -4,7 +4,7 @@ import (
"strings" "strings"
"testing" "testing"
"github.com/caddyserver/caddy" "github.com/coredns/caddy"
) )
func TestSetupPolicy(t *testing.T) { func TestSetupPolicy(t *testing.T) {
......
...@@ -7,7 +7,7 @@ import ( ...@@ -7,7 +7,7 @@ import (
"strings" "strings"
"testing" "testing"
"github.com/caddyserver/caddy" "github.com/coredns/caddy"
) )
func TestSetup(t *testing.T) { func TestSetup(t *testing.T) {
......
...@@ -4,12 +4,11 @@ import ( ...@@ -4,12 +4,11 @@ import (
"crypto/tls" "crypto/tls"
"fmt" "fmt"
"github.com/coredns/caddy"
"github.com/coredns/coredns/core/dnsserver" "github.com/coredns/coredns/core/dnsserver"
"github.com/coredns/coredns/plugin" "github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/plugin/pkg/parse" "github.com/coredns/coredns/plugin/pkg/parse"
pkgtls "github.com/coredns/coredns/plugin/pkg/tls" pkgtls "github.com/coredns/coredns/plugin/pkg/tls"
"github.com/caddyserver/caddy"
) )
func init() { plugin.Register("grpc", setup) } func init() { plugin.Register("grpc", setup) }
......
...@@ -4,7 +4,7 @@ import ( ...@@ -4,7 +4,7 @@ import (
"strings" "strings"
"testing" "testing"
"github.com/caddyserver/caddy" "github.com/coredns/caddy"
) )
func TestSetupPolicy(t *testing.T) { func TestSetupPolicy(t *testing.T) {
......
...@@ -7,7 +7,7 @@ import ( ...@@ -7,7 +7,7 @@ import (
"strings" "strings"
"testing" "testing"
"github.com/caddyserver/caddy" "github.com/coredns/caddy"
) )
func TestSetup(t *testing.T) { func TestSetup(t *testing.T) {
......
...@@ -5,9 +5,8 @@ import ( ...@@ -5,9 +5,8 @@ import (
"net" "net"
"time" "time"
"github.com/coredns/caddy"
"github.com/coredns/coredns/plugin" "github.com/coredns/coredns/plugin"
"github.com/caddyserver/caddy"
) )
func init() { plugin.Register("health", setup) } func init() { plugin.Register("health", setup) }
......
...@@ -3,7 +3,7 @@ package health ...@@ -3,7 +3,7 @@ package health
import ( import (
"testing" "testing"
"github.com/caddyserver/caddy" "github.com/coredns/caddy"
) )
func TestSetupHealth(t *testing.T) { func TestSetupHealth(t *testing.T) {
......
...@@ -7,11 +7,10 @@ import ( ...@@ -7,11 +7,10 @@ import (
"strings" "strings"
"time" "time"
"github.com/coredns/caddy"
"github.com/coredns/coredns/core/dnsserver" "github.com/coredns/coredns/core/dnsserver"
"github.com/coredns/coredns/plugin" "github.com/coredns/coredns/plugin"
clog "github.com/coredns/coredns/plugin/pkg/log" clog "github.com/coredns/coredns/plugin/pkg/log"
"github.com/caddyserver/caddy"
) )
var log = clog.NewWithPlugin("hosts") var log = clog.NewWithPlugin("hosts")
......
...@@ -3,9 +3,8 @@ package hosts ...@@ -3,9 +3,8 @@ package hosts
import ( import (
"testing" "testing"
"github.com/coredns/caddy"
"github.com/coredns/coredns/plugin/pkg/fall" "github.com/coredns/coredns/plugin/pkg/fall"
"github.com/caddyserver/caddy"
) )
func TestHostsParse(t *testing.T) { func TestHostsParse(t *testing.T) {
......
...@@ -3,11 +3,10 @@ package external ...@@ -3,11 +3,10 @@ package external
import ( import (
"strconv" "strconv"
"github.com/coredns/caddy"
"github.com/coredns/coredns/core/dnsserver" "github.com/coredns/coredns/core/dnsserver"
"github.com/coredns/coredns/plugin" "github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/plugin/pkg/upstream" "github.com/coredns/coredns/plugin/pkg/upstream"
"github.com/caddyserver/caddy"
) )
func init() { plugin.Register("k8s_external", setup) } func init() { plugin.Register("k8s_external", setup) }
......
...@@ -3,7 +3,7 @@ package external ...@@ -3,7 +3,7 @@ package external
import ( import (
"testing" "testing"
"github.com/caddyserver/caddy" "github.com/coredns/caddy"
) )
func TestSetup(t *testing.T) { func TestSetup(t *testing.T) {
......
...@@ -3,7 +3,7 @@ package kubernetes ...@@ -3,7 +3,7 @@ package kubernetes
import ( import (
"net" "net"
"github.com/caddyserver/caddy" "github.com/coredns/caddy"
"github.com/coredns/coredns/core/dnsserver" "github.com/coredns/coredns/core/dnsserver"
) )
......
...@@ -9,6 +9,7 @@ import ( ...@@ -9,6 +9,7 @@ import (
"strings" "strings"
"time" "time"
"github.com/coredns/caddy"
"github.com/coredns/coredns/core/dnsserver" "github.com/coredns/coredns/core/dnsserver"
"github.com/coredns/coredns/plugin" "github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/plugin/pkg/dnsutil" "github.com/coredns/coredns/plugin/pkg/dnsutil"
...@@ -16,7 +17,6 @@ import ( ...@@ -16,7 +17,6 @@ import (
"github.com/coredns/coredns/plugin/pkg/parse" "github.com/coredns/coredns/plugin/pkg/parse"
"github.com/coredns/coredns/plugin/pkg/upstream" "github.com/coredns/coredns/plugin/pkg/upstream"
"github.com/caddyserver/caddy"
"github.com/miekg/dns" "github.com/miekg/dns"
meta "k8s.io/apimachinery/pkg/apis/meta/v1" 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 _ "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
......
...@@ -3,7 +3,7 @@ package kubernetes ...@@ -3,7 +3,7 @@ package kubernetes
import ( import (
"testing" "testing"
"github.com/caddyserver/caddy" "github.com/coredns/caddy"
) )
func TestKubernetesParseReverseZone(t *testing.T) { func TestKubernetesParseReverseZone(t *testing.T) {
......
...@@ -4,9 +4,9 @@ import ( ...@@ -4,9 +4,9 @@ import (
"strings" "strings"
"testing" "testing"
"github.com/coredns/caddy"
"github.com/coredns/coredns/plugin/pkg/fall" "github.com/coredns/coredns/plugin/pkg/fall"
"github.com/caddyserver/caddy"
meta "k8s.io/apimachinery/pkg/apis/meta/v1" meta "k8s.io/apimachinery/pkg/apis/meta/v1"
) )
......
...@@ -3,7 +3,7 @@ package kubernetes ...@@ -3,7 +3,7 @@ package kubernetes
import ( import (
"testing" "testing"
"github.com/caddyserver/caddy" "github.com/coredns/caddy"
) )
func TestKubernetesParseTransfer(t *testing.T) { func TestKubernetesParseTransfer(t *testing.T) {
......
...@@ -3,7 +3,7 @@ package kubernetes ...@@ -3,7 +3,7 @@ package kubernetes
import ( import (
"testing" "testing"
"github.com/caddyserver/caddy" "github.com/coredns/caddy"
) )
func TestKubernetesParseTTL(t *testing.T) { func TestKubernetesParseTTL(t *testing.T) {
......
...@@ -3,11 +3,10 @@ package loadbalance ...@@ -3,11 +3,10 @@ package loadbalance
import ( import (
"fmt" "fmt"
"github.com/coredns/caddy"
"github.com/coredns/coredns/core/dnsserver" "github.com/coredns/coredns/core/dnsserver"
"github.com/coredns/coredns/plugin" "github.com/coredns/coredns/plugin"
clog "github.com/coredns/coredns/plugin/pkg/log" clog "github.com/coredns/coredns/plugin/pkg/log"
"github.com/caddyserver/caddy"
) )
var log = clog.NewWithPlugin("loadbalance") var log = clog.NewWithPlugin("loadbalance")
......
...@@ -4,7 +4,7 @@ import ( ...@@ -4,7 +4,7 @@ import (
"strings" "strings"
"testing" "testing"
"github.com/caddyserver/caddy" "github.com/coredns/caddy"
) )
func TestSetup(t *testing.T) { func TestSetup(t *testing.T) {
......
...@@ -3,12 +3,12 @@ package log ...@@ -3,12 +3,12 @@ package log
import ( import (
"strings" "strings"
"github.com/coredns/caddy"
"github.com/coredns/coredns/core/dnsserver" "github.com/coredns/coredns/core/dnsserver"
"github.com/coredns/coredns/plugin" "github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/plugin/pkg/replacer" "github.com/coredns/coredns/plugin/pkg/replacer"
"github.com/coredns/coredns/plugin/pkg/response" "github.com/coredns/coredns/plugin/pkg/response"
"github.com/caddyserver/caddy"
"github.com/miekg/dns" "github.com/miekg/dns"
) )
......
...@@ -4,9 +4,8 @@ import ( ...@@ -4,9 +4,8 @@ import (
"reflect" "reflect"
"testing" "testing"
"github.com/coredns/caddy"
"github.com/coredns/coredns/plugin/pkg/response" "github.com/coredns/coredns/plugin/pkg/response"
"github.com/caddyserver/caddy"
) )
func TestLogParse(t *testing.T) { func TestLogParse(t *testing.T) {
......
...@@ -6,11 +6,10 @@ import ( ...@@ -6,11 +6,10 @@ import (
"strconv" "strconv"
"time" "time"
"github.com/coredns/caddy"
"github.com/coredns/coredns/core/dnsserver" "github.com/coredns/coredns/core/dnsserver"
"github.com/coredns/coredns/plugin" "github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/plugin/pkg/dnsutil" "github.com/coredns/coredns/plugin/pkg/dnsutil"
"github.com/caddyserver/caddy"
) )
func init() { plugin.Register("loop", setup) } func init() { plugin.Register("loop", setup) }
......
...@@ -3,7 +3,7 @@ package loop ...@@ -3,7 +3,7 @@ package loop
import ( import (
"testing" "testing"
"github.com/caddyserver/caddy" "github.com/coredns/caddy"
) )
func TestSetup(t *testing.T) { func TestSetup(t *testing.T) {
......
package metadata package metadata
import ( import (
"github.com/coredns/caddy"
"github.com/coredns/coredns/core/dnsserver" "github.com/coredns/coredns/core/dnsserver"
"github.com/coredns/coredns/plugin" "github.com/coredns/coredns/plugin"
"github.com/caddyserver/caddy"
) )
func init() { plugin.Register("metadata", setup) } func init() { plugin.Register("metadata", setup) }
......
...@@ -4,7 +4,7 @@ import ( ...@@ -4,7 +4,7 @@ import (
"reflect" "reflect"
"testing" "testing"
"github.com/caddyserver/caddy" "github.com/coredns/caddy"
) )
func TestSetup(t *testing.T) { func TestSetup(t *testing.T) {
......
...@@ -4,14 +4,13 @@ import ( ...@@ -4,14 +4,13 @@ import (
"net" "net"
"runtime" "runtime"
"github.com/coredns/caddy"
"github.com/coredns/coredns/core/dnsserver" "github.com/coredns/coredns/core/dnsserver"
"github.com/coredns/coredns/coremain" "github.com/coredns/coredns/coremain"
"github.com/coredns/coredns/plugin" "github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/plugin/metrics/vars" "github.com/coredns/coredns/plugin/metrics/vars"
clog "github.com/coredns/coredns/plugin/pkg/log" clog "github.com/coredns/coredns/plugin/pkg/log"
"github.com/coredns/coredns/plugin/pkg/uniq" "github.com/coredns/coredns/plugin/pkg/uniq"
"github.com/caddyserver/caddy"
) )
var ( var (
......
...@@ -3,7 +3,7 @@ package metrics ...@@ -3,7 +3,7 @@ package metrics
import ( import (
"testing" "testing"
"github.com/caddyserver/caddy" "github.com/coredns/caddy"
) )
func TestPrometheusParse(t *testing.T) { func TestPrometheusParse(t *testing.T) {
......
...@@ -4,10 +4,9 @@ import ( ...@@ -4,10 +4,9 @@ import (
"os" "os"
"strings" "strings"
"github.com/coredns/caddy"
"github.com/coredns/coredns/core/dnsserver" "github.com/coredns/coredns/core/dnsserver"
"github.com/coredns/coredns/plugin" "github.com/coredns/coredns/plugin"
"github.com/caddyserver/caddy"
) )
func init() { plugin.Register("nsid", setup) } func init() { plugin.Register("nsid", setup) }
......
...@@ -5,7 +5,7 @@ import ( ...@@ -5,7 +5,7 @@ import (
"strings" "strings"
"testing" "testing"
"github.com/caddyserver/caddy" "github.com/coredns/caddy"
) )
func TestSetupNsid(t *testing.T) { func TestSetupNsid(t *testing.T) {
......
...@@ -4,9 +4,8 @@ package parse ...@@ -4,9 +4,8 @@ package parse
import ( import (
"fmt" "fmt"
"github.com/coredns/caddy"
"github.com/coredns/coredns/plugin/pkg/transport" "github.com/coredns/coredns/plugin/pkg/transport"
"github.com/caddyserver/caddy"
) )
// Transfer parses transfer statements: 'transfer [to|from] [address...]'. // Transfer parses transfer statements: 'transfer [to|from] [address...]'.
......
...@@ -3,7 +3,7 @@ package parse ...@@ -3,7 +3,7 @@ package parse
import ( import (
"testing" "testing"
"github.com/caddyserver/caddy" "github.com/coredns/caddy"
) )
func TestTransfer(t *testing.T) { func TestTransfer(t *testing.T) {
......
...@@ -4,10 +4,9 @@ import ( ...@@ -4,10 +4,9 @@ import (
"net" "net"
"strconv" "strconv"
"github.com/coredns/caddy"
"github.com/coredns/coredns/plugin" "github.com/coredns/coredns/plugin"
clog "github.com/coredns/coredns/plugin/pkg/log" clog "github.com/coredns/coredns/plugin/pkg/log"
"github.com/caddyserver/caddy"
) )
var log = clog.NewWithPlugin("pprof") var log = clog.NewWithPlugin("pprof")
......
...@@ -3,7 +3,7 @@ package pprof ...@@ -3,7 +3,7 @@ package pprof
import ( import (
"testing" "testing"
"github.com/caddyserver/caddy" "github.com/coredns/caddy"
) )
func TestPProf(t *testing.T) { func TestPProf(t *testing.T) {
......
...@@ -3,10 +3,9 @@ package ready ...@@ -3,10 +3,9 @@ package ready
import ( import (
"net" "net"
"github.com/coredns/caddy"
"github.com/coredns/coredns/core/dnsserver" "github.com/coredns/coredns/core/dnsserver"
"github.com/coredns/coredns/plugin" "github.com/coredns/coredns/plugin"
"github.com/caddyserver/caddy"
) )
func init() { plugin.Register("ready", setup) } func init() { plugin.Register("ready", setup) }
......
...@@ -3,7 +3,7 @@ package ready ...@@ -3,7 +3,7 @@ package ready
import ( import (
"testing" "testing"
"github.com/caddyserver/caddy" "github.com/coredns/caddy"
) )
func TestSetupReady(t *testing.T) { func TestSetupReady(t *testing.T) {
......
package plugin 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. // Register registers your plugin with CoreDNS and allows it to be called when the server is running.
func Register(name string, action caddy.SetupFunc) { func Register(name string, action caddy.SetupFunc) {
......
...@@ -9,8 +9,9 @@ import ( ...@@ -9,8 +9,9 @@ import (
"sync" "sync"
"time" "time"
"github.com/caddyserver/caddy" "github.com/coredns/caddy"
"github.com/caddyserver/caddy/caddyfile" "github.com/coredns/caddy/caddyfile"
"github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus"
) )
......
...@@ -6,10 +6,9 @@ import ( ...@@ -6,10 +6,9 @@ import (
"sync" "sync"
"time" "time"
"github.com/coredns/caddy"
"github.com/coredns/coredns/plugin" "github.com/coredns/coredns/plugin"
clog "github.com/coredns/coredns/plugin/pkg/log" clog "github.com/coredns/coredns/plugin/pkg/log"
"github.com/caddyserver/caddy"
) )
var log = clog.NewWithPlugin("reload") var log = clog.NewWithPlugin("reload")
......
...@@ -3,7 +3,7 @@ package reload ...@@ -3,7 +3,7 @@ package reload
import ( import (
"testing" "testing"
"github.com/caddyserver/caddy" "github.com/coredns/caddy"
) )
func TestSetupReload(t *testing.T) { func TestSetupReload(t *testing.T) {
......
...@@ -3,9 +3,8 @@ ...@@ -3,9 +3,8 @@
package rewrite package rewrite
import ( import (
"github.com/coredns/caddy"
"github.com/coredns/coredns/plugin/pkg/fuzz" "github.com/coredns/coredns/plugin/pkg/fuzz"
"github.com/caddyserver/caddy"
) )
// Fuzz fuzzes rewrite. // Fuzz fuzzes rewrite.
......
package rewrite package rewrite
import ( import (
"github.com/coredns/caddy"
"github.com/coredns/coredns/core/dnsserver" "github.com/coredns/coredns/core/dnsserver"
"github.com/coredns/coredns/plugin" "github.com/coredns/coredns/plugin"
"github.com/caddyserver/caddy"
) )
func init() { plugin.Register("rewrite", setup) } func init() { plugin.Register("rewrite", setup) }
......
...@@ -4,7 +4,7 @@ import ( ...@@ -4,7 +4,7 @@ import (
"strings" "strings"
"testing" "testing"
"github.com/caddyserver/caddy" "github.com/coredns/caddy"
) )
func TestParse(t *testing.T) { func TestParse(t *testing.T) {
......
...@@ -3,11 +3,10 @@ package root ...@@ -3,11 +3,10 @@ package root
import ( import (
"os" "os"
"github.com/coredns/caddy"
"github.com/coredns/coredns/core/dnsserver" "github.com/coredns/coredns/core/dnsserver"
"github.com/coredns/coredns/plugin" "github.com/coredns/coredns/plugin"
clog "github.com/coredns/coredns/plugin/pkg/log" clog "github.com/coredns/coredns/plugin/pkg/log"
"github.com/caddyserver/caddy"
) )
var log = clog.NewWithPlugin("root") var log = clog.NewWithPlugin("root")
......
...@@ -8,9 +8,8 @@ import ( ...@@ -8,9 +8,8 @@ import (
"strings" "strings"
"testing" "testing"
"github.com/coredns/caddy"
"github.com/coredns/coredns/core/dnsserver" "github.com/coredns/coredns/core/dnsserver"
"github.com/caddyserver/caddy"
) )
func TestRoot(t *testing.T) { func TestRoot(t *testing.T) {
......
...@@ -7,6 +7,7 @@ import ( ...@@ -7,6 +7,7 @@ import (
"strings" "strings"
"time" "time"
"github.com/coredns/caddy"
"github.com/coredns/coredns/core/dnsserver" "github.com/coredns/coredns/core/dnsserver"
"github.com/coredns/coredns/plugin" "github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/plugin/pkg/fall" "github.com/coredns/coredns/plugin/pkg/fall"
...@@ -19,7 +20,6 @@ import ( ...@@ -19,7 +20,6 @@ import (
"github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/route53" "github.com/aws/aws-sdk-go/service/route53"
"github.com/aws/aws-sdk-go/service/route53/route53iface" "github.com/aws/aws-sdk-go/service/route53/route53iface"
"github.com/caddyserver/caddy"
) )
var log = clog.NewWithPlugin("route53") var log = clog.NewWithPlugin("route53")
......
...@@ -3,9 +3,10 @@ package route53 ...@@ -3,9 +3,10 @@ package route53
import ( import (
"testing" "testing"
"github.com/coredns/caddy"
"github.com/aws/aws-sdk-go/aws/credentials" "github.com/aws/aws-sdk-go/aws/credentials"
"github.com/aws/aws-sdk-go/service/route53/route53iface" "github.com/aws/aws-sdk-go/service/route53/route53iface"
"github.com/caddyserver/caddy"
) )
func TestSetupRoute53(t *testing.T) { func TestSetupRoute53(t *testing.T) {
......
package secondary package secondary
import ( import (
"github.com/coredns/caddy"
"github.com/coredns/coredns/core/dnsserver" "github.com/coredns/coredns/core/dnsserver"
"github.com/coredns/coredns/plugin" "github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/plugin/file" "github.com/coredns/coredns/plugin/file"
"github.com/coredns/coredns/plugin/pkg/parse" "github.com/coredns/coredns/plugin/pkg/parse"
"github.com/coredns/coredns/plugin/pkg/upstream" "github.com/coredns/coredns/plugin/pkg/upstream"
"github.com/caddyserver/caddy"
) )
func init() { plugin.Register("secondary", setup) } func init() { plugin.Register("secondary", setup) }
......
...@@ -3,7 +3,7 @@ package secondary ...@@ -3,7 +3,7 @@ package secondary
import ( import (
"testing" "testing"
"github.com/caddyserver/caddy" "github.com/coredns/caddy"
) )
func TestSecondaryParse(t *testing.T) { func TestSecondaryParse(t *testing.T) {
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment