api_params.go 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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. IPv4Forwarding bool `json:",omitempty"`
  25. LXCVersion string `json:",omitempty"`
  26. NEventsListener int `json:",omitempty"`
  27. KernelVersion string `json:",omitempty"`
  28. IndexServerAddress string `json:",omitempty"`
  29. }
  30. type APITop struct {
  31. Titles []string
  32. Processes [][]string
  33. }
  34. type APIRmi struct {
  35. Deleted string `json:",omitempty"`
  36. Untagged string `json:",omitempty"`
  37. }
  38. type APIContainers struct {
  39. ID string `json:"Id"`
  40. Image string
  41. Command string
  42. Created int64
  43. Status string
  44. Ports string
  45. SizeRw int64
  46. SizeRootFs int64
  47. }
  48. type APISearch struct {
  49. Name string
  50. Description string
  51. }
  52. type APIID struct {
  53. ID string `json:"Id"`
  54. }
  55. type APIRun struct {
  56. ID string `json:"Id"`
  57. Warnings []string `json:",omitempty"`
  58. }
  59. type APIPort struct {
  60. Port string
  61. }
  62. type APIVersion struct {
  63. Version string
  64. GitCommit string `json:",omitempty"`
  65. GoVersion string `json:",omitempty"`
  66. }
  67. type APIWait struct {
  68. StatusCode int
  69. }
  70. type APIAuth struct {
  71. Status string
  72. }
  73. type APIImageConfig struct {
  74. ID string `json:"Id"`
  75. *Config
  76. }
  77. type APICopy struct {
  78. Resource string
  79. HostPath string
  80. }