api_params.go 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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. }
  13. type APIInfo struct {
  14. Debug bool
  15. Containers int
  16. Images int
  17. NFd int `json:",omitempty"`
  18. NGoroutines int `json:",omitempty"`
  19. MemoryLimit bool `json:",omitempty"`
  20. SwapLimit bool `json:",omitempty"`
  21. }
  22. type APIContainers struct {
  23. ID string `json:"Id"`
  24. Image string
  25. Command string
  26. Created int64
  27. Status string
  28. Ports string
  29. }
  30. type APISearch struct {
  31. Name string
  32. Description string
  33. }
  34. type APIID struct {
  35. ID string `json:"Id"`
  36. }
  37. type APIRun struct {
  38. ID string `json:"Id"`
  39. Warnings []string `json:",omitempty"`
  40. }
  41. type APIPort struct {
  42. Port string
  43. }
  44. type APIVersion struct {
  45. Version string
  46. GitCommit string `json:",omitempty"`
  47. GoVersion string `json:",omitempty"`
  48. }
  49. type APIWait struct {
  50. StatusCode int
  51. }
  52. type APIAuth struct {
  53. Status string
  54. }
  55. type APIImageConfig struct {
  56. ID string `json:"Id"`
  57. *Config
  58. }