github.com/gunjan5/docker@v1.8.2/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  func NewDriver(name string, options []string, root, libPath, initPath string, sysInfo *sysinfo.SysInfo) (execdriver.Driver, error) {
    14  	switch name {
    15  	case "windows":
    16  		return windows.NewDriver(root, initPath, options)
    17  	}
    18  	return nil, fmt.Errorf("unknown exec driver %s", name)
    19  }