run

package
v2.0.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2021 License: Apache-2.0 Imports: 43 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ScenarioTypeStormForger = "StormForge"
	ScenarioTypeLocust      = "Locust"

	DestinationCreate  = "Run the experiment"
	DestinationFile    = "Save the experiment to disk"
	DestinationPreview = "Inspect the experiment"
)

Variables

This section is empty.

Functions

func NewCommand

func NewCommand(o *Options) *cobra.Command

NewCommand creates a new command for running experiments.

Types

type Options

type Options struct {
	// Config is the Optimize Configuration.
	Config *config.OptimizeConfig
	// ExperimentsAPI is used to interact with the Optimize Experiments API.
	ExperimentsAPI experimentsv1alpha1.API

	// Flag indicating we should print verbose prompts.
	Verbose bool
	// Flag indicating we should print debug views.
	Debug bool
	// Generator used to create experiments.
	Generator experiment.Generator
	// contains filtered or unexported fields
}

func (*Options) Init

func (o *Options) Init() tea.Cmd

func (*Options) ReadApplication

func (o *Options) ReadApplication(args []string) error

ReadApplication uses go-getter from the current directory to fetch an application definition.

func (*Options) Update

func (o *Options) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*Options) View

func (o *Options) View() string

View returns a full rendering of the current state. This method is called from the event loop and must not block, it must return as fast as possible.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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