types_windows.go 869 B

12345678910111213141516171819202122232425262728293031323334353637
  1. package types // import "github.com/docker/docker/libcontainerd/types"
  2. import (
  3. "time"
  4. "github.com/Microsoft/hcsshim"
  5. "github.com/Microsoft/hcsshim/cmd/containerd-shim-runhcs-v1/options"
  6. )
  7. type Summary options.ProcessDetails
  8. // Stats contains statistics from HCS
  9. type Stats struct {
  10. Read time.Time
  11. HCSStats *hcsshim.Statistics
  12. }
  13. // InterfaceToStats returns a stats object from the platform-specific interface.
  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. // Checkpoint holds the details of a checkpoint (not supported in windows)
  23. type Checkpoint struct {
  24. Name string
  25. }
  26. // Checkpoints contains the details of a checkpoint
  27. type Checkpoints struct {
  28. Checkpoints []*Checkpoint
  29. }