utils

package
v0.0.0-...-6138ae3 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UpdateEndpoints

func UpdateEndpoints(ep *corev1.Endpoints, svc *corev1.Service, scheme *runtime.Scheme, ips []string) (*corev1.Endpoints, error)

UpdateEndpoints used to update an Endpoints instance from a Service and a IP list

Types

type DNSResolver

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

DNSResolver is the DNS resolver

func NewDNSResolver

func NewDNSResolver() *DNSResolver

NewDNSResolver instantiate a new DNSResolver

func (*DNSResolver) Resolve

func (r *DNSResolver) Resolve(entry string) ([]string, error)

Resolve takes a domain name and returns the

type DNSResolverIface

type DNSResolverIface interface {
	Resolve(entry string) ([]string, error)
}

DNSResolverIface is an interface for the DNSResolver

type UpdateEndpointsFunc

type UpdateEndpointsFunc func(ep *corev1.Endpoints, svc *corev1.Service, scheme *runtime.Scheme, ips []string) (*corev1.Endpoints, error)

UpdateEndpointsFunc UpdateEndpoints function type

Jump to

Keyboard shortcuts

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