loader

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: Apache-2.0 Imports: 20 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddVSC added in v0.1.5

func AddVSC(lookup VCSLookup)

func Program

func Program(ctx context.Context, name, subToolName string) (types.Program, error)

func ProgramFromSource

func ProgramFromSource(ctx context.Context, content, subToolName string) (types.Program, error)

Types

type Repo added in v0.1.5

type Repo struct {
	// VCS The VCS type, such as "github"
	VCS string
	// The URL where the VCS repo can be found
	Root string
	// The path in the repo of this source. This should refer to a directory and not the actual file
	Path string
	// The filename of the source in the repo, relative to Path
	Name string
	// The revision of this source
	Revision string
}

type VCSLookup added in v0.1.5

type VCSLookup func(string) (string, *Repo, bool, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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