Documentation ¶
Index ¶
- type Assistant
- type Gslb
- func (r *Gslb) CoreDNSExposedIPs() ([]string, error)
- func (r *Gslb) GetExternalTargets(host string, extClusterNsNames map[string]string) (targets Targets)
- func (r *Gslb) GslbIngressExposedIPs(gslb *k8gbv1beta1.Gslb) ([]string, error)
- func (r *Gslb) InspectTXTThreshold(fqdn string, splitBrainThreshold time.Duration) error
- func (r *Gslb) RemoveEndpoint(endpointName string) error
- func (r *Gslb) SaveDNSEndpoint(namespace string, i *externaldns.DNSEndpoint) error
- type Target
- type Targets
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Assistant ¶
type Assistant interface { // CoreDNSExposedIPs retrieves list of exposed IP by CoreDNS CoreDNSExposedIPs() ([]string, error) // GslbIngressExposedIPs retrieves list of IP's exposed by all GSLB ingresses GslbIngressExposedIPs(gslb *k8gbv1beta1.Gslb) ([]string, error) // GetExternalTargets retrieves slice of targets from external clusters GetExternalTargets(host string, extClusterNsNames map[string]string) (targets Targets) // SaveDNSEndpoint update DNS endpoint or create new one if doesnt exist SaveDNSEndpoint(namespace string, i *externaldns.DNSEndpoint) error // RemoveEndpoint removes endpoint RemoveEndpoint(endpointName string) error // InspectTXTThreshold inspects fqdn TXT record from edgeDNSServer. If record doesn't exists or timestamp is greater than // splitBrainThreshold the error is returned. In case fakeDNSEnabled is true, 127.0.0.1:7753 is used as edgeDNSServer InspectTXTThreshold(fqdn string, splitBrainThreshold time.Duration) error }
type Gslb ¶
type Gslb struct {
// contains filtered or unexported fields
}
Gslb is common wrapper operating on GSLB instance. It uses apimachinery client to call kubernetes API
func NewGslbAssistant ¶
func (*Gslb) CoreDNSExposedIPs ¶
CoreDNSExposedIPs retrieves list of IP's exposed by CoreDNS
func (*Gslb) GetExternalTargets ¶
func (*Gslb) GslbIngressExposedIPs ¶
func (r *Gslb) GslbIngressExposedIPs(gslb *k8gbv1beta1.Gslb) ([]string, error)
GslbIngressExposedIPs retrieves list of IP's exposed by all GSLB ingresses
func (*Gslb) InspectTXTThreshold ¶
InspectTXTThreshold inspects fqdn TXT record from edgeDNSServer. If record doesn't exists or timestamp is greater than splitBrainThreshold the error is returned.
func (*Gslb) RemoveEndpoint ¶
RemoveEndpoint removes endpoint
func (*Gslb) SaveDNSEndpoint ¶
func (r *Gslb) SaveDNSEndpoint(namespace string, i *externaldns.DNSEndpoint) error
SaveDNSEndpoint update DNS endpoint or create new one if doesnt exist
type Targets ¶ added in v0.10.0
func NewTargets ¶ added in v0.10.0
func NewTargets() Targets
func (Targets) AppendTargets ¶ added in v0.10.0
Click to show internal directories.
Click to hide internal directories.