v1alpha1

package
v0.0.0-...-b3ac824 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the testing v1alpha1 API group +kubebuilder:object:generate=true +groupName=testing.thatchd.io

Index

Constants

View Source
const (
	DateTimeFormat = time.RFC822
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "testing.thatchd.io", Version: "v1alpha1"}

	// 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

func TimeString

func TimeString(t time.Time) *string

Types

type Strategy

type Strategy struct {
	strategy.Strategy `json:",inline"`
}

+kubebuilder:object:generate=true

func (*Strategy) DeepCopy

func (in *Strategy) DeepCopy() *Strategy

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

func (*Strategy) DeepCopyInto

func (in *Strategy) DeepCopyInto(out *Strategy)

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

type StrategyBacked

type StrategyBacked interface {
	runtime.Object

	GetStrategy() Strategy
}

+kubebuilder:object:generate=false

type TestCase

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

	Spec   TestCaseSpec   `json:"spec,omitempty"`
	Status TestCaseStatus `json:"status,omitempty"`
}

TestCase is the Schema for the testcases API

func (*TestCase) DeepCopy

func (in *TestCase) DeepCopy() *TestCase

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

func (*TestCase) DeepCopyInto

func (in *TestCase) DeepCopyInto(out *TestCase)

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

func (*TestCase) DeepCopyObject

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

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

func (*TestCase) GetStrategy

func (tc *TestCase) GetStrategy() Strategy

type TestCaseCurrentStatus

type TestCaseCurrentStatus string

+kubebuilder:validation:Enum=Created;Canceled;Dispatched;Running;Finished;Failed

var (
	TestCaseCreated    TestCaseCurrentStatus = "Created"
	TestCaseCanceled   TestCaseCurrentStatus = "Canceled"
	TestCaseDispatched TestCaseCurrentStatus = "Dispatched"
	TestCaseRunning    TestCaseCurrentStatus = "Running"
	TestCaseFinished   TestCaseCurrentStatus = "Finished"
	TestCaseFailed     TestCaseCurrentStatus = "Failed"
)

type TestCaseList

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

TestCaseList contains a list of TestCase

func (*TestCaseList) DeepCopy

func (in *TestCaseList) DeepCopy() *TestCaseList

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

func (*TestCaseList) DeepCopyInto

func (in *TestCaseList) DeepCopyInto(out *TestCaseList)

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

func (*TestCaseList) DeepCopyObject

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

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

type TestCaseSpec

type TestCaseSpec struct {
	Timeout  *string  `json:"timeout,omitempty"`
	Strategy Strategy `json:"strategy"`
}

TestCaseSpec defines the desired state of TestCase

func (*TestCaseSpec) DeepCopy

func (in *TestCaseSpec) DeepCopy() *TestCaseSpec

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

func (*TestCaseSpec) DeepCopyInto

func (in *TestCaseSpec) DeepCopyInto(out *TestCaseSpec)

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

type TestCaseStatus

type TestCaseStatus struct {
	// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
	// Important: Run "make" to regenerate code after modifying this file
	DispatchedAt   *string               `json:"dispatchedAt,omitempty"`
	StartedAt      *string               `json:"startedAt,omitempty"`
	FinishedAt     *string               `json:"finishedAt,omitempty"`
	FailureMessage *string               `json:"failureMessage,omitempty"`
	Status         TestCaseCurrentStatus `json:"status,omitempty"`
}

TestCaseStatus defines the observed state of TestCase

func (*TestCaseStatus) DeepCopy

func (in *TestCaseStatus) DeepCopy() *TestCaseStatus

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

func (*TestCaseStatus) DeepCopyInto

func (in *TestCaseStatus) DeepCopyInto(out *TestCaseStatus)

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

type TestSuite

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

	Spec   TestSuiteSpec   `json:"spec,omitempty"`
	Status TestSuiteStatus `json:"status,omitempty"`
}

TestSuite is the Schema for the testsuites API

func (*TestSuite) DeepCopy

func (in *TestSuite) DeepCopy() *TestSuite

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

func (*TestSuite) DeepCopyInto

func (in *TestSuite) DeepCopyInto(out *TestSuite)

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

func (*TestSuite) DeepCopyObject

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

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

type TestSuiteList

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

TestSuiteList contains a list of TestSuite

func (*TestSuiteList) DeepCopy

func (in *TestSuiteList) DeepCopy() *TestSuiteList

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

func (*TestSuiteList) DeepCopyInto

func (in *TestSuiteList) DeepCopyInto(out *TestSuiteList)

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

func (*TestSuiteList) DeepCopyObject

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

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

type TestSuiteSpec

type TestSuiteSpec struct {
	InitialState  string   `json:"initialContext,omitempty"`
	StateStrategy Strategy `json:"stateStrategy"`
}

TestSuiteSpec defines the desired state of TestSuite

func (*TestSuiteSpec) DeepCopy

func (in *TestSuiteSpec) DeepCopy() *TestSuiteSpec

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

func (*TestSuiteSpec) DeepCopyInto

func (in *TestSuiteSpec) DeepCopyInto(out *TestSuiteSpec)

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

type TestSuiteStatus

type TestSuiteStatus struct {
	// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
	// Important: Run "make" to regenerate code after modifying this file
	CurrentState string `json:"currentState,omitempty"`
	Error        string `json:"error,omitempty"`
}

TestSuiteStatus defines the observed state of TestSuite

func (*TestSuiteStatus) DeepCopy

func (in *TestSuiteStatus) DeepCopy() *TestSuiteStatus

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

func (*TestSuiteStatus) DeepCopyInto

func (in *TestSuiteStatus) DeepCopyInto(out *TestSuiteStatus)

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

type TestWorker

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

	Spec   TestWorkerSpec   `json:"spec,omitempty"`
	Status TestWorkerStatus `json:"status,omitempty"`
}

TestWorker is the Schema for the testworkers API

func (*TestWorker) DeepCopy

func (in *TestWorker) DeepCopy() *TestWorker

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

func (*TestWorker) DeepCopyInto

func (in *TestWorker) DeepCopyInto(out *TestWorker)

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

func (*TestWorker) DeepCopyObject

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

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

func (*TestWorker) GetStrategy

func (tw *TestWorker) GetStrategy() Strategy

type TestWorkerList

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

TestWorkerList contains a list of TestWorker

func (*TestWorkerList) DeepCopy

func (in *TestWorkerList) DeepCopy() *TestWorkerList

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

func (*TestWorkerList) DeepCopyInto

func (in *TestWorkerList) DeepCopyInto(out *TestWorkerList)

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

func (*TestWorkerList) DeepCopyObject

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

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

type TestWorkerSpec

type TestWorkerSpec struct {
	Strategy Strategy `json:"strategy"`
}

TestWorkerSpec defines the desired state of TestWorker

func (*TestWorkerSpec) DeepCopy

func (in *TestWorkerSpec) DeepCopy() *TestWorkerSpec

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

func (*TestWorkerSpec) DeepCopyInto

func (in *TestWorkerSpec) DeepCopyInto(out *TestWorkerSpec)

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

type TestWorkerStatus

type TestWorkerStatus struct {
	DispatchedAt   *string `json:"dispatchedAt,omitempty"`
	StartedAt      *string `json:"startedAt,omitempty"`
	FinishedAt     *string `json:"finishedAt,omitempty"`
	FailureMessage *string `json:"failureMessage,omitempty"`
}

TestWorkerStatus defines the observed state of TestWorker

func (*TestWorkerStatus) DeepCopy

func (in *TestWorkerStatus) DeepCopy() *TestWorkerStatus

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

func (*TestWorkerStatus) DeepCopyInto

func (in *TestWorkerStatus) DeepCopyInto(out *TestWorkerStatus)

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