docker: github.com/docker/docker/registry/resumable Index | Files

package resumable

import "github.com/docker/docker/registry/resumable"

Index

Package Files

resumablerequestreader.go

func NewRequestReader Uses

func NewRequestReader(c *http.Client, r *http.Request, maxfail uint32, totalsize int64) io.ReadCloser

NewRequestReader makes it possible to resume reading a request's body transparently maxfail is the number of times we retry to make requests again (not resumes) totalsize is the total length of the body; auto detect if not provided

func NewRequestReaderWithInitialResponse Uses

func NewRequestReaderWithInitialResponse(c *http.Client, r *http.Request, maxfail uint32, totalsize int64, initialResponse *http.Response) io.ReadCloser

NewRequestReaderWithInitialResponse makes it possible to resume reading the body of an already initiated request.

Package resumable imports 5 packages (graph) and is imported by 50 packages. Updated 2020-02-20. Refresh now. Tools for package owners.