gitfetcher

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2019 License: MIT Imports: 20 Imported by: 2

Documentation

Index

Constants

View Source
const FNAME = "repo.bin"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	GitSaveTimeout  time.Duration
	GitCloneTimeout time.Duration
	GitMaxObjects   int
	GitBucket       string
}

type Fetcher

type Fetcher struct {
	// contains filtered or unexported fields
}

func New

func New(cache, fileserver services.Fileserver, config Config) *Fetcher

func (*Fetcher) Fetch

func (f *Fetcher) Fetch(ctx context.Context, url string) (billy.Filesystem, error)

Jump to

Keyboard shortcuts

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