Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
dev
command
cmd/dev starts a local headscale development server with a pre-created user and pre-auth key, ready for connecting tailscale nodes via mts.
|
cmd/dev starts a local headscale development server with a pre-created user and pre-auth key, ready for connecting tailscale nodes via mts. |
|
gen-openapi
command
Command gen-openapi emits a Headscale OpenAPI document from the authoritative Huma definitions in hscontrol/api/v1 and hscontrol/api/v2.
|
Command gen-openapi emits a Headscale OpenAPI document from the authoritative Huma definitions in hscontrol/api/v1 and hscontrol/api/v2. |
|
headscale
command
|
|
|
hi
command
|
|
|
mapresponses
command
|
|
|
vendorhash
command
vendorhash maintains the Nix SRI hash for the Go module vendor tree and stores it in flakehashes.json alongside a content fingerprint of go.mod and go.sum.
|
vendorhash maintains the Nix SRI hash for the Go module vendor tree and stores it in flakehashes.json alongside a content fingerprint of go.mod and go.sum. |
|
gen
|
|
|
client/v1
Package clientv1 provides primitives to interact with the openapi HTTP API.
|
Package clientv1 provides primitives to interact with the openapi HTTP API. |
|
client/v2
Package clientv2 provides primitives to interact with the openapi HTTP API.
|
Package clientv2 provides primitives to interact with the openapi HTTP API. |
|
api/v1
Package apiv1 is the code-first Huma implementation of the Headscale v1 API.
|
Package apiv1 is the code-first Huma implementation of the Headscale v1 API. |
|
api/v2
Package apiv2 is Headscale's v2 HTTP API, served at /api/v2.
|
Package apiv2 is Headscale's v2 HTTP API, served at /api/v2. |
|
assets
Package assets provides embedded static assets for Headscale.
|
Package assets provides embedded static assets for Headscale. |
|
db/sqliteconfig
Package sqliteconfig provides type-safe configuration for SQLite databases with proper enum validation and URL generation for modernc.org/sqlite driver.
|
Package sqliteconfig provides type-safe configuration for SQLite databases with proper enum validation and URL generation for modernc.org/sqlite driver. |
|
policy/policyutil
Package policyutil contains pure functions that transform compiled policy rules for a specific node.
|
Package policyutil contains pure functions that transform compiled policy rules for a specific node. |
|
scope
Package scope models the OAuth capability scopes the Headscale v2 API enforces and the rule for whether a granted set of scopes satisfies a required one.
|
Package scope models the OAuth capability scopes the Headscale v2 API enforces and the rule for whether a granted set of scopes satisfies a required one. |
|
servertest
Package servertest provides an in-process test harness for Headscale's control plane.
|
Package servertest provides an in-process test harness for Headscale's control plane. |
|
types/change
Package change declares the Change type: a compact description of what must land in a tailcfg.MapResponse.
|
Package change declares the Change type: a compact description of what must land in a tailcfg.MapResponse. |
|
types/testcapture
Package testcapture defines the on-disk format used by Headscale's policy v2 compatibility tests for golden data captured from a Tailscale-hosted control plane by an external capture tool.
|
Package testcapture defines the on-disk format used by Headscale's policy v2 compatibility tests for golden data captured from a Tailscale-hosted control plane by an external capture tool. |
|
util/zlog
Package zlog provides zerolog utilities for safe and consistent logging.
|
Package zlog provides zerolog utilities for safe and consistent logging. |
|
util/zlog/zf
Package zf provides zerolog field name constants for consistent logging.
|
Package zf provides zerolog field name constants for consistent logging. |
|
k3sic
Package k3sic wraps a single-container k3s cluster (server + agent) as a privileged sibling container on the host docker daemon, like the DERP-in-container wrapper in the dsic package.
|
Package k3sic wraps a single-container k3s cluster (server + agent) as a privileged sibling container on the host docker daemon, like the DERP-in-container wrapper in the dsic package. |
|
tsric
Package tsric provides a TailscaleRustInContainer (tsric) implementation that runs the tailscale-rs axum example inside a Docker container for integration testing with headscale.
|
Package tsric provides a TailscaleRustInContainer (tsric) implementation that runs the tailscale-rs axum example inside a Docker container for integration testing with headscale. |
|
wasmic/wasmclient
command
This package only does something when built for GOOS=js (see main.go).
|
This package only does something when built for GOOS=js (see main.go). |
|
tools
|
|
|
capver
command
|
Click to show internal directories.
Click to hide internal directories.
