buildcontrols

package
v0.25.3 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

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 {
	ManifestName model.ManifestName
	SpanID       logstore.SpanID
	Result       store.BuildResultSet
	FinishTime   time.Time
	Error        error
}

func NewBuildCompleteAction

func NewBuildCompleteAction(mn model.ManifestName, 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
	IsBuildController  bool
}

func (BuildStartedAction) Action

func (BuildStartedAction) Action()

Jump to

Keyboard shortcuts

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