types_windows.go 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. package libcontainerd
  2. import (
  3. "github.com/Microsoft/hcsshim"
  4. "github.com/docker/docker/libcontainerd/windowsoci"
  5. )
  6. // Spec is the base configuration for the container.
  7. type Spec windowsoci.Spec
  8. // Process contains information to start a specific application inside the container.
  9. type Process windowsoci.Process
  10. // User specifies user information for the containers main process.
  11. type User windowsoci.User
  12. // Summary contains a ProcessList item from HCS to support `top`
  13. type Summary hcsshim.ProcessListItem
  14. // StateInfo contains description about the new state container has entered.
  15. type StateInfo struct {
  16. CommonStateInfo
  17. // Platform specific StateInfo
  18. UpdatePending bool // Indicates that there are some update operations pending that should be completed by a servicing container.
  19. }
  20. // Stats contains statics from HCS
  21. type Stats hcsshim.Statistics
  22. // Resources defines updatable container resource values.
  23. type Resources struct{}
  24. // ServicingOption is an empty CreateOption with a no-op application that signifies
  25. // the container needs to be used for a Windows servicing operation.
  26. type ServicingOption struct {
  27. IsServicing bool
  28. }
  29. // FlushOption is an empty CreateOption that signifies if the container should be
  30. // started with flushes ignored until boot has completed. This is an optimisation
  31. // for first boot of a container.
  32. type FlushOption struct {
  33. IgnoreFlushesDuringBoot bool
  34. }
  35. // Checkpoint holds the details of a checkpoint (not supported in windows)
  36. type Checkpoint struct {
  37. Name string
  38. }
  39. // Checkpoints contains the details of a checkpoint
  40. type Checkpoints struct {
  41. Checkpoints []*Checkpoint
  42. }