Documentation ¶
Index ¶
- func BuildToPodLogOptions(opts *buildinternalapi.BuildLogOptions) *coreinternalapi.PodLogOptions
- func FindTriggerPolicy(triggerType buildinternalapi.BuildTriggerType, ...) (buildTriggers []buildinternalapi.BuildTriggerPolicy)
- func GetBuildPodName(build *buildinternalapi.Build) string
- func GetInputReference(strategy buildinternalapi.BuildStrategy) *coreinternalapi.ObjectReference
- func HasTriggerType(triggerType buildinternalapi.BuildTriggerType, ...) bool
- func LabelValue(name string) string
- func StrategyType(strategy buildinternalapi.BuildStrategy) string
- type BuildSliceByCreationTimestamp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildToPodLogOptions ¶
func BuildToPodLogOptions(opts *buildinternalapi.BuildLogOptions) *coreinternalapi.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 buildinternalapi.BuildTriggerType, config *buildinternalapi.BuildConfig) (buildTriggers []buildinternalapi.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 *buildinternalapi.Build) string
GetBuildPodName returns name of the build pod.
func GetInputReference ¶
func GetInputReference(strategy buildinternalapi.BuildStrategy) *coreinternalapi.ObjectReference
GetInputReference returns the From ObjectReference associated with the BuildStrategy.
func HasTriggerType ¶
func HasTriggerType(triggerType buildinternalapi.BuildTriggerType, bc *buildinternalapi.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 buildinternalapi.BuildStrategy) string
Types ¶
type BuildSliceByCreationTimestamp ¶
type BuildSliceByCreationTimestamp []buildinternalapi.Build
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)