2016-02-25 19:23:37 +00:00
|
|
|
package runtime
|
|
|
|
|
2016-02-29 18:48:39 +00:00
|
|
|
import (
|
|
|
|
"errors"
|
2016-02-26 02:39:03 +00:00
|
|
|
|
2016-02-29 18:48:39 +00:00
|
|
|
"github.com/docker/containerd/specs"
|
|
|
|
)
|
|
|
|
|
|
|
|
func getRootIDs(s *specs.PlatformSpec) (int, int, error) {
|
2016-02-25 19:23:37 +00:00
|
|
|
return 0, 0, nil
|
|
|
|
}
|
2016-02-26 02:39:03 +00:00
|
|
|
|
2016-02-29 18:48:39 +00:00
|
|
|
// TODO Windows: This will have a different implementation
|
|
|
|
func (c *container) State() State {
|
|
|
|
return Running // HACK HACK HACK
|
|
|
|
}
|
|
|
|
|
2016-02-25 20:59:34 +00:00
|
|
|
func (c *container) Runtime() string {
|
|
|
|
return "windows"
|
|
|
|
}
|
|
|
|
|
2016-02-26 02:39:03 +00:00
|
|
|
func (c *container) Pause() error {
|
|
|
|
return errors.New("Pause not supported on Windows")
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *container) Resume() error {
|
|
|
|
return errors.New("Resume not supported on Windows")
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *container) Checkpoints() ([]Checkpoint, error) {
|
|
|
|
return nil, errors.New("Checkpoints not supported on Windows ")
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *container) Checkpoint(cpt Checkpoint) error {
|
|
|
|
return errors.New("Checkpoint not supported on Windows ")
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *container) DeleteCheckpoint(name string) error {
|
|
|
|
return errors.New("DeleteCheckpoint not supported on Windows ")
|
|
|
|
}
|
|
|
|
|
|
|
|
// TODO Windows: Implement me.
|
|
|
|
// This will have a very different implementation on Windows.
|
|
|
|
func (c *container) Start(checkpoint string, s Stdio) (Process, error) {
|
|
|
|
return nil, errors.New("Start not yet implemented on Windows")
|
|
|
|
}
|
|
|
|
|
|
|
|
// TODO Windows: Implement me.
|
|
|
|
// This will have a very different implementation on Windows.
|
2016-02-29 18:48:39 +00:00
|
|
|
func (c *container) Exec(pid string, spec specs.ProcessSpec, s Stdio) (Process, error) {
|
2016-02-26 02:39:03 +00:00
|
|
|
return nil, errors.New("Exec not yet implemented on Windows")
|
|
|
|
}
|
|
|
|
|
|
|
|
// TODO Windows: Implement me.
|
|
|
|
func (c *container) Pids() ([]int, error) {
|
|
|
|
return nil, errors.New("Pids not yet implemented on Windows")
|
|
|
|
}
|
|
|
|
|
|
|
|
// TODO Windows: Implement me. (Not yet supported by docker on Windows either...)
|
|
|
|
func (c *container) Stats() (*Stat, error) {
|
|
|
|
return nil, errors.New("Stats not yet implemented on Windows")
|
|
|
|
}
|
2016-02-29 22:15:16 +00:00
|
|
|
|
|
|
|
func (c *container) OOM() (OOM, error) {
|
|
|
|
return nil, errors.New("OOM not yet implemented on Windows")
|
|
|
|
}
|