Documentation ¶
Index ¶
- type Fetcher
- func (f *Fetcher) Client() *http.Client
- func (f *Fetcher) Do(req *http.Request) (resp *http.Response, err error)
- func (f *Fetcher) FetchContent(ctx context.Context, url string, objpath string, hashes *HashStore, ...) (status int, headers http.Header, err error)
- func (f *Fetcher) FetchDeployHistory(ctx context.Context, url string) (stream histlog.Stream, err error)
- func (f *Fetcher) Workers() int
- type HashStore
- type RequestResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Fetcher ¶
type Fetcher struct {
// contains filtered or unexported fields
}
Fetcher is used to make HTTP requests.
func (*Fetcher) FetchContent ¶
func (f *Fetcher) FetchContent(ctx context.Context, url string, objpath string, hashes *HashStore, w io.Writer) (status int, headers http.Header, err error)
FetchContent fetches information about a file from url. If w is not nil, the content of the file is written to it. Otherwise, just the headers of the response are returned.
type RequestResult ¶
Click to show internal directories.
Click to hide internal directories.