types.go 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. package types
  2. // ContainerCreateResponse contains the information returned to a client on the
  3. // creation of a new container.
  4. type ContainerCreateResponse struct {
  5. // ID is the ID of the created container.
  6. ID string `json:"Id"`
  7. // Warnings are any warnings encountered during the creation of the container.
  8. Warnings []string `json:"Warnings"`
  9. }
  10. // POST /containers/{name:.*}/exec
  11. type ContainerExecCreateResponse struct {
  12. // ID is the exec ID.
  13. ID string `json:"Id"`
  14. // Warnings are any warnings encountered during the execution of the command.
  15. Warnings []string `json:"Warnings"`
  16. }
  17. // POST /auth
  18. type AuthResponse struct {
  19. // Status is the authentication status
  20. Status string `json:"Status"`
  21. }
  22. // POST "/containers/"+containerID+"/wait"
  23. type ContainerWaitResponse struct {
  24. // StatusCode is the status code of the wait job
  25. StatusCode int `json:"StatusCode"`
  26. }
  27. // POST "/commit?container="+containerID
  28. type ContainerCommitResponse struct {
  29. ID string `json:"Id"`
  30. }
  31. // GET "/containers/{name:.*}/changes"
  32. type ContainerChange struct {
  33. Kind int
  34. Path string
  35. }