Documentation ¶
Overview ¶
Package v2 contains API Schema definitions for the tests v2 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: "v2"} // 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 Repository ¶
type Repository struct { // VCS repository type Type_ string `json:"type"` // uri of content file or git directory Uri string `json:"uri"` // branch/tag name for checkout Branch string `json:"branch"` // if needed we can checkout particular path (dir or file) in case of BIG/mono repositories Path string `json:"path,omitempty"` // git auth username for private repositories Username string `json:"username,omitempty"` // git auth token for private repositories Token string `json:"token,omitempty"` }
Repository represents VCS repo, currently we're handling Git only
func (*Repository) DeepCopy ¶
func (in *Repository) DeepCopy() *Repository
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Repository.
func (*Repository) DeepCopyInto ¶
func (in *Repository) DeepCopyInto(out *Repository)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
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 TestContent ¶
type TestContent struct { // test type Type_ string `json:"type,omitempty"` // repository of test content Repository *Repository `json:"repository,omitempty"` // test content body Data string `json:"data,omitempty"` // uri of test content Uri string `json:"uri,omitempty"` }
TestContent defines test content
func (*TestContent) DeepCopy ¶
func (in *TestContent) DeepCopy() *TestContent
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TestContent.
func (*TestContent) DeepCopyInto ¶
func (in *TestContent) DeepCopyInto(out *TestContent)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
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 { // test type Type_ string `json:"type,omitempty"` // test execution custom name Name string `json:"name,omitempty"` // DEPRECATED execution params passed to executor Params map[string]string `json:"params,omitempty"` // Variables are new params with secrets attached Variables map[string]Variable `json:"variables,omitempty"` // test content object Content *TestContent `json:"content,omitempty"` // schedule in cron job format for scheduled test execution Schedule string `json:"schedule,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 { LastExecution metav1.Time `json:"last_execution,omitempty"` ExecutionsCount int `json:"executions_count,omitempty"` }
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 Variable ¶ added in v1.0.21
func (*Variable) DeepCopy ¶ added in v1.0.21
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Variable.
func (*Variable) DeepCopyInto ¶ added in v1.0.21
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.