client.go 592 B

1234567891011121314151617
  1. // Package client provides a command-line interface for Docker.
  2. //
  3. // Run "docker help SUBCOMMAND" or "docker SUBCOMMAND --help" to see more information on any Docker subcommand, including the full list of options supported for the subcommand.
  4. // See https://docs.docker.com/installation/ for instructions on installing Docker.
  5. package client
  6. import "fmt"
  7. // An StatusError reports an unsuccessful exit by a command.
  8. type StatusError struct {
  9. Status string
  10. StatusCode int
  11. }
  12. func (e *StatusError) Error() string {
  13. return fmt.Sprintf("Status: %s, Code: %d", e.Status, e.StatusCode)
  14. }