dnsendpoint

package
v0.0.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (

	// RecordTypeA is a RecordType enum value
	RecordTypeA = "A"
	// RecordTypeCNAME is a RecordType enum value
	RecordTypeCNAME = "CNAME"
)

Variables

This section is empty.

Functions

func DedupeAndMergeEndpoints

func DedupeAndMergeEndpoints(endpoints []*feddnsv1a1.Endpoint) (result []*feddnsv1a1.Endpoint)

Merge and remove duplicate endpoints

func ExtractLoadBalancerTargets

func ExtractLoadBalancerTargets(lbStatus corev1.LoadBalancerStatus) feddnsv1a1.Targets

func StartIngressDNSEndpointController

func StartIngressDNSEndpointController(config *restclient.Config, targetNamespace string, stopChan <-chan struct{}, minimizeLatency bool) error

func StartServiceDNSEndpointController

func StartServiceDNSEndpointController(config *restclient.Config, targetNamespace string, stopChan <-chan struct{}, minimizeLatency bool) error

Types

type GetEndpointsFunc

type GetEndpointsFunc func(interface{}) ([]*feddnsv1a1.Endpoint, error)

type NetWrapper

type NetWrapper interface {
	LookupHost(host string) (addrs []string, err error)
}

Abstracting away the internet for testing purposes

type NetWrapperDefaultImplementation

type NetWrapperDefaultImplementation struct{}

func (*NetWrapperDefaultImplementation) LookupHost

func (r *NetWrapperDefaultImplementation) LookupHost(host string) (addrs []string, err error)

Jump to

Keyboard shortcuts

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