Initial commit
This commit is contained in:
15
vendor/github.com/hyperhq/hypercli/daemon/execdriver/execdrivers/execdrivers_freebsd.go
generated
vendored
Normal file
15
vendor/github.com/hyperhq/hypercli/daemon/execdriver/execdrivers/execdrivers_freebsd.go
generated
vendored
Normal 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")
|
||||
}
|
||||
16
vendor/github.com/hyperhq/hypercli/daemon/execdriver/execdrivers/execdrivers_linux.go
generated
vendored
Normal file
16
vendor/github.com/hyperhq/hypercli/daemon/execdriver/execdrivers/execdrivers_linux.go
generated
vendored
Normal 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)
|
||||
}
|
||||
14
vendor/github.com/hyperhq/hypercli/daemon/execdriver/execdrivers/execdrivers_windows.go
generated
vendored
Normal file
14
vendor/github.com/hyperhq/hypercli/daemon/execdriver/execdrivers/execdrivers_windows.go
generated
vendored
Normal 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)
|
||||
}
|
||||
Reference in New Issue
Block a user