types_windows.go 898 B

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