experiment

package
v0.0.0-...-8a6298d Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterScenario

func RegisterScenario(s Scenario)

RegisterScenario registers a new scenario in the registry.

Types

type Scenario

type Scenario interface {
	// Name returns the name of the scenario.
	Name() string
	// Description returns the description of the scenario.
	Description() string
	// LongDescription returns the description of the scenario.
	LongDescription() string
	// Done is closed once the scenario is finished.
	Done() <-chan struct{}
	// AddToManager adds all runnables of the scenario to the manager.
	AddToManager(manager.Manager) error
}

Scenario is an evaluation scenario that can be executed by experiment.

func GetAllScenarios

func GetAllScenarios() []Scenario

GetAllScenarios returns all registered scenarios.

func GetScenario

func GetScenario(s string) Scenario

GetScenario gets a single registered scenario by name.

Directories

Path Synopsis
scenario
all
Package all imports all scenarios.
Package all imports all scenarios.

Jump to

Keyboard shortcuts

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