moby--moby/daemon/execdriver/windows/info.go

30 lines
536 B
Go

// +build windows
package windows
import (
"github.com/docker/docker/api/types/container"
"github.com/docker/docker/daemon/execdriver"
)
type info struct {
ID string
driver *Driver
isolation container.IsolationLevel
}
// Info implements the exec driver Driver interface.
func (d *Driver) Info(id string) execdriver.Info {
return &info{
ID: id,
driver: d,
isolation: DefaultIsolation,
}
}
func (i *info) IsRunning() bool {
var running bool
running = true // TODO Need an HCS API
return running
}