recipes

package
v0.0.0-...-72e4f35 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 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)
	// Repo returns the Git repo that these recipes were downloaded from.
	// Returns an empty string if unknown.
	Repo() string
	// SHA1 returns the Git SHA1 that these recipes were found at.
	// Returns an empty string if unknown.
	SHA1() string
}

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)

func (*Repo) Repo

func (r *Repo) Repo() string

func (*Repo) SHA1

func (r *Repo) SHA1() string

Jump to

Keyboard shortcuts

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