Documentation ¶
Overview ¶
Package external implements external names for kubernetes clusters.
This plugin only handles three qtypes (except the apex queries, because those are handled differently). We support A, AAAA and SRV request, for all other types we return NODATA or NXDOMAIN depending on the state of the cluster.
A plugin willing to provide these services must implement the Externaler interface, although it likely only makes sense for the *kubernetes* plugin.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type External ¶
type External struct { Next plugin.Handler Zones []string // contains filtered or unexported fields }
External resolves Ingress and Loadbalance IPs from kubernetes clusters.
type Externaler ¶
type Externaler interface { // External returns a slice of msg.Services that are looked up in the backend and match // the request. External(request.Request) ([]msg.Service, int) // ExternalAddress should return a string slice of addresses for the nameserving endpoint. ExternalAddress(state request.Request) []dns.RR }
Externaler defines the interface that a plugin should implement in order to be used by External.
Click to show internal directories.
Click to hide internal directories.