tekton

package
v0.0.0-...-cc9fc9a Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

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

func GetPipelineVariables(ctx context.Context, pipelineRun *tknv1.PipelineRun) map[string]string

func GetTotalTime

func GetTotalTime(startTime *metav1.Time, completionTime *metav1.Time) string

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)

Jump to

Keyboard shortcuts

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