api_params.go 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. package docker
  2. type ApiHistory struct {
  3. Id string
  4. Created int64
  5. CreatedBy string
  6. }
  7. type ApiImages struct {
  8. Repository string `json:",omitempty"`
  9. Tag string `json:",omitempty"`
  10. Id string
  11. Created int64 `json:",omitempty"`
  12. Size int64
  13. ParentSize int64
  14. }
  15. type ApiInfo struct {
  16. Containers int
  17. Version string
  18. Images int
  19. Debug bool
  20. GoVersion string
  21. NFd int `json:",omitempty"`
  22. NGoroutines int `json:",omitempty"`
  23. }
  24. type ApiContainers struct {
  25. Id string
  26. Image string `json:",omitempty"`
  27. Command string `json:",omitempty"`
  28. Created int64 `json:",omitempty"`
  29. Status string `json:",omitempty"`
  30. Ports string `json:",omitempty"`
  31. SizeRw int64
  32. SizeRootFs int64
  33. }
  34. type ApiSearch struct {
  35. Name string
  36. Description string
  37. }
  38. type ApiId struct {
  39. Id string
  40. }
  41. type ApiRun struct {
  42. Id string
  43. Warnings []string
  44. }
  45. type ApiPort struct {
  46. Port string
  47. }
  48. type ApiVersion struct {
  49. Version string
  50. GitCommit string
  51. MemoryLimit bool
  52. SwapLimit bool
  53. }
  54. type ApiWait struct {
  55. StatusCode int
  56. }
  57. type ApiAuth struct {
  58. Status string
  59. }