api_params.go 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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 APIRmi struct {
  23. Deleted string `json:",omitempty"`
  24. Untagged string `json:",omitempty"`
  25. }
  26. type APIContainers struct {
  27. ID string `json:"Id"`
  28. Image string
  29. Command string
  30. Created int64
  31. Status string
  32. Ports string
  33. }
  34. type APISearch struct {
  35. Name string
  36. Description string
  37. }
  38. type APIID struct {
  39. ID string `json:"Id"`
  40. }
  41. type APIRun struct {
  42. ID string `json:"Id"`
  43. Warnings []string `json:",omitempty"`
  44. }
  45. type APIPort struct {
  46. Port string
  47. }
  48. type APIVersion struct {
  49. Version string
  50. GitCommit string `json:",omitempty"`
  51. GoVersion string `json:",omitempty"`
  52. }
  53. type APIWait struct {
  54. StatusCode int
  55. }
  56. type APIAuth struct {
  57. Status string
  58. }
  59. type APIImageConfig struct {
  60. ID string `json:"Id"`
  61. *Config
  62. }