timing

package
v3.11.0-alpha.0+incomp... Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendStageAndStepInfo

func AppendStageAndStepInfo(stages []buildapiv1.StageInfo, stagesToMerge []buildapiv1.StageInfo) []buildapiv1.StageInfo

AppendStageAndStepInfo appends the step info from one stages slice into another.

func GetStages

func GetStages(ctx context.Context) []buildapiv1.StageInfo

GetStages returns all stages and steps currently stored in the context

func NewContext

func NewContext(ctx context.Context) context.Context

NewContext returns a context initialised for use

func RecordNewStep

func RecordNewStep(ctx context.Context, stageName buildapiv1.StageName, stepName buildapiv1.StepName, startTime metav1.Time, endTime metav1.Time)

RecordNewStep adds a new timing step to the context

func RecordStageAndStepInfo

func RecordStageAndStepInfo(stages []buildapiv1.StageInfo, stageName buildapiv1.StageName, stepName buildapiv1.StepName, startTime metav1.Time, endTime metav1.Time) []buildapiv1.StageInfo

RecordStageAndStepInfo records details about each build stage and step

Types

This section is empty.

Jump to

Keyboard shortcuts

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