tractor/docs/api/net.rst

1.1 KiB

Network declarations and lifecycles

tractor.net provides address composition, bindspace declarations, and tunnel configuration. The package is lazy: importing tractor or tractor.net does not load multiaddr, WireGuard, or pyroute2 implementation modules until a public symbol is used.

Multiaddr helpers

tractor.net

mk_maddr

parse_maddr

parse_endpoints

Bindspaces

BindspaceSpec

BindspaceRef

Bindspace

attach_netns

open_netns

open_bindspace

Tunnels and WireGuard

TunnelledAddress

WGTunnelSpec

WGInterfaceConfig

WGPeerConfig

parse_wg_maddr

mk_wg_maddr

strip_tunnels

tunnels_of

open_wg_iface

open_wg_bindspace

read_wg_pubkey

read_wg_peers

verify_wg_peer