tekton

package
v0.0.0-...-6cdb919 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const LabelKeyPipeline = "tekton.dev/pipeline"

Variables

This section is empty.

Functions

func Observe

func Observe(results *PipelineResults, data *global.HorizonMetaData)

Types

type PipelineResults

type PipelineResults struct {
	Metadata    *PrMetadata
	PrResult    *PrResult
	TrResults   TrResults
	StepResults StepResults
}

func FormatPipelineResults

func FormatPipelineResults(pipelineRun *v1beta1.PipelineRun) *PipelineResults

type PrMetadata

type PrMetadata struct {
	Name      string
	Namespace string
	Pipeline  string
}

type PrResult

type PrResult struct {
	DurationSeconds float64
	Result          string
	StartTime       *metav1.Time
	CompletionTime  *metav1.Time
}

type StepResult

type StepResult struct {
	Step            string
	Task            string
	TaskRun         string
	StartTime       *metav1.Time
	CompletionTime  *metav1.Time
	DurationSeconds float64
	Result          string
}

type StepResults

type StepResults []*StepResult

func (StepResults) Len

func (s StepResults) Len() int

func (StepResults) Less

func (s StepResults) Less(i, j int) bool

func (StepResults) Swap

func (s StepResults) Swap(i, j int)

type TrResult

type TrResult struct {
	Name            string
	Pod             string
	Task            string
	StartTime       *metav1.Time
	CompletionTime  *metav1.Time
	DurationSeconds float64
	Result          string
}

type TrResults

type TrResults []*TrResult

func (TrResults) Len

func (t TrResults) Len() int

func (TrResults) Less

func (t TrResults) Less(i, j int) bool

func (TrResults) Swap

func (t TrResults) Swap(i, j int)

type WrappedPipelineRun

type WrappedPipelineRun struct {
	PipelineRun *v1beta1.PipelineRun `json:"pipelineRun"`
}

func (*WrappedPipelineRun) ResolveMetadata

func (wpr *WrappedPipelineRun) ResolveMetadata() *PrMetadata

func (*WrappedPipelineRun) ResolvePrResult

func (wpr *WrappedPipelineRun) ResolvePrResult() *PrResult

func (*WrappedPipelineRun) ResolveTrAndStepResults

func (wpr *WrappedPipelineRun) ResolveTrAndStepResults() (TrResults, StepResults)

Jump to

Keyboard shortcuts

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