types.go 877 B

1234567891011121314151617181920212223242526272829303132
  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. }