Documentation ¶
Index ¶
- Variables
- type CmdRunner
- func (c *CmdRunner) Diagnose(_ context.Context) string
- func (*CmdRunner) HostToPlugin(hostNet, hostAddr string) (string, string, error)
- func (c *CmdRunner) ID() string
- func (c *CmdRunner) Kill(_ context.Context) error
- func (c *CmdRunner) Name() string
- func (*CmdRunner) PluginToHost(pluginNet, pluginAddr string) (string, string, error)
- func (c *CmdRunner) Start(_ context.Context) error
- func (c *CmdRunner) Stderr() io.ReadCloser
- func (c *CmdRunner) Stdout() io.ReadCloser
- func (c *CmdRunner) Wait(_ context.Context) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrProcessNotFound is returned when a client is instantiated to // reattach to an existing process and it isn't found. ErrProcessNotFound = errors.New("reattachment process not found") )
Functions ¶
This section is empty.
Types ¶
type CmdRunner ¶
type CmdRunner struct {
// contains filtered or unexported fields
}
CmdRunner implements the runner.Runner interface. It mostly just passes through to exec.Cmd methods.
func NewCmdRunner ¶
NewCmdRunner returns an implementation of runner.Runner for running a plugin as a subprocess. It must be passed a cmd that hasn't yet been started.
func (*CmdRunner) HostToPlugin ¶
func (*CmdRunner) PluginToHost ¶
func (*CmdRunner) Stderr ¶
func (c *CmdRunner) Stderr() io.ReadCloser
func (*CmdRunner) Stdout ¶
func (c *CmdRunner) Stdout() io.ReadCloser
Click to show internal directories.
Click to hide internal directories.