Documentation ¶
Index ¶
- func PipelineCreationTimestamp(t time.Time) tb.PipelineOp
- func PipelineRunCompletionTime(t time.Time) tb.PipelineRunStatusOp
- func PipelineRunCreationTimestamp(t time.Time) tb.PipelineRunOp
- func PodDeletionTime(time *metav1.Time) tb.PodOp
- func PodStatus(ops ...PodStatusOp) tb.PodOp
- func StepName(name string) tb.StepStateOp
- func TaskCreationTime(t time.Time) tb.TaskOp
- func TaskRunCompletionTime(ct time.Time) tb.TaskRunStatusOp
- type ConditionOp
- type PodStatusOp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PipelineCreationTimestamp ¶
func PipelineCreationTimestamp(t time.Time) tb.PipelineOp
PipelineCreationTimestamp sets the creation time of the pipeline
func PipelineRunCompletionTime ¶
func PipelineRunCompletionTime(t time.Time) tb.PipelineRunStatusOp
PipelineRunCompletionTime sets the completion time to the PipelineRunStatus.
func PipelineRunCreationTimestamp ¶
func PipelineRunCreationTimestamp(t time.Time) tb.PipelineRunOp
PipelineRunCreationTimestamp sets the creation time of the pipeline
func PodDeletionTime ¶
PodDeletionTime adds DeletionTimestamp
func PodStatus ¶
func PodStatus(ops ...PodStatusOp) tb.PodOp
PodStatus creates a Status with default values. Any number of PodStatus modifiers can be passed to transform it.
func StepName ¶
func StepName(name string) tb.StepStateOp
StepName adds a state to stepstate of TaskRunStatus.
func TaskCreationTime ¶
TaskCreationTime sets CreationTimestamp of the task
func TaskRunCompletionTime ¶
func TaskRunCompletionTime(ct time.Time) tb.TaskRunStatusOp
TaskRunCompletionTime sets the completion time of the taskrun
Types ¶
type ConditionOp ¶
type ConditionOp func(*corev1.PodCondition)
type PodStatusOp ¶
func PodCondition ¶
func PodCondition(typ corev1.PodConditionType, status corev1.ConditionStatus, ops ...ConditionOp) PodStatusOp
PodCondition creates updates pod conditions
func PodInitContainerStatus ¶
func PodInitContainerStatus(name, image string) PodStatusOp
PodInitContainerStatus creates new Status
func PodPhase ¶
func PodPhase(phase corev1.PodPhase) PodStatusOp
PodPhase creates updates pod status phase