1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/api
Stephen J Day ed6b8d61c6 api/server/httputils: ensure consistent status code
Error code resolution is powered by string matching. Not the greatest
thing in the world and I hope no one is proud of this code, but it
works. However, because a map is used, the iteration order of the map is
random, such that if an error matches two of the snippets, it may return
a different error code depending on the seed of the hashmap. This change
converts it to use a slice instead.

Signed-off-by: Stephen J Day <stephen.day@docker.com>
(cherry picked from commit 3484e02590)
Signed-off-by: Victor Vieux <victorvieux@gmail.com>
2016-12-05 14:30:39 -08:00
..
client add \n in engine labels display in docker node inspect xxx --pretty 2016-10-20 13:24:23 -07:00
fixtures Add more unit tests (thus coverage) to pkg api 2015-08-04 19:51:02 +02:00
server api/server/httputils: ensure consistent status code 2016-12-05 14:30:39 -08:00
types/backend Let client print error when speicify wrong detach keys 2016-04-04 15:35:55 +08:00
common.go Atomically save libtrust key file 2016-07-08 15:32:15 -07:00
common_test.go fix typos 2016-03-06 00:59:11 +08:00
README.md

This directory contains code pertaining to the Docker API:

  • Used by the docker client when communicating with the docker daemon

  • Used by third party tools wishing to interface with the docker daemon