resolver

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2023 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartResolving

func StartResolving(namespace string, nameResolutionHistoryPath string, clusterMode bool)

Types

type ResolvedObjectInfo

type ResolvedObjectInfo struct {
	FullAddress string
	Namespace   string
}

type Resolver

type Resolver struct {
	// contains filtered or unexported fields
}
var K8sResolver *Resolver

func NewFromInCluster

func NewFromInCluster(errOut chan error, namespace string) *Resolver

func (*Resolver) CheckIsServiceIP

func (resolver *Resolver) CheckIsServiceIP(address string) bool

func (*Resolver) GetDumpNameResolutionHistoryMap

func (resolver *Resolver) GetDumpNameResolutionHistoryMap() map[int64]map[string]*ResolvedObjectInfo

func (*Resolver) Resolve

func (resolver *Resolver) Resolve(name string, timestamp int64) *ResolvedObjectInfo

func (*Resolver) RestoreNameResolutionHistory added in v0.4.0

func (resolver *Resolver) RestoreNameResolutionHistory(nameResolutionHistoryPath string)

func (*Resolver) SaveResolvedName added in v0.6.0

func (resolver *Resolver) SaveResolvedName(key string, resolved string, namespace string, eventType watch.EventType)

func (*Resolver) Start

func (resolver *Resolver) Start(ctx context.Context, nameResolutionHistoryPath string, clusterMode bool)

Jump to

Keyboard shortcuts

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