Documentation
¶
Overview ¶
Package l7runner is aicoded l7-runner, a hidden command that the delivery pipeline runs for the simulated attacks on one app:
aicoded l7-runner --app <tree> --runner-dir <dir> --control <socket path> --state <dir>
[--mysql-dsn-file <file> --mysql-database <name> [--migrations <file>]]
It serves the runner protocol to the app through the runner server with the providers of aicoded dev, in the environment preview, and builds and starts nothing: the pipeline starts the app, as another user, once the runner answers on its control socket. Before it serves, it applies to the app's database, with migrate.Apply, the steps in the file of --migrations, a JSON object {"steps": [...]} of the app's migrations as the platform lists them. The control API, for the pipeline alone, reports the app's state, mints viewer tokens and returns the app's spans. Nothing listens on TCP, and nothing is logged but one line on stderr when the command fails or cannot open the app's database.
Index ¶
Constants ¶
const Protocol = 1
Protocol is the version of the control API.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.