github.com/demonoid81/moby@v0.0.0-20200517203328-62dd8e17c460/libcontainerd/types/types_windows.go (about) 1 package types // import "github.com/demonoid81/moby/libcontainerd/types" 2 3 import ( 4 "time" 5 6 "github.com/Microsoft/hcsshim" 7 "github.com/Microsoft/hcsshim/cmd/containerd-shim-runhcs-v1/options" 8 ) 9 10 type Summary options.ProcessDetails 11 12 // Stats contains statistics from HCS 13 type Stats struct { 14 Read time.Time 15 HCSStats *hcsshim.Statistics 16 } 17 18 // InterfaceToStats returns a stats object from the platform-specific interface. 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 // Checkpoint holds the details of a checkpoint (not supported in windows) 30 type Checkpoint struct { 31 Name string 32 } 33 34 // Checkpoints contains the details of a checkpoint 35 type Checkpoints struct { 36 Checkpoints []*Checkpoint 37 }