metallb

package
v0.0.0-...-642703f Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metallb

type Metallb struct {
	Next plugin.Handler

	Map map[string]net.IP
	// contains filtered or unexported fields
}

Metallb for k8s

func NewMetallb

func NewMetallb(next plugin.Handler) *Metallb

NewMetallb returns new object

func (*Metallb) Add

func (h *Metallb) Add(name, ip string)

Add ip

func (*Metallb) Delete

func (h *Metallb) Delete(name string)

Delete ip

func (*Metallb) Name

func (h *Metallb) Name() string

Name returns name of plugins

func (*Metallb) Run

func (h *Metallb) Run()

Run prepare

func (*Metallb) ServeDNS

func (h *Metallb) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) (int, error)

ServeDNS does all the job

Jump to

Keyboard shortcuts

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