Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
C
Coredns
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Railgun
Coredns
Commits
0930eb8b
Commit
0930eb8b
authored
Apr 22, 2018
by
Miek Gieben
Committed by
GitHub
Apr 22, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
all: fix plugin import ordering (#1717)
Got a bit messed up with stb lib "context" usage.
parent
69a956f0
Changes
87
Show whitespace changes
Inline
Side-by-side
Showing
87 changed files
with
100 additions
and
176 deletions
+100
-176
plugin/auto/auto.go
plugin/auto/auto.go
+1
-2
plugin/autopath/autopath.go
plugin/autopath/autopath.go
+2
-2
plugin/autopath/autopath_test.go
plugin/autopath/autopath_test.go
+1
-2
plugin/backend.go
plugin/backend.go
+2
-2
plugin/cache/cache_test.go
plugin/cache/cache_test.go
+1
-2
plugin/cache/handler.go
plugin/cache/handler.go
+1
-2
plugin/cache/prefech_test.go
plugin/cache/prefech_test.go
+1
-2
plugin/cache/spoof_test.go
plugin/cache/spoof_test.go
+1
-2
plugin/chaos/chaos.go
plugin/chaos/chaos.go
+1
-2
plugin/chaos/chaos_test.go
plugin/chaos/chaos_test.go
+1
-2
plugin/dnssec/handler.go
plugin/dnssec/handler.go
+1
-2
plugin/dnssec/handler_test.go
plugin/dnssec/handler_test.go
+1
-2
plugin/dnstap/handler.go
plugin/dnstap/handler.go
+1
-2
plugin/dnstap/handler_test.go
plugin/dnstap/handler_test.go
+1
-3
plugin/dnstap/test/helpers.go
plugin/dnstap/test/helpers.go
+1
-2
plugin/erratic/erratic.go
plugin/erratic/erratic.go
+1
-2
plugin/erratic/erratic_test.go
plugin/erratic/erratic_test.go
+1
-2
plugin/errors/errors.go
plugin/errors/errors.go
+1
-2
plugin/errors/errors_test.go
plugin/errors/errors_test.go
+1
-2
plugin/etcd/etcd.go
plugin/etcd/etcd.go
+1
-2
plugin/etcd/handler.go
plugin/etcd/handler.go
+2
-2
plugin/etcd/lookup_test.go
plugin/etcd/lookup_test.go
+1
-2
plugin/etcd/setup.go
plugin/etcd/setup.go
+1
-2
plugin/etcd/stub_handler.go
plugin/etcd/stub_handler.go
+1
-2
plugin/etcd/xfr.go
plugin/etcd/xfr.go
+2
-2
plugin/federation/federation.go
plugin/federation/federation.go
+2
-2
plugin/federation/federation_test.go
plugin/federation/federation_test.go
+1
-2
plugin/file/cname_test.go
plugin/file/cname_test.go
+1
-2
plugin/file/delegation_test.go
plugin/file/delegation_test.go
+1
-2
plugin/file/dname_test.go
plugin/file/dname_test.go
+1
-2
plugin/file/dnssec_test.go
plugin/file/dnssec_test.go
+1
-2
plugin/file/ds_test.go
plugin/file/ds_test.go
+1
-2
plugin/file/ent_test.go
plugin/file/ent_test.go
+1
-2
plugin/file/file.go
plugin/file/file.go
+1
-2
plugin/file/glue_test.go
plugin/file/glue_test.go
+1
-2
plugin/file/lookup_test.go
plugin/file/lookup_test.go
+1
-2
plugin/file/wildcard_test.go
plugin/file/wildcard_test.go
+1
-2
plugin/file/xfr.go
plugin/file/xfr.go
+1
-2
plugin/forward/connect.go
plugin/forward/connect.go
+1
-2
plugin/forward/forward.go
plugin/forward/forward.go
+1
-2
plugin/forward/health_test.go
plugin/forward/health_test.go
+1
-2
plugin/forward/lookup.go
plugin/forward/lookup.go
+2
-2
plugin/hosts/hosts.go
plugin/hosts/hosts.go
+2
-2
plugin/hosts/hosts_test.go
plugin/hosts/hosts_test.go
+1
-2
plugin/kubernetes/handler.go
plugin/kubernetes/handler.go
+2
-2
plugin/kubernetes/handler_pod_disabled_test.go
plugin/kubernetes/handler_pod_disabled_test.go
+1
-2
plugin/kubernetes/handler_pod_insecure_test.go
plugin/kubernetes/handler_pod_insecure_test.go
+1
-2
plugin/kubernetes/handler_pod_verified_test.go
plugin/kubernetes/handler_pod_verified_test.go
+1
-2
plugin/kubernetes/handler_test.go
plugin/kubernetes/handler_test.go
+1
-2
plugin/kubernetes/kubernetes_apex_test.go
plugin/kubernetes/kubernetes_apex_test.go
+1
-2
plugin/kubernetes/reverse_test.go
plugin/kubernetes/reverse_test.go
+1
-2
plugin/kubernetes/xfr.go
plugin/kubernetes/xfr.go
+1
-2
plugin/kubernetes/xfr_test.go
plugin/kubernetes/xfr_test.go
+1
-2
plugin/loadbalance/handler.go
plugin/loadbalance/handler.go
+2
-2
plugin/loadbalance/loadbalance_test.go
plugin/loadbalance/loadbalance_test.go
+1
-2
plugin/log/log.go
plugin/log/log.go
+1
-2
plugin/log/log_test.go
plugin/log/log_test.go
+1
-2
plugin/metrics/context.go
plugin/metrics/context.go
+2
-2
plugin/metrics/handler.go
plugin/metrics/handler.go
+2
-2
plugin/metrics/metrics_test.go
plugin/metrics/metrics_test.go
+1
-2
plugin/metrics/vars/report.go
plugin/metrics/vars/report.go
+1
-2
plugin/nsid/nsid.go
plugin/nsid/nsid.go
+1
-2
plugin/nsid/nsid_test.go
plugin/nsid/nsid_test.go
+1
-2
plugin/pkg/fuzz/do.go
plugin/pkg/fuzz/do.go
+2
-2
plugin/plugin.go
plugin/plugin.go
+1
-2
plugin/proxy/dns.go
plugin/proxy/dns.go
+1
-2
plugin/proxy/dnstap.go
plugin/proxy/dnstap.go
+1
-2
plugin/proxy/dnstap_test.go
plugin/proxy/dnstap_test.go
+1
-2
plugin/proxy/exchanger.go
plugin/proxy/exchanger.go
+2
-2
plugin/proxy/google.go
plugin/proxy/google.go
+1
-2
plugin/proxy/grpc.go
plugin/proxy/grpc.go
+1
-2
plugin/proxy/grpc_test.go
plugin/proxy/grpc_test.go
+1
-2
plugin/proxy/lookup.go
plugin/proxy/lookup.go
+1
-2
plugin/proxy/proxy.go
plugin/proxy/proxy.go
+1
-2
plugin/reverse/reverse.go
plugin/reverse/reverse.go
+1
-3
plugin/reverse/reverse_test.go
plugin/reverse/reverse_test.go
+1
-2
plugin/rewrite/reverter_test.go
plugin/rewrite/reverter_test.go
+1
-2
plugin/rewrite/rewrite.go
plugin/rewrite/rewrite.go
+1
-2
plugin/rewrite/rewrite_test.go
plugin/rewrite/rewrite_test.go
+1
-2
plugin/route53/route53.go
plugin/route53/route53.go
+1
-2
plugin/route53/route53_test.go
plugin/route53/route53_test.go
+1
-2
plugin/template/template.go
plugin/template/template.go
+1
-2
plugin/template/template_test.go
plugin/template/template_test.go
+1
-2
plugin/test/helpers.go
plugin/test/helpers.go
+1
-2
plugin/trace/trace.go
plugin/trace/trace.go
+1
-2
plugin/whoami/whoami.go
plugin/whoami/whoami.go
+1
-2
plugin/whoami/whoami_test.go
plugin/whoami/whoami_test.go
+1
-2
No files found.
plugin/auto/auto.go
View file @
0930eb8b
...
...
@@ -2,6 +2,7 @@
package
auto
import
(
"context"
"regexp"
"time"
...
...
@@ -11,8 +12,6 @@ import (
"github.com/coredns/coredns/plugin/pkg/upstream"
"github.com/coredns/coredns/request"
"context"
"github.com/miekg/dns"
)
...
...
plugin/autopath/autopath.go
View file @
0930eb8b
...
...
@@ -32,13 +32,13 @@ func (m Plugins ) AutoPath(state request.Request) []string {
package
autopath
import
(
"context"
"github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/plugin/pkg/dnsutil"
"github.com/coredns/coredns/plugin/pkg/nonwriter"
"github.com/coredns/coredns/request"
"context"
"github.com/miekg/dns"
)
...
...
plugin/autopath/autopath_test.go
View file @
0930eb8b
package
autopath
import
(
"context"
"testing"
"github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/plugin/pkg/dnstest"
"github.com/coredns/coredns/plugin/test"
"context"
"github.com/miekg/dns"
)
...
...
plugin/backend.go
View file @
0930eb8b
package
plugin
import
(
"context"
"github.com/coredns/coredns/plugin/etcd/msg"
"github.com/coredns/coredns/request"
"github.com/miekg/dns"
"context"
)
// ServiceBackend defines a (dynamic) backend that returns a slice of service definitions.
...
...
plugin/cache/cache_test.go
View file @
0930eb8b
package
cache
import
(
"context"
"testing"
"time"
"context"
"github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/plugin/pkg/response"
"github.com/coredns/coredns/plugin/test"
...
...
plugin/cache/handler.go
View file @
0930eb8b
package
cache
import
(
"context"
"math"
"sync"
"time"
...
...
@@ -8,8 +9,6 @@ import (
"github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/request"
"context"
"github.com/miekg/dns"
"github.com/prometheus/client_golang/prometheus"
)
...
...
plugin/cache/prefech_test.go
View file @
0930eb8b
package
cache
import
(
"context"
"fmt"
"testing"
"time"
...
...
@@ -8,8 +9,6 @@ import (
"github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/plugin/pkg/dnstest"
"context"
"github.com/coredns/coredns/plugin/test"
"github.com/miekg/dns"
)
...
...
plugin/cache/spoof_test.go
View file @
0930eb8b
package
cache
import
(
"context"
"testing"
"github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/plugin/pkg/dnstest"
"context"
"github.com/coredns/coredns/plugin/test"
"github.com/miekg/dns"
)
...
...
plugin/chaos/chaos.go
View file @
0930eb8b
...
...
@@ -2,13 +2,12 @@
package
chaos
import
(
"context"
"os"
"github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/request"
"context"
"github.com/miekg/dns"
)
...
...
plugin/chaos/chaos_test.go
View file @
0930eb8b
package
chaos
import
(
"context"
"testing"
"github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/plugin/pkg/dnstest"
"github.com/coredns/coredns/plugin/test"
"context"
"github.com/miekg/dns"
)
...
...
plugin/dnssec/handler.go
View file @
0930eb8b
package
dnssec
import
(
"context"
"sync"
"github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/request"
"context"
"github.com/miekg/dns"
"github.com/prometheus/client_golang/prometheus"
)
...
...
plugin/dnssec/handler_test.go
View file @
0930eb8b
package
dnssec
import
(
"context"
"strings"
"testing"
...
...
@@ -9,8 +10,6 @@ import (
"github.com/coredns/coredns/plugin/pkg/dnstest"
"github.com/coredns/coredns/plugin/test"
"context"
"github.com/miekg/dns"
)
...
...
plugin/dnstap/handler.go
View file @
0930eb8b
package
dnstap
import
(
"context"
"time"
"github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/plugin/dnstap/taprw"
"context"
tap
"github.com/dnstap/golang-dnstap"
"github.com/miekg/dns"
)
...
...
plugin/dnstap/handler_test.go
View file @
0930eb8b
package
dnstap
import
(
"context"
"errors"
"net"
"strings"
...
...
@@ -9,9 +10,6 @@ import (
"github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/plugin/dnstap/test"
mwtest
"github.com/coredns/coredns/plugin/test"
"context"
tap
"github.com/dnstap/golang-dnstap"
"github.com/miekg/dns"
)
...
...
plugin/dnstap/test/helpers.go
View file @
0930eb8b
package
test
import
(
"context"
"net"
"reflect"
"github.com/coredns/coredns/plugin/dnstap/msg"
"context"
tap
"github.com/dnstap/golang-dnstap"
)
...
...
plugin/erratic/erratic.go
View file @
0930eb8b
...
...
@@ -2,13 +2,12 @@
package
erratic
import
(
"context"
"sync/atomic"
"time"
"github.com/coredns/coredns/request"
"context"
"github.com/miekg/dns"
)
...
...
plugin/erratic/erratic_test.go
View file @
0930eb8b
package
erratic
import
(
"context"
"testing"
"github.com/coredns/coredns/plugin/pkg/dnstest"
"github.com/coredns/coredns/plugin/test"
"context"
"github.com/miekg/dns"
)
...
...
plugin/errors/errors.go
View file @
0930eb8b
...
...
@@ -2,6 +2,7 @@
package
errors
import
(
"context"
"fmt"
"log"
"runtime"
...
...
@@ -11,8 +12,6 @@ import (
"github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/request"
"context"
"github.com/miekg/dns"
)
...
...
plugin/errors/errors_test.go
View file @
0930eb8b
...
...
@@ -2,6 +2,7 @@ package errors
import
(
"bytes"
"context"
"errors"
"fmt"
"log"
...
...
@@ -12,8 +13,6 @@ import (
"github.com/coredns/coredns/plugin/pkg/dnstest"
"github.com/coredns/coredns/plugin/test"
"context"
"github.com/miekg/dns"
)
...
...
plugin/etcd/etcd.go
View file @
0930eb8b
...
...
@@ -2,6 +2,7 @@
package
etcd
import
(
"context"
"encoding/json"
"fmt"
"strings"
...
...
@@ -13,8 +14,6 @@ import (
"github.com/coredns/coredns/plugin/proxy"
"github.com/coredns/coredns/request"
"context"
"github.com/coredns/coredns/plugin/pkg/upstream"
etcdc
"github.com/coreos/etcd/client"
"github.com/miekg/dns"
...
...
plugin/etcd/handler.go
View file @
0930eb8b
package
etcd
import
(
"context"
"github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/plugin/pkg/dnsutil"
"github.com/coredns/coredns/request"
"context"
"github.com/miekg/dns"
)
...
...
plugin/etcd/lookup_test.go
View file @
0930eb8b
...
...
@@ -3,6 +3,7 @@
package
etcd
import
(
"context"
"encoding/json"
"testing"
"time"
...
...
@@ -14,8 +15,6 @@ import (
"github.com/coredns/coredns/plugin/proxy"
"github.com/coredns/coredns/plugin/test"
"context"
etcdc
"github.com/coreos/etcd/client"
"github.com/miekg/dns"
)
...
...
plugin/etcd/setup.go
View file @
0930eb8b
package
etcd
import
(
"context"
"crypto/tls"
"github.com/coredns/coredns/core/dnsserver"
...
...
@@ -9,8 +10,6 @@ import (
"github.com/coredns/coredns/plugin/pkg/upstream"
"github.com/coredns/coredns/plugin/proxy"
"context"
etcdc
"github.com/coreos/etcd/client"
"github.com/mholt/caddy"
)
...
...
plugin/etcd/stub_handler.go
View file @
0930eb8b
package
etcd
import
(
"context"
"errors"
"github.com/coredns/coredns/plugin/pkg/log"
"github.com/coredns/coredns/request"
"context"
"github.com/miekg/dns"
)
...
...
plugin/etcd/xfr.go
View file @
0930eb8b
package
etcd
import
(
"time"
"context"
"time"
"github.com/coredns/coredns/request"
"github.com/miekg/dns"
)
...
...
plugin/federation/federation.go
View file @
0930eb8b
...
...
@@ -14,14 +14,14 @@ Federation is only useful in conjunction with the kubernetes plugin, without it
package
federation
import
(
"context"
"github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/plugin/etcd/msg"
"github.com/coredns/coredns/plugin/pkg/dnsutil"
"github.com/coredns/coredns/plugin/pkg/nonwriter"
"github.com/coredns/coredns/request"
"context"
"github.com/miekg/dns"
)
...
...
plugin/federation/federation_test.go
View file @
0930eb8b
package
federation
import
(
"context"
"testing"
"github.com/coredns/coredns/plugin/kubernetes"
"github.com/coredns/coredns/plugin/pkg/dnstest"
"github.com/coredns/coredns/plugin/test"
"context"
"github.com/miekg/dns"
)
...
...
plugin/file/cname_test.go
View file @
0930eb8b
package
file
import
(
"context"
"strings"
"testing"
...
...
@@ -8,8 +9,6 @@ import (
"github.com/coredns/coredns/plugin/pkg/upstream"
"github.com/coredns/coredns/plugin/test"
"context"
"github.com/miekg/dns"
)
...
...
plugin/file/delegation_test.go
View file @
0930eb8b
package
file
import
(
"context"
"strings"
"testing"
"github.com/coredns/coredns/plugin/pkg/dnstest"
"github.com/coredns/coredns/plugin/test"
"context"
"github.com/miekg/dns"
)
...
...
plugin/file/dname_test.go
View file @
0930eb8b
package
file
import
(
"context"
"strings"
"testing"
"github.com/coredns/coredns/plugin/pkg/dnstest"
"github.com/coredns/coredns/plugin/test"
"context"
"github.com/miekg/dns"
)
...
...
plugin/file/dnssec_test.go
View file @
0930eb8b
package
file
import
(
"context"
"strings"
"testing"
"github.com/coredns/coredns/plugin/pkg/dnstest"
"github.com/coredns/coredns/plugin/test"
"context"
"github.com/miekg/dns"
)
...
...
plugin/file/ds_test.go
View file @
0930eb8b
package
file
import
(
"context"
"strings"
"testing"
"github.com/coredns/coredns/plugin/pkg/dnstest"
"github.com/coredns/coredns/plugin/test"
"context"
"github.com/miekg/dns"
)
...
...
plugin/file/ent_test.go
View file @
0930eb8b
package
file
import
(
"context"
"strings"
"testing"
"github.com/coredns/coredns/plugin/pkg/dnstest"
"github.com/coredns/coredns/plugin/test"
"context"
"github.com/miekg/dns"
)
...
...
plugin/file/file.go
View file @
0930eb8b
...
...
@@ -2,6 +2,7 @@
package
file
import
(
"context"
"fmt"
"io"
...
...
@@ -9,8 +10,6 @@ import (
"github.com/coredns/coredns/plugin/pkg/log"
"github.com/coredns/coredns/request"
"context"
"github.com/miekg/dns"
)
...
...
plugin/file/glue_test.go
View file @
0930eb8b
package
file
import
(
"context"
"strings"
"testing"
"github.com/coredns/coredns/plugin/pkg/dnstest"
"github.com/coredns/coredns/plugin/test"
"context"
"github.com/miekg/dns"
)
...
...
plugin/file/lookup_test.go
View file @
0930eb8b
package
file
import
(
"context"
"strings"
"testing"
"github.com/coredns/coredns/plugin/pkg/dnstest"
"github.com/coredns/coredns/plugin/test"
"context"
"github.com/miekg/dns"
)
...
...
plugin/file/wildcard_test.go
View file @
0930eb8b
package
file
import
(
"context"
"strings"
"testing"
"github.com/coredns/coredns/plugin/pkg/dnstest"
"github.com/coredns/coredns/plugin/test"
"context"
"github.com/miekg/dns"
)
...
...
plugin/file/xfr.go
View file @
0930eb8b
package
file
import
(
"context"
"fmt"
"github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/plugin/pkg/log"
"github.com/coredns/coredns/request"
"context"
"github.com/miekg/dns"
)
...
...
plugin/forward/connect.go
View file @
0930eb8b
...
...
@@ -5,6 +5,7 @@
package
forward
import
(
"context"
"io"
"strconv"
"sync/atomic"
...
...
@@ -12,8 +13,6 @@ import (
"github.com/coredns/coredns/request"
"context"
"github.com/miekg/dns"
)
...
...
plugin/forward/forward.go
View file @
0930eb8b
...
...
@@ -5,6 +5,7 @@
package
forward
import
(
"context"
"crypto/tls"
"errors"
"time"
...
...
@@ -12,8 +13,6 @@ import (
"github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/request"
"context"
"github.com/miekg/dns"
ot
"github.com/opentracing/opentracing-go"
)
...
...
plugin/forward/health_test.go
View file @
0930eb8b
package
forward
import
(
"context"
"sync/atomic"
"testing"
"time"
...
...
@@ -8,8 +9,6 @@ import (
"github.com/coredns/coredns/plugin/pkg/dnstest"
"github.com/coredns/coredns/plugin/test"
"context"
"github.com/miekg/dns"
)
...
...
plugin/forward/lookup.go
View file @
0930eb8b
...
...
@@ -5,10 +5,10 @@
package
forward
import
(
"github.com/coredns/coredns/request"
"context"
"github.com/coredns/coredns/request"
"github.com/miekg/dns"
)
...
...
plugin/hosts/hosts.go
View file @
0930eb8b
package
hosts
import
(
"net"
"context"
"net"
"github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/plugin/pkg/dnsutil"
"github.com/coredns/coredns/plugin/pkg/fall"
"github.com/coredns/coredns/request"
"github.com/miekg/dns"
)
...
...
plugin/hosts/hosts_test.go
View file @
0930eb8b
package
hosts
import
(
"context"
"strings"
"testing"
"github.com/coredns/coredns/plugin/pkg/dnstest"
"github.com/coredns/coredns/plugin/test"
"context"
"github.com/miekg/dns"
)
...
...
plugin/kubernetes/handler.go
View file @
0930eb8b
package
kubernetes
import
(
"context"
"github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/plugin/pkg/dnsutil"
"github.com/coredns/coredns/request"
"context"
"github.com/miekg/dns"
)
...
...
plugin/kubernetes/handler_pod_disabled_test.go
View file @
0930eb8b
package
kubernetes
import
(
"context"
"testing"
"github.com/coredns/coredns/plugin/pkg/dnstest"
"github.com/coredns/coredns/plugin/test"
"context"
"github.com/miekg/dns"
)
...
...
plugin/kubernetes/handler_pod_insecure_test.go
View file @
0930eb8b
package
kubernetes
import
(
"context"
"testing"
"github.com/coredns/coredns/plugin/pkg/dnstest"
"github.com/coredns/coredns/plugin/test"
"context"
"github.com/miekg/dns"
)
...
...
plugin/kubernetes/handler_pod_verified_test.go
View file @
0930eb8b
package
kubernetes
import
(
"context"
"testing"
"github.com/coredns/coredns/plugin/pkg/dnstest"
"github.com/coredns/coredns/plugin/test"
"context"
"github.com/miekg/dns"
)
...
...
plugin/kubernetes/handler_test.go
View file @
0930eb8b
package
kubernetes
import
(
"context"
"testing"
"time"
"github.com/coredns/coredns/plugin/pkg/dnstest"
"github.com/coredns/coredns/plugin/test"
"context"
"github.com/miekg/dns"
api
"k8s.io/api/core/v1"
meta
"k8s.io/apimachinery/pkg/apis/meta/v1"
...
...
plugin/kubernetes/kubernetes_apex_test.go
View file @
0930eb8b
package
kubernetes
import
(
"context"
"testing"
"github.com/coredns/coredns/plugin/pkg/dnstest"
"github.com/coredns/coredns/plugin/test"
"context"
"github.com/miekg/dns"
)
...
...
plugin/kubernetes/reverse_test.go
View file @
0930eb8b
package
kubernetes
import
(
"context"
"testing"
"github.com/coredns/coredns/plugin/pkg/dnstest"
"github.com/coredns/coredns/plugin/test"
"context"
"github.com/miekg/dns"
api
"k8s.io/api/core/v1"
meta
"k8s.io/apimachinery/pkg/apis/meta/v1"
...
...
plugin/kubernetes/xfr.go
View file @
0930eb8b
package
kubernetes
import
(
"context"
"math"
"net"
"strings"
...
...
@@ -10,8 +11,6 @@ import (
"github.com/coredns/coredns/plugin/pkg/log"
"github.com/coredns/coredns/request"
"context"
"github.com/miekg/dns"
api
"k8s.io/api/core/v1"
)
...
...
plugin/kubernetes/xfr_test.go
View file @
0930eb8b
package
kubernetes
import
(
"context"
"strings"
"testing"
"context"
"github.com/coredns/coredns/plugin/pkg/dnstest"
"github.com/coredns/coredns/plugin/test"
api
"k8s.io/api/core/v1"
...
...
plugin/loadbalance/handler.go
View file @
0930eb8b
...
...
@@ -2,10 +2,10 @@
package
loadbalance
import
(
"github.com/coredns/coredns/plugin"
"context"
"github.com/coredns/coredns/plugin"
"github.com/miekg/dns"
)
...
...
plugin/loadbalance/loadbalance_test.go
View file @
0930eb8b
package
loadbalance
import
(
"context"
"testing"
"github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/plugin/pkg/dnstest"
"github.com/coredns/coredns/plugin/test"
"context"
"github.com/miekg/dns"
)
...
...
plugin/log/log.go
View file @
0930eb8b
...
...
@@ -2,6 +2,7 @@
package
log
import
(
"context"
"log"
"time"
...
...
@@ -13,8 +14,6 @@ import (
"github.com/coredns/coredns/plugin/pkg/response"
"github.com/coredns/coredns/request"
"context"
"github.com/miekg/dns"
)
...
...
plugin/log/log_test.go
View file @
0930eb8b
...
...
@@ -2,6 +2,7 @@ package log
import
(
"bytes"
"context"
"log"
"strings"
"testing"
...
...
@@ -10,8 +11,6 @@ import (
"github.com/coredns/coredns/plugin/pkg/response"
"github.com/coredns/coredns/plugin/test"
"context"
"github.com/miekg/dns"
)
...
...
plugin/metrics/context.go
View file @
0930eb8b
package
metrics
import
(
"github.com/coredns/coredns/plugin/metrics/vars"
"context"
"github.com/coredns/coredns/plugin/metrics/vars"
)
// WithServer returns the current server handling the request. It returns the
...
...
plugin/metrics/handler.go
View file @
0930eb8b
package
metrics
import
(
"context"
"github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/plugin/metrics/vars"
"github.com/coredns/coredns/plugin/pkg/dnstest"
"github.com/coredns/coredns/plugin/pkg/rcode"
"github.com/coredns/coredns/request"
"context"
"github.com/miekg/dns"
)
...
...
plugin/metrics/metrics_test.go
View file @
0930eb8b
package
metrics
import
(
"context"
"testing"
"github.com/coredns/coredns/plugin"
...
...
@@ -8,8 +9,6 @@ import (
"github.com/coredns/coredns/plugin/pkg/dnstest"
"github.com/coredns/coredns/plugin/test"
"context"
"github.com/miekg/dns"
)
...
...
plugin/metrics/vars/report.go
View file @
0930eb8b
package
vars
import
(
"context"
"time"
"github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/request"
"context"
"github.com/miekg/dns"
)
...
...
plugin/nsid/nsid.go
View file @
0930eb8b
...
...
@@ -2,12 +2,11 @@
package
nsid
import
(
"context"
"encoding/hex"
"github.com/coredns/coredns/plugin"
"context"
"github.com/miekg/dns"
)
...
...
plugin/nsid/nsid_test.go
View file @
0930eb8b
package
nsid
import
(
"context"
"encoding/hex"
"testing"
...
...
@@ -9,8 +10,6 @@ import (
"github.com/coredns/coredns/plugin/test"
"github.com/coredns/coredns/plugin/whoami"
"context"
"github.com/miekg/dns"
)
...
...
plugin/pkg/fuzz/do.go
View file @
0930eb8b
...
...
@@ -2,11 +2,11 @@
package
fuzz
import
(
"context"
"github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/plugin/test"
"context"
"github.com/miekg/dns"
)
...
...
plugin/plugin.go
View file @
0930eb8b
...
...
@@ -2,11 +2,10 @@
package
plugin
import
(
"context"
"errors"
"fmt"
"context"
"github.com/miekg/dns"
ot
"github.com/opentracing/opentracing-go"
"github.com/prometheus/client_golang/prometheus"
...
...
plugin/proxy/dns.go
View file @
0930eb8b
package
proxy
import
(
"context"
"net"
"time"
"github.com/coredns/coredns/request"
"context"
"github.com/miekg/dns"
)
...
...
plugin/proxy/dnstap.go
View file @
0930eb8b
package
proxy
import
(
"context"
"time"
"github.com/coredns/coredns/plugin/dnstap"
"github.com/coredns/coredns/plugin/dnstap/msg"
"github.com/coredns/coredns/request"
"context"
tap
"github.com/dnstap/golang-dnstap"
"github.com/miekg/dns"
)
...
...
plugin/proxy/dnstap_test.go
View file @
0930eb8b
package
proxy
import
(
"context"
"testing"
"time"
...
...
@@ -9,8 +10,6 @@ import (
mwtest
"github.com/coredns/coredns/plugin/test"
"github.com/coredns/coredns/request"
"context"
tap
"github.com/dnstap/golang-dnstap"
"github.com/miekg/dns"
)
...
...
plugin/proxy/exchanger.go
View file @
0930eb8b
package
proxy
import
(
"github.com/coredns/coredns/request"
"context"
"github.com/coredns/coredns/request"
"github.com/miekg/dns"
)
...
...
plugin/proxy/google.go
View file @
0930eb8b
package
proxy
import
(
"context"
"crypto/tls"
"encoding/json"
"fmt"
...
...
@@ -14,8 +15,6 @@ import (
"github.com/coredns/coredns/plugin/pkg/log"
"github.com/coredns/coredns/request"
"context"
"github.com/miekg/dns"
)
...
...
plugin/proxy/grpc.go
View file @
0930eb8b
package
proxy
import
(
"context"
"crypto/tls"
"fmt"
...
...
@@ -9,8 +10,6 @@ import (
"github.com/coredns/coredns/plugin/pkg/trace"
"github.com/coredns/coredns/request"
"context"
"github.com/grpc-ecosystem/grpc-opentracing/go/otgrpc"
"github.com/miekg/dns"
opentracing
"github.com/opentracing/opentracing-go"
...
...
plugin/proxy/grpc_test.go
View file @
0930eb8b
package
proxy
import
(
"context"
"fmt"
"testing"
...
...
@@ -9,8 +10,6 @@ import (
"github.com/coredns/coredns/plugin/test"
"github.com/coredns/coredns/request"
"context"
"github.com/miekg/dns"
"google.golang.org/grpc/grpclog"
)
...
...
plugin/proxy/lookup.go
View file @
0930eb8b
...
...
@@ -3,6 +3,7 @@ package proxy
// functions other plugin might want to use to do lookup in the same style as the proxy.
import
(
"context"
"fmt"
"net"
"sync/atomic"
...
...
@@ -11,8 +12,6 @@ import (
"github.com/coredns/coredns/plugin/pkg/healthcheck"
"github.com/coredns/coredns/request"
"context"
"github.com/miekg/dns"
)
...
...
plugin/proxy/proxy.go
View file @
0930eb8b
...
...
@@ -2,6 +2,7 @@
package
proxy
import
(
"context"
"errors"
"fmt"
"net"
...
...
@@ -13,8 +14,6 @@ import (
"github.com/coredns/coredns/plugin/pkg/healthcheck"
"github.com/coredns/coredns/request"
"context"
"github.com/miekg/dns"
ot
"github.com/opentracing/opentracing-go"
)
...
...
plugin/reverse/reverse.go
View file @
0930eb8b
package
reverse
import
(
"context"
"net"
"github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/plugin/pkg/dnsutil"
"github.com/coredns/coredns/plugin/pkg/fall"
"github.com/coredns/coredns/request"
"context"
"github.com/miekg/dns"
)
...
...
plugin/reverse/reverse_test.go
View file @
0930eb8b
package
reverse
import
(
"context"
"net"
"regexp"
"testing"
...
...
@@ -9,8 +10,6 @@ import (
"github.com/coredns/coredns/plugin/pkg/dnstest"
"github.com/coredns/coredns/plugin/test"
"context"
"github.com/miekg/dns"
)
...
...
plugin/rewrite/reverter_test.go
View file @
0930eb8b
package
rewrite
import
(
"context"
"testing"
"github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/plugin/pkg/dnstest"
"github.com/coredns/coredns/plugin/test"
"context"
"github.com/miekg/dns"
)
...
...
plugin/rewrite/rewrite.go
View file @
0930eb8b
package
rewrite
import
(
"context"
"fmt"
"strings"
"github.com/coredns/coredns/plugin"
"github.com/miekg/dns"
"context"
)
// Result is the result of a rewrite
...
...
plugin/rewrite/rewrite_test.go
View file @
0930eb8b
...
...
@@ -2,6 +2,7 @@ package rewrite
import
(
"bytes"
"context"
"reflect"
"testing"
...
...
@@ -9,8 +10,6 @@ import (
"github.com/coredns/coredns/plugin/pkg/dnstest"
"github.com/coredns/coredns/plugin/test"
"context"
"github.com/miekg/dns"
)
...
...
plugin/route53/route53.go
View file @
0930eb8b
...
...
@@ -3,13 +3,12 @@
package
route53
import
(
"context"
"net"
"github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/request"
"context"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/route53"
"github.com/aws/aws-sdk-go/service/route53/route53iface"
...
...
plugin/route53/route53_test.go
View file @
0930eb8b
package
route53
import
(
"context"
"testing"
"github.com/coredns/coredns/plugin/pkg/dnstest"
"github.com/coredns/coredns/plugin/test"
"context"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/route53"
"github.com/aws/aws-sdk-go/service/route53/route53iface"
...
...
plugin/template/template.go
View file @
0930eb8b
...
...
@@ -2,6 +2,7 @@ package template
import
(
"bytes"
"context"
"regexp"
"strconv"
gotmpl
"text/template"
...
...
@@ -11,8 +12,6 @@ import (
"github.com/coredns/coredns/plugin/pkg/upstream"
"github.com/coredns/coredns/request"
"context"
"github.com/miekg/dns"
)
...
...
plugin/template/template_test.go
View file @
0930eb8b
package
template
import
(
"context"
"fmt"
"regexp"
"testing"
...
...
@@ -10,8 +11,6 @@ import (
"github.com/coredns/coredns/plugin/pkg/fall"
"github.com/coredns/coredns/plugin/test"
"context"
"github.com/mholt/caddy"
"github.com/miekg/dns"
)
...
...
plugin/test/helpers.go
View file @
0930eb8b
package
test
import
(
"context"
"sort"
"testing"
"context"
"github.com/miekg/dns"
)
...
...
plugin/trace/trace.go
View file @
0930eb8b
...
...
@@ -2,6 +2,7 @@
package
trace
import
(
"context"
"fmt"
"strings"
"sync"
...
...
@@ -11,8 +12,6 @@ import (
// Plugin the trace package.
_
"github.com/coredns/coredns/plugin/pkg/trace"
"context"
ddtrace
"github.com/DataDog/dd-trace-go/opentracing"
"github.com/miekg/dns"
ot
"github.com/opentracing/opentracing-go"
...
...
plugin/whoami/whoami.go
View file @
0930eb8b
...
...
@@ -3,13 +3,12 @@
package
whoami
import
(
"context"
"net"
"strconv"
"github.com/coredns/coredns/request"
"context"
"github.com/miekg/dns"
)
...
...
plugin/whoami/whoami_test.go
View file @
0930eb8b
package
whoami
import
(
"context"
"testing"
"github.com/coredns/coredns/plugin/pkg/dnstest"
"github.com/coredns/coredns/plugin/test"
"context"
"github.com/miekg/dns"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment