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: 5 Imported by: 0

Documentation

Overview

Package v1 contains API Schema definitions for the executor v1 API group +kubebuilder:object:generate=true +groupName=executor.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: "executor.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 EventType added in v1.10.6

type EventType string

+kubebuilder:validation:Enum=start-test;end-test-success;end-test-failed;end-test-aborted;end-test-timeout;start-testsuite;end-testsuite-success;end-testsuite-failed;end-testsuite-aborted;end-testsuite-timeout

const (
	START_TEST_EventType            EventType = "start-test"
	END_TEST_SUCCESS_EventType      EventType = "end-test-success"
	END_TEST_FAILED_EventType       EventType = "end-test-failed"
	END_TEST_ABORTED_EventType      EventType = "end-test-aborted"
	END_TEST_TIMEOUT_EventType      EventType = "end-test-timeout"
	START_TESTSUITE_EventType       EventType = "start-testsuite"
	END_TESTSUITE_SUCCESS_EventType EventType = "end-testsuite-success"
	END_TESTSUITE_FAILED_EventType  EventType = "end-testsuite-failed"
	END_TESTSUITE_ABORTED_EventType EventType = "end-testsuite-aborted"
	END_TESTSUITE_TIMEOUT_EventType EventType = "end-testsuite-timeout"
)

List of EventType

type Executor

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

	Spec   ExecutorSpec   `json:"spec,omitempty"`
	Status ExecutorStatus `json:"status,omitempty"`
}

Executor is the Schema for the executors API

func (*Executor) DeepCopy

func (in *Executor) DeepCopy() *Executor

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

func (*Executor) DeepCopyInto

func (in *Executor) DeepCopyInto(out *Executor)

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

func (*Executor) DeepCopyObject

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

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

type ExecutorList

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

ExecutorList contains a list of Executor

func (*ExecutorList) DeepCopy

func (in *ExecutorList) DeepCopy() *ExecutorList

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

func (*ExecutorList) DeepCopyInto

func (in *ExecutorList) DeepCopyInto(out *ExecutorList)

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

func (*ExecutorList) DeepCopyObject

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

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

type ExecutorMeta added in v1.9.1

type ExecutorMeta struct {
	// URI for executor icon
	IconURI string `json:"iconURI,omitempty"`
	// URI for executor docs
	DocsURI string `json:"docsURI,omitempty"`
	// executor tooltips
	Tooltips map[string]string `json:"tooltips,omitempty"`
}

Executor meta data

func (*ExecutorMeta) DeepCopy added in v1.9.1

func (in *ExecutorMeta) DeepCopy() *ExecutorMeta

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

func (*ExecutorMeta) DeepCopyInto added in v1.9.1

func (in *ExecutorMeta) DeepCopyInto(out *ExecutorMeta)

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

type ExecutorSpec

type ExecutorSpec struct {

	// Types defines what types can be handled by executor e.g. "postman/collection", ":curl/command" etc
	Types []string `json:"types,omitempty"`

	// ExecutorType one of "rest" for rest openapi based executors or "job" which will be default runners for testkube
	// or "container" for container executors
	ExecutorType ExecutorType `json:"executor_type,omitempty"`

	// URI for rest based executors
	URI string `json:"uri,omitempty"`

	// Image for kube-job
	Image string `json:"image,omitempty"`
	// executor binary arguments
	Args []string `json:"args,omitempty"`
	// executor default binary command
	Command []string `json:"command,omitempty"`
	// container executor default image pull secrets
	ImagePullSecrets []v1.LocalObjectReference `json:"imagePullSecrets,omitempty"`

	// Features list of possible features which executor handles
	Features []Feature `json:"features,omitempty"`

	// ContentTypes list of handled content types
	ContentTypes []ScriptContentType `json:"content_types,omitempty"`

	// Job template to launch executor
	JobTemplate string `json:"job_template,omitempty"`

	// Meta data about executor
	Meta *ExecutorMeta `json:"meta,omitempty"`
}

ExecutorSpec defines the desired state of Executor

func (*ExecutorSpec) DeepCopy

func (in *ExecutorSpec) DeepCopy() *ExecutorSpec

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

func (*ExecutorSpec) DeepCopyInto

func (in *ExecutorSpec) DeepCopyInto(out *ExecutorSpec)

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

type ExecutorStatus

type ExecutorStatus struct {
}

ExecutorStatus defines the observed state of Executor

func (*ExecutorStatus) DeepCopy

func (in *ExecutorStatus) DeepCopy() *ExecutorStatus

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

func (*ExecutorStatus) DeepCopyInto

func (in *ExecutorStatus) DeepCopyInto(out *ExecutorStatus)

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

type ExecutorType added in v1.10.6

type ExecutorType string

+kubebuilder:validation:Enum=job;container

const (
	ExecutorTypeJob       ExecutorType = "job"
	ExecutorTypeContainer ExecutorType = "container"
)

type Feature added in v0.6.5

type Feature string

+kubebuilder:validation:Enum=artifacts;junit-report

const (
	FeatureArtifacts   Feature = "artifacts"
	FeatureJUnitReport Feature = "junit-report"
)

type Runner

type Runner struct {
}

func (*Runner) DeepCopy

func (in *Runner) DeepCopy() *Runner

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

func (*Runner) DeepCopyInto

func (in *Runner) DeepCopyInto(out *Runner)

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

type ScriptContentType added in v0.9.3

type ScriptContentType string

+kubebuilder:validation:Enum=string;file-uri;git-file;git-dir;git

const (
	ScriptContentTypeString  ScriptContentType = "string"
	ScriptContentTypeFileURI ScriptContentType = "file-uri"
	// Deprecated: use git instead
	ScriptContentTypeGitFile ScriptContentType = "git-file"
	// Deprecated: use git instead
	ScriptContentTypeGitDir ScriptContentType = "git-dir"
	ScriptContentTypeGit    ScriptContentType = "git"
)

type Webhook added in v0.9.9

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

	Spec   WebhookSpec   `json:"spec,omitempty"`
	Status WebhookStatus `json:"status,omitempty"`
}

Webhook is the Schema for the webhooks API

func (*Webhook) DeepCopy added in v0.9.9

func (in *Webhook) DeepCopy() *Webhook

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

func (*Webhook) DeepCopyInto added in v0.9.9

func (in *Webhook) DeepCopyInto(out *Webhook)

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

func (*Webhook) DeepCopyObject added in v0.9.9

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

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

type WebhookList added in v0.9.9

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

WebhookList contains a list of Webhook

func (*WebhookList) DeepCopy added in v0.9.9

func (in *WebhookList) DeepCopy() *WebhookList

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

func (*WebhookList) DeepCopyInto added in v0.9.9

func (in *WebhookList) DeepCopyInto(out *WebhookList)

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

func (*WebhookList) DeepCopyObject added in v0.9.9

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

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

type WebhookSpec added in v0.9.9

type WebhookSpec struct {

	// Uri is address where webhook should be made
	Uri string `json:"uri,omitempty"`
	// Events declare list if events on which webhook should be called
	Events []EventType `json:"events,omitempty"`
	// Labels to filter for tests and test suites
	Selector string `json:"selector,omitempty"`
	// will load the generated payload for notification inside the object
	PayloadObjectField string `json:"payloadObjectField,omitempty"`
	// golang based template for notification payload
	PayloadTemplate string `json:"payloadTemplate,omitempty"`
	// webhook headers
	Headers map[string]string `json:"headers,omitempty"`
}

WebhookSpec defines the desired state of Webhook

func (*WebhookSpec) DeepCopy added in v0.9.9

func (in *WebhookSpec) DeepCopy() *WebhookSpec

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

func (*WebhookSpec) DeepCopyInto added in v0.9.9

func (in *WebhookSpec) DeepCopyInto(out *WebhookSpec)

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

type WebhookStatus added in v0.9.9

type WebhookStatus struct {
}

WebhookStatus defines the observed state of Webhook

func (*WebhookStatus) DeepCopy added in v0.9.9

func (in *WebhookStatus) DeepCopy() *WebhookStatus

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

func (*WebhookStatus) DeepCopyInto added in v0.9.9

func (in *WebhookStatus) DeepCopyInto(out *WebhookStatus)

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