garm/cmd/garm-cli/cmd
Gabriel Adrian Samfira 42cfd1b3c6 Add agent mode
This change adds a new "agent mode" to GARM. The agent enables GARM to
set up a persistent websocket connection between the garm server and the
runners it spawns. The goal is to be able to easier keep track of state,
even without subsequent webhooks from the forge.

The Agent will report via websockets when the runner is actually online,
when it started a job and when it finished a job.

Additionally, the agent allows us to enable optional remote shell between
the user and any runner that is spun up using agent mode. The remote shell
is multiplexed over the same persistent websocket connection the agent
sets up with the server (the agent never listens on a port).

Enablement has also been done in the web UI for this functionality.

Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2026-02-08 00:27:47 +02:00
..
agent_nix.go Add agent mode 2026-02-08 00:27:47 +02:00
agent_windows.go Add agent mode 2026-02-08 00:27:47 +02:00
controller.go Add agent mode 2026-02-08 00:27:47 +02:00
enterprise.go Add agent mode 2026-02-08 00:27:47 +02:00
events.go Add copyright header 2025-05-20 09:43:29 +00:00
file_object.go Add API, CLI and web UI integration for objects 2025-10-08 22:22:58 +03:00
gitea.go Add copyright header 2025-05-20 09:43:29 +00:00
gitea_credentials.go Add copyright header 2025-05-20 09:43:29 +00:00
gitea_endpoints.go Add the ability to set tools download source (Gitea) 2025-09-26 18:59:15 +03:00
github.go Add copyright header 2025-05-20 09:43:29 +00:00
github_credentials.go Avoid nil pointer dereference in CLI 2025-05-21 20:58:21 +00:00
github_endpoints.go Add the ability to set tools download source (Gitea) 2025-09-26 18:59:15 +03:00
init.go Add agent mode 2026-02-08 00:27:47 +02:00
jobs.go Add --format command line option 2024-09-28 19:09:45 +00:00
log.go Make the debug-log command more useful 2025-08-27 13:21:56 +00:00
metrics.go fix: remove unused cobra args 2024-02-22 17:20:05 +01:00
organization.go Add agent mode 2026-02-08 00:27:47 +02:00
pool.go Add agent mode 2026-02-08 00:27:47 +02:00
profile.go Add --format command line option 2024-09-28 19:09:45 +00:00
provider.go Add --format command line option 2024-09-28 19:09:45 +00:00
repository.go Add agent mode 2026-02-08 00:27:47 +02:00
root.go Add API, CLI and web UI integration for objects 2025-10-08 22:22:58 +03:00
runner.go Add agent mode 2026-02-08 00:27:47 +02:00
scalesets.go Add agent mode 2026-02-08 00:27:47 +02:00
templates.go Add runner install template management (#525) 2025-09-23 13:46:27 +03:00
util.go Add API, CLI and web UI integration for objects 2025-10-08 22:22:58 +03:00
version.go Add version to controller info response 2024-07-05 12:49:16 +00:00