discovery

package
v0.0.0-...-611bec0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultRootDirName = "infra"

Variables

This section is empty.

Functions

func Bundle

func Bundle(configDir string, files []string, outfile string) ([]byte, error)

func BundleNodeWorker

func BundleNodeWorker(configDir string, roots []Root, outfile string) error

func Dirs

func Dirs(roots []Root) ([]string, error)

func Discover

func Discover(configDir string, paths []string) ([]string, error)

func GoWorkerPackage

func GoWorkerPackage(configDir string, roots []Root, moduleDir string) (string, error)

func IsSkippedDir

func IsSkippedDir(name string) bool

func PythonInterpreter

func PythonInterpreter(runRoot string) string

func RenderNodeWorkerEntry

func RenderNodeWorkerEntry(projectDir string, roots []Root) (source, resolveDir string, err error)

func RenderPythonWorkerEntry

func RenderPythonWorkerEntry(packages []PythonPackage) string

func Run

func Run(ctx context.Context, configDir string, programs Programs, server Server, stdout, stderr io.Writer) (err error)

func WorkerCommand

func WorkerCommand(ctx context.Context, configDir string, roots []Root, served Root, run *workdir.Run) (*tracing.Cmd, error)

func WriteGoWorkerEntry

func WriteGoWorkerEntry(configDir string, roots []Root, served Root) (string, string, error)

Types

type Programs

type Programs struct {
	Roots []Root
	// contains filtered or unexported fields
}

func Prepare

func Prepare(configDir string, roots []Root) (Programs, error)

func (Programs) Fingerprint

func (p Programs) Fingerprint() string

type PythonPackage

type PythonPackage struct {
	Name string
	Dir  string
}

func ListPythonPackages

func ListPythonPackages(configDir string, roots []Root, dir string) ([]PythonPackage, error)

type Root

type Root struct {
	Dir           string
	Language      language.Language
	Bin           string
	BinApp        string
	DefaultBinApp string
}

func Roots

func Roots(configDir string, paths []string) ([]Root, error)

func RootsOf

func RootsOf(cfg *project.Project) ([]Root, error)

func WorkerRoot

func WorkerRoot(configDir string, roots []Root, worker string, sources []string) (Root, error)

func WorkerRoots

func WorkerRoots(configDir string, roots []Root, served Root) ([]Root, error)

type Server

type Server struct {
	URL   string
	Token string
}

func (Server) Env

func (s Server) Env() []string

Jump to

Keyboard shortcuts

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