util

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2017 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

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

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

Jump to

Keyboard shortcuts

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