dependency

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2021 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Builder

func Builder(dependencyDir string, newBuilder types.NewBuilder, dgr types.DownloadGithubRepo) func(*Job) ([]string, error)

func DownloadGithubRepo

func DownloadGithubRepo(url string, reference string) (location string, err error)

func PostJob

func PostJob(ctx context.Context, url, pkg, reference string) (err error)

func ServerHandler

func ServerHandler(dependencyDir string, newBuilder types.NewBuilder, dgr types.DownloadGithubRepo) http.Handler

Types

type Job

type Job struct {
	ID           string
	Start        time.Time
	End          time.Time
	Error        string
	ErrWithStack string
	Package      string
	Reference    string
}

type JobRequest

type JobRequest struct {
	// The location of the version control repository.
	Package string
	// Reference is a version control reference. With Git this could be a
	// branch, tag, or commit. This value is optional.
	Reference string
}

type Manager

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

func NewManager

func NewManager(dependencyDir string, packageHost string) *Manager

func (*Manager) CalculateConfigBuildlist

func (dm *Manager) CalculateConfigBuildlist(cfg config.Config) (config.Config, error)

func (*Manager) FindPackage

func (dm *Manager) FindPackage(name string)

func (*Manager) FindPackageFromModuleName

func (dm *Manager) FindPackageFromModuleName(ctx context.Context, module string) (name string, vs []string, err error)

func (*Manager) PackagePathOrDownload

func (dm *Manager) PackagePathOrDownload(ctx context.Context, pkg types.Package) (path string, err error)

Jump to

Keyboard shortcuts

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