Documentation ¶
Index ¶
- Variables
- func DefaultValues(a *v1.PipelineActivity)
- func GetLabel(m map[string]string, labels []string) string
- func Humanize(text string) string
- func ToPipelineActivity(pr *v1beta1.PipelineRun, pa *v1.PipelineActivity, overwriteSteps bool)
- func ToPipelineActivityName(pr *v1beta1.PipelineRun, paList []v1.PipelineActivity) string
- type ActivityResolver
Constants ¶
This section is empty.
Variables ¶
View Source
var ( OwnerLabels = []string{"owner", "lighthouse.jenkins-x.io/refs.org"} RepoLabels = []string{"repository", "lighthouse.jenkins-x.io/refs.repo"} BranchLabels = []string{"branch", "lighthouse.jenkins-x.io/branch"} BuildLabels = []string{"build", "lighthouse.jenkins-x.io/buildNum"} ContextLabels = []string{"context", "lighthouse.jenkins-x.io/context"} )
Functions ¶
func DefaultValues ¶ added in v0.0.123
func DefaultValues(a *v1.PipelineActivity)
DefaultValues default missing values from the lighthouse labels
func ToPipelineActivity ¶
func ToPipelineActivity(pr *v1beta1.PipelineRun, pa *v1.PipelineActivity, overwriteSteps bool)
func ToPipelineActivityName ¶
func ToPipelineActivityName(pr *v1beta1.PipelineRun, paList []v1.PipelineActivity) string
ToPipelineActivityName creates an activity name from a pipeline run
Types ¶
type ActivityResolver ¶ added in v0.0.129
type ActivityResolver struct {
// contains filtered or unexported fields
}
ActivityResolver a helper object to map PipelineRun objects to PipelineActivity resources
func NewActivityResolver ¶ added in v0.0.129
func NewActivityResolver(activities []v1.PipelineActivity) *ActivityResolver
NewActivityResolver creates a new resolver
func (*ActivityResolver) ToPipelineActivity ¶ added in v0.0.129
func (r *ActivityResolver) ToPipelineActivity(pr *v1beta1.PipelineRun) *v1.PipelineActivity
ToPipelineActivity converts the given PipelineRun to a PipelineActivity
Click to show internal directories.
Click to hide internal directories.