k6

package
v1.1.0-beta.3 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateLoadGeneratorDeployment

func CreateLoadGeneratorDeployment(suc *model.ServiceUnitConfig, cc *model.ClusterConfig) *appsv1.Deployment

CreateServiceUnitDeployment creates deployment for service unit

func CreateLoadGeneratorService

func CreateLoadGeneratorService(suc *model.ServiceUnitConfig, cc *model.ClusterConfig) *corev1.Service

CreateServiceUnitService creates service for service unit

func CreateLoadGeneratorYamlConfigMap

func CreateLoadGeneratorYamlConfigMap(suc *model.ServiceUnitConfig, cc *model.ClusterConfig) *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