Documentation
¶
Index ¶
Constants ¶
View Source
const ( PluginEnvKey = "MACHINE_PLUGIN_TOKEN" PluginEnvVal = "42" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DriverPlugin ¶
type DriverPlugin interface {
PluginServer
PluginStreamer
}
DriverPlugin interface wraps the underlying mechanics of starting a driver plugin server and then figuring out where it can be dialed.
type ErrPluginBinaryNotFound ¶
type ErrPluginBinaryNotFound struct {
// contains filtered or unexported fields
}
func (ErrPluginBinaryNotFound) Error ¶
func (e ErrPluginBinaryNotFound) Error() string
type Executor ¶ added in v0.5.1
type Executor struct {
DriverName string
// contains filtered or unexported fields
}
type McnBinaryExecutor ¶
type Plugin ¶ added in v0.5.1
type Plugin struct {
Executor McnBinaryExecutor
Addr string
MachineName string
// contains filtered or unexported fields
}
func (*Plugin) AttachStream ¶ added in v0.5.1
type PluginServer ¶
type PluginStreamer ¶
type PluginStreamer interface {
// Return a channel for receiving the output of the stream line by
// line, and a channel for stopping the stream when we are finished
// reading from it.
//
// It happens to be the case that we do this all inside of the main
// plugin struct today, but that may not be the case forever.
AttachStream(*bufio.Scanner) (<-chan string, chan<- bool)
}
Click to show internal directories.
Click to hide internal directories.