luci: go.chromium.org/luci/client/downloader Index | Files

package downloader

import "go.chromium.org/luci/client/downloader"

Package archiver implements the pipeline to efficiently archive file sets to an isolated server as fast as possible.

Index

Package Files

doc.go downloader.go

type Downloader Uses

type Downloader struct {
    common.Canceler
    // contains filtered or unexported fields
}

Downloader is a high level interface to an isolatedclient.Client.

Downloader provides functionality to download full isolated trees.

func New Uses

func New(ctx context.Context, c *isolatedclient.Client, maxConcurrentJobs int) *Downloader

New returns a Downloader instance.

ctx will be used for logging.

func (*Downloader) FetchIsolated Uses

func (d *Downloader) FetchIsolated(hash isolated.HexDigest, outputDir string) ([]string, error)

FetchIsolated downloads an entire isolated tree into a specified output directory.

Returns a list of paths relative to outputDir for all downloaded files.

Note that this method is not thread-safe and it does not flush the Downloader's directory cache.

Package downloader imports 11 packages (graph) and is imported by 4 packages. Updated 2018-10-19. Refresh now. Tools for package owners.