Documentation ¶
Index ¶
- Constants
- func GetAttributes(ctx context.Context, pipelineRun *tknv1.PipelineRun, ...) map[string]string
- func GetLabelsWithPrefix(pipelineRun *tknv1.PipelineRun, prefix string) map[string]string
- func GetPipelineName(pipelineRun *tknv1.PipelineRun, variables map[string]string) string
- func GetPipelineVariables(ctx context.Context, pipelineRun *tknv1.PipelineRun) map[string]string
- func GetTotalTime(startTime *metav1.Time, completionTime *metav1.Time) string
- type PipelineRunData
Constants ¶
View Source
const (
PacLabelPrefix = "pipelinesascode.tekton.dev"
)
Variables ¶
This section is empty.
Functions ¶
func GetAttributes ¶
func GetAttributes(ctx context.Context, pipelineRun *tknv1.PipelineRun, eventEmitter *events.EventEmitter) map[string]string
func GetLabelsWithPrefix ¶
func GetLabelsWithPrefix(pipelineRun *tknv1.PipelineRun, prefix string) map[string]string
func GetPipelineName ¶
func GetPipelineName(pipelineRun *tknv1.PipelineRun, variables map[string]string) string
func GetPipelineVariables ¶
Types ¶
type PipelineRunData ¶
type PipelineRunData struct { RawPipelineRun *tknv1.PipelineRun `json:"rawPipelineRun,omitempty" yaml:"rawPipelineRun,omitempty"` VariableValues map[string]string `json:"variables,omitempty" yaml:"variables,omitempty"` PacLabels map[string]string `json:"pacLabels,omitempty" yaml:"pacLabels,omitempty"` Namespace string `json:"namespace,omitempty" yaml:"namespace,omitempty"` PipelineRunName string `json:"pipelineRunName,omitempty" yaml:"pipelineRunName,omitempty"` PipelineName string `json:"pipelineName,omitempty" yaml:"pipelineName,omitempty"` StartTime *metav1.Time `json:"startTime,omitempty" yaml:"startTime,omitempty"` CompletionTime *metav1.Time `json:"completionTime,omitempty" yaml:"completionTime,omitempty"` TotalTime *string `json:"totalTime,omitempty" yaml:"totalTime,omitempty"` Attributes map[string]string `json:"attributes,omitempty" yaml:"attributes,omitempty"` }
func GetPipelineRunData ¶
func GetPipelineRunData(ctx context.Context, pipelineRun *tknv1.PipelineRun, eventEmitter *events.EventEmitter) (*PipelineRunData, error)
Click to show internal directories.
Click to hide internal directories.