Documentation
¶
Index ¶
Constants ¶
View Source
const ( // ExitThresholdsFailed: the run completed and a threshold did not hold. ExitThresholdsFailed = 99 // ExitAborted: the run was stopped early by an abort rule or by the // frame reporter's dead-man switch. ExitAborted = 108 )
Exit codes for load runs that executed but did not pass. They follow k6's, so CI tooling written for one reads the other.
View Source
const ( ConfigFileName = ".devtools" ConfigFileExtension = ".yaml" )
Variables ¶
This section is empty.
Functions ¶
func ExitCode ¶
ExitCode maps an error returned by the root command to a process exit code: ExitAborted and ExitThresholdsFailed for load runs that executed but did not pass (an abort wins when both apply), 1 for every other failure, and 0 for nil. Programs embedding Root() use it to exit the way this binary does.
Types ¶
type DefaultConfig ¶
type DefaultConfig struct {
// unified files (replaces collections)
Files []mfile.File
// HTTP requests and related data (unified mhttp models)
HTTPRequests []mhttp.HTTP
HTTPHeaders []mhttp.HTTPHeader
HTTPSearchParams []mhttp.HTTPSearchParam
HTTPAsserts []mhttp.HTTPAssert
HTTPBodyForms []mhttp.HTTPBodyForm
HTTPBodyUrlencoded []mhttp.HTTPBodyUrlencoded
HTTPBodyRaws []mhttp.HTTPBodyRaw
HTTPResponses []mhttp.HTTPResponse
HTTPResponseHeaders []mhttp.HTTPResponseHeader
HTTPResponseAsserts []mhttp.HTTPResponseAssert
// flows (kept as-is - no unified model available yet)
Flows []mflow.Flow
// Root nodes (kept as-is)
FlowNodes []mflow.Node
// Sub nodes (kept as-is)
FlowRequestNodes []mflow.NodeRequest
FlowConditionNodes []mflow.NodeIf
FlowForNodes []mflow.NodeFor
FlowForEachNodes []mflow.NodeForEach
FlowJSNodes []mflow.NodeJS
}
Click to show internal directories.
Click to hide internal directories.