api_params.go 1.6 KB

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