Documentation
¶
Index ¶
- type Testbed
- func (tb *Testbed) RunExecutionWithTarget(tgt *forge_target.Target, valueSet *forge_target.ValueSet, ...) (*forge_execution.Execution, error)
- func (tb *Testbed) RunPassWithTarget(tgt *forge_target.Target, valueSet *forge_target.ValueSet, replicas uint32, ...) (*forge_pass.Pass, error)
- func (tb *Testbed) RunWorkerWithTasks(taskMap map[string]*forge_target.Target, valueSet *forge_target.ValueSet, ...) (*forge_job.Job, error)
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 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.
Click to show internal directories.
Click to hide internal directories.