-
Notifications
You must be signed in to change notification settings - Fork 3
CAVI Go Tool
The CAVI support program works in conjunction with CAVI scripts to provide https connectivity with modern webservers. Making http(s) requests within the CAVI environment does not provide modern SSL/TLS protocol. Jython scripting within these environments hands-off web requests to the Go executable, with inputs, and the program returns requesting information back to the Jython parent process to finish its work.
The CAVI Go tool provides subcommands for get, git, grid, and extract. The get subcommand is basically a GET request that returns the response as stdout. git is specifically used to update the rtsutils package. Interacting with the Cumulus API is requested using the grid subcommand and proper inputs. Interacting with the water API to extract watershed data is done with extract subcommand and proper inputs.
All subcommands provide the user a couple ways to provide inputs to the running program, either switches or standard input. Standard input is a JSON string.