api_params.go 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. package docker
  2. type APIHistory struct {
  3. ID string `json:"Id"`
  4. Tags []string `json:",omitempty"`
  5. Created int64
  6. CreatedBy string `json:",omitempty"`
  7. }
  8. type APIImages struct {
  9. Repository string `json:",omitempty"`
  10. Tag string `json:",omitempty"`
  11. ID string `json:"Id"`
  12. Created int64
  13. Size int64
  14. VirtualSize int64
  15. }
  16. type APIInfo struct {
  17. Debug bool
  18. Containers int
  19. Images int
  20. NFd int `json:",omitempty"`
  21. NGoroutines int `json:",omitempty"`
  22. MemoryLimit bool `json:",omitempty"`
  23. SwapLimit bool `json:",omitempty"`
  24. }
  25. type APIProc struct {
  26. PID string
  27. Tty string
  28. Time string
  29. Cmd string
  30. }
  31. type APIRmi struct {
  32. Deleted string `json:",omitempty"`
  33. Untagged string `json:",omitempty"`
  34. }
  35. type APIContainers struct {
  36. ID string `json:"Id"`
  37. Image string
  38. Command string
  39. Created int64
  40. Status string
  41. Ports string
  42. SizeRw int64
  43. SizeRootFs int64
  44. }
  45. type APISearch struct {
  46. Name string
  47. Description string
  48. }
  49. type APIID struct {
  50. ID string `json:"Id"`
  51. }
  52. type APIRun struct {
  53. ID string `json:"Id"`
  54. Warnings []string `json:",omitempty"`
  55. }
  56. type APIPort struct {
  57. Port string
  58. }
  59. type APIVersion struct {
  60. Version string
  61. GitCommit string `json:",omitempty"`
  62. GoVersion string `json:",omitempty"`
  63. }
  64. type APIWait struct {
  65. StatusCode int
  66. }
  67. type APIAuth struct {
  68. Status string
  69. }
  70. type APIImageConfig struct {
  71. ID string `json:"Id"`
  72. *Config
  73. }