Documentation ¶
Overview ¶
Package util contains common functions that are used by the rest of the OpenShift build system.
Index ¶
- Constants
- func BuildNameForConfigVersion(name string, version int) string
- func GetBuildName(pod *kapi.Pod) string
- func GetBuildPodName(build *buildapi.Build) string
- func GetImageStreamForStrategy(strategy buildapi.BuildStrategy) *kapi.ObjectReference
- func IsBuildComplete(build *buildapi.Build) bool
- func NameFromImageStream(namespace string, ref *kapi.ObjectReference, tag string) string
Constants ¶
const (
// NoBuildLogsMessage reports that no build logs are available
NoBuildLogsMessage = "No logs are available."
)
Variables ¶
This section is empty.
Functions ¶
func BuildNameForConfigVersion ¶ added in v1.0.8
BuildNameForConfigVersion returns the name of the version-th build for the config that has the provided name
func GetBuildName ¶ added in v0.5.3
GetBuildName returns name of the build pod.
func GetBuildPodName ¶ added in v0.4.2
GetBuildPodName returns name of the build pod. TODO: remove in favor of the one in the api package
func GetImageStreamForStrategy ¶ added in v0.5.1
func GetImageStreamForStrategy(strategy buildapi.BuildStrategy) *kapi.ObjectReference
GetImageStreamForStrategy returns the ImageStream[Tag/Image] ObjectReference associated with the BuildStrategy.
func IsBuildComplete ¶ added in v0.5.3
IsBuildComplete returns whether the provided build is complete or not
func NameFromImageStream ¶ added in v0.5.1
func NameFromImageStream(namespace string, ref *kapi.ObjectReference, tag string) string
NameFromImageStream returns a concatenated name representing an ImageStream[Tag/Image] reference. If the reference does not contain a Namespace, the namespace parameter is used instead.
Types ¶
This section is empty.