Documentation ¶
Index ¶
- type DNSCache
- func (d *DNSCache) Delete(fqdn string)
- func (d *DNSCache) DeleteByResourceKey(resourceKey string)
- func (d *DNSCache) IsPopulated() bool
- func (d *DNSCache) IsValid(fqdn string) bool
- func (d *DNSCache) Lookup(fqdn string) []DNSCacheEntry
- func (d *DNSCache) LookupByResourceKey(resourceKey string) *DNSCacheEntry
- func (d *DNSCache) SetPopulated()
- func (d *DNSCache) Upsert(entry DNSCacheEntry)
- type DNSCacheEntry
- type EndpointSliceReconciler
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) DeleteByResourceKey ¶
DeleteByResourceKey removes the DNSCacheEntry associated with the resource key
func (*DNSCache) IsPopulated ¶
IsPopulated returns true when the cache is fully populated
func (*DNSCache) IsValid ¶ added in v0.1.1
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 ¶
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) SetupWithManager ¶
func (r *EndpointSliceReconciler) SetupWithManager(mgr ctrl.Manager) error