2015-04-27 18:20:44 -04:00
|
|
|
// +build windows
|
|
|
|
|
|
|
|
package execdrivers
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
|
|
|
|
"github.com/docker/docker/daemon/execdriver"
|
|
|
|
"github.com/docker/docker/daemon/execdriver/windows"
|
|
|
|
"github.com/docker/docker/pkg/sysinfo"
|
|
|
|
)
|
|
|
|
|
2015-07-27 20:43:22 -04:00
|
|
|
// NewDriver returns a new execdriver.Driver from the given name configured with the provided options.
|
2015-05-16 14:38:19 -04:00
|
|
|
func NewDriver(name string, options []string, root, libPath, initPath string, sysInfo *sysinfo.SysInfo) (execdriver.Driver, error) {
|
2015-04-27 18:20:44 -04:00
|
|
|
switch name {
|
|
|
|
case "windows":
|
2015-05-27 16:15:14 -04:00
|
|
|
return windows.NewDriver(root, initPath, options)
|
2015-04-27 18:20:44 -04:00
|
|
|
}
|
|
|
|
return nil, fmt.Errorf("unknown exec driver %s", name)
|
|
|
|
}
|