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 ¶
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) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Test.
func (*Test) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Test) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TestList.
func (*TestList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TestList) DeepCopyObject ¶
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"` StopOnFailure bool `json:"stop_on_failure,omitempty"` }
TestSpec defines the desired state of Test
func (*TestSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TestSpec.
func (*TestSpec) DeepCopyInto ¶
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 ¶
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 TestStepExecuteScript ¶
type TestStepExecuteScript struct { Namespace string `json:"namespace,omitempty"` Name string `json:"name,omitempty"` StopOnFailure bool `json:"stop_on_failure,omitempty"` }
func (*TestStepExecuteScript) DeepCopy ¶
func (in *TestStepExecuteScript) DeepCopy() *TestStepExecuteScript
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TestStepExecuteScript.
func (*TestStepExecuteScript) DeepCopyInto ¶
func (in *TestStepExecuteScript) DeepCopyInto(out *TestStepExecuteScript)
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"` ScriptStep *TestStepExecuteScript `json:"script_step,omitempty"` DelayStep *TestStepDelay `json:"delay_step,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 ( TestStepTypeExecuteScript TestStepType = "executeScript" TestStepTypeDelay TestStepType = "delay" )