builder

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func APIResourceList added in v0.9.0

func APIResourceList(version string, kinds []string) []*metav1.APIResourceList

func ClusterTaskCreationTime added in v0.2.0

func ClusterTaskCreationTime(t time.Time) tb.ClusterTaskOp

TaskCreationTime sets CreationTimestamp of the task

func ClusterTriggerBindingCreationTime added in v0.9.0

func ClusterTriggerBindingCreationTime(t time.Time) tb.ClusterTriggerBindingOp

ClusterTriggerBindingCreationTime sets CreationTimestamp of the ClusterTriggerBinding

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

func UnstructuredCT added in v0.9.0

func UnstructuredCT(clustertask *v1alpha1.ClusterTask, version string) *unstructured.Unstructured

func UnstructuredP added in v0.9.0

func UnstructuredP(pipeline *v1alpha1.Pipeline, version string) *unstructured.Unstructured

func UnstructuredPR added in v0.9.0

func UnstructuredPR(pipelinerun *v1alpha1.PipelineRun, version string) *unstructured.Unstructured

func UnstructuredT added in v0.9.0

func UnstructuredT(task *v1alpha1.Task, version string) *unstructured.Unstructured

func UnstructuredTR added in v0.9.0

func UnstructuredTR(taskrun *v1alpha1.TaskRun, version string) *unstructured.Unstructured

func UnstructuredV1beta1CT added in v0.9.0

func UnstructuredV1beta1CT(clustertask *v1beta1.ClusterTask, version string) *unstructured.Unstructured

func UnstructuredV1beta1P added in v0.9.0

func UnstructuredV1beta1P(pipeline *v1beta1.Pipeline, version string) *unstructured.Unstructured

func UnstructuredV1beta1PR added in v0.9.0

func UnstructuredV1beta1PR(pipelinerun *v1beta1.PipelineRun, version string) *unstructured.Unstructured

func UnstructuredV1beta1T added in v0.9.0

func UnstructuredV1beta1T(task *v1beta1.Task, version string) *unstructured.Unstructured

func UnstructuredV1beta1TR added in v0.9.0

func UnstructuredV1beta1TR(taskrun *v1beta1.TaskRun, version string) *unstructured.Unstructured

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