-
Notifications
You must be signed in to change notification settings - Fork 453
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expose Runner interface to allow custom command runner implementations (
#270) * Adds a new set of interfaces in a `runner` package to allow custom implementations for running plugins. * Adds 3 new client-facing config options: * `RunnerFunc` can be supplied to customise how a plugin is run, with `*exec.Cmd` treated as the spec. * `SkipHostEnv` tells go-plugin not to add the host process' environment variables to the command spec * `ReattachConfig.ReattachFunc` can be supplied to hook into running plugins that are identified by something other than a process ID * From a server (plugin) point of view; Adds optional environment variables to control the plugin's listener unix sockets * Adds `CmdRunner` as the default `Runner` implementation, maintaining existing functionality and backwards compatibility
- Loading branch information
Showing
19 changed files
with
655 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.