run

package
v2.1.7 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2022 License: Apache-2.0 Imports: 49 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ScenarioTypeStormForge = "StormForge"
	ScenarioTypeLocust     = "Locust"
	ScenarioTypeCustom     = "Pod Template"

	CustomPushGatewayNo  = "No, metrics will be propagated manually"
	CustomPushGatewayYes = "Yes, set the PUSHGATEWAY_URL environment on my container for publishing metrics"

	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
	// ApplicationsAPI is used to interact with the Optimize Experiments API.
	ApplicationsAPI applications.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