megadrone

package
v0.0.0-...-9994f1b Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2025 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Overview

Package megadrone implements a megadrone agent, which manages a static set of Swarming bots. Unlike the agent package, it does not talk to drone queen to get DUT assignments.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

type Agent struct {
	// WorkingDir is used for Swarming bot working dirs.  It is
	// the caller's responsibility to create this.
	WorkingDir string
	// StartBotFunc is used to start Swarming bots.
	// This must be set.
	StartBotFunc func(bot.Config) (bot.Bot, error)
	// BotPrefix is used to prefix IDs for bots.
	// This must be unique for the Swarming instance, as megadrone
	// does not use unique DUT hostnames.
	BotPrefix string
	// NumBots is the number of bots to run.
	NumBots int
	// contains filtered or unexported fields
}

An Agent manages a static number of Swarming bots.

func (*Agent) Run

func (a *Agent) Run(ctx context.Context)

Run runs the agent until it is canceled via the context.

Jump to

Keyboard shortcuts

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