network

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2026 License: BSD-3-Clause Imports: 16 Imported by: 0

Documentation

Overview

wgpeers.go holds the pure (no syscall, OS-agnostic) bits of the pod-spec → wgtransport translation so they're unit-testable on any host. The kernel bring-up itself lives in wireguard_linux.go.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyFirewall

func ApplyFirewall(*pod.Firewall) error

ApplyFirewall is unavailable off Linux — the agent only filters packets inside a Linux micro-VM. The stub is present so the agent binary still builds on the host-side dev machine (darwin) for cross- platform tests.

func ReadFirewallStatus

func ReadFirewallStatus() pod.FirewallStatus

ReadFirewallStatus on non-Linux returns a stub "no kernel here" status so the emitter goroutine still ticks (useful for host- side dev where the agent binary is built but never sees an nftables-aware kernel). PublishedAtUnix left zero — the emitter stamps it.

Types

This section is empty.

Jump to

Keyboard shortcuts

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