Invoke takes the given input, and dispatches the contents to plugin instance The input is expected to be a JSON-serializable object, which the plugin will interpret according to its type The plugin is expected to return a JSON-serializable object, which the invoker will interpret according to the pl
(ctx context.Context, input *Input)
| 42 | // If plugin's execution fails with a non-zero "return code" (this is plugin runtime implementation specific) |
| 43 | // an InvokeExecError is returned |
| 44 | Invoke(ctx context.Context, input *Input) (*Output, error) |
| 45 | } |
| 46 | |
| 47 | // PluginHook allows plugins to implement hooks that are invoked on plugin management events (install, upgrade, etc) |
no outgoing calls