minimal-sensor

command
v0.48.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 6, 2026 License: Apache-2.0 Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Example: a complete OpenCTEM sensor in one file.

The sensor implements one tool (an in-process scanner that reports .env files left in a directory); pkg/sensorkit does everything else: settings, platform connection, heartbeat with the tool inventory, doorbell, command queue, outbox, key renewal and graceful shutdown.

go build -o minimal-sensor ./examples/minimal-sensor
API_URL=https://openctem.example.com API_KEY=<sensor key> \
SENSOR_SCAN_ROOTS=/srv/code ./minimal-sensor

Dispatch a scan with tool "dotenv-check" from the platform, or run with -target <dir> to also scan a directory every hour.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL