v1beta1

package
v0.59.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 7 Imported by: 3

Documentation

Overview

Package v1beta1 contains API Schema definitions for the customrun v1beta1 API group +groupName=tekton.dev

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomRunResult

type CustomRunResult struct {
	// Name the given name
	Name string `json:"name"`
	// Value the given value of the result
	Value string `json:"value"`
}

CustomRunResult used to describe the results of a task

type CustomRunStatus

type CustomRunStatus struct {
	duckv1.Status `json:",inline"`

	// CustomRunStatusFields inlines the status fields.
	CustomRunStatusFields `json:",inline"`
}

CustomRunStatus defines the observed state of CustomRun

func FromRunStatus added in v0.43.0

func FromRunStatus(orig v1alpha1.RunStatus) CustomRunStatus

FromRunStatus converts a v1alpha1.RunStatus into a corresponding v1beta1.CustomRunStatus

func (*CustomRunStatus) DecodeExtraFields

func (r *CustomRunStatus) DecodeExtraFields(into interface{}) error

DecodeExtraFields deserializes the extra fields in the CustomRun status.

func (*CustomRunStatus) DeepCopy

func (in *CustomRunStatus) DeepCopy() *CustomRunStatus

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

func (*CustomRunStatus) DeepCopyInto

func (in *CustomRunStatus) DeepCopyInto(out *CustomRunStatus)

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

func (*CustomRunStatus) EncodeExtraFields

func (r *CustomRunStatus) EncodeExtraFields(from interface{}) error

EncodeExtraFields serializes the extra fields in the CustomRun status.

func (*CustomRunStatus) GetCondition

func (r *CustomRunStatus) GetCondition(t apis.ConditionType) *apis.Condition

GetCondition returns the Condition matching the given type.

func (*CustomRunStatus) InitializeConditions

func (r *CustomRunStatus) InitializeConditions()

InitializeConditions will set all conditions in customRunCondSet to unknown and set the started time to the current time

func (*CustomRunStatus) MarkCustomRunFailed

func (r *CustomRunStatus) MarkCustomRunFailed(reason, messageFormat string, messageA ...interface{})

MarkCustomRunFailed changes the Succeeded condition to False with the provided reason and message.

func (*CustomRunStatus) MarkCustomRunRunning

func (r *CustomRunStatus) MarkCustomRunRunning(reason, messageFormat string, messageA ...interface{})

MarkCustomRunRunning changes the Succeeded condition to Unknown with the provided reason and message.

func (*CustomRunStatus) MarkCustomRunSucceeded

func (r *CustomRunStatus) MarkCustomRunSucceeded(reason, messageFormat string, messageA ...interface{})

MarkCustomRunSucceeded changes the Succeeded condition to True with the provided reason and message.

func (*CustomRunStatus) SetCondition

func (r *CustomRunStatus) SetCondition(newCond *apis.Condition)

SetCondition sets the condition, unsetting previous conditions with the same type as necessary.

type CustomRunStatusFields

type CustomRunStatusFields struct {
	// StartTime is the time the build is actually started.
	// +optional
	StartTime *metav1.Time `json:"startTime,omitempty"`

	// CompletionTime is the time the build completed.
	// +optional
	CompletionTime *metav1.Time `json:"completionTime,omitempty"`

	// Results reports any output result values to be consumed by later
	// tasks in a pipeline.
	// +optional
	Results []CustomRunResult `json:"results,omitempty"`

	// RetriesStatus contains the history of CustomRunStatus, in case of a retry.
	// +optional
	RetriesStatus []CustomRunStatus `json:"retriesStatus,omitempty"`

	// ExtraFields holds arbitrary fields provided by the custom task
	// controller.
	ExtraFields runtime.RawExtension `json:"extraFields,omitempty"`
}

CustomRunStatusFields holds the fields of CustomRun's status. This is defined separately and inlined so that other types can readily consume these fields via duck typing.

func (*CustomRunStatusFields) DeepCopy

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

func (*CustomRunStatusFields) DeepCopyInto

func (in *CustomRunStatusFields) DeepCopyInto(out *CustomRunStatusFields)

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