Lint and documentation fixes
Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
This commit is contained in:
parent
131b608aeb
commit
eb2ac4301f
3 changed files with 10 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue