endpoint

package
v0.16.4 Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultMonitorInterval = 60 * time.Second

Variables

View Source
var IPv4RE = regexp.MustCompile(`(?:\d{1,3}\.){3}\d{1,3}`)

Functions

func GetLocal

func GetLocal(submSpec *types.SubmarinerSpecification, k8sClient kubernetes.Interface,
	airGappedDeployment bool,
) (*types.SubmarinerEndpoint, error)

func GetLocalIP added in v0.14.0

func GetLocalIP() string

func GetLocalIPForDestination added in v0.14.0

func GetLocalIPForDestination(dst string) string

Types

type PublicIPWatcher added in v0.13.0

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

func NewPublicIPWatcher added in v0.13.0

func NewPublicIPWatcher(config *PublicIPWatcherConfig) *PublicIPWatcher

func (*PublicIPWatcher) Run added in v0.13.0

func (p *PublicIPWatcher) Run(stopCh <-chan struct{})

type PublicIPWatcherConfig added in v0.13.0

type PublicIPWatcherConfig struct {
	SubmSpec      *types.SubmarinerSpecification
	Interval      time.Duration
	K8sClient     kubernetes.Interface
	Endpoints     v1.EndpointInterface
	LocalEndpoint types.SubmarinerEndpoint
}

Jump to

Keyboard shortcuts

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