Categorygithub.com/nSakkriou/command-agent
modulepackage
0.0.6
Repository: https://github.com/nsakkriou/command-agent.git
Documentation: pkg.go.dev

# README

Command Agent

Command agent is a go tool who start web api, and link endpoint with shell script.

To start agent you have to create a AgentFile.

It's a JSON file with some mandatory parameters :

{
  "port" : 7890,
  "scripts_folder_path" : "/scripts/",
  "endcommands" : [
    {
      "endpoint_name" : "start",
      "scripts_files_names" : ["start.sh"],
      "method" : "POST"
    }
  ]
}

Before running, scripts_folder_path and all scripts_files_names have to exists.

$ go run main.go

Start process if AgentFile is in same folder.

Basic endpoint :

# Packages

No description provided by the author