2015-09-11 19:35:03 +00:00
|
|
|
package exec
|
|
|
|
|
2015-09-12 00:12:48 +00:00
|
|
|
import "github.com/hashicorp/nomad/nomad/structs"
|
|
|
|
|
|
|
|
type LinuxExecutor struct {
|
|
|
|
cmd
|
|
|
|
}
|
|
|
|
|
|
|
|
func (e *LinuxExecutor) Limit(resources structs.Resources) {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (e *LinuxExecutor) RunAs(userid string) {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (e *LinuxExecutor) Start() error {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (e *LinuxExecutor) Open(pid int) error {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (e *LinuxExecutor) Shutdown() error {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (e *LinuxExecutor) ForceStop() error {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (e *LinuxExecutor) Command() *cmd {
|
|
|
|
return &e.cmd
|
|
|
|
}
|