Documentation ¶
Index ¶
- func BuildToPodLogOptions(opts *buildv1.BuildLogOptions) *corev1.PodLogOptions
- func FindTriggerPolicy(triggerType buildv1.BuildTriggerType, config *buildv1.BuildConfig) (buildTriggers []buildv1.BuildTriggerPolicy)
- func GetBuildPodName(build *buildv1.Build) string
- func GetInputReference(strategy buildv1.BuildStrategy) *corev1.ObjectReference
- func HasTriggerType(triggerType buildv1.BuildTriggerType, bc *buildv1.BuildConfig) bool
- func LabelValue(name string) string
- func StrategyType(strategy buildv1.BuildStrategy) string
- type BuildSliceByCreationTimestamp
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 ¶
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 ¶
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 ¶
BuildSliceByCreationTimestamp implements sort.Interface for []Build based on the CreationTimestamp field.
func (BuildSliceByCreationTimestamp) Len ¶
func (b BuildSliceByCreationTimestamp) Len() int
func (BuildSliceByCreationTimestamp) Less ¶
func (b BuildSliceByCreationTimestamp) Less(i, j int) bool
func (BuildSliceByCreationTimestamp) Swap ¶
func (b BuildSliceByCreationTimestamp) Swap(i, j int)