1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/api
Aaron Lehmann 1f61084d83 Fix uses of "int" where "int64" should be used instead
Some structures use int for sizes and UNIX timestamps. On some
platforms, int is 32 bits, so this can lead to the year 2038 issues and
overflows when dealing with large containers or layers.

Consistently use int64 to store sizes and UNIX timestamps in
api/types/types.go. Update related to code accordingly (i.e.
strconv.FormatInt instead of strconv.Itoa).

Use int64 in progressreader package to avoid integer overflow when
dealing with large quantities. Update related code accordingly.

Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
2015-07-31 16:31:40 -07:00
..
client Fix uses of "int" where "int64" should be used instead 2015-07-31 16:31:40 -07:00
server Merge pull request #15144 from aaronlehmann/graph-cleanup 2015-07-31 15:11:34 -07:00
types Fix uses of "int" where "int64" should be used instead 2015-07-31 16:31:40 -07:00
api_unit_test.go fix tests 2014-03-31 18:11:53 +00:00
common.go fix golint errors/warnings of pkg api/ 2015-07-30 09:46:25 +08:00
README.md Update README.md 2014-07-04 18:21:13 +09:00

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