Expand description
Host-side child-process management: cloudflared quick tunnels and
platform sleep inhibitors. These helpers are never started by unit tests;
the CLI opts into them only for nexus host --tunnel or normal hosting.
Structs§
- Child
Guard - A child process that is killed when hosting stops.
- Tunnel
- A quick
trycloudflare.comtunnel process. Named-tunnel configuration is deliberately supplied by the CLI/setup layer; this type only owns the sidecar lifecycle and URL discovery.
Functions§
- cloudflared_
available - Whether
cloudflaredcan be launched fromPATH. - health_
check - Probe the public host. A
401from/v1/snapshotis healthy: it proves the tunnel reached the daemon and only host authentication stopped it. - on_
battery - Battery warning used by the macOS host CLI.
- require_
cloudflared - A small helper for callers that need a consistent missing-sidecar error.
- sleep_
guard - Start the platform’s sleep inhibitor. Unsupported platforms return
Ok(None); a missing Linuxsystemd-inhibitis an actionable error for the caller, which may choose to continue with a warning.