buildutil

package
v0.0.0-...-f8abdcd Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigNameForBuild

func ConfigNameForBuild(build *buildv1.Build) string

ConfigNameForBuild returns the name of the build config from a build name.

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 GetBuildEnv

func GetBuildEnv(build *buildv1.Build) []corev1.EnvVar

GetBuildEnv gets the build strategy environment

func GetInputReference

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

GetInputReference returns the From ObjectReference associated with the BuildStrategy.

func SetBuildEnv

func SetBuildEnv(build *buildv1.Build, env []corev1.EnvVar)

SetBuildEnv replaces the current build environment

Types

This section is empty.

Jump to

Keyboard shortcuts

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