Lint and documentation fixes

Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
This commit is contained in:
Derek McGowan 2015-05-15 17:37:32 -07:00
parent 131b608aeb
commit eb2ac4301f
3 changed files with 10 additions and 1 deletions

View file

@ -13,6 +13,9 @@ import (
"github.com/docker/distribution"
)
// NewHTTPReadSeeker handles reading from an HTTP endpoint using a GET
// request. When seeking and starting a read from a non-zero offset
// the a "Range" header will be added which sets the offset.
func NewHTTPReadSeeker(client *http.Client, url string, size int64) distribution.ReadSeekCloser {
return &httpReadSeeker{
client: client,