recipes

package
v0.0.0-...-c44c8e0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: BSD-3-Clause Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Checkout

type Checkout interface {
	// LuciexeCommand returns a command that will run the recipes as a LUCI
	// executable.
	LuciexeCommand() ([]string, error)
}

Checkout represents a directory containing recipe code capable of being run as a luciexe.

func SetUp

func SetUp(ctx context.Context, recipesDir string) (Checkout, *buildbucketpb.Build, error)

SetUp processes the build input to determine which version of recipes to use (possibly from CAS rather than from Git if run by a led job) and downloads that version of the recipes. It returns a `RecipesExe` that can be used to run the recipes (whether they were downloaded from CAS or from Git) as a luciexe, along with the deserialized build.proto.

type Repo

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

Repo represents a recipe repository downloaded from Git.

func (*Repo) LuciexeCommand

func (r *Repo) LuciexeCommand() ([]string, error)

Jump to

Keyboard shortcuts

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