Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 1.93 KB

plugin_upload.md

File metadata and controls

29 lines (19 loc) · 1.93 KB

Beta feature: Upload plugins, from within Go, without restarting the server

Note: This is a beta feature, which is turned off by default in Go 15.1.0. It can be turned on by using the feature toggle API, for this feature. If you are using curl, this is what you will need to do:
curl -d 'toggle_value=on' 'http://go_server/go/api/admin/feature_toggles/plugin_upload_feature_toggle_key'

When authentication is turned on in your Go Server setup, add the --user option to the curl command, like this:

curl --user username:password -d 'toggle_value=on' ...

Without this feature turned on, the plugins list page looks like this:

Plugins list - Without feature turned on

When this feature is turned on, the plugins list page will include a form to upload a plugin:

Plugins list - With feature turned on

For this upload to work, you need to turn on another flag during startup (sorry, there is a reason for not turning this on, though). The system property you need to set is pluginLocationMonitor.sleepTimeInSecs. You can set that to something like 3 seconds, by changing GO_SERVER_SYSTEM_PROPERTIES to include -DpluginLocationMonitor.sleepTimeInSecs=3, for instance.

Once you have that setup, and add a plugin using the upload form above, you'll see a message about the successful save of the plugin. Within 3 seconds (property you set earlier), the plugin will be loaded, and you can see it when you refresh the plugin listing page.