Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LoadBalancer ¶
type LoadBalancer struct { PluginReady bool KubeConfigPath string EnableRootZone bool EnableNSZone bool RootZones []string RecordsSync *sync.Mutex Records []kubeRecord Next plugin.Handler }
LoadBalancer is a plugin to show how to write a plugin.
func NewLoadBalancer ¶
func NewLoadBalancer() *LoadBalancer
func (LoadBalancer) Name ¶
func (e LoadBalancer) Name() string
Name implements the Handler interface.
func (LoadBalancer) Ready ¶
func (e LoadBalancer) Ready() bool
Ready implements the ready.Readiness interface, once this flips to true CoreDNS assumes this plugin is ready for queries; it is not checked again.
func (LoadBalancer) RemoveZoneSuffix ¶
func (e LoadBalancer) RemoveZoneSuffix(name string, suffix []string) string
type ResponsePrinter ¶
type ResponsePrinter struct {
dns.ResponseWriter
}
ResponsePrinter wrap a dns.ResponseWriter and will write example to standard output when WriteMsg is called.
func NewResponsePrinter ¶
func NewResponsePrinter(w dns.ResponseWriter) *ResponsePrinter
NewResponsePrinter returns ResponseWriter.
Click to show internal directories.
Click to hide internal directories.