k6

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateLoadGeneratorDeployment

func CreateLoadGeneratorDeployment(config *model.ServiceUnitConfig) *appsv1.Deployment

CreateServiceUnitDeployment creates deployment for service unit

func CreateLoadGeneratorService

func CreateLoadGeneratorService(config *model.ServiceUnitConfig) *corev1.Service

CreateServiceUnitService creates service for service unit

func CreateLoadGeneratorYamlConfigMap

func CreateLoadGeneratorYamlConfigMap(config *model.ServiceUnitConfig) *corev1.ConfigMap

CreateServiceUnitConfigMap creates config config map for service unit

Types

type Config

type Config struct {
	Vus       int32  `json:"vus,omitempty"`
	Duration  string `json:"duration,omitempty"`
	UrlPrefix string `json:"urlPrefix,omitempty"`
}

type Route

type Route struct {
	Route  string               `json:"route,omitempty"`
	Method constants.HttpMethod `json:"method,omitempty"`
	Weight int32                `json:"weight,omitempty"`
}

Jump to

Keyboard shortcuts

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