sourcedetector

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2025 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Overview

Package sourcedetector contains the logic to detect the source IP used by nodes to contact pods.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSrcIPFromDstIP

func GetSrcIPFromDstIP(dstIP string) (string, error)

GetSrcIPFromDstIP returns the source IP used to reach the given destination IP.

Types

type GatewayReconciler

type GatewayReconciler struct {
	client.Client
	Scheme         *runtime.Scheme
	EventsRecorder record.EventRecorder
	Options        *fabric.Options
}

GatewayReconciler manage gateway.

func NewGatewayReconciler

func NewGatewayReconciler(cl client.Client, s *runtime.Scheme,
	er record.EventRecorder, opts *fabric.Options) (*GatewayReconciler, error)

NewGatewayReconciler returns a new GatewayReconciler.

func (*GatewayReconciler) Reconcile

func (r *GatewayReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile manage Gateways.

func (*GatewayReconciler) SetupWithManager

func (r *GatewayReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager register the GatewayReconciler to the manager.

Jump to

Keyboard shortcuts

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