mirror of
https://github.com/coredns/coredns.git
synced 2025-11-01 10:43:17 -04:00
golint cleanup (#828)
Clean up some golint related issues. Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
This commit is contained in:
@@ -14,7 +14,6 @@ import "github.com/miekg/dns"
|
||||
// is NXDOMAIN (NameError). This is needed to support the AutoPath.OnNXDOMAIN
|
||||
// function, which returns a NOERROR to client instead of NXDOMAIN if the final
|
||||
// search in the path fails to produce results.
|
||||
|
||||
type AutoPathWriter struct {
|
||||
dns.ResponseWriter
|
||||
original dns.Question
|
||||
|
||||
@@ -49,6 +49,7 @@ type Kubernetes struct {
|
||||
interfaceAddrsFunc func() net.IP
|
||||
}
|
||||
|
||||
// AutoPath enables server side search path lookups for pods
|
||||
type AutoPath struct {
|
||||
Enabled bool
|
||||
NDots int
|
||||
@@ -683,6 +684,8 @@ func splitSearch(zone, question, namespace string) (name, search string, ok bool
|
||||
}
|
||||
|
||||
const (
|
||||
// Svc is the DNS schema for kubernetes services
|
||||
Svc = "svc"
|
||||
// Pod is the DNS schema for kubernetes pods
|
||||
Pod = "pod"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user