types

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: Apache-2.0 Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetIfNewer added in v0.0.10

func SetIfNewer(cond *[]metav1.Condition,
	proposedCond []metav1.Condition,
	callbackF func(metav1.Condition) bool) (isNewer bool)

SetIfNewer changes cond only if changes in proposedCond are consistent with the expected change of conditions both logically and chronologically. callbackF can be provided to run a custom function during the loop over proposedCond. If there were any acceptable changes proposed, it returns true.

func UpdateCondition added in v0.0.10

func UpdateCondition(conditions *[]metav1.Condition, conditionType string, conditionStatus metav1.ConditionStatus)

Types

type CLI

type CLI struct {
	ArchiveArgs string
	// k6-operator doesn't care for most values of CLI arguments to k6, with an exception of cloud output
	HasCloudOut bool
}

CLI is an internal type to support k6 invocation in initialization stage. Not all k6 commands allow the same set of arguments so CLI is an object meant to contain only the ones fit for the archive call. Maybe revise this once crococonf is closer to integration?

func ParseCLI

func ParseCLI(arguments string) *CLI

type Script

type Script struct {
	Name     string // Name of ConfigMap or VolumeClaim or "LocalFile"
	Filename string
	Path     string
	Type     string // ConfigMap | VolumeClaim | LocalFile
}

Internal type created to support Spec.script options

func (*Script) FullName

func (s *Script) FullName() string

func (*Script) UpdateCommand

func (s *Script) UpdateCommand(cmd []string) []string

UpdateCommand modifies command to check for script existence in case of LocalFile; otherwise, command remains unmodified

func (*Script) Volume

func (s *Script) Volume() []corev1.Volume

Volume creates a Volume spec for the script

func (*Script) VolumeMount

func (s *Script) VolumeMount() []corev1.VolumeMount

VolumeMount creates a VolumeMount spec for the script

type SetupData added in v0.0.13

type SetupData struct {
	Data setUpData `json:"data"`
}

type StatusAPIRequest added in v0.0.10

type StatusAPIRequest struct {
	Data StatusAPIRequestData `json:"data"`
}

type StatusAPIRequestData added in v0.0.10

type StatusAPIRequestData struct {
	Attributes StatusAPIRequestDataAttributes `json:"attributes"`
	ID         string                         `json:"id"`
	Type       string                         `json:"type"`
}

type StatusAPIRequestDataAttributes added in v0.0.10

type StatusAPIRequestDataAttributes struct {
	Paused  bool `json:"paused"`
	Stopped bool `json:"stopped"`
}

Jump to

Keyboard shortcuts

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