41 lines
842 B
Go
41 lines
842 B
Go
// +build !linux
|
|
|
|
package executor
|
|
|
|
import (
|
|
cstructs "github.com/hashicorp/nomad/client/driver/structs"
|
|
cgroupConfig "github.com/opencontainers/runc/libcontainer/configs"
|
|
)
|
|
|
|
func (e *UniversalExecutor) configureChroot() error {
|
|
return nil
|
|
}
|
|
|
|
func DestroyCgroup(groups *cgroupConfig.Cgroup, paths map[string]string, executorPid int) error {
|
|
return nil
|
|
}
|
|
|
|
func (e *UniversalExecutor) removeChrootMounts() error {
|
|
return nil
|
|
}
|
|
|
|
func (e *UniversalExecutor) runAs(userid string) error {
|
|
return nil
|
|
}
|
|
|
|
func (e *UniversalExecutor) applyLimits(pid int) error {
|
|
return nil
|
|
}
|
|
|
|
func (e *UniversalExecutor) configureIsolation() error {
|
|
return nil
|
|
}
|
|
|
|
func (e *UniversalExecutor) Stats() (*cstructs.TaskResourceUsage, error) {
|
|
return e.resourceUsagePids()
|
|
}
|
|
|
|
func (e *UniversalExecutor) getAllPids() ([]*NomadPid, error) {
|
|
return e.scanPids()
|
|
}
|