kubernetai

package
v0.0.0-...-45d35d5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 27, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Name

func Name() string

Name is the name of the plugin.

Types

type Kubernetai

type Kubernetai struct {
	Zones      []string
	Next       plugin.Handler
	Kubernetes []*kubernetes.Kubernetes
	Fall       []fall.F
	// 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) Name

func (Kubernetai) Name() string

Name implements the Handler 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL