lagoon-agent is a tool that allows automatic interaction with Lagoon to push and update hardware metadata.
Lagoon is developed by Fatfish Lab
./lagoon-agent hardware push --conf lagoon-agent.conf
This agent is compatible with Windows, Linux and Macos. There are no installation process, lagoon-agent is a standalone CLI.
Check out the releases section to download the latest version.
You can display the lagoon-agent document from the CLI, using the flag -h
.
./lagoon-agent -h
Tip
More information regarding the configuration file are available in your Lagoon interface. You can execute the command lagoon-agent login
to gain access to those informations.
Usage: lagoon-agent
Version: 1.0.0
Description:
Lagoon's agent - Push automatically your hardware on Lagoon
Options:
-h, --help - Show this help.
-V, --version - Show the version number for this program.
-d, --debug [debug] - enable debug (Values: "INFO", "WARNING", "ERROR", "DEBUG", 0, 1, 2, 3)
-c, --conf <file> - load configuration from file
Commands:
login - Login the agent on your Lagoon.
hardware - Manage your hardware on Lagoon.
Environment variables:
LAGOON_DEBUG <debug> - Enable debug
LAGOON_URL <url> - Define Lagoon instance url
LAGOON_DOMAIN <domain> - Specify the domain used for unauthenticated requests. Mainly for Lagoon Fatfish
Lab dev or local Lagoon server without DNS redirection
LAGOON_TOKEN <token> - Use an existing token to authenticate Lagoon agent
LAGOON_BOTKEY <botkey> - Define the bot key used to authenticate Lagoon agent
LAGOON_BOTSECRET <botsecret> - Define the bot secret used to authenticate Lagoon agent
LAGOON_HARDWARE_KEY <hardwareKey> - Define the location of hardware on Lagoon
The repository is maintained by Fatfish Lab
You can contact our team at [email protected].
lagoon-agent is using Deno, a secured, efficient and typescript JavaScript runtime.
- Install Deno
- Clone this repository
- Happy coding !
- If you are looking for assistance, contact us [email protected] or join our community
We added a Deno task deno task dev
in this repository. So you need to replace lagoon-agent
by deno task dev
.
Here are some examples :
Show lagoon-agent help:
deno task dev -h
Show hardware metadata:
deno task dev hardware show
If you develop under VSCode, we provide a launch.example.json
.
- Duplicate
.vscode/launch.example.json
and rename to.vscode/launch.json
- If
deno
is not in your path, replace"runtimeExecutable" : "deno"
by"runtimeExecutable" : "path/to/bin/deno"
- Replace
lagoon-agent.conf
by the full path of your Lagoon configuration file. - From VSCode debug tab, launch the task
Hardware push
We added a Deno task deno task build
in this repository. Just run deno task build
to build for all plateforms. If you are looking to build only for a specific platform you wan use deno task build:windows
to only build for windows.
Feel free to adapt the build commands to your needs. They are located into the deno.json file.
This project uses the following license: GPL-3.0-only. See the license file to read it.