Directories
¶
| Path | Synopsis |
|---|---|
|
Package openapi embeds the API description, so tests and tools use the exact file that is published.
|
Package openapi embeds the API description, so tests and tools use the exact file that is published. |
|
cmd
|
|
|
fleetwire-agent
command
Command fleetwire-agent is the device agent.
|
Command fleetwire-agent is the device agent. |
|
fleetwire-api
command
Command fleetwire-api runs the tenant, operator and device API, the background job worker, and the CRL publisher.
|
Command fleetwire-api runs the tenant, operator and device API, the background job worker, and the CRL publisher. |
|
fleetwire-bridge
command
Command fleetwire-bridge moves device messages from Mosquitto to Kafka.
|
Command fleetwire-bridge moves device messages from Mosquitto to Kafka. |
|
fleetwire-chaos
command
Command fleetwire-chaos runs the failure scenarios against the Compose stack and writes the results table into docs/results/.
|
Command fleetwire-chaos runs the failure scenarios against the Compose stack and writes the results table into docs/results/. |
|
fleetwire-checker
command
Command fleetwire-checker reads stored data back and proves that every seq of every device is stored exactly once or covered by a reported gap.
|
Command fleetwire-checker reads stored data back and proves that every seq of every device is stored exactly once or covered by a reported gap. |
|
fleetwire-ingest
command
Command fleetwire-ingest stores uplink batches from Kafka in PostgreSQL exactly once and publishes end-to-end acks.
|
Command fleetwire-ingest stores uplink batches from Kafka in PostgreSQL exactly once and publishes end-to-end acks. |
|
fleetwire-loadgen
command
Command fleetwire-loadgen runs many real agent instances in one process.
|
Command fleetwire-loadgen runs many real agent instances in one process. |
|
fwctl
command
Command fwctl is the command-line client for the fleetwire API.
|
Command fwctl is the command-line client for the fleetwire API. |
|
internal
|
|
|
agent
Package agent is the device runtime: it wires the collectors, the local log, the uplink, the MQTT connection, enrollment and certificate renewal.
|
Package agent is the device runtime: it wires the collectors, the local log, the uplink, the MQTT connection, enrollment and certificate renewal. |
|
agent/collect
Package collect holds the agent's reading sources.
|
Package collect holds the agent's reading sources. |
|
agent/config
Package config is the agent's configuration: one set of keys, read from `snapctl get -d` inside the snap, or from a JSON file and -set flags outside it, and checked by one validation path in both cases.
|
Package config is the agent's configuration: one set of keys, read from `snapctl get -d` inside the snap, or from a JSON file and -set flags outside it, and checked by one validation path in both cases. |
|
agent/statedir
Package statedir prepares the agent's state directory in the snap, $SNAP_DATA/state, for the snap_daemon system user the daemon runs as.
|
Package statedir prepares the agent's state directory in the snap, $SNAP_DATA/state, for the snap_daemon system user the daemon runs as. |
|
agent/uplink
Package uplink sends durable readings from the local log and handles end-to-end acks (ADR-0002).
|
Package uplink sends durable readings from the local log and handles end-to-end acks (ADR-0002). |
|
api
Package api is fleetwire's HTTP API: the tenant and operator API on the public listener, and enrollment and renewal on the device listener.
|
Package api is fleetwire's HTTP API: the tenant and operator API on the public listener, and enrollment and renewal on the device listener. |
|
api/apitest
Package apitest runs a real fleetwire API for tests: real PostgreSQL, the real dev PKI, real TLS listeners, and the real job worker.
|
Package apitest runs a real fleetwire API for tests: real PostgreSQL, the real dev PKI, real TLS listeners, and the real job worker. |
|
backoff
Package backoff implements exponential backoff with full jitter.
|
Package backoff implements exponential backoff with full jitter. |
|
bridge
Package bridge moves device messages from Mosquitto into Kafka.
|
Package bridge moves device messages from Mosquitto into Kafka. |
|
buildinfo
Package buildinfo holds version information stamped into binaries at link time.
|
Package buildinfo holds version information stamped into binaries at link time. |
|
chaos
Package chaos runs the failure scenarios against the Compose stack and writes the results table.
|
Package chaos runs the failure scenarios against the Compose stack and writes the results table. |
|
checker
Package checker proves the delivery guarantee by reading the stored data back.
|
Package checker proves the delivery guarantee by reading the stored data back. |
|
chunks
Package chunks seals readings into chunk rows and opens them again.
|
Package chunks seals readings into chunk rows and opens them again. |
|
config
Package config loads service settings from environment variables and command-line flags into a tagged struct.
|
Package config loads service settings from environment variables and command-line flags into a tagged struct. |
|
coverage
Package coverage holds the interval logic behind exactly-once storage.
|
Package coverage holds the interval logic behind exactly-once storage. |
|
crl
Package crl publishes the device certificate revocation list.
|
Package crl publishes the device certificate revocation list. |
|
crypto/envelope
Package envelope seals stored readings with AES-256-GCM.
|
Package envelope seals stored readings with AES-256-GCM. |
|
crypto/keyring
Package keyring holds the per-tenant key-encryption keys (KEKs) that wrap tenant data keys.
|
Package keyring holds the per-tenant key-encryption keys (KEKs) that wrap tenant data keys. |
|
fsutil
Package fsutil holds the file operations that need care: writes that a crash or power cut leaves either old or new, never a mix, and reads of files that hold secrets.
|
Package fsutil holds the file operations that need care: writes that a crash or power cut leaves either old or new, never a mix, and reads of files that hold secrets. |
|
identity
Package identity is the device's key, certificate and enrollment state.
|
Package identity is the device's key, certificate and enrollment state. |
|
ingest
Package ingest stores uplink batches exactly once (ADR-0005).
|
Package ingest stores uplink batches exactly once (ADR-0005). |
|
jobs
Package jobs runs fleetwire's background jobs inside fleetwire-api: retention, exports, device purges and tenant destroys.
|
Package jobs runs fleetwire's background jobs inside fleetwire-api: retention, exports, device purges and tenant destroys. |
|
kafkahdr
Package kafkahdr names the Kafka record headers shared by the bridge and ingest, and adapts them for OpenTelemetry context propagation.
|
Package kafkahdr names the Kafka record headers shared by the bridge and ingest, and adapts them for OpenTelemetry context propagation. |
|
loadgen
Package loadgen runs many devices in one process.
|
Package loadgen runs many devices in one process. |
|
lru
Package lru is a small size-bounded cache with optional expiry, safe for concurrent use.
|
Package lru is a small size-bounded cache with optional expiry, safe for concurrent use. |
|
mqttconn
Package mqttconn sets up MQTT v5 connections the same way for the agent, the bridge and the ingest service: TLS client certificates, a persistent session, reconnects with full-jitter backoff, and connection metrics.
|
Package mqttconn sets up MQTT v5 connections the same way for the agent, the bridge and the ingest service: TLS client certificates, a persistent session, reconnects with full-jitter backoff, and connection metrics. |
|
pki
Package pki issues device certificates and certificate revocation lists.
|
Package pki issues device certificates and certificate revocation lists. |
|
pki/devpki
Package devpki creates the development certificate authorities and certificates for the Compose stack and the tests:
|
Package devpki creates the development certificate authorities and certificates for the Compose stack and the tests: |
|
store
Package store is the only code that talks SQL to PostgreSQL.
|
Package store is the only code that talks SQL to PostgreSQL. |
|
store/storetest
Package storetest starts a real PostgreSQL for integration tests.
|
Package storetest starts a real PostgreSQL for integration tests. |
|
svc
Package svc holds the start-up code shared by the backend binaries: signal handling, logging, tracing, the admin server, and mTLS client configs for the broker.
|
Package svc holds the start-up code shared by the backend binaries: signal handling, logging, tracing, the admin server, and mTLS client configs for the broker. |
|
telemetry
Package telemetry sets up logging, metrics and tracing the same way for every fleetwire binary: JSON logs through log/slog, a Prometheus registry, and OpenTelemetry traces exported over OTLP/HTTP.
|
Package telemetry sets up logging, metrics and tracing the same way for every fleetwire binary: JSON logs through log/slog, a Prometheus registry, and OpenTelemetry traces exported over OTLP/HTTP. |
|
tenantkey
Package tenantkey manages tenant data keys (DEKs): creating them, picking the one that seals new chunks, rotating it, and caching unwrapped keys for a short time so that every chunk does not cost a keyring call.
|
Package tenantkey manages tenant data keys (DEKs): creating them, picking the one that seals new chunks, rotating it, and caching unwrapped keys for a short time so that every chunk does not cost a keyring call. |
|
tokens
Package tokens creates and parses fleetwire's bearer tokens.
|
Package tokens creates and parses fleetwire's bearer tokens. |
|
uplinkpb
Package uplinkpb decodes and validates uplink batches.
|
Package uplinkpb decodes and validates uplink batches. |
|
wal
Package wal is the device-side write-ahead log.
|
Package wal is the device-side write-ahead log. |
|
scripts
|
|
|
dev-ca
command
Command dev-ca creates the development PKI for the Compose stack:
|
Command dev-ca creates the development PKI for the Compose stack: |
Click to show internal directories.
Click to hide internal directories.