8b9b8bd930
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
|
||
---|---|---|
.. | ||
errors | ||
fixtures | ||
server | ||
templates/server | ||
types | ||
common.go | ||
common_test.go | ||
common_unix.go | ||
common_windows.go | ||
README.md | ||
swagger-gen.yaml | ||
swagger.yaml |
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