Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the run v1alpha1 API group +groupName=tekton.dev
Index ¶
- type RunResult
- type RunStatus
- func (r *RunStatus) DecodeExtraFields(into interface{}) error
- func (in *RunStatus) DeepCopy() *RunStatus
- func (in *RunStatus) DeepCopyInto(out *RunStatus)
- func (r *RunStatus) EncodeExtraFields(from interface{}) error
- func (r *RunStatus) GetCondition(t apis.ConditionType) *apis.Condition
- func (r *RunStatus) InitializeConditions()
- func (r *RunStatus) MarkRunFailed(reason, messageFormat string, messageA ...interface{})
- func (r *RunStatus) MarkRunRunning(reason, messageFormat string, messageA ...interface{})
- func (r *RunStatus) MarkRunSucceeded(reason, messageFormat string, messageA ...interface{})
- func (r *RunStatus) SetCondition(newCond *apis.Condition)
- type RunStatusFields
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 ¶
DecodeExtraFields deserializes the extra fields in the Run status.
func (*RunStatus) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunStatus.
func (*RunStatus) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RunStatus) EncodeExtraFields ¶
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 ¶
MarkRunFailed changes the Succeeded condition to False with the provided reason and message.
func (*RunStatus) MarkRunRunning ¶
MarkRunRunning changes the Succeeded condition to Unknown with the provided reason and message.
func (*RunStatus) MarkRunSucceeded ¶
MarkRunSucceeded changes the Succeeded condition to True with the provided reason and message.
func (*RunStatus) SetCondition ¶
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.