Documentation ¶
Index ¶
- func ClusterTaskCreationTime(t time.Time) tb.ClusterTaskOp
- func ConditionCreationTime(t time.Time) tb.ConditionOp
- func EventListenerCreationTime(t time.Time) tb.EventListenerOp
- 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
- func TaskRunCreationTime(ct time.Time) tb.TaskRunOp
- func TriggerBindingCreationTime(t time.Time) tb.TriggerBindingOp
- func TriggerTemplateCreationTime(t time.Time) tb.TriggerTemplateOp
- type ConditionOp
- type PodStatusOp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClusterTaskCreationTime ¶ added in v0.2.0
func ClusterTaskCreationTime(t time.Time) tb.ClusterTaskOp
TaskCreationTime sets CreationTimestamp of the task
func ConditionCreationTime ¶ added in v0.5.0
func ConditionCreationTime(t time.Time) tb.ConditionOp
ConditionCreationTime sets CreationTimestamp of the condition
func EventListenerCreationTime ¶ added in v0.7.0
func EventListenerCreationTime(t time.Time) tb.EventListenerOp
EventListenerCreationTime sets CreationTimestamp of the EventListener
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 pipelinerun
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
func TaskRunCreationTime ¶ added in v0.5.0
TaskRunCreationTime sets the creation time of the taskrun
func TriggerBindingCreationTime ¶ added in v0.7.0
func TriggerBindingCreationTime(t time.Time) tb.TriggerBindingOp
TriggerBindingCreationTime sets CreationTimestamp of the TriggerBinding
func TriggerTemplateCreationTime ¶ added in v0.7.0
func TriggerTemplateCreationTime(t time.Time) tb.TriggerTemplateOp
TriggerTemplateCreationTime sets CreationTimestamp of the TriggerTemplate
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