fabdns

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LabelSVC = "svc"
)
View Source
const PluginName = "fabdns"

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterInfo

type ClusterInfo struct {
	Name   string
	Zone   string
	Region string
}

type FabDNS

type FabDNS struct {
	Next    plugin.Handler
	Zones   []string
	Fall    fall.F
	TTL     uint32
	Client  client.Client
	Cluster ClusterInfo
}

FabDNS implements a plugin supporting multi-cluster FabDNS spec.

func (FabDNS) IsNameError

func (f FabDNS) IsNameError(err error) bool

IsNameError returns true if err indicated a record not found condition

func (FabDNS) Name

func (f FabDNS) Name() string

Name implements the Handler interface.

func (FabDNS) ServeDNS

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

ServeDNS implements the plugin.Handler interface.

Jump to

Keyboard shortcuts

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