Documentation ¶
Index ¶
Constants ¶
View Source
const ( PluginEnvKey = "MACHINE_PLUGIN_TOKEN" PluginEnvVal = "42" PluginEnvDriverName = "MACHINE_PLUGIN_DRIVER_NAME" PluginUID = "MACHINE_PLUGIN_UID" PluginGID = "MACHINE_PLUGIN_GID" )
Variables ¶
View Source
var ( CurrentBinaryIsDockerMachine = false CoreDrivers = []string{ "amazonec2", "azure", "digitalocean", "exoscale", "generic", "google", "hyperv", "none", "openstack", "rackspace", "softlayer", "virtualbox", "vmwarefusion", "vmwarevcloudair", "vmwarevsphere", "pod", "noop", } )
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 NewPlugin ¶ added in v0.5.1
NewPlugin creates a Plugin for the specified driver.
The `driverName` can be either a simple name or an absolute path to the driver:
- If `driverName` is a simple name, "docker-machine-driver-" is prepended to it, and the executable is searched for in the directories listed in the PATH environment variable.
- If `driverName` is an absolute path, the executable is searched for at that specific location.
func (*Plugin) AttachStream ¶ added in v0.5.1
type PluginServer ¶
type PluginStreamer ¶
Click to show internal directories.
Click to hide internal directories.