endpointslicedns

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DNSCache

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

DNSCache maps Domain Name -> DNSCacheEntry

func (*DNSCache) Delete

func (d *DNSCache) Delete(fqdn string)

Delete removes the DNSCacheEntries associated with the provided FQDN

func (*DNSCache) DeleteByResourceKey

func (d *DNSCache) DeleteByResourceKey(resourceKey string)

DeleteByResourceKey removes the DNSCacheEntry associated with the resource key

func (*DNSCache) IsPopulated

func (d *DNSCache) IsPopulated() bool

IsPopulated returns true when the cache is fully populated

func (*DNSCache) IsValid added in v0.1.1

func (d *DNSCache) IsValid(fqdn string) bool

IsValid returns true if and only if the DNS entry associated with FQDN is valid. DNS entries may have multiple associated IPs as long as there is no associated CNAME alias. If the DNS entry represents a CNAME alias, it must be the only alias and may not also represent other RR types. (RFC 1034, Section 3.6.2).

func (*DNSCache) Lookup

func (d *DNSCache) Lookup(fqdn string) []DNSCacheEntry

Lookup retrieves the DNSCacheEntries associated with the provided FQDN

func (*DNSCache) LookupByResourceKey

func (d *DNSCache) LookupByResourceKey(resourceKey string) *DNSCacheEntry

LookupByResourceKey retrieves the DNSCacheEntry associated with the resource key

func (*DNSCache) SetPopulated

func (d *DNSCache) SetPopulated()

SetPopulated marks the cache as populated

func (*DNSCache) Upsert

func (d *DNSCache) Upsert(entry DNSCacheEntry)

Upsert updates or inserts the DNSCacheEntry in the cache

type DNSCacheEntry

type DNSCacheEntry struct {
	ResourceKey string
	FQDN        string
	Addresses   []string
}

DNSCacheEntry stores information on the resource associated with the FQDN

type EndpointSliceReconciler

type EndpointSliceReconciler struct {
	client.Client
	Log          logr.Logger
	Scheme       *runtime.Scheme
	RecordsCache *DNSCache
}

EndpointSliceReconciler reconciles a EndpointSlice object

func (*EndpointSliceReconciler) Reconcile

func (r *EndpointSliceReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*EndpointSliceReconciler) SetupWithManager

func (r *EndpointSliceReconciler) SetupWithManager(mgr ctrl.Manager) error

Jump to

Keyboard shortcuts

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