Documentation
¶
Overview ¶
Package kubernetai implements a plugin which can embed a number of kubernetes plugins in the same dns server.
Index ¶
- func Name() string
- type Kubernetai
- func (k8i Kubernetai) AutoPath(state request.Request) []string
- func (k8i Kubernetai) Health() bool
- func (Kubernetai) Name() string
- func (k8i Kubernetai) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) (rcode int, err error)
- func (k8i Kubernetai) Transfer(zone string, serial uint32) (retCh <-chan []dns.RR, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Kubernetai ¶
type Kubernetai struct { Zones []string Kubernetes []embeddedKubernetesPluginInterface // contains filtered or unexported fields }
Kubernetai handles multiple Kubernetes
func New ¶
func New(zones []string) (Kubernetai, *kubernetes.Kubernetes)
New creates a Kubernetai containing one Kubernetes with zones
func Parse ¶
func Parse(c *caddy.Controller) (*Kubernetai, error)
Parse parses multiple kubernetes into a kubernetai
func (Kubernetai) AutoPath ¶
func (k8i Kubernetai) AutoPath(state request.Request) []string
AutoPath routes AutoPath requests to the authoritative kubernetes.
func (Kubernetai) Health ¶
func (k8i Kubernetai) Health() bool
Health implements the health.Healther interface.
func (Kubernetai) ServeDNS ¶
func (k8i Kubernetai) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) (rcode int, err error)
ServeDNS routes requests to the authoritative kubernetes. It implements the plugin.Handler interface.
Click to show internal directories.
Click to hide internal directories.