command-agent

command module
v0.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 27, 2024 License: MIT Imports: 6 Imported by: 0

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 :

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL