Documentation ¶
Index ¶
- type AbstractDNSController
- func (s *AbstractDNSController) EnsureDNSRrsets(dnsZone dnsprovider.Zone, dnsName string, endpoints []string, ...) error
- func (s *AbstractDNSController) GetDNSZone(domain string, dnsZonesInterface dnsprovider.Zones) (dnsprovider.Zone, error)
- func (s *AbstractDNSController) GetResolvedEndpoints(endpoints []string) ([]string, error)
- func (s *AbstractDNSController) GetRrset(dnsName string, rrsetsInterface dnsprovider.ResourceRecordSets) ([]dnsprovider.ResourceRecordSet, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AbstractDNSController ¶
type AbstractDNSController struct { }
AbstractDNSController provides common set of implementation shared by service dns controller and ingress dns controller
func (*AbstractDNSController) EnsureDNSRrsets ¶
func (s *AbstractDNSController) EnsureDNSRrsets(dnsZone dnsprovider.Zone, dnsName string, endpoints []string, uplevelCname string) error
EnsureDNSRrsets ensures (idempotently, and with minimum mutations) that all of the DNS resource record sets for dnsName are consistent with endpoints. if endpoints is nil or empty, a CNAME record to uplevelCname is ensured.
func (*AbstractDNSController) GetDNSZone ¶
func (s *AbstractDNSController) GetDNSZone(domain string, dnsZonesInterface dnsprovider.Zones) (dnsprovider.Zone, error)
GetDNSZone returns the DNS zones matching dnsZoneName and dnsZoneID (if specified)
func (*AbstractDNSController) GetResolvedEndpoints ¶
func (s *AbstractDNSController) GetResolvedEndpoints(endpoints []string) ([]string, error)
GetResolvedEndpoints performs DNS resolution on the provided slice of endpoints (which might be DNS names or IPv4 addresses) and returns a list of IPv4 addresses. If any of the endpoints are neither valid IPv4 addresses nor resolvable DNS names, non-nil error is also returned (possibly along with a partially complete list of resolved endpoints.
func (*AbstractDNSController) GetRrset ¶
func (s *AbstractDNSController) GetRrset(dnsName string, rrsetsInterface dnsprovider.ResourceRecordSets) ([]dnsprovider.ResourceRecordSet, error)
GetRrset returns ResourceRecordSet matching the dnsName NOTE: that if the named resource record set does not exist, but no error occurred, the returned list will be empty, and the error will be nil