builder

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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

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

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