downloads

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 12, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Downloader

type Downloader struct {
	Concurrency int
	// contains filtered or unexported fields
}

func New

func New(pr packs.Reader) *Downloader

func (*Downloader) Cat

func (d *Downloader) Cat(ctx context.Context, w io.Writer, repo repos.Repo, revision, path string) error

Cat file data from a repo to a writer

func (*Downloader) Download

func (d *Downloader) Download(ctx context.Context, from repos.Repo, revision string, to repos.FS) error

Download a revision from a repo to a filesystem

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL