dns

package
v1.5.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2022 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllocateVIPs added in v1.8.1

func AllocateVIPs(global *vips.GlobalView, voView *vips.VirtualOutboundMeshView) (errs error)

func BuildVirtualOutboundMeshView

func BuildVirtualOutboundMeshView(rm manager.ReadOnlyResourceManager, serviceVipEnabled bool, mesh string) (*vips.VirtualOutboundMeshView, error)

func DnsNameToKumaCompliant

func DnsNameToKumaCompliant(name string) (string, error)

func Match added in v1.8.1

func Setup

func Setup(rt runtime.Runtime) error

Types

type DNSServer

type DNSServer interface {
	Start(<-chan struct{}) error
	NeedLeaderElection() bool
}

func NewDNSServer

func NewDNSServer(port uint32, resolver resolver.DNSResolver, metrics core_metrics.Metrics, modifier NameModifier) (DNSServer, error)

type NameModifier

type NameModifier = func(qName string) (string, error)

type SimpleDNSServer

type SimpleDNSServer struct {
	// contains filtered or unexported fields
}

func (*SimpleDNSServer) NeedLeaderElection

func (d *SimpleDNSServer) NeedLeaderElection() bool

func (*SimpleDNSServer) Start

func (d *SimpleDNSServer) Start(stop <-chan struct{}) error

type VIPsAllocator

type VIPsAllocator struct {
	// contains filtered or unexported fields
}

func NewVIPsAllocator

func NewVIPsAllocator(rm manager.ReadOnlyResourceManager, configManager config_manager.ConfigManager, serviceVipEnabled bool, cidr string, resolver resolver.DNSResolver) (*VIPsAllocator, error)

NewVIPsAllocator creates new object of VIPsAllocator. You can either call method CreateOrUpdateVIPConfig manually or start VIPsAllocator as a component. In the latter scenario it will call CreateOrUpdateVIPConfig every 'tickInterval' for all meshes in the store.

func (*VIPsAllocator) CreateOrUpdateVIPConfig

func (d *VIPsAllocator) CreateOrUpdateVIPConfig(mesh string) error

func (*VIPsAllocator) CreateOrUpdateVIPConfigs

func (d *VIPsAllocator) CreateOrUpdateVIPConfigs() error

func (*VIPsAllocator) NeedLeaderElection

func (d *VIPsAllocator) NeedLeaderElection() bool

func (*VIPsAllocator) Start

func (d *VIPsAllocator) Start(stop <-chan struct{}) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳