aboutsummaryrefslogtreecommitdiff
path: root/plugin/backend.go
diff options
context:
space:
mode:
authorGravatar Brad Beam <bradbeam@users.noreply.github.com> 2018-02-08 10:11:04 -0600
committerGravatar Miek Gieben <miek@miek.nl> 2018-02-08 16:11:04 +0000
commit6fd954f19c9b23ef549797bfea7940181dc9a705 (patch)
tree977ac2252db2fb155ed1c2dc6f7248707dfc1432 /plugin/backend.go
parent864f5023563fc15eb9c06cec98685d3ba657ba3c (diff)
downloadcoredns-6fd954f19c9b23ef549797bfea7940181dc9a705.tar.gz
coredns-6fd954f19c9b23ef549797bfea7940181dc9a705.tar.zst
coredns-6fd954f19c9b23ef549797bfea7940181dc9a705.zip
support for zone transfer for kubernetes (#1259)
* plugin/kubernetes: axfr Hook up dynamic SOA serial by setting ResourceEventHandlerFuncs in dnsController. Add prototype of returns msg.Services via the Transfer function. Leave expanding this to RRs out of scope for a bit. * plugin/kubernetes: axfr Respond to AXFR queries * Fixing race condition * Fixing instantiation of dnstest writer * Updates from review
Diffstat (limited to 'plugin/backend.go')
-rw-r--r--plugin/backend.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugin/backend.go b/plugin/backend.go
index fad61d418..9abb277f7 100644
--- a/plugin/backend.go
+++ b/plugin/backend.go
@@ -3,6 +3,7 @@ package plugin
import (
"github.com/coredns/coredns/plugin/etcd/msg"
"github.com/coredns/coredns/request"
+ "golang.org/x/net/context"
"github.com/miekg/dns"
)
@@ -37,6 +38,10 @@ type Transferer interface {
// MinTTL returns the minimum TTL to be used in the SOA record.
MinTTL(state request.Request) uint32
+
+ // Transfer handles a zone transfer it writes to the client just
+ // like any other handler.
+ Transfer(ctx context.Context, state request.Request) (int, error)
}
// Options are extra options that can be specified for a lookup.