v1

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package v1 contains API Schema definitions for the tests v1 API group +kubebuilder:object:generate=true +groupName=tests.testkube.io

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "tests.testkube.io", Version: "v1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type Test

type Test struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   TestSpec   `json:"spec,omitempty"`
	Status TestStatus `json:"status,omitempty"`
}

Test is the Schema for the tests API

func (*Test) ConvertFrom added in v1.4.3

func (dst *Test) ConvertFrom(srcRaw conversion.Hub) error

ConvertFrom converts Script from the Hub version (v1) to this version.

func (*Test) ConvertTo added in v1.4.3

func (src *Test) ConvertTo(dstRaw conversion.Hub) error

ConvertTo converts this Script to the Hub version (v1).

func (*Test) DeepCopy

func (in *Test) DeepCopy() *Test

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Test.

func (*Test) DeepCopyInto

func (in *Test) DeepCopyInto(out *Test)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Test) DeepCopyObject

func (in *Test) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*Test) SetupWebhookWithManager added in v1.4.3

func (t *Test) SetupWebhookWithManager(mgr ctrl.Manager) error

SetupWebhookWithManager sets up webhook with manager

type TestList

type TestList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Test `json:"items"`
}

TestList contains a list of Test

func (*TestList) DeepCopy

func (in *TestList) DeepCopy() *TestList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TestList.

func (*TestList) DeepCopyInto

func (in *TestList) DeepCopyInto(out *TestList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*TestList) DeepCopyObject

func (in *TestList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type TestSpec

type TestSpec struct {

	// Before steps is list of scripts which will be sequentially orchestrated
	Before []TestStepSpec `json:"before,omitempty"`
	// Steps is list of scripts which will be sequentially orchestrated
	Steps []TestStepSpec `json:"steps,omitempty"`
	// After steps is list of scripts which will be sequentially orchestrated
	After []TestStepSpec `json:"after,omitempty"`

	Repeats     int      `json:"repeats,omitempty"`
	Description string   `json:"description,omitempty"`
	Tags        []string `json:"tags,omitempty"`
}

TestSpec defines the desired state of Test

func (*TestSpec) DeepCopy

func (in *TestSpec) DeepCopy() *TestSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TestSpec.

func (*TestSpec) DeepCopyInto

func (in *TestSpec) DeepCopyInto(out *TestSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type TestStatus

type TestStatus struct {
}

TestStatus defines the observed state of Test

func (*TestStatus) DeepCopy

func (in *TestStatus) DeepCopy() *TestStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TestStatus.

func (*TestStatus) DeepCopyInto

func (in *TestStatus) DeepCopyInto(out *TestStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type TestStepDelay

type TestStepDelay struct {
	// Duration in ms
	Duration int32 `json:"duration,omitempty"`
}

func (*TestStepDelay) DeepCopy

func (in *TestStepDelay) DeepCopy() *TestStepDelay

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TestStepDelay.

func (*TestStepDelay) DeepCopyInto

func (in *TestStepDelay) DeepCopyInto(out *TestStepDelay)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type TestStepExecute added in v0.6.9

type TestStepExecute struct {
	Namespace     string `json:"namespace,omitempty"`
	Name          string `json:"name,omitempty"`
	StopOnFailure bool   `json:"stopOnFailure,omitempty"`
}

func (*TestStepExecute) DeepCopy added in v0.6.9

func (in *TestStepExecute) DeepCopy() *TestStepExecute

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TestStepExecute.

func (*TestStepExecute) DeepCopyInto added in v0.6.9

func (in *TestStepExecute) DeepCopyInto(out *TestStepExecute)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type TestStepSpec

type TestStepSpec struct {
	Type    string           `json:"type,omitempty"`
	Execute *TestStepExecute `json:"execute,omitempty"`
	Delay   *TestStepDelay   `json:"delay,omitempty"`
}

TestStepSpec will of particular type will have config for possible step types

func (*TestStepSpec) DeepCopy

func (in *TestStepSpec) DeepCopy() *TestStepSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TestStepSpec.

func (*TestStepSpec) DeepCopyInto

func (in *TestStepSpec) DeepCopyInto(out *TestStepSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type TestStepType

type TestStepType string
const (
	TestStepTypeExecute TestStepType = "execute"
	TestStepTypeDelay   TestStepType = "delay"
)

Jump to

Keyboard shortcuts

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