types_solaris.go 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. package libcontainerd
  2. import (
  3. containerd "github.com/containerd/containerd/api/grpc/types"
  4. "github.com/opencontainers/runtime-spec/specs-go"
  5. )
  6. // Process contains information to start a specific application inside the container.
  7. type Process struct {
  8. // Terminal creates an interactive terminal for the container.
  9. Terminal bool `json:"terminal"`
  10. // User specifies user information for the process.
  11. User *specs.User `json:"user"`
  12. // Args specifies the binary and arguments for the application to execute.
  13. Args []string `json:"args"`
  14. // Env populates the process environment for the process.
  15. Env []string `json:"env,omitempty"`
  16. // Cwd is the current working directory for the process and must be
  17. // relative to the container's root.
  18. Cwd *string `json:"cwd"`
  19. // Capabilities are linux capabilities that are kept for the container.
  20. Capabilities []string `json:"capabilities,omitempty"`
  21. }
  22. // Stats contains a stats properties from containerd.
  23. type Stats struct{}
  24. // Summary contains a container summary from containerd
  25. type Summary struct{}
  26. // StateInfo contains description about the new state container has entered.
  27. type StateInfo struct {
  28. CommonStateInfo
  29. // Platform specific StateInfo
  30. OOMKilled bool
  31. }
  32. // Resources defines updatable container resource values.
  33. type Resources struct{}
  34. // Checkpoints contains the details of a checkpoint
  35. type Checkpoints containerd.ListCheckpointResponse