buildapihelpers

package
v4.0.0-alpha.0+incompa... Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildToPodLogOptions

func BuildToPodLogOptions(opts *buildv1.BuildLogOptions) *corev1.PodLogOptions

BuildToPodLogOptions builds a PodLogOptions object out of a BuildLogOptions. Currently BuildLogOptions.Container and BuildLogOptions.Previous aren't used so they won't be copied to PodLogOptions.

func FindTriggerPolicy

func FindTriggerPolicy(triggerType buildv1.BuildTriggerType, config *buildv1.BuildConfig) (buildTriggers []buildv1.BuildTriggerPolicy)

FindTriggerPolicy retrieves the BuildTrigger(s) of a given type from a build configuration. Returns nil if no matches are found.

func GetBuildPodName

func GetBuildPodName(build *buildv1.Build) string

GetBuildPodName returns name of the build pod.

func GetInputReference

func GetInputReference(strategy buildv1.BuildStrategy) *corev1.ObjectReference

GetInputReference returns the From ObjectReference associated with the BuildStrategy.

func HasTriggerType

func HasTriggerType(triggerType buildv1.BuildTriggerType, bc *buildv1.BuildConfig) bool

func LabelValue

func LabelValue(name string) string

LabelValue returns a string to use as a value for the Build label in a pod. If the length of the string parameter exceeds the maximum label length, the value will be truncated.

func StrategyType

func StrategyType(strategy buildv1.BuildStrategy) string

Types

type BuildSliceByCreationTimestamp

type BuildSliceByCreationTimestamp []buildv1.Build

BuildSliceByCreationTimestamp implements sort.Interface for []Build based on the CreationTimestamp field.

func (BuildSliceByCreationTimestamp) Len

func (BuildSliceByCreationTimestamp) Less

func (b BuildSliceByCreationTimestamp) Less(i, j int) bool

func (BuildSliceByCreationTimestamp) Swap

func (b BuildSliceByCreationTimestamp) Swap(i, j int)

Jump to

Keyboard shortcuts

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