event

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: AGPL-3.0 Imports: 13 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	CommandExecutionQueue     = "command.execution_queue"
	HandlerExecutionQueued    = "handler.execution_queued"
	CommandExecutionStart     = "command.execution_start"
	HandlerExecutionStarted   = "handler.execution_started"
	CommandExecutionPlan      = "command.execution_plan"
	HandlerExecutionPlanned   = "handler.execution_planned"
	CommandExecutionFinish    = "command.execution_finish"
	HandlerExecutionFinished  = "handler.execution_finished"
	CommandExecutionFail      = "command.execution_fail"
	HandlerExecutionFailed    = "handler.execution_failed"
	CommandExecutionPause     = "command.execution_pause"
	HandlerExecutionPaused    = "handler.execution_paused"
	HandlerExecutionCancelled = "handler.execution_cancelled"

	CommandPipelineCancel      = "command.pipeline_cancel"
	HandlerPipelineCancelled   = "handler.pipeline_canceled"
	CommandPipelineFail        = "command.pipeline_fail"
	HandlerPipelineFailed      = "handler.pipeline_failed"
	CommandPipelineFinish      = "command.pipeline_finish"
	HandlerPipelineFinished    = "handler.pipeline_finished"
	CommandPipelineLoad        = "command.pipeline_load"
	HandlerPipelineLoaded      = "handler.pipeline_loaded"
	CommandPipelinePause       = "command.pipeline_pause"
	HandlerPipelinePaused      = "handler.pipeline_paused"
	CommandPipelinePlan        = "command.pipeline_plan"
	HandlerPipelinePlanned     = "handler.pipeline_planned"
	CommandPipelineQueue       = "command.pipeline_queue"
	HandlerPipelineQueued      = "handler.pipeline_queued"
	CommandPipelineResume      = "command.pipeline_resume"
	HandlerPipelineResumed     = "handler.pipeline_resumed"
	CommandPipelineStart       = "command.pipeline_start"
	HandlerPipelineStarted     = "handler.pipeline_started"
	HandlerStepFinished        = "handler.step_finished"
	CommandStepForEachPlan     = "command.step_for_each_plan"
	HandlerStepForEachPlanned  = "handler.step_for_each_planned"
	CommandStepPipelineFinish  = "command.step_pipeline_finish"
	HandlerStepPipelineStarted = "handler.step_pipeline_started"
	CommandStepQueue           = "command.step_queue"
	HandlerStepQueued          = "handler.step_queued"
	CommandStepStart           = "command.step_start"

	CommandTriggerQueue    = "command.trigger_queue"
	HandlerTriggerQueued   = "handler.trigger_queued"
	CommandTriggerStart    = "command.trigger_start"
	HandlerTriggerStarted  = "handler.trigger_started"
	CommandTriggerFail     = "command.trigger_fail"
	HandlerTriggerFailed   = "handler.trigger_failed"
	CommandTriggerFinish   = "command.trigger_finish"
	HandlerTriggerFinished = "handler.trigger_finished"
)

Variables

View Source
var EndEvents = []string{
	"finished",
	"failed",
	"cancelled",
}

Functions

func GetEventStoreMutex

func GetEventStoreMutex(executionId string) *sync.Mutex

func ReleaseEventLogMutex

func ReleaseEventLogMutex(executionId string)

Types

type CommandEvent

type CommandEvent interface {
	GetEvent() *Event
	HandlerName() string
}

type Event

type Event struct {
	// Every execution has a unique ID. This is used right through from initial
	// triggering down through all pipelines, steps and nested pipelines.
	ExecutionID string `json:"execution_id"`
	// Time when the command was created.
	CreatedAt time.Time `json:"created_at"`
}

All events have a shared structure to track execution context.

func NewChildEvent

func NewChildEvent(parent *Event) *Event

func NewEventForExecutionID

func NewEventForExecutionID(executionID string) *Event

func NewExecutionEvent

func NewExecutionEvent() *Event

func NewFlowEvent

func NewFlowEvent(before *Event) *Event

func NewParentEvent

func NewParentEvent(child *Event) *Event

type EventLogImpl added in v0.7.0

type EventLogImpl struct {
	StructVersion string      `json:"struct_version"`
	ID            string      `json:"id"`
	ProcessID     string      `json:"process_id"`
	Message       string      `json:"message"`
	Level         string      `json:"level"`
	CreatedAt     time.Time   `json:"created_at"`
	Detail        interface{} `json:"detail"`
}

func NewEventLog added in v0.7.0

func NewEventLog() EventLogImpl

func NewEventLogFromCommand added in v0.7.0

func NewEventLogFromCommand(command CommandEvent) EventLogImpl

func (*EventLogImpl) GetCreatedAt added in v0.7.0

func (e *EventLogImpl) GetCreatedAt() time.Time

func (*EventLogImpl) GetCreatedAtString added in v0.7.0

func (e *EventLogImpl) GetCreatedAtString() string

func (*EventLogImpl) GetDetail added in v0.7.0

func (e *EventLogImpl) GetDetail() interface{}

func (*EventLogImpl) GetEventType added in v0.7.0

func (e *EventLogImpl) GetEventType() string

func (*EventLogImpl) GetID added in v0.7.0

func (e *EventLogImpl) GetID() string

func (*EventLogImpl) GetLevel added in v0.7.0

func (e *EventLogImpl) GetLevel() string

func (*EventLogImpl) GetStructVersion added in v0.7.0

func (e *EventLogImpl) GetStructVersion() string

func (*EventLogImpl) SetCreatedAtString added in v0.7.0

func (e *EventLogImpl) SetCreatedAtString(createdAt string) error

func (*EventLogImpl) SetDetail added in v0.7.0

func (e *EventLogImpl) SetDetail(detail interface{})

type ExecutionFail added in v1.0.0

type ExecutionFail struct {
	Event *Event          `json:"event"`
	Name  string          `json:"name"`
	Error perr.ErrorModel `json:"error"`
}

func ExecutionFailFromTriggerFailed added in v1.0.0

func ExecutionFailFromTriggerFailed(q *TriggerFailed) *ExecutionFail

func ExecutionFailFromTriggerStarted added in v1.0.0

func ExecutionFailFromTriggerStarted(q *TriggerStarted, err perr.ErrorModel) *ExecutionFail

func (*ExecutionFail) GetEvent added in v1.0.0

func (e *ExecutionFail) GetEvent() *Event

func (*ExecutionFail) HandlerName added in v1.0.0

func (e *ExecutionFail) HandlerName() string

type ExecutionFailed added in v1.0.0

type ExecutionFailed struct {
	Event *Event          `json:"event"`
	Name  string          `json:"name"`
	Error perr.ErrorModel `json:"error"`
}

func ExecutionFailedFromExecutionFail added in v1.0.0

func ExecutionFailedFromExecutionFail(q *ExecutionFail) *ExecutionFailed

func ExecutionFailedFromExecutionPlan added in v1.0.0

func ExecutionFailedFromExecutionPlan(q *ExecutionPlan, err perr.ErrorModel) *ExecutionFailed

func (*ExecutionFailed) GetEvent added in v1.0.0

func (e *ExecutionFailed) GetEvent() *Event

func (*ExecutionFailed) HandlerName added in v1.0.0

func (e *ExecutionFailed) HandlerName() string

type ExecutionFinish added in v1.0.0

type ExecutionFinish struct {
	Event *Event `json:"event"`
	Type  string `json:"type"`
}

func ExecutionFinishFromExecutionPlanned added in v1.0.0

func ExecutionFinishFromExecutionPlanned(e *ExecutionPlanned) *ExecutionFinish

func ExecutionFinishFromTriggerFinished added in v1.0.0

func ExecutionFinishFromTriggerFinished(e *TriggerFinished) *ExecutionFinish

func (*ExecutionFinish) GetEvent added in v1.0.0

func (e *ExecutionFinish) GetEvent() *Event

func (*ExecutionFinish) HandlerName added in v1.0.0

func (e *ExecutionFinish) HandlerName() string

type ExecutionFinished added in v1.0.0

type ExecutionFinished struct {
	Event *Event `json:"event"`
	Type  string `json:"type"`
}

func ExecutionFinishedFromExecutionFinish added in v1.0.0

func ExecutionFinishedFromExecutionFinish(e *ExecutionFinish) *ExecutionFinished

func ExecutionFinishedFromExecutionPlan added in v1.0.0

func ExecutionFinishedFromExecutionPlan(e *ExecutionPlan) *ExecutionFinished

func (*ExecutionFinished) GetEvent added in v1.0.0

func (e *ExecutionFinished) GetEvent() *Event

func (*ExecutionFinished) HandlerName added in v1.0.0

func (e *ExecutionFinished) HandlerName() string

type ExecutionPaused added in v1.0.0

type ExecutionPaused struct {
	Event         *Event         `json:"event"`
	PipelineQueue *PipelineQueue `json:"pipeline_queue"`
	TriggerQueue  *TriggerQueue  `json:"trigger_queue"`
}

func ExecutionPausedFromExecutionPlan added in v1.0.0

func ExecutionPausedFromExecutionPlan(e *ExecutionPlan) *ExecutionPaused

func (*ExecutionPaused) GetEvent added in v1.0.0

func (e *ExecutionPaused) GetEvent() *Event

func (*ExecutionPaused) HandlerName added in v1.0.0

func (e *ExecutionPaused) HandlerName() string

type ExecutionPlan added in v1.0.0

type ExecutionPlan struct {
	Event *Event `json:"event"`
	Type  string `json:"type"`

	// TODO: make this an interface and implement JSON serialization
	PipelineQueue *PipelineQueue `json:"pipeline_queue"`
	TriggerQueue  *TriggerQueue  `json:"trigger_queue"`
}

func ExecutionPlanFromExecutionStarted added in v1.0.0

func ExecutionPlanFromExecutionStarted(e *ExecutionStarted) *ExecutionPlan

func ExecutionPlanFromPipelineCancelled added in v1.0.0

func ExecutionPlanFromPipelineCancelled(e *PipelineCanceled) *ExecutionPlan

func ExecutionPlanFromPipelineFailed added in v1.0.0

func ExecutionPlanFromPipelineFailed(e *PipelineFailed) *ExecutionPlan

func ExecutionPlanFromPipelineFinished added in v1.0.0

func ExecutionPlanFromPipelineFinished(e *PipelineFinished) *ExecutionPlan

func ExecutionPlanFromPipelinePaused added in v1.0.0

func ExecutionPlanFromPipelinePaused(e *PipelinePaused) *ExecutionPlan

func (*ExecutionPlan) GetEvent added in v1.0.0

func (e *ExecutionPlan) GetEvent() *Event

func (*ExecutionPlan) HandlerName added in v1.0.0

func (e *ExecutionPlan) HandlerName() string

type ExecutionPlanned added in v1.0.0

type ExecutionPlanned struct {
	// Event metadata
	Event *Event `json:"event"`
	Type  string `json:"type"`

	NextStep string `json:"next_step"`

	// TODO: make this an interface and implement JSON serialization
	PipelineQueue *PipelineQueue `json:"pipeline_queue"`
	TriggerQueue  *TriggerQueue  `json:"trigger_queue"`
}

func ExecutionPlannedFromExecutionPlan added in v1.0.0

func ExecutionPlannedFromExecutionPlan(e *ExecutionPlan) *ExecutionPlanned

func (*ExecutionPlanned) GetEvent added in v1.0.0

func (e *ExecutionPlanned) GetEvent() *Event

func (*ExecutionPlanned) HandlerName added in v1.0.0

func (e *ExecutionPlanned) HandlerName() string

type ExecutionQueue added in v1.0.0

type ExecutionQueue struct {
	Event *Event `json:"event"`
	Type  string `json:"type"`

	// TODO: make this an interface and implement JSON serialization
	PipelineQueue *PipelineQueue `json:"pipeline_queue"`
	TriggerQueue  *TriggerQueue  `json:"trigger_queue"`
}

func NewExecutionQueueForPipeline added in v1.0.0

func NewExecutionQueueForPipeline(executionId, pipelineName string) *ExecutionQueue

func NewExecutionQueueForTrigger added in v1.0.0

func NewExecutionQueueForTrigger(executionId, triggerName string) *ExecutionQueue

func (*ExecutionQueue) GetEvent added in v1.0.0

func (e *ExecutionQueue) GetEvent() *Event

func (*ExecutionQueue) HandlerName added in v1.0.0

func (e *ExecutionQueue) HandlerName() string

type ExecutionQueued added in v1.0.0

type ExecutionQueued struct {
	// Event metadata
	Event *Event `json:"event"`

	// TODO: make this an interface and implement JSON serialization
	PipelineQueue *PipelineQueue `json:"pipeline_queue"` // PipelineQueue not supported yet

	TriggerQueue *TriggerQueue `json:"trigger_queue"`
}

func ExecutionQueuedFromExecutionQueue added in v1.0.0

func ExecutionQueuedFromExecutionQueue(e *ExecutionQueue) *ExecutionQueued

func (*ExecutionQueued) GetEvent added in v1.0.0

func (e *ExecutionQueued) GetEvent() *Event

func (*ExecutionQueued) HandlerName added in v1.0.0

func (e *ExecutionQueued) HandlerName() string

type ExecutionStart added in v1.0.0

type ExecutionStart struct {
	// Event metadata
	Event *Event `json:"event"`

	// TODO: make this an interface and implement JSON serialization
	PipelineQueue *PipelineQueue `json:"pipeline_queue"` // PipelineQueue not supported yet

	TriggerQueue *TriggerQueue `json:"trigger_queue"`
}

func ExecutionStartFromExecutionQueued added in v1.0.0

func ExecutionStartFromExecutionQueued(e *ExecutionQueued) *ExecutionStart

func (*ExecutionStart) GetEvent added in v1.0.0

func (e *ExecutionStart) GetEvent() *Event

func (*ExecutionStart) HandlerName added in v1.0.0

func (e *ExecutionStart) HandlerName() string

type ExecutionStarted added in v1.0.0

type ExecutionStarted struct {
	// Event metadata
	Event *Event `json:"event"`

	// TODO: make this an interface and implement JSON serialization
	PipelineQueue *PipelineQueue `json:"pipeline_queue"`
	TriggerQueue  *TriggerQueue  `json:"trigger_queue"`
}

func ExecutionStartedFromExecutionStart added in v1.0.0

func ExecutionStartedFromExecutionStart(e *ExecutionStart) *ExecutionStarted

func (*ExecutionStarted) GetEvent added in v1.0.0

func (e *ExecutionStarted) GetEvent() *Event

func (*ExecutionStarted) HandlerName added in v1.0.0

func (e *ExecutionStarted) HandlerName() string

type PayloadWithEvent

type PayloadWithEvent struct {
	Event *Event `json:"event"`
}

type PipelineCancel

type PipelineCancel struct {
	// Event metadata
	Event *Event `json:"event"`

	// Pipeline execution details
	PipelineExecutionID string `json:"pipeline_execution_id"`
	ExecutionID         string `json:"execution_id,omitempty"`

	// Reason for the cancellation
	Reason string `json:"reason,omitempty"`
}

func NewPipelineCancel

func NewPipelineCancel(pipelineExecutionID string, opts ...PipelineCancelOption) (*PipelineCancel, error)

NewPipelineCancel creates a new PipelineCancel event.

func (*PipelineCancel) GetEvent

func (e *PipelineCancel) GetEvent() *Event

func (*PipelineCancel) HandlerName

func (e *PipelineCancel) HandlerName() string

type PipelineCancelOption

type PipelineCancelOption func(*PipelineCancel) error

ExecutionOption is a function that modifies an Execution instance.

type PipelineCanceled

type PipelineCanceled struct {
	// Event metadata
	Event *Event `json:"event"`
	// Unique identifier for this pipeline execution
	PipelineExecutionID string `json:"pipeline_execution_id"`
	// Reason for the cancellation
	Reason string `json:"reason,omitempty"`
}

func NewPipelineCanceledFromPipelineCancel

func NewPipelineCanceledFromPipelineCancel(cmd *PipelineCancel) *PipelineCanceled

func (*PipelineCanceled) GetEvent

func (e *PipelineCanceled) GetEvent() *Event

func (*PipelineCanceled) HandlerName

func (e *PipelineCanceled) HandlerName() string

type PipelineFail

type PipelineFail struct {
	// Event metadata
	Event *Event `json:"event"`
	// Pipeline execution details
	PipelineExecutionID string `json:"pipeline_execution_id"`
	// Error details
	Error *resources.StepError `json:"error,omitempty"`
}

func NewPipelineFail

func NewPipelineFail(opts ...PipelineFailOption) *PipelineFail

NewPipelineFail creates a new PipelineFail event. Unlike other events, creating a pipeline fail event cannot have an error as an option (because we're already handling errors).

func NewPipelineFailFromPipelinePlanned

func NewPipelineFailFromPipelinePlanned(e *PipelinePlanned, err error) *PipelineFail

func NewPipelineFailFromStepForEachPlanned

func NewPipelineFailFromStepForEachPlanned(e *StepForEachPlanned, err error) *PipelineFail

func PipelineFailFromPipelinePaused added in v1.0.0

func PipelineFailFromPipelinePaused(e *PipelinePaused, err error) *PipelineFail

func (*PipelineFail) GetEvent

func (e *PipelineFail) GetEvent() *Event

func (*PipelineFail) HandlerName

func (e *PipelineFail) HandlerName() string

type PipelineFailOption

type PipelineFailOption func(*PipelineFail)

ExecutionOption is a function that modifies an Execution instance.

func ForPipelineFinishedToPipelineFail

func ForPipelineFinishedToPipelineFail(e *PipelineFinished, err error) PipelineFailOption

func ForPipelineLoadedToPipelineFail

func ForPipelineLoadedToPipelineFail(e *PipelineLoaded, err error) PipelineFailOption

func ForPipelineQueuedToPipelineFail

func ForPipelineQueuedToPipelineFail(e *PipelineQueued, err error) PipelineFailOption

func ForPipelineResumedToPipelineFail

func ForPipelineResumedToPipelineFail(e *PipelineResumed, err error) PipelineFailOption

func ForPipelineStartedToPipelineFail

func ForPipelineStartedToPipelineFail(e *PipelineStarted, err error) PipelineFailOption

func ForPipelineStepFinishedToPipelineFail

func ForPipelineStepFinishedToPipelineFail(e *StepFinished, err error) PipelineFailOption

func ForStepPipelineStartedToPipelineFail

func ForStepPipelineStartedToPipelineFail(e *StepPipelineStarted, err error) PipelineFailOption

func ForStepQueuedToPipelineFail

func ForStepQueuedToPipelineFail(e *StepQueued, err error) PipelineFailOption

type PipelineFailed

type PipelineFailed struct {
	// Event metadata
	Event *Event `json:"event"`

	// Unique identifier for this pipeline execution
	PipelineExecutionID string `json:"pipeline_execution_id"`

	Errors []resources.StepError `json:"error,omitempty"`

	PipelineOutput map[string]interface{} `json:"pipeline_output"`
}

func NewPipelineFailed

func NewPipelineFailed(ctx context.Context, opts ...PipelineFailedOption) *PipelineFailed

NewPipelineFailed creates a new PipelineFailed event. Unlike other events, creating a pipeline failed event cannot have an error as an option (because we're already handling errors).

func NewPipelineFailedFromPipelineFail

func NewPipelineFailedFromPipelineFail(cmd *PipelineFail, pipelineOutput map[string]interface{}, pipelineErrors []resources.StepError) *PipelineFailed

func NewPipelineFailedFromPipelineLoad

func NewPipelineFailedFromPipelineLoad(cmd *PipelineLoad, err error) *PipelineFailed

func NewPipelineFailedFromStepForEachPlan

func NewPipelineFailedFromStepForEachPlan(cmd *StepForEachPlan, err error) *PipelineFailed

func NewPipelineFailedFromStepPipelineFinish

func NewPipelineFailedFromStepPipelineFinish(cmd *StepPipelineFinish, err error) *PipelineFailed

func (*PipelineFailed) GetEvent

func (e *PipelineFailed) GetEvent() *Event

func (*PipelineFailed) HandlerName

func (e *PipelineFailed) HandlerName() string

func (*PipelineFailed) UnmarshalJSON

func (p *PipelineFailed) UnmarshalJSON(data []byte) error

type PipelineFailedOption

type PipelineFailedOption func(*PipelineFailed) error

PipelineFailedOption is a function that modifies an Execution instance.

func ForPipelineCancelToPipelineFailed

func ForPipelineCancelToPipelineFailed(cmd *PipelineCancel, err error) PipelineFailedOption

ForPipelineCancelToPipelineFailed returns a PipelineFailedOption that sets the fields of the PipelineFailed event from a PipelineCancel command.

func ForPipelineFinishToPipelineFailed

func ForPipelineFinishToPipelineFailed(cmd *PipelineFinish, err error) PipelineFailedOption

func ForPipelinePauseToPipelineFailed

func ForPipelinePauseToPipelineFailed(cmd *PipelinePause, err error) PipelineFailedOption

func ForPipelinePlanToPipelineFailed

func ForPipelinePlanToPipelineFailed(cmd *PipelinePlan, err error, pipelineName string, stepName string) PipelineFailedOption

ForPipelinePlanToPipelineFailed returns a PipelineFailedOption that sets the fields of the PipelineFailed event from a PipelinePlan command.

func ForPipelineQueueToPipelineFailed

func ForPipelineQueueToPipelineFailed(cmd *PipelineQueue, err error) PipelineFailedOption

ForPipelineQueueToPipelineFailed returns a PipelineFailedOption that sets the fields of the PipelineFailed event from a PipelineQueue command.

func ForPipelineResumeToPipelineFailed

func ForPipelineResumeToPipelineFailed(cmd *PipelineResume, err error) PipelineFailedOption

func ForPipelineStartToPipelineFailed

func ForPipelineStartToPipelineFailed(cmd *PipelineStart, err error) PipelineFailedOption

ForPipelineStartToPipelineFailed returns a PipelineFailedOption that sets the fields of the PipelineFailed event from a PipelineStart command.

func ForStepQueueToPipelineFailed

func ForStepQueueToPipelineFailed(cmd *StepQueue, err error) PipelineFailedOption

func ForStepStartToPipelineFailed

func ForStepStartToPipelineFailed(cmd *StepStart, err error) PipelineFailedOption

func PipelineFailedWithEvent

func PipelineFailedWithEvent(event *Event) PipelineFailedOption

func PipelineFailedWithMultipleErrors

func PipelineFailedWithMultipleErrors(pipelineExecutionID string, pipelineName string, errs []perr.ErrorModel) PipelineFailedOption

func PipelineFailedWithOutput

func PipelineFailedWithOutput(output map[string]any) PipelineFailedOption

type PipelineFinish

type PipelineFinish struct {
	// Event metadata
	Event *Event `json:"event"`
	// Pipeline execution details
	PipelineExecutionID string            `json:"pipeline_execution_id"`
	Output              *resources.Output `json:"output,omitempty"`
}

func NewPipelineFinish

func NewPipelineFinish(opts ...PipelineFinishOption) (*PipelineFinish, error)

NewPipelineFinish creates a new PipelineFinish event.

func (*PipelineFinish) GetEvent

func (e *PipelineFinish) GetEvent() *Event

func (*PipelineFinish) HandlerName

func (e *PipelineFinish) HandlerName() string

type PipelineFinishOption

type PipelineFinishOption func(*PipelineFinish) error

ExecutionOption is a function that modifies an Execution instance.

func ForPipelinePlannedToPipelineFinish

func ForPipelinePlannedToPipelineFinish(e *PipelinePlanned) PipelineFinishOption

func WithPipelineOutput

func WithPipelineOutput(output *resources.Output) PipelineFinishOption

type PipelineFinished

type PipelineFinished struct {
	// Event metadata
	Event *Event `json:"event"`
	// Unique identifier for this pipeline execution
	PipelineExecutionID string `json:"pipeline_execution_id"`

	PipelineOutput map[string]interface{} `json:"pipeline_output"`
}

func NewPipelineFinished

func NewPipelineFinished(opts ...PipelineFinishedOption) (*PipelineFinished, error)

NewPipelineFinished creates a new PipelineFinished event.

func (*PipelineFinished) GetEvent

func (e *PipelineFinished) GetEvent() *Event

func (*PipelineFinished) HandlerName

func (e *PipelineFinished) HandlerName() string

type PipelineFinishedOption

type PipelineFinishedOption func(*PipelineFinished) error

ExecutionOption is a function that modifies an Execution instance.

func ForPipelineFinish

func ForPipelineFinish(cmd *PipelineFinish, pipelineOutput map[string]interface{}) PipelineFinishedOption

ForPipelineFinish returns a PipelineFinishedOption that sets the fields of the PipelineFinished event from a PipelineFinish command.

type PipelineLoad

type PipelineLoad struct {
	// Event metadata
	Event *Event `json:"event"`
	// Pipeline execution details
	PipelineExecutionID string `json:"pipeline_execution_id"`
}

func NewPipelineLoad

func NewPipelineLoad(opts ...PipelineLoadOption) (*PipelineLoad, error)

NewPipelineLoad creates a new PipelineLoad event.

func (*PipelineLoad) GetEvent

func (e *PipelineLoad) GetEvent() *Event

func (*PipelineLoad) HandlerName

func (e *PipelineLoad) HandlerName() string

type PipelineLoadOption

type PipelineLoadOption func(*PipelineLoad) error

ExecutionOption is a function that modifies an Execution instance.

func ForPipelineQueued

func ForPipelineQueued(e *PipelineQueued) PipelineLoadOption

ForPipelineLoad returns a PipelineLoadOption that sets the fields of the PipelineLoad event from a PipelineLoad command.

type PipelineLoaded

type PipelineLoaded struct {
	// Event metadata
	Event *Event `json:"event"`
	// Unique identifier for this pipeline execution
	PipelineExecutionID string `json:"pipeline_execution_id"`
	// Pipeline definition that was loaded
	Pipeline *resources.Pipeline `json:"pipeline"`
}

func NewPipelineLoadedFromPipelineLoad

func NewPipelineLoadedFromPipelineLoad(cmd *PipelineLoad, pipeline *resources.Pipeline) *PipelineLoaded

NewPipelineLoaded creates a new PipelineLoaded event.

func (*PipelineLoaded) GetEvent

func (e *PipelineLoaded) GetEvent() *Event

func (*PipelineLoaded) HandlerName

func (e *PipelineLoaded) HandlerName() string

type PipelinePause

type PipelinePause struct {
	// Event metadata
	Event *Event `json:"event"`
	// Pipeline execution details
	PipelineExecutionID string `json:"pipeline_execution_id"`
	ExecutionID         string `json:"execution_id,omitempty"`

	// Reason for pausing the pipeline execution
	Reason string `json:"reason,omitempty"`
}

func NewPipelinePause

func NewPipelinePause(executionId, pipelineExecutionId string, opts ...PipelinePauseOption) (*PipelinePause, error)

func PipelinePauseFromPipelinePlanned added in v1.0.0

func PipelinePauseFromPipelinePlanned(e *PipelinePlanned) *PipelinePause

func (*PipelinePause) GetEvent

func (e *PipelinePause) GetEvent() *Event

func (*PipelinePause) HandlerName

func (e *PipelinePause) HandlerName() string

type PipelinePauseOption

type PipelinePauseOption func(*PipelinePause) error

type PipelinePaused

type PipelinePaused struct {
	// Event metadata
	Event *Event `json:"event"`
	// Pipeline execution details
	PipelineExecutionID string `json:"pipeline_execution_id"`
	//Reason for pausing the pipeline execution
	Reason string `json:"reason,omitempty"`
}

func NewPipelinePaused

func NewPipelinePaused(opts ...PipelinePausedOption) (*PipelinePaused, error)

NewPipelineCancel creates a new PipelineCancel event.

func (*PipelinePaused) GetEvent

func (e *PipelinePaused) GetEvent() *Event

func (*PipelinePaused) HandlerName

func (e *PipelinePaused) HandlerName() string

type PipelinePausedOption

type PipelinePausedOption func(*PipelinePaused) error

ExecutionOption is a function that modifies an Execution instance.

func ForPipelinePause

func ForPipelinePause(cmd *PipelinePause) PipelinePausedOption

type PipelinePlan

type PipelinePlan struct {
	// Event metadata
	Event *Event `json:"event"`
	// Pipeline execution details
	PipelineExecutionID string `json:"pipeline_execution_id"`
}

func NewPipelinePlan

func NewPipelinePlan(opts ...PipelinePlanOption) (*PipelinePlan, error)

NewPipelinePlan creates a new PipelinePlan event.

func NewPipelinePlanFromStepForEachPlanned

func NewPipelinePlanFromStepForEachPlanned(e *StepForEachPlanned) *PipelinePlan

func PipelinePlanFromPipelinePlanned added in v1.0.0

func PipelinePlanFromPipelinePlanned(e *PipelinePlanned) *PipelinePlan

func (*PipelinePlan) GetEvent

func (e *PipelinePlan) GetEvent() *Event

func (*PipelinePlan) HandlerName

func (e *PipelinePlan) HandlerName() string

type PipelinePlanOption

type PipelinePlanOption func(*PipelinePlan) error

ExecutionOption is a function that modifies an Execution instance.

func ForChildPipelineFinished

func ForChildPipelineFinished(e *PipelineFinished, parentPipelineExecutionID string) PipelinePlanOption

func ForPipelineResumed

func ForPipelineResumed(e *PipelineResumed) PipelinePlanOption

func ForPipelineStarted

func ForPipelineStarted(e *PipelineStarted) PipelinePlanOption

func ForPipelineStepFinished

func ForPipelineStepFinished(e *StepFinished) PipelinePlanOption

type PipelinePlanned

type PipelinePlanned struct {
	// Event metadata
	Event *Event `json:"event"`
	// Unique identifier for this pipeline execution
	PipelineExecutionID string `json:"pipeline_execution_id"`
	// The planner outputs a list of the next steps to be executed in the types.
	NextSteps []resources.NextStep `json:"next_steps"`
}

func NewPipelinePlanned

func NewPipelinePlanned(opts ...PipelinePlannedOption) (*PipelinePlanned, error)

NewPipelinePlanned creates a new PipelinePlanned event.

func (*PipelinePlanned) GetEvent

func (e *PipelinePlanned) GetEvent() *Event

func (*PipelinePlanned) HandlerName

func (e *PipelinePlanned) HandlerName() string

type PipelinePlannedOption

type PipelinePlannedOption func(*PipelinePlanned) error

ExecutionOption is a function that modifies an Execution instance.

func ForPipelinePlan

func ForPipelinePlan(cmd *PipelinePlan) PipelinePlannedOption

ForPipelinePlan returns a PipelinePlannedOption that sets the fields of the PipelinePlanned event from a PipelinePlan command.

type PipelineQueue

type PipelineQueue struct {
	Event *Event          `json:"event"`
	Name  string          `json:"name"`
	Args  resources.Input `json:"args"`

	// The name of the mod including its version number. May be blank if not required,
	// for example top level mod or 1st level children. Since the 1st level children must have
	// unique names, we don't need ModFullVersion
	ModFullVersion string `json:"mod_full_version"`

	// Pipeline execution details
	PipelineExecutionID string `json:"pipeline_execution_id"`

	// If this is a child pipeline then set the parent pipeline execution ID
	ParentStepExecutionID string `json:"parent_step_execution_id,omitempty"`
	ParentExecutionID     string `json:"parent_execution_id,omitempty"`

	// If pipeline is triggered by a trigger, this is the trigger name
	Trigger string

	// If pipeline is triggered by query trigger, this is the capture name
	TriggerCapture string
}

PipelineQueue commands a pipeline to be queued for execution.

func NewPipelineQueue

func NewPipelineQueue(opts ...PipelineQueueOption) (*PipelineQueue, error)

NewPipelineQueue creates a new PipelineQueue event.

func (*PipelineQueue) GetEvent

func (e *PipelineQueue) GetEvent() *Event

func (*PipelineQueue) GetName added in v1.0.0

func (e *PipelineQueue) GetName() string

func (*PipelineQueue) GetType added in v1.0.0

func (e *PipelineQueue) GetType() string

func (*PipelineQueue) HandlerName

func (e *PipelineQueue) HandlerName() string

type PipelineQueueOption

type PipelineQueueOption func(*PipelineQueue) error

ExecutionOption is a function that modifies an Execution instance.

func ForPipelineStepStartedToPipelineQueue

func ForPipelineStepStartedToPipelineQueue(e *StepPipelineStarted) PipelineQueueOption

ForPipelineQueue returns a PipelineQueueOption that sets the fields of the PipelineQueue event from a PipelineQueue command.

type PipelineQueued

type PipelineQueued struct {
	// Event metadata
	Event *Event `json:"event"`
	// Name of the pipeline to be queued
	Name string `json:"name"`
	// The name of the mod including its version number. May be blank if not required,
	// for example top level mod or 1st level children. Since the 1st level children must have
	// unique names, we don't need ModFullVersion
	ModFullVersion string `json:"mod_full_version"`
	// Input to the pipeline
	Args resources.Input `json:"args"`
	// Unique identifier for this pipeline execution
	PipelineExecutionID string `json:"pipeline_execution_id"`
	// If this is a child pipeline then set the parent step execution ID
	ParentStepExecutionID string `json:"parent_step_execution_id,omitempty"`
	ParentExecutionID     string `json:"parent_execution_id,omitempty"`
	Trigger               string `json:"trigger,omitempty"`
	TriggerCapture        string `json:"trigger_capture,omitempty"`
}

PipelineQueued is published when a pipeline is queued

func NewPipelineQueued

func NewPipelineQueued(opts ...PipelineQueuedOption) (*PipelineQueued, error)

NewPipelineQueued creates a new PipelineQueued event.

func (*PipelineQueued) GetEvent

func (e *PipelineQueued) GetEvent() *Event

func (*PipelineQueued) HandlerName

func (e *PipelineQueued) HandlerName() string

type PipelineQueuedOption

type PipelineQueuedOption func(*PipelineQueued) error

ExecutionOption is a function that modifies an Execution instance.

func ForPipelineQueue

func ForPipelineQueue(cmd *PipelineQueue) PipelineQueuedOption

ForPipelineQueue returns a PipelineQueuedOption that sets the fields of the PipelineQueued event from a PipelineQueue command.

type PipelineResume

type PipelineResume struct {
	// Event metadata
	Event *Event `json:"event"`

	// Pipeline execution details
	PipelineExecutionID string `json:"pipeline_execution_id"`
	ExecutionID         string `json:"execution_id,omitempty"`

	// Reason for the cancellation
	Reason string `json:"reason,omitempty"`
}

func NewPipelineResume

func NewPipelineResume(executionId, pipelineExecutionId string) *PipelineResume

func (*PipelineResume) GetEvent

func (e *PipelineResume) GetEvent() *Event

func (*PipelineResume) HandlerName

func (e *PipelineResume) HandlerName() string

type PipelineResumeOption

type PipelineResumeOption func(*PipelineResume) error

ExecutionOption is a function that modifies an Execution instance.

type PipelineResumed

type PipelineResumed struct {
	// Event metadata
	Event *Event `json:"event"`
	// Unique identifier for this pipeline execution
	PipelineExecutionID string `json:"pipeline_execution_id"`
	// Reason for the cancellation
	Reason string `json:"reason,omitempty"`
}

func NewPipelineResumedFromPipelineResume

func NewPipelineResumedFromPipelineResume(evt *PipelineResume) *PipelineResumed

NewPipelineResumed creates a new PipelineResumed event.

func (*PipelineResumed) GetEvent

func (e *PipelineResumed) GetEvent() *Event

func (*PipelineResumed) HandlerName

func (e *PipelineResumed) HandlerName() string

type PipelineStart

type PipelineStart struct {
	// Event metadata
	Event *Event `json:"event"`
	// Pipeline execution details
	PipelineExecutionID string `json:"pipeline_execution_id"`
}

func NewPipelineStart

func NewPipelineStart(opts ...PipelineStartOption) (*PipelineStart, error)

NewPipelineStart creates a new PipelineStart event.

func (*PipelineStart) GetEvent

func (e *PipelineStart) GetEvent() *Event

func (*PipelineStart) HandlerName

func (e *PipelineStart) HandlerName() string

type PipelineStartOption

type PipelineStartOption func(*PipelineStart) error

ExecutionOption is a function that modifies an Execution instance.

func ForPipelineLoaded

func ForPipelineLoaded(e *PipelineLoaded) PipelineStartOption

ForPipelineStart returns a PipelineStartOption that sets the fields of the PipelineStart event from a PipelineStart command.

type PipelineStarted

type PipelineStarted struct {
	// Event metadata
	Event *Event `json:"event"`
	// Unique identifier for this pipeline execution
	PipelineExecutionID string `json:"pipeline_execution_id"`
}

func NewPipelineStarted

func NewPipelineStarted(opts ...PipelineStartedOption) (*PipelineStarted, error)

NewPipelineStarted creates a new PipelineStarted event.

func (*PipelineStarted) GetEvent

func (e *PipelineStarted) GetEvent() *Event

func (*PipelineStarted) HandlerName

func (e *PipelineStarted) HandlerName() string

type PipelineStartedOption

type PipelineStartedOption func(*PipelineStarted) error

ExecutionOption is a function that modifies an Execution instance.

func ForPipelineStart

func ForPipelineStart(cmd *PipelineStart) PipelineStartedOption

ForPipelineStart returns a PipelineStartedOption that sets the fields of the PipelineStarted event from a PipelineStart command.

type StepFinished

type StepFinished struct {
	// Event metadata
	Event *Event `json:"event"`
	// Step execution details
	PipelineExecutionID string `json:"pipeline_execution_id"`
	StepExecutionID     string `json:"step_execution_id"`

	// Output from the primitive, this is the "native" output of the primitive
	Output *resources.Output `json:"output,omitempty"`

	// Step output configured from the output block, we need a separate field for this because
	// we don't want the StepOutput accidentally override the native primtive outputs
	StepOutput map[string]interface{} `json:"step_output,omitempty"`

	// loop controls
	StepForEach *resources.StepForEach `json:"step_for_each,omitempty"`
	StepLoop    *resources.StepLoop    `json:"step_loop,omitempty"`
	StepRetry   *resources.StepRetry   `json:"step_retry,omitempty"`
}

StepFinished event is when a step (any step step has completed). This is an event that will be handled by an Event Handler (StepFinishedHandler)

Do not confuse this with Pipeline Step Finish **command** which is raised when a child pipeline has finished

func NewStepFinished

func NewStepFinished(opts ...StepFinishedOption) (*StepFinished, error)

NewStepFinished creates a new StepFinished event.

func NewStepFinishedFromStepStart

func NewStepFinishedFromStepStart(cmd *StepStart, output *resources.Output, stepOutput map[string]interface{}, stepLoop *resources.StepLoop) (*StepFinished, error)

func (*StepFinished) GetEvent

func (e *StepFinished) GetEvent() *Event

func (*StepFinished) HandlerName

func (e *StepFinished) HandlerName() string

type StepFinishedOption

type StepFinishedOption func(*StepFinished) error

func ForPipelineStepFinish

func ForPipelineStepFinish(cmd *StepPipelineFinish) StepFinishedOption

type StepForEachPlan

type StepForEachPlan struct {
	Event               *Event `json:"event"`
	PipelineExecutionID string `json:"pipeline_execution_id"`
	StepName            string `json:"step_name"`
}

func NewStepForEachPlanFromPipelinePlanned

func NewStepForEachPlanFromPipelinePlanned(e *PipelinePlanned, stepName string) *StepForEachPlan

func NewStepForEachPlanFromPipelineStepFinished

func NewStepForEachPlanFromPipelineStepFinished(e *StepFinished, stepName string) *StepForEachPlan

func (*StepForEachPlan) GetEvent

func (e *StepForEachPlan) GetEvent() *Event

func (*StepForEachPlan) HandlerName

func (e *StepForEachPlan) HandlerName() string

type StepForEachPlanned

type StepForEachPlanned struct {
	Event               *Event               `json:"event"`
	StepName            string               `json:"step_name"`
	PipelineExecutionID string               `json:"pipeline_execution_id"`
	NextSteps           []resources.NextStep `json:"next_steps"`
}

func NewStepForEachPlannedFromStepForEachPlan

func NewStepForEachPlannedFromStepForEachPlan(cmd *StepForEachPlan, nextSteps []resources.NextStep) *StepForEachPlanned

func (*StepForEachPlanned) GetEvent

func (e *StepForEachPlanned) GetEvent() *Event

func (*StepForEachPlanned) HandlerName

func (e *StepForEachPlanned) HandlerName() string

type StepPipelineFinish

type StepPipelineFinish struct {
	// Event metadata
	Event *Event `json:"event"`
	// Step execution details
	PipelineExecutionID string            `json:"pipeline_execution_id"`
	StepExecutionID     string            `json:"step_execution_id"`
	Output              *resources.Output `json:"output,omitempty"`

	// for_each controls
	StepForEach *resources.StepForEach `json:"step_for_each,omitempty"`
	StepLoop    *resources.StepLoop    `json:"step_loop,omitempty"`
	StepRetry   *resources.StepRetry   `json:"step_retry,omitempty"`
	StepInput   resources.Input        `json:"step_input,omitempty"`
}

There's only one use case for this, which is to handle the "Pipeline Step" finish **command**.

Do not confuse/conflate this with the step_finished **event** which is raised when a step has finished.

func NewStepPipelineFinish

func NewStepPipelineFinish(opts ...StepPipelineFinishOption) (*StepPipelineFinish, error)

NewStepPipelineFinish creates a new StepPipelineFinish event.

func (*StepPipelineFinish) GetEvent

func (e *StepPipelineFinish) GetEvent() *Event

func (*StepPipelineFinish) HandlerName

func (e *StepPipelineFinish) HandlerName() string

type StepPipelineFinishOption

type StepPipelineFinishOption func(*StepPipelineFinish) error

func WithPipelineExecutionID

func WithPipelineExecutionID(id string) StepPipelineFinishOption

func WithStepExecutionID

func WithStepExecutionID(id string) StepPipelineFinishOption

func WithStepForEach

func WithStepForEach(stepForEach *resources.StepForEach) StepPipelineFinishOption

type StepPipelineStarted

type StepPipelineStarted struct {
	// Event metadata
	Event *Event `json:"event"`

	// Step execution details
	PipelineExecutionID string `json:"pipeline_execution_id"`
	StepExecutionID     string `json:"step_execution_id"`
	// Optional details for step execution
	ChildPipelineExecutionID    string          `json:"child_pipeline_execution_id,omitempty"`
	ChildPipelineName           string          `json:"child_pipeline_name,omitempty"`
	ChildPipelineModFullVersion string          `json:"child_pipeline_mod_full_version,omitempty"`
	ChildPipelineArgs           resources.Input `json:"child_pipeline_args,omitempty"`

	// The key for a single step is always "0" but say this pipeline step start is part of for_each, the key is
	// populated with the actual key: "0"/"1"/"2" or "foo"/"bar"/"baz" (for map based for_each)
	//
	// This key is only relevant to its immediate parent (if we have multiple nested pipelines)
	Key string `json:"key"`
}

! This event is only for starting Pipeline Step, not a general step start command. ! ! For general Step Start command, refer to StepStart

func NewStepPipelineStarted

func NewStepPipelineStarted(opts ...StepPipelineStartedOption) (*StepPipelineStarted, error)

NewStepPipelineStarted creates a new StepPipelineStarted event.

func (*StepPipelineStarted) GetEvent

func (e *StepPipelineStarted) GetEvent() *Event

func (*StepPipelineStarted) HandlerName

func (e *StepPipelineStarted) HandlerName() string

type StepPipelineStartedOption

type StepPipelineStartedOption func(*StepPipelineStarted) error

func ForStepStart

func ForStepStart(cmd *StepStart) StepPipelineStartedOption

func WithChildPipeline

func WithChildPipeline(name string, args resources.Input) StepPipelineStartedOption

func WithChildPipelineExecutionID

func WithChildPipelineExecutionID(id string) StepPipelineStartedOption

WithChildPipelineExecutionID returns a PipelineStepStartedOption that sets the ChildPipelineExecutionID to the given ID.

func WithNewChildPipelineExecutionID

func WithNewChildPipelineExecutionID() StepPipelineStartedOption

WithNewChildPipelineExecutionID returns a PipelineStepStartedOption that sets the ChildPipelineExecutionID to a new ID.

type StepQueue

type StepQueue struct {
	// Event metadata
	Event *Event `json:"event"`
	// Step execution details
	PipelineExecutionID string          `json:"pipeline_execution_id"`
	StepExecutionID     string          `json:"step_execution_id"`
	StepName            string          `json:"step_name"`
	StepInput           resources.Input `json:"input"`

	// for_each controls
	StepForEach    *resources.StepForEach `json:"step_for_each,omitempty"`
	StepLoop       *resources.StepLoop    `json:"step_loop,omitempty"`
	StepRetry      *resources.StepRetry   `json:"step_retry,omitempty"`
	MaxConcurrency *int                   `json:"max_concurrency,omitempty"`

	NextStepAction resources.NextStepAction `json:"action,omitempty"`
}

func NewStepQueue

func NewStepQueue(opts ...StepQueueOption) (*StepQueue, error)

NewStepQueue creates a new StepQueue event.

func NewStepQueueFromPipelineStepFinishedForLoop

func NewStepQueueFromPipelineStepFinishedForLoop(e *StepFinished, stepName string) *StepQueue

func NewStepQueueFromPipelineStepFinishedForRetry

func NewStepQueueFromPipelineStepFinishedForRetry(e *StepFinished, stepName string) *StepQueue

func NewStepQueueFromStepForEachPlanned

func NewStepQueueFromStepForEachPlanned(e *StepForEachPlanned, nextStep *resources.NextStep) (*StepQueue, error)

func (*StepQueue) GetEvent

func (e *StepQueue) GetEvent() *Event

func (*StepQueue) HandlerName

func (e *StepQueue) HandlerName() string

type StepQueueOption

type StepQueueOption func(*StepQueue) error

func StepQueueForPipelinePlanned

func StepQueueForPipelinePlanned(e *PipelinePlanned) StepQueueOption

func StepQueueWithStep

func StepQueueWithStep(name string, input resources.Input, stepForEach *resources.StepForEach, stepLoop *resources.StepLoop, nextStepAction resources.NextStepAction) StepQueueOption

type StepQueued

type StepQueued struct {
	// Event metadata
	Event *Event `json:"event"`
	// Unique identifier for this pipeline execution
	PipelineExecutionID string `json:"pipeline_execution_id"`

	StepExecutionID string          `json:"step_execution_id"`
	StepName        string          `json:"step_name"`
	StepType        string          `json:"step_type"`
	StepInput       resources.Input `json:"input"`

	// for_each controls
	StepForEach    *resources.StepForEach   `json:"step_for_each,omitempty"`
	StepLoop       *resources.StepLoop      `json:"step_loop,omitempty"`
	StepRetry      *resources.StepRetry     `json:"step_retry,omitempty"`
	NextStepAction resources.NextStepAction `json:"next_step_action,omitempty"`
}

func NewStepQueued

func NewStepQueued(opts ...StepQueuedOption) (*StepQueued, error)

NewStepQueued creates a new StepQueued event.

func (*StepQueued) GetEvent

func (e *StepQueued) GetEvent() *Event

func (*StepQueued) HandlerName

func (e *StepQueued) HandlerName() string

type StepQueuedOption

type StepQueuedOption func(*StepQueued) error

func ForStepQueue

func ForStepQueue(cmd *StepQueue) StepQueuedOption

type StepStart

type StepStart struct {
	// Event metadata
	Event *Event `json:"event"`
	// Step execution details
	PipelineExecutionID string          `json:"pipeline_execution_id"`
	StepExecutionID     string          `json:"step_execution_id"`
	StepName            string          `json:"step_name"`
	StepType            string          `json:"step_type"`
	StepInput           resources.Input `json:"input"`

	// for_each controls
	StepForEach *resources.StepForEach `json:"step_for_each,omitempty"`
	StepLoop    *resources.StepLoop    `json:"step_loop,omitempty"`
	StepRetry   *resources.StepRetry   `json:"step_retry,omitempty"`

	NextStepAction resources.NextStepAction `json:"next_step_action,omitempty"`
}

func NewStepStart

func NewStepStart(opts ...StepStartOption) (*StepStart, error)

NewStepStart creates a new StepStart command.

func NewStepStartFromStepQueued

func NewStepStartFromStepQueued(e *StepQueued) (*StepStart, error)

func (*StepStart) GetEvent

func (e *StepStart) GetEvent() *Event

func (*StepStart) HandlerName

func (e *StepStart) HandlerName() string

type StepStartOption

type StepStartOption func(*StepStart) error

func ForPipelinePlanned

func ForPipelinePlanned(e *PipelinePlanned) StepStartOption

func WithStepLoop

func WithStepLoop(stepLoop *resources.StepLoop) StepStartOption

type TriggerFailed added in v1.0.0

type TriggerFailed struct {
	Event *Event `json:"event"`
	Name  string `json:"name"`
}

func TriggerFailedFromExecutionPlan added in v1.0.0

func TriggerFailedFromExecutionPlan(q *ExecutionPlan, triggerName string) *TriggerFailed

func TriggerFailedFromTriggerStart added in v1.0.0

func TriggerFailedFromTriggerStart(q *TriggerStart) *TriggerFailed

func (*TriggerFailed) GetEvent added in v1.0.0

func (e *TriggerFailed) GetEvent() *Event

func (*TriggerFailed) HandlerName added in v1.0.0

func (e *TriggerFailed) HandlerName() string

type TriggerFinish added in v1.0.0

type TriggerFinish struct {
	Event              *Event `json:"event"`
	TriggerExecutionID string
	Name               string          `json:"name"`
	Args               resources.Input `json:"args"`
}

func TrigerFinishFromTriggerStarted added in v1.0.0

func TrigerFinishFromTriggerStarted(q *TriggerStarted) *TriggerFinish

func (*TriggerFinish) GetEvent added in v1.0.0

func (e *TriggerFinish) GetEvent() *Event

func (*TriggerFinish) GetName added in v1.0.0

func (e *TriggerFinish) GetName() string

func (*TriggerFinish) GetType added in v1.0.0

func (e *TriggerFinish) GetType() string

func (*TriggerFinish) HandlerName added in v1.0.0

func (e *TriggerFinish) HandlerName() string

type TriggerFinished added in v1.0.0

type TriggerFinished struct {
	Event *Event `json:"event"`
	Name  string `json:"name"`
}

func TriggerFinishedFromExecutionPlan added in v1.0.0

func TriggerFinishedFromExecutionPlan(q *ExecutionPlan, triggerName string) *TriggerFinished

func TriggerFinishedFromTriggerFinish added in v1.0.0

func TriggerFinishedFromTriggerFinish(cmd *TriggerFinish) *TriggerFinished

func (*TriggerFinished) GetEvent added in v1.0.0

func (e *TriggerFinished) GetEvent() *Event

func (*TriggerFinished) HandlerName added in v1.0.0

func (e *TriggerFinished) HandlerName() string

type TriggerQueue added in v1.0.0

type TriggerQueue struct {
	Event              *Event          `json:"event"`
	TriggerExecutionID string          `json:"trigger_execution_id"`
	Name               string          `json:"name"`
	Args               resources.Input `json:"args"`
}

func (*TriggerQueue) GetEvent added in v1.0.0

func (e *TriggerQueue) GetEvent() *Event

func (*TriggerQueue) GetName added in v1.0.0

func (e *TriggerQueue) GetName() string

func (*TriggerQueue) GetType added in v1.0.0

func (e *TriggerQueue) GetType() string

func (*TriggerQueue) HandlerName added in v1.0.0

func (e *TriggerQueue) HandlerName() string

type TriggerQueued added in v1.0.0

type TriggerQueued struct {
	Event              *Event          `json:"event"`
	TriggerExecutionID string          `json:"trigger_execution_id"`
	Name               string          `json:"name"`
	Args               resources.Input `json:"args"`
}

func TriggerQueuedFromTriggerQueue added in v1.0.0

func TriggerQueuedFromTriggerQueue(q *TriggerQueue) *TriggerQueued

func (*TriggerQueued) GetEvent added in v1.0.0

func (e *TriggerQueued) GetEvent() *Event

func (*TriggerQueued) HandlerName added in v1.0.0

func (e *TriggerQueued) HandlerName() string

type TriggerStart added in v1.0.0

type TriggerStart struct {
	Event *Event          `json:"event"`
	Name  string          `json:"name"`
	Args  resources.Input `json:"args"`
}

func TriggerStartFromTriggerQueued added in v1.0.0

func TriggerStartFromTriggerQueued(q *TriggerQueued) *TriggerStart

func (*TriggerStart) GetEvent added in v1.0.0

func (e *TriggerStart) GetEvent() *Event

func (*TriggerStart) HandlerName added in v1.0.0

func (e *TriggerStart) HandlerName() string

type TriggerStarted added in v1.0.0

type TriggerStarted struct {
	Event   *Event             `json:"event"`
	Trigger *resources.Trigger `json:"trigger"`
	Args    resources.Input    `json:"args"`
}

func TriggerStartedFromTriggerStart added in v1.0.0

func TriggerStartedFromTriggerStart(s *TriggerStart, trigger *resources.Trigger) *TriggerStarted

func (*TriggerStarted) GetEvent added in v1.0.0

func (e *TriggerStarted) GetEvent() *Event

func (*TriggerStarted) HandlerName added in v1.0.0

func (e *TriggerStarted) HandlerName() string

Jump to

Keyboard shortcuts

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