modfetch

package
v0.0.0-...-cea2a68 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2018 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BasicAuth

type BasicAuth struct {
	Username string
	Password string
}

type EmptyFetcher

type EmptyFetcher struct{}

func (*EmptyFetcher) Load

func (f *EmptyFetcher) Load(_ []string) (string, error)

type Fetcher

type Fetcher interface {
	// Load takes tries to download the dependency information to a temp directory. Only files matching
	// filenames are expected to exist if the depdency itself contains the files.
	//
	// This temp directory could have any supported depdency file and it could have multiple.
	//
	// Callers are expected to cleanup the temp directory when finished.
	Load(filenames []string) (string, error)
}

func New

func New(importPath string, auth *BasicAuth) (Fetcher, error)

New returns a Fetcher based on the import path

type GitFetcher

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

func (*GitFetcher) Load

func (f *GitFetcher) Load(_ []string) (string, error)

Load returns a tempdir where dependency files were retrieved.

type GithubFetcher

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

func (*GithubFetcher) Load

func (f *GithubFetcher) Load(filenames []string) (string, error)

Load returns a tempdir where dependency files were retrieved.

Jump to

Keyboard shortcuts

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