eventhandlers

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2025 License: MPL-2.0 Imports: 23 Imported by: 0

Documentation

Overview

Package eventhandlers provides event handlers for pipeline events.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InitializationHandler

type InitializationHandler struct {
	// contains filtered or unexported fields
}

InitializationHandler dictates if a pipeline node requires initialization.

func NewInitializationHandler

func NewInitializationHandler(
	logger logger.Logger,
	dbClient *db.Client,
	pipelineUpdater pipeline.Updater,
	pipelineTemplateStore pipelinetemplate.DataStore,
	pipelineArtifactStore pipeline.Store,
) *InitializationHandler

NewInitializationHandler returns an instance of InitializationHandler.

func (*InitializationHandler) RegisterHandlers

func (i *InitializationHandler) RegisterHandlers()

RegisterHandlers registers any handlers with the PipelineUpdater used by the InitializationHandler.

type MetricManager

type MetricManager struct {
	// contains filtered or unexported fields
}

MetricManager manages metrics based on the pipeline's state.

func NewMetricManager

func NewMetricManager(logger logger.Logger, dbClient *db.Client, pipelineUpdater pipeline.Updater) *MetricManager

NewMetricManager returns an instance of MetricsManager.

func (*MetricManager) RegisterHandlers

func (m *MetricManager) RegisterHandlers()

RegisterHandlers registers any handlers with the PipelineUpdater used by the MetricsManager.

type ToDoItemManager

type ToDoItemManager struct {
	// contains filtered or unexported fields
}

ToDoItemManager manages todo items based on a pipeline's state.

func NewToDoItemManager

func NewToDoItemManager(logger logger.Logger, dbClient *db.Client, pipelineUpdater pipeline.Updater, emailClient email.Client) *ToDoItemManager

NewToDoItemManager returns an instance of ToDoItemManager.

func (*ToDoItemManager) RegisterHandlers

func (t *ToDoItemManager) RegisterHandlers()

RegisterHandlers registers any handlers with the PipelineUpdater used by the ToDoItemManager.

Jump to

Keyboard shortcuts

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