options.go 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. package container
  2. import "github.com/docker/docker/api/types/filters"
  3. // ResizeOptions holds parameters to resize a TTY.
  4. // It can be used to resize container TTYs and
  5. // exec process TTYs too.
  6. type ResizeOptions struct {
  7. Height uint
  8. Width uint
  9. }
  10. // AttachOptions holds parameters to attach to a container.
  11. type AttachOptions struct {
  12. Stream bool
  13. Stdin bool
  14. Stdout bool
  15. Stderr bool
  16. DetachKeys string
  17. Logs bool
  18. }
  19. // CommitOptions holds parameters to commit changes into a container.
  20. type CommitOptions struct {
  21. Reference string
  22. Comment string
  23. Author string
  24. Changes []string
  25. Pause bool
  26. Config *Config
  27. }
  28. // RemoveOptions holds parameters to remove containers.
  29. type RemoveOptions struct {
  30. RemoveVolumes bool
  31. RemoveLinks bool
  32. Force bool
  33. }
  34. // StartOptions holds parameters to start containers.
  35. type StartOptions struct {
  36. CheckpointID string
  37. CheckpointDir string
  38. }
  39. // ListOptions holds parameters to list containers with.
  40. type ListOptions struct {
  41. Size bool
  42. All bool
  43. Latest bool
  44. Since string
  45. Before string
  46. Limit int
  47. Filters filters.Args
  48. }
  49. // LogsOptions holds parameters to filter logs with.
  50. type LogsOptions struct {
  51. ShowStdout bool
  52. ShowStderr bool
  53. Since string
  54. Until string
  55. Timestamps bool
  56. Follow bool
  57. Tail string
  58. Details bool
  59. }