github.com/clintkitson/docker@v1.9.1/daemon/execdriver/execdrivers/execdrivers_windows.go (about)

     1  // +build windows
     2  
     3  package execdrivers
     4  
     5  import (
     6  	"fmt"
     7  
     8  	"github.com/docker/docker/daemon/execdriver"
     9  	"github.com/docker/docker/daemon/execdriver/windows"
    10  	"github.com/docker/docker/pkg/sysinfo"
    11  )
    12  
    13  // NewDriver returns a new execdriver.Driver from the given name configured with the provided options.
    14  func NewDriver(name string, options []string, root, libPath, initPath string, sysInfo *sysinfo.SysInfo) (execdriver.Driver, error) {
    15  	switch name {
    16  	case "windows":
    17  		return windows.NewDriver(root, initPath, options)
    18  	}
    19  	return nil, fmt.Errorf("unknown exec driver %s", name)
    20  }