forked from TrueCloudLab/distribution
The toolkit to pack, ship, store, and deliver container content
2e3ecdca37
We are change the the rpc call for WriteStream to not require the size argument, opting to drive the process with io.Reader. The main issue was that io.Reader may return io.EOF before reaching size, making the error handling around this condition for callers more complex. To complement this, WriteStream now returns the number of successfully written bytes. The method no longer requires an io.ReadCloser, opting to require just an io.Reader. This keeps the reader under the control of the caller, which provides more flexibility. This also begins to address some of the problems described in #791. |
||
---|---|---|
client | ||
cmd | ||
common | ||
configuration | ||
digest | ||
open-design | ||
project/dev-image | ||
storage | ||
storagedriver | ||
.drone.yml | ||
api_test.go | ||
app.go | ||
app_test.go | ||
context.go | ||
CONTRIBUTING.md | ||
errors.go | ||
errors_test.go | ||
helpers.go | ||
images.go | ||
layer.go | ||
layerupload.go | ||
LICENSE | ||
MAINTAINERS | ||
README.md | ||
routes.go | ||
routes_test.go | ||
tags.go | ||
urls.go | ||
util.go |