dnsendpoint

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2019 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 *util.ControllerConfig, stopChan <-chan struct{}) error

func StartServiceDNSEndpointController

func StartServiceDNSEndpointController(config *util.ControllerConfig, stopChan <-chan struct{}) 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