github.com/ssdev-go/moby@v17.12.1-ce-rc2+incompatible/libcontainerd/types_windows.go (about) 1 package libcontainerd 2 3 import ( 4 "time" 5 6 "github.com/Microsoft/hcsshim" 7 opengcs "github.com/Microsoft/opengcs/client" 8 ) 9 10 // Summary contains a ProcessList item from HCS to support `top` 11 type Summary hcsshim.ProcessListItem 12 13 // Stats contains statistics from HCS 14 type Stats struct { 15 Read time.Time 16 HCSStats *hcsshim.Statistics 17 } 18 19 func interfaceToStats(read time.Time, v interface{}) *Stats { 20 return &Stats{ 21 HCSStats: v.(*hcsshim.Statistics), 22 Read: read, 23 } 24 } 25 26 // Resources defines updatable container resource values. 27 type Resources struct{} 28 29 // LCOWOption is a CreateOption required for LCOW configuration 30 type LCOWOption struct { 31 Config *opengcs.Config 32 } 33 34 // Checkpoint holds the details of a checkpoint (not supported in windows) 35 type Checkpoint struct { 36 Name string 37 } 38 39 // Checkpoints contains the details of a checkpoint 40 type Checkpoints struct { 41 Checkpoints []*Checkpoint 42 }