Remove windows files

Windows is not going to use containerd because there is already a
similar implementation on windows.  This removes all the windows files
because there is no reason to keep this overhead when its not going to
be used.

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
Michael Crosby 2016-04-26 11:53:47 -07:00
parent 79c35e0306
commit 31270bba69
9 changed files with 0 additions and 223 deletions

View file

@ -1,8 +0,0 @@
package supervisor
type platformStartTask struct {
}
// Checkpoint not supported on Windows
func (task *startTask) setTaskCheckpoint(t *StartTask) {
}

View file

@ -1,5 +0,0 @@
package supervisor
func CollectMachineInformation() (Machine, error) {
return Machine{}, nil
}

View file

@ -1,34 +0,0 @@
package supervisor
import (
"errors"
"github.com/docker/containerd/runtime"
)
// TODO Windows: This is going to be very problematic to port to Windows.
// Windows golang has no concept of EpollEvent/EpollCtl etc as in the
// Linux implementation. @crosbymichael - Help needed.
func NewMonitor() (*Monitor, error) {
// During Windows bring-up, don't error out other binary bombs immediately.
return &Monitor{}, nil
}
type Monitor struct {
}
func (m *Monitor) Exits() chan runtime.Process {
return nil
}
func (m *Monitor) Monitor(p runtime.Process) error {
return errors.New("Monitor not implemented on Windows")
}
func (m *Monitor) Close() error {
return errors.New("Monitor Close() not implemented on Windows")
}
func (m *Monitor) start() {
}

View file

@ -1,33 +0,0 @@
package supervisor
func (s *Supervisor) handleTask(i Task) {
var err error
switch t := i.(type) {
case *AddProcessTask:
err = s.addProcess(t)
case *StartTask:
err = s.start(t)
case *DeleteTask:
err = s.delete(t)
case *ExitTask:
err = s.exit(t)
case *ExecExitTask:
err = s.execExit(t)
case *GetContainersTask:
err = s.getContainers(t)
case *SignalTask:
err = s.signal(t)
case *StatsTask:
err = s.stats(t)
case *UpdateTask:
err = s.updateContainer(t)
case *UpdateProcessTask:
err = s.updateProcess(t)
default:
err = ErrUnknownTask
}
if err != errDeferredResponse {
i.ErrorCh() <- err
close(i.ErrorCh())
}
}