Documentation ¶
Index ¶
- func NewDiscovery() discovery_kit_sdk.TargetDiscovery
- func NewK6LoadTestCloudAction() action_kit_sdk.Action[K6LoadTestRunState]
- func NewK6LoadTestRunAction() action_kit_sdk.Action[K6LoadTestRunState]
- type K6LoadTestRunAction
- func (l *K6LoadTestRunAction) Describe() action_kit_api.ActionDescription
- func (l *K6LoadTestRunAction) NewEmptyState() K6LoadTestRunState
- func (l *K6LoadTestRunAction) Prepare(_ context.Context, state *K6LoadTestRunState, ...) (*action_kit_api.PrepareResult, error)
- func (l *K6LoadTestRunAction) Start(_ context.Context, state *K6LoadTestRunState) (*action_kit_api.StartResult, error)
- func (l *K6LoadTestRunAction) Status(_ context.Context, state *K6LoadTestRunState) (*action_kit_api.StatusResult, error)
- func (l *K6LoadTestRunAction) Stop(_ context.Context, state *K6LoadTestRunState) (*action_kit_api.StopResult, error)
- type K6LoadTestRunConfig
- type K6LoadTestRunState
- type RunStatus
- type StatusResponse
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 K6LoadTestRunState ¶
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"`
}
Click to show internal directories.
Click to hide internal directories.