Documentation ¶
Index ¶
- Constants
- func HandleBuildCompleted(ctx context.Context, engineState *store.EngineState, cb BuildCompleteAction)
- func HandleBuildStarted(ctx context.Context, state *store.EngineState, action BuildStartedAction)
- func IsFatalError(err error) bool
- func LogBuildEntry(ctx context.Context, entry BuildEntry)
- type BuildCompleteAction
- type BuildEntry
- type BuildStartedAction
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 ¶
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()
Click to show internal directories.
Click to hide internal directories.