From 402491b7e52c4d836c1274976cdb387852cfd17b Mon Sep 17 00:00:00 2001 From: Chris Date: Mon, 11 Sep 2017 10:02:02 -0500 Subject: PLT-7407: Back-end plugins (#7409) * tie back-end plugins together * fix comment typo * add tests and a bit of polish * tests and polish * add test, don't let backend executable paths escape the plugin directory --- plugin/hooks.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'plugin/hooks.go') diff --git a/plugin/hooks.go b/plugin/hooks.go index 336e56ccb..7f0d8ae3c 100644 --- a/plugin/hooks.go +++ b/plugin/hooks.go @@ -12,6 +12,9 @@ type Hooks interface { // use the API, and the plugin will be terminated shortly after this invocation. OnDeactivate() error + // OnConfigurationChange is invoked when configuration changes may have been made. + OnConfigurationChange() error + // ServeHTTP allows the plugin to implement the http.Handler interface. Requests destined for // the /plugins/{id} path will be routed to the plugin. // -- cgit v1.2.3-1-g7c22