buildcontrols

package
v0.33.19 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const BuildControlSource = "buildcontrol"

Variables

This section is empty.

Functions

func HandleBuildCompleted

func HandleBuildCompleted(ctx context.Context, engineState *store.EngineState, cb BuildCompleteAction)

func HandleBuildStarted

func HandleBuildStarted(ctx context.Context, state *store.EngineState, action BuildStartedAction)

func IsFatalError

func IsFatalError(err error) bool

A permanent error indicates that the whole build pipeline needs to stop. It will never recover, even on subsequent rebuilds.

func LogBuildEntry

func LogBuildEntry(ctx context.Context, entry BuildEntry)

Types

type BuildCompleteAction

type BuildCompleteAction struct {
	Source       string
	ManifestName model.ManifestName
	SpanID       logstore.SpanID
	Result       store.BuildResultSet
	FinishTime   time.Time
	Error        error
}

func NewBuildCompleteAction

func NewBuildCompleteAction(mn model.ManifestName, source string, spanID logstore.SpanID, result store.BuildResultSet, err error) BuildCompleteAction

func (BuildCompleteAction) Action

func (BuildCompleteAction) Action()

type BuildEntry

type BuildEntry struct {
	Name         model.ManifestName
	BuildReason  model.BuildReason
	FilesChanged []string
}

type BuildStartedAction

type BuildStartedAction struct {
	ManifestName       model.ManifestName
	StartTime          time.Time
	FilesChanged       []string
	Reason             model.BuildReason
	SpanID             logstore.SpanID
	FullBuildTriggered bool
	Source             string
}

func (BuildStartedAction) Action

func (BuildStartedAction) Action()

Jump to

Keyboard shortcuts

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