Help us shape the future of Go! Take the 2026 Go Developer Survey

testbed

package
v0.57.12 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2026 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Testbed

type Testbed struct {
	*world_testbed.Testbed
}

Testbed is a constructed testbed.

func Default

func Default(ctx context.Context, opts ...world_testbed.Option) (*Testbed, error)

Default constructs the default testbed arrangement.

func NewTestbed

func NewTestbed(tb *world_testbed.Testbed) (t *Testbed, tbErr error)

NewTestbed constructs a new forge testbed from a Hydra testbed.

func WithTestbedOptions

func WithTestbedOptions(ctx context.Context, testbedOptions []hydra_testbed.Option, worldOpts []world_testbed.Option) (*Testbed, error)

WithTestbedOptions constructs the testbed with the given testbed options.

func (*Testbed) RunExecutionWithTarget

func (tb *Testbed) RunExecutionWithTarget(
	tgt *forge_target.Target,
	valueSet *forge_target.ValueSet,
	ts *timestamp.Timestamp,
) (*forge_execution.Execution, error)

RunExecutionWithTarget runs a target using the Execution controller only.

func (*Testbed) RunPassWithTarget

func (tb *Testbed) RunPassWithTarget(
	tgt *forge_target.Target,
	valueSet *forge_target.ValueSet,
	replicas uint32,
	ts *timestamp.Timestamp,
) (*forge_pass.Pass, error)

RunPassWithTarget runs a target using the Pass and Execution controllers.

func (*Testbed) RunWorkerWithTasks

func (tb *Testbed) RunWorkerWithTasks(
	taskMap map[string]*forge_target.Target,
	valueSet *forge_target.ValueSet,
	replicas uint32,
	ts *timestamp.Timestamp,
	jobKey string,
	clusterKey string,
	workerPeer peer.Peer,
) (*forge_job.Job, error)

RunWorkerWithTasks runs a set of Task using the Cluster, Worker, Pass controllers.

If workerPeer is nil, generates a new peer.

Jump to

Keyboard shortcuts

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