builder

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

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

func PodDeletionTime(time *metav1.Time) tb.PodOp

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

func TaskCreationTime(t time.Time) tb.TaskOp

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

func TaskRunCreationTime(ct time.Time) tb.TaskRunOp

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

type PodStatusOp func(*corev1.PodStatus)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL