v2

package
v1.8.4 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package v2 contains API Schema definitions for the testkube v2 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: "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 habdling 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 Script

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

	Spec   ScriptSpec   `json:"spec,omitempty"`
	Status ScriptStatus `json:"status,omitempty"`
}

Script is the Schema for the scripts API

func (*Script) ConvertFrom

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

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

func (*Script) ConvertTo

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

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

func (*Script) DeepCopy

func (in *Script) DeepCopy() *Script

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

func (*Script) DeepCopyInto

func (in *Script) DeepCopyInto(out *Script)

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

func (*Script) DeepCopyObject

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

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

func (*Script) SetupWebhookWithManager

func (s *Script) SetupWebhookWithManager(mgr ctrl.Manager) error

SetupWebhookWithManager sets up webhook with manager

type ScriptContent

type ScriptContent struct {
	// script type
	Type_ string `json:"type,omitempty"`
	// repository of script content
	Repository *Repository `json:"repository,omitempty"`
	// script content body
	Data string `json:"data,omitempty"`
	// uri of script content
	Uri string `json:"uri,omitempty"`
}

func (*ScriptContent) DeepCopy

func (in *ScriptContent) DeepCopy() *ScriptContent

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

func (*ScriptContent) DeepCopyInto

func (in *ScriptContent) DeepCopyInto(out *ScriptContent)

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

type ScriptList

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

ScriptList contains a list of Script

func (*ScriptList) DeepCopy

func (in *ScriptList) DeepCopy() *ScriptList

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

func (*ScriptList) DeepCopyInto

func (in *ScriptList) DeepCopyInto(out *ScriptList)

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

func (*ScriptList) DeepCopyObject

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

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

type ScriptSpec

type ScriptSpec struct {
	// script type
	Type_ string `json:"type,omitempty"`
	// script execution custom name
	Name string `json:"name,omitempty"`
	// execution params passed to executor
	Params map[string]string `json:"params,omitempty"`
	// script content object
	Content *ScriptContent `json:"content,omitempty"`
	// script tags
	Tags []string `json:"tags,omitempty"`
}

ScriptSpec defines the desired state of Script

func (*ScriptSpec) DeepCopy

func (in *ScriptSpec) DeepCopy() *ScriptSpec

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

func (*ScriptSpec) DeepCopyInto

func (in *ScriptSpec) DeepCopyInto(out *ScriptSpec)

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

type ScriptStatus

type ScriptStatus struct {
	LastExecution   metav1.Time `json:"last_execution,omitempty"`
	ExecutionsCount int         `json:"executions_count,omitempty"`
}

ScriptStatus defines the observed state of Script

func (*ScriptStatus) DeepCopy

func (in *ScriptStatus) DeepCopy() *ScriptStatus

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

func (*ScriptStatus) DeepCopyInto

func (in *ScriptStatus) DeepCopyInto(out *ScriptStatus)

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