swarming

package
v0.0.0-...-c8d90df Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Overview

Package swarming downloads and runs the swarming_bot.zip code.

Index

Constants

View Source
const (

	// SwarmingBotIDEnvVar is the swarming bot id environment variable name. See
	// https://chromium.googlesource.com/infra/luci/luci-py.git/+doc/master/appengine/swarming/doc/Magic-Values.md#task-runtime-environment-variables
	SwarmingBotIDEnvVar = "SWARMING_BOT_ID"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Bot

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

Bot handles downloading the swarming code and launching the swarming child process.

func New

func New(pythonExeFilename, swarmingBotZipFilename, metadataURL string) (*Bot, error)

New creates a new *Bot instance.

The pythonExe and swarmingBotZip values must be absolute paths.

func (*Bot) Launch

func (b *Bot) Launch(ctx context.Context) error

Launch starts the swarming bot code. This function only returns if the bootstrap process to download the swarming bot code fails or if the context is cancelled.

Jump to

Keyboard shortcuts

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