v1

package
v1.7.0-beta001 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2022 License: MIT Imports: 4 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 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,omitempty"`
	// commit id (sha) for checkout
	Commit string `json:"commit,omitempty"`
	// if needed we can checkout particular path (dir or file) in case of BIG/mono repositories
	Path           string     `json:"path,omitempty"`
	UsernameSecret *SecretRef `json:"usernameSecret,omitempty"`
	TokenSecret    *SecretRef `json:"tokenSecret,omitempty"`
	// if provided we checkout the whole repository and run test from this directory
	WorkingDir string `json:"workingDir,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 SecretRef

type SecretRef struct {
	// object kubernetes namespace
	Namespace string `json:"namespace,omitempty"`
	// object name
	Name string `json:"name"`
	// object key
	Key string `json:"key"`
}

Testkube internal reference for secret storage in Kubernetes secrets

func (*SecretRef) DeepCopy

func (in *SecretRef) DeepCopy() *SecretRef

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

func (*SecretRef) DeepCopyInto

func (in *SecretRef) DeepCopyInto(out *SecretRef)

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

type TestSource

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

	Spec   TestSourceSpec   `json:"spec,omitempty"`
	Status TestSourceStatus `json:"status,omitempty"`
}

TestSource is the Schema for the testsources API

func (*TestSource) DeepCopy

func (in *TestSource) DeepCopy() *TestSource

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

func (*TestSource) DeepCopyInto

func (in *TestSource) DeepCopyInto(out *TestSource)

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

func (*TestSource) DeepCopyObject

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

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

type TestSourceList

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

TestSourceList contains a list of TestSource

func (*TestSourceList) DeepCopy

func (in *TestSourceList) DeepCopy() *TestSourceList

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

func (*TestSourceList) DeepCopyInto

func (in *TestSourceList) DeepCopyInto(out *TestSourceList)

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

func (*TestSourceList) DeepCopyObject

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

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

type TestSourceSpec

type TestSourceSpec struct {
	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"`
}

TestSourceSpec defines the desired state of TestSource

func (*TestSourceSpec) DeepCopy

func (in *TestSourceSpec) DeepCopy() *TestSourceSpec

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

func (*TestSourceSpec) DeepCopyInto

func (in *TestSourceSpec) DeepCopyInto(out *TestSourceSpec)

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

type TestSourceStatus

type TestSourceStatus struct {
}

TestSourceStatus defines the observed state of TestSource

func (*TestSourceStatus) DeepCopy

func (in *TestSourceStatus) DeepCopy() *TestSourceStatus

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

func (*TestSourceStatus) DeepCopyInto

func (in *TestSourceStatus) DeepCopyInto(out *TestSourceStatus)

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

Jump to

Keyboard shortcuts

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