flags

package
v0.0.0-...-38f41cd Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Flags

type Flags struct {
	Debug           bool     `usage:"debug"`
	Long            bool     `usage:"long format"`
	FailFast        bool     `usage:"fail fast"`
	SkipTest        bool     `usage:"skip \"test:\" section"`
	SkipIncluded    bool     `usage:"skip running the included runbook by itself"`
	RunMatch        string   `` /* 127-byte string literal not displayed */
	RunIDs          []string `usage:"run the matching runbooks in order if there is only one runbook with a forward matching ID"`
	RunLabels       []string `usage:"run all runbooks matching the label specification"`
	HTTPOpenApi3s   []string `usage:"set the path to the OpenAPI v3 document for HTTP runners (\"path/to/spec.yml\" or \"key:path/to/spec.yml\")"`
	GRPCNoTLS       bool     `usage:"disable TLS use in all gRPC runners"`
	GRPCProtos      []string `usage:"set the name of proto source for gRPC runners"`
	GRPCImportPaths []string `usage:"set the path to the directory where proto sources can be imported for gRPC runners"`
	CaptureDir      string   `usage:"destination of runbook run capture results"`
	Vars            []string `usage:"set var to runbook (\"key:value\")"`
	Runners         []string `usage:"set runner to runbook (\"key:dsn\")"`
	Overlays        []string `usage:"overlay values on the runbook"`
	Underlays       []string `usage:"lay values under the runbook"`
	Sample          int      `usage:"sample the specified number of runbooks"`
	Shuffle         string   `usage:"randomize the order of running runbooks (\"on\",\"off\",N)"`
	Concurrent      string   `usage:"run runbooks concurrently (\"on\",\"off\",N)"`
	ShardIndex      int      `usage:"index of distributed runbooks"`
	ShardN          int      `usage:"number of shards for distributing runbooks"`
	Random          int      `usage:"run the specified number of runbooks at random"`
	Desc            string   `usage:"description of runbook"`
	Out             string   `usage:"target path of runbook"`
	Format          string   `usage:"format of result output"`
	AndRun          bool     `usage:"run created runbook and capture the response for test"`
	LoadTConcurrent int      `usage:"number of concurrent load test runs"`
	LoadTDuration   string   `usage:"load test running duration"`
	LoadTWarmUp     string   `usage:"warn-up time for load test"`
	LoadTThreshold  string   `usage:"if this threshold condition is not met, loadt command returns exit status 1 (EXIT_FAILURE)"`
	LoadTMaxRPS     int      `usage:"max RunN per second for load test. 0 means unlimited"`
	Profile         bool     `usage:"profile runs of runbooks"`
	ProfileOut      string   `usage:"profile output path"`
	ProfileDepth    int      `usage:"depth of profile"`
	ProfileUnit     string   `usage:"-"`
	ProfileSort     string   `usage:"-"`
	CacheDir        string   `usage:"specify cache directory for remote runbooks"`
	RetainCacheDir  bool     `usage:"retain cache directory for remote runbooks"`
	Scopes          []string `usage:"additional scopes for runn"`
	HostRules       []string `usage:"host rules for runn. (\"host rule,host rule,...\")"`
	Verbose         bool     `usage:"verbose"`
}

func (*Flags) ToOpts

func (f *Flags) ToOpts() ([]runn.Option, error)

func (*Flags) Usage

func (f *Flags) Usage(name string) string

Jump to

Keyboard shortcuts

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