Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
edgeweir-node
command
Command edgeweir-node is the Edgeweir edge node agent.
|
Command edgeweir-node is the Edgeweir edge node agent. |
|
internal
|
|
|
agent
Package agent is the edgeweir-node runtime (`edgeweir-node run`).
|
Package agent is the edgeweir-node runtime (`edgeweir-node run`). |
|
bans
Package bans holds the dynamic IP bans the console distributes outside configuration revisions (GetBans).
|
Package bans holds the dynamic IP bans the console distributes outside configuration revisions (GetBans). |
|
captcha
Package captcha draws the image captchas of the captcha challenge with the standard library only: a built-in 5x7 dot-matrix font, randomly placed, scaled, rotated and sheared characters on a wavy baseline, with noise lines and dots, encoded as a small paletted PNG.
|
Package captcha draws the image captchas of the captcha challenge with the standard library only: a built-in 5x7 dot-matrix font, randomly placed, scaled, rotated and sheared characters on a wavy baseline, with noise lines and dots, encoded as a small paletted PNG. |
|
configir
Package configir handles the engine-agnostic NodeConfig IR on the node: canonical ordering, content hashing, diff application and validation into a Plan that the data plane renderers consume.
|
Package configir handles the engine-agnostic NodeConfig IR on the node: canonical ordering, content hashing, diff application and validation into a Plan that the data plane renderers consume. |
|
configstore
Package configstore persists the last-known-good (LKG) NodeConfig so the node keeps serving its last applied configuration across restarts, even when the console is unreachable.
|
Package configstore persists the last-known-good (LKG) NodeConfig so the node keeps serving its last applied configuration across restarts, even when the console is unreachable. |
|
controlplane
Package controlplane builds Connect clients for the console's node channel (NodeService and ProbeService): CA-pinned clients for enrollment and an mTLS channel with hot-swappable credentials for everything else.
|
Package controlplane builds Connect clients for the console's node channel (NodeService and ProbeService): CA-pinned clients for enrollment and an mTLS channel with hot-swappable credentials for everything else. |
|
dataplane
Package dataplane is the agent's client for the OpenResty control API (lua/edgeweir/control.lua), served by nginx on a local unix socket.
|
Package dataplane is the agent's client for the OpenResty control API (lua/edgeweir/control.lua), served by nginx on a local unix socket. |
|
engine
Package engine controls the OpenResty (nginx) process: configuration tests, reloads and, in managed mode, supervising nginx as a child process of the agent.
|
Package engine controls the OpenResty (nginx) process: configuration tests, reloads and, in managed mode, supervising nginx as a child process of the agent. |
|
enroll
Package enroll implements `edgeweir-node enroll`: it exchanges a single-use token and a locally generated CSR for a node certificate issued by the console's internal CA.
|
Package enroll implements `edgeweir-node enroll`: it exchanges a single-use token and a locally generated CSR for a node certificate issued by the console's internal CA. |
|
fsutil
Package fsutil contains crash-safe file helpers used for all persistent agent state (identity, keys, last-known-good configuration).
|
Package fsutil contains crash-safe file helpers used for all persistent agent state (identity, keys, last-known-good configuration). |
|
geoip
Package geoip serves local MMDBs: the IPinfo Lite database bundled into the release container image at build time, plus operator-provided City / ASN databases.
|
Package geoip serves local MMDBs: the IPinfo Lite database bundled into the release container image at build time, plus operator-provided City / ASN databases. |
|
geoip/check
command
Command check fails when the agent would not serve an IPinfo Lite MMDB.
|
Command check fails when the agent would not serve an IPinfo Lite MMDB. |
|
healthcheck
Package healthcheck runs the active origin health checks (OriginPool.active_health_check, feature active-health-v1).
|
Package healthcheck runs the active origin health checks (OriginPool.active_health_check, feature active-health-v1). |
|
hostinfo
Package hostinfo collects the NodeInfo reported to the console.
|
Package hostinfo collects the NodeInfo reported to the console. |
|
identity
Package identity persists the node's enrollment result in the state directory:
|
Package identity persists the node's enrollment result in the state directory: |
|
imageconv
Package imageconv converts cached JPEG and PNG responses to WebP and AVIF (ADR-0043).
|
Package imageconv converts cached JPEG and PNG responses to WebP and AVIF (ADR-0043). |
|
metrics
Package metrics measures the host metrics the agent reports with every heartbeat (feature metrics-v1, ReportStatusRequest.metrics):
|
Package metrics measures the host metrics the agent reports with every heartbeat (feature metrics-v1, ReportStatusRequest.metrics): |
|
nft
Package nft enforces platform bans in the kernel with nftables.
|
Package nft enforces platform bans in the kernel with nftables. |
|
pki
Package pki implements the node side of the console's internal PKI: key and CSR generation, PEM handling, CA pinning during enrollment and the TLS configurations used for the node channel.
|
Package pki implements the node side of the console's internal PKI: key and CSR generation, PEM handling, CA pinning during enrollment and the TLS configurations used for the node channel. |
|
pki/pkitest
Package pkitest provides a throwaway certificate authority that mimics the console's internal CA.
|
Package pkitest provides a throwaway certificate authority that mimics the console's internal CA. |
|
probe
Package probe measures, for the console's scheduling, whether the scheduling addresses of edge nodes answer (ProbeService, proto v0.14.0).
|
Package probe measures, for the console's scheduling, whether the scheduling addresses of edge nodes answer (ProbeService, proto v0.14.0). |
|
render
Package render produces the OpenResty nginx.conf from a validated plan.
|
Package render produces the OpenResty nginx.conf from a validated plan. |
|
retry
Package retry calls an operation again after failures that may pass (a data plane that is still starting, a busy lock), with exponential backoff, until it succeeds, fails for good, its budget is spent or its context ends.
|
Package retry calls an operation again after failures that may pass (a data plane that is still starting, a busy lock), with exponential backoff, until it succeeds, fails for good, its budget is spent or its context ends. |
|
testutil/fakeclock
Package fakeclock is a manual clock for tests of code that schedules with callbacks (healthcheck.Clock): time only moves with Advance.
|
Package fakeclock is a manual clock for tests of code that schedules with callbacks (healthcheck.Clock): time only moves with Advance. |
|
testutil/fakeconsole
Package fakeconsole is a minimal in-memory implementation of the console's NodeService and ProbeService (connect-go) used by the integration tests and the container smoke test.
|
Package fakeconsole is a minimal in-memory implementation of the console's NodeService and ProbeService (connect-go) used by the integration tests and the container smoke test. |
|
testutil/fakedataplane
Package fakedataplane serves an in-memory imitation of the Lua control API (lua/edgeweir/control.lua) on a unix socket, for Go tests.
|
Package fakedataplane serves an in-memory imitation of the Lua control API (lua/edgeweir/control.lua) on a unix socket, for Go tests. |
|
testutil/geofixture
Package geofixture creates synthetic MMDBs; it contains no third-party data.
|
Package geofixture creates synthetic MMDBs; it contains no third-party data. |
|
upgrade
Package upgrade installs only release artifacts verified against an operator's local trust policy.
|
Package upgrade installs only release artifacts verified against an operator's local trust policy. |
|
version
Package version exposes build metadata injected at link time.
|
Package version exposes build metadata injected at link time. |
|
test
|
|
|
e2e/fakeconsole
command
Command fakeconsole serves the fake NodeService used by the container smoke test (test/e2e).
|
Command fakeconsole serves the fake NodeService used by the container smoke test (test/e2e). |
|
geoip
command
|
Click to show internal directories.
Click to hide internal directories.