extk6

package
v1.0.20 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDiscovery added in v1.0.19

func NewDiscovery() discovery_kit_sdk.TargetDiscovery

func NewK6LoadTestCloudAction

func NewK6LoadTestCloudAction() action_kit_sdk.Action[K6LoadTestRunState]

func NewK6LoadTestRunAction

func NewK6LoadTestRunAction() action_kit_sdk.Action[K6LoadTestRunState]

Types

type K6LoadTestRunAction

type K6LoadTestRunAction struct{}

func (*K6LoadTestRunAction) Describe

func (l *K6LoadTestRunAction) Describe() action_kit_api.ActionDescription

func (*K6LoadTestRunAction) NewEmptyState

func (l *K6LoadTestRunAction) NewEmptyState() K6LoadTestRunState

func (*K6LoadTestRunAction) Prepare

func (l *K6LoadTestRunAction) Prepare(_ context.Context, state *K6LoadTestRunState, request action_kit_api.PrepareActionRequestBody) (*action_kit_api.PrepareResult, error)

func (*K6LoadTestRunAction) Start

func (l *K6LoadTestRunAction) Start(_ context.Context, state *K6LoadTestRunState) (*action_kit_api.StartResult, error)

func (*K6LoadTestRunAction) Status

func (l *K6LoadTestRunAction) Status(_ context.Context, state *K6LoadTestRunState) (*action_kit_api.StatusResult, error)

func (*K6LoadTestRunAction) Stop

func (l *K6LoadTestRunAction) Stop(_ context.Context, state *K6LoadTestRunState) (*action_kit_api.StopResult, error)

type K6LoadTestRunConfig

type K6LoadTestRunConfig struct {
	Environment []map[string]string
	File        string
}

type K6LoadTestRunState

type K6LoadTestRunState struct {
	Command     []string  `json:"command"`
	Pid         int       `json:"pid"`
	CmdStateID  string    `json:"cmdStateId"`
	ExecutionId uuid.UUID `json:"executionId"`
	CloudRunId  string    `json:"cloudRunId"`
}

type RunStatus added in v1.0.1

type RunStatus struct {
	// Values: https://k6.io/docs/cloud/cloud-reference/cloud-rest-api/test-runs/#read-load-test-run
	RunStatus int    `json:"run_status"`
	Started   string `json:"started"`
	Ended     string `json:"ended"`
}

type StatusResponse added in v1.0.1

type StatusResponse struct {
	K6Run RunStatus `json:"k6-run"`
}

Jump to

Keyboard shortcuts

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