api_params.go 1.3 KB

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