k8s

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const MAX_RESOLVED_DNS = 10000 // arbitrary limit

Variables

This section is empty.

Functions

This section is empty.

Types

type K8sIPResolver

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

func NewK8sIPResolver

func NewK8sIPResolver(clientset kubernetes.Interface, resolveDns bool) (*K8sIPResolver, error)

func (*K8sIPResolver) ResolveIP

func (resolver *K8sIPResolver) ResolveIP(ip string) Workload

resolve the given IP from the resolver's cache if not available, return the IP itself.

func (*K8sIPResolver) StartWatching

func (resolver *K8sIPResolver) StartWatching() error

func (*K8sIPResolver) StopWatching

func (resolver *K8sIPResolver) StopWatching()

type Workload

type Workload struct {
	Name      string
	Namespace string
	Kind      string
}

Jump to

Keyboard shortcuts

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