v1alpha1

package
v0.0.0-...-4fc8c9b Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the run v1alpha1 API group +groupName=tekton.dev

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RunResult

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

RunResult used to describe the results of a task

type RunStatus

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

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

RunStatus defines the observed state of Run

func (*RunStatus) DecodeExtraFields

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

DecodeExtraFields deserializes the extra fields in the Run status.

func (*RunStatus) DeepCopy

func (in *RunStatus) DeepCopy() *RunStatus

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

func (*RunStatus) DeepCopyInto

func (in *RunStatus) DeepCopyInto(out *RunStatus)

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

func (*RunStatus) EncodeExtraFields

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

EncodeExtraFields serializes the extra fields in the Run status.

func (*RunStatus) GetCondition

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

GetCondition returns the Condition matching the given type.

func (*RunStatus) InitializeConditions

func (r *RunStatus) InitializeConditions()

InitializeConditions will set all conditions in runCondSet to unknown for the PipelineRun and set the started time to the current time

func (*RunStatus) MarkRunFailed

func (r *RunStatus) MarkRunFailed(reason, messageFormat string, messageA ...interface{})

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

func (*RunStatus) MarkRunRunning

func (r *RunStatus) MarkRunRunning(reason, messageFormat string, messageA ...interface{})

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

func (*RunStatus) MarkRunSucceeded

func (r *RunStatus) MarkRunSucceeded(reason, messageFormat string, messageA ...interface{})

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

func (*RunStatus) SetCondition

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

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

type RunStatusFields

type RunStatusFields 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 []RunResult `json:"results,omitempty"`

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

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

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

func (*RunStatusFields) DeepCopy

func (in *RunStatusFields) DeepCopy() *RunStatusFields

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

func (*RunStatusFields) DeepCopyInto

func (in *RunStatusFields) DeepCopyInto(out *RunStatusFields)

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