|
Sonde v1.1.0
Embeddable Model Context Protocol server for Qt applications
|
Functions | |
| QStringList | dockerPs (const QString &filter) |
The IDs of the running containers that pass docker ps filter filter (all of them if it is empty). | |
| bool | hasSocket (const QString &id, const QString &socket) |
Whether a local socket socket exists in container id, where the application would create it: as given if it is a path, else in the container's temporary directory, as QLocalServer does. | |
| QStringList | findContainers (const QString &target, const QString &socket) |
The running containers that target names: "auto" (those where socket exists), a docker ps filter (anything with '=', such as label=KEY=VALUE or ancestor=IMAGE), or a name or an id. | |
| void | dockerBridge (const QString &target, const QString &socket, const QString &user, int timeout) |
Becomes docker exec -i <container> sonde-bridge --wait <socket> for the running container that target matches, waiting for one (up to timeout seconds, or for ever if 0). | |
| void | runBridge (const QJsonObject &config, const Project &project, const QString &local, const QString &hold) |
Runs the bridge on this checkout's socket, local, holding requests hold seconds (empty: the default) while the application is away: the program in "bridge", if set, otherwise in this process. | |
| void Sonde::Cli::anonymous_namespace{bridgecommand.cpp}::dockerBridge | ( | const QString & | target, |
| const QString & | socket, | ||
| const QString & | user, | ||
| int | timeout ) |
Becomes docker exec -i <container> sonde-bridge --wait <socket> for the running container that target matches, waiting for one (up to timeout seconds, or for ever if 0).
user, if not empty, is the user to run it as. With "auto", several containers with the socket is an error: which one is meant can't be told.