github.com/endocode/docker@v1.4.2-0.20160113120958-46eb4700391e/daemon/execdriver/windows/info.go (about)

     1  // +build windows
     2  
     3  package windows
     4  
     5  import (
     6  	"github.com/docker/docker/daemon/execdriver"
     7  	"github.com/docker/engine-api/types/container"
     8  )
     9  
    10  type info struct {
    11  	ID        string
    12  	driver    *Driver
    13  	isolation container.IsolationLevel
    14  }
    15  
    16  // Info implements the exec driver Driver interface.
    17  func (d *Driver) Info(id string) execdriver.Info {
    18  	return &info{
    19  		ID:        id,
    20  		driver:    d,
    21  		isolation: DefaultIsolation,
    22  	}
    23  }
    24  
    25  func (i *info) IsRunning() bool {
    26  	var running bool
    27  	running = true // TODO Need an HCS API
    28  	return running
    29  }