downloader

package
v0.0.1-beta.6 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2019 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNotDownloadJob is returned when a not download job is found.
	ErrNotDownloadJob = errors.NewKind("not download job")

	// ErrRepoAlreadyExists is returned if there is an attempt to
	// retrieve an already downloaded git repository.
	ErrRepoAlreadyExists = errors.NewKind("%s already downloaded")
)
View Source
var (
	// ErrObjectTypeNotSupported returned by ResolveCommit when the
	// referenced object isn't a Commit nor a Tag.
	ErrObjectTypeNotSupported = errors.NewKind(
		"object type %q not supported")
)

Functions

func Download

func Download(ctx context.Context, job *library.Job) error

Download is a library.JobFn function to download a git repository and store it in a borges.Library.

Types

This section is empty.

Jump to

Keyboard shortcuts

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