wireguard

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2026 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WireguardFinalizer = "wireguard.home-cloud.io/finalizer"
)

Variables

This section is empty.

Functions

func GetKey

func GetKey(ctx context.Context, kube client.Client, ref v1.SecretReference, defaultNamespace string) (wgtypes.Key, error)

Types

type LocatorClient

type LocatorClient struct {
	Address            string
	WireguardReference types.NamespacedName
	KubeClient         client.Client
	STUNController     stun.STUNController
	// contains filtered or unexported fields
}

func (*LocatorClient) Cancel

func (l *LocatorClient) Cancel()

func (*LocatorClient) Connect

func (l *LocatorClient) Connect(ctx context.Context)

type WireguardReconciler

type WireguardReconciler struct {
	client.Client
	Scheme *runtime.Scheme

	STUNCtl stun.STUNController
	// contains filtered or unexported fields
}

func (*WireguardReconciler) Reconcile

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

TODO: do we need a mutex on this whole thing?

func (*WireguardReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

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