Initial commit

This commit is contained in:
Ria Bhatia
2017-12-04 13:32:57 -06:00
committed by Erik St. Martin
commit 0075e5b0f3
9056 changed files with 2523100 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
// +build freebsd
package execdrivers
import (
"fmt"
"github.com/hyperhq/hypercli/daemon/execdriver"
"github.com/hyperhq/hypercli/pkg/sysinfo"
)
// NewDriver returns a new execdriver.Driver from the given name configured with the provided options.
func NewDriver(options []string, root, libPath string, sysInfo *sysinfo.SysInfo) (execdriver.Driver, error) {
return nil, fmt.Errorf("jail driver not yet supported on FreeBSD")
}

View File

@@ -0,0 +1,16 @@
// +build linux
package execdrivers
import (
"path"
"github.com/hyperhq/hypercli/daemon/execdriver"
"github.com/hyperhq/hypercli/daemon/execdriver/native"
"github.com/hyperhq/hypercli/pkg/sysinfo"
)
// NewDriver returns a new execdriver.Driver from the given name configured with the provided options.
func NewDriver(options []string, root, libPath string, sysInfo *sysinfo.SysInfo) (execdriver.Driver, error) {
return native.NewDriver(path.Join(root, "execdriver", "native"), options)
}

View File

@@ -0,0 +1,14 @@
// +build windows
package execdrivers
import (
"github.com/hyperhq/hypercli/daemon/execdriver"
"github.com/hyperhq/hypercli/daemon/execdriver/windows"
"github.com/hyperhq/hypercli/pkg/sysinfo"
)
// NewDriver returns a new execdriver.Driver from the given name configured with the provided options.
func NewDriver(options []string, root, libPath string, sysInfo *sysinfo.SysInfo) (execdriver.Driver, error) {
return windows.NewDriver(root, options)
}