endpoint

package
v0.18.0-m1 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: Apache-2.0 Imports: 34 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 GetLocalIP added in v0.14.0

func GetLocalIP() string

func GetLocalIPForDestination added in v0.14.0

func GetLocalIPForDestination(dst string) string

func GetLocalSpec added in v0.17.0

func GetLocalSpec(submSpec *types.SubmarinerSpecification, k8sClient kubernetes.Interface,
	airGappedDeployment bool,
) (*submv1.EndpointSpec, error)

Types

type Local added in v0.17.0

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

func NewLocal added in v0.17.0

func NewLocal(spec *submv1.EndpointSpec, dynClient dynamic.Interface, namespace string) *Local

func (*Local) Resource added in v0.17.0

func (l *Local) Resource() *submv1.Endpoint

func (*Local) Spec added in v0.17.0

func (l *Local) Spec() *submv1.EndpointSpec

func (*Local) Update added in v0.17.0

func (l *Local) Update(ctx context.Context, mutate func(existing *submv1.EndpointSpec)) error

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
	LocalEndpoint *Local
}

Jump to

Keyboard shortcuts

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