package service const ( RELPATH_PLUGINS = "/plugins" RELPATH_PROFILES = "/profiles" RELPATH_DATA = "/data" RELPATH_METADATA = "/.configurator" RELPATH_HELP = RELPATH_DATA + "/index.html" DEFAULT_TIMEOUT_IN_SECS = 60 DEFAULT_PLUGINS_MAX_COUNT = 64 DEFAULT_PROFILES_MAX_COUNT = 256 DEFAULT_METADATA = `` DEFAULT_HOME = `
# setup environment variables export CONFIGURATOR_HOST={{ configurator.host }} export CONFIGURATOR_PATH={{ configurator.path }} export CONFIGURATOR_SERVER_ROOT={{ configurator.server_root }} # start the service configurator serve --root $HOME/apps/configurator/server --init # download a file or directory (as archive) configurator download configurator download --host http://localhost:5050 --path help.txt # download files with rendering using plugins configurator download --plugins smd,jinja2 --profile compute curl $CONFIGURATOR_HOST/download/help.txt?plugins=smd,jinja2 # upload a file or directory (recursively) configurator upload configurator upload --host http://localhost:5050 --path help.txt # list the files in a directory configurator list --path help.txt configurator list --host http://localhost:5050 --path help.txt curl http://localhost:5050/list/test
` ) // configurator.host: https://example.com // configurator.path: test // configurator.server_root: $HOME/apps/configurator