helpers

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ActionListSummary

func ActionListSummary(actions []*protos.OrchestratorAction) string

func GetTaskId

func GetTaskId(e *protos.HistoryEvent) int32

func HistoryListSummary

func HistoryListSummary(list []*protos.HistoryEvent) string

func NewCompleteOrchestrationAction

func NewCompleteOrchestrationAction(
	taskID int32,
	status protos.OrchestrationStatus,
	result string,
	carryoverEvents []*protos.HistoryEvent,
	failureDetails *protos.TaskFailureDetails) *protos.OrchestratorAction

func NewCreateSubOrchestrationAction

func NewCreateSubOrchestrationAction(
	taskID int32,
	name string,
	iid string,
	input *wrapperspb.StringValue) *protos.OrchestratorAction

func NewCreateTimerAction

func NewCreateTimerAction(taskID int32, fireAt time.Time) *protos.OrchestratorAction

func NewEventRaisedEvent

func NewEventRaisedEvent(name string, rawInput *wrapperspb.StringValue) *protos.HistoryEvent

func NewExecutionCompletedEvent

func NewExecutionCompletedEvent(eventID int32, status protos.OrchestrationStatus, result *wrapperspb.StringValue, failureDetails *protos.TaskFailureDetails) *protos.HistoryEvent

func NewExecutionStartedEvent

func NewExecutionStartedEvent(
	eventID int32,
	name string,
	instanceId string,
	input *wrapperspb.StringValue,
	parent *protos.ParentInstanceInfo) *protos.HistoryEvent

func NewExecutionTerminatedEvent

func NewExecutionTerminatedEvent(rawReason *wrapperspb.StringValue) *protos.HistoryEvent

func NewOrchestratorStartedEvent

func NewOrchestratorStartedEvent() *protos.HistoryEvent

func NewParentInfo

func NewParentInfo(taskID int32, name string, iid string) *protos.ParentInstanceInfo

func NewScheduleTaskAction

func NewScheduleTaskAction(taskID int32, name string, input *wrapperspb.StringValue) *protos.OrchestratorAction

func NewSendEventAction

func NewSendEventAction(iid string, name string, data *wrapperspb.StringValue) *protos.OrchestratorAction

func NewSendEventEvent

func NewSendEventEvent(eventID int32, instanceID string, name string, rawInput *wrapperspb.StringValue) *protos.HistoryEvent

func NewSubOrchestrationCreatedEvent

func NewSubOrchestrationCreatedEvent(eventID int32, name string, version *wrapperspb.StringValue, rawInput *wrapperspb.StringValue, instanceID string) *protos.HistoryEvent

func NewTaskCompletedEvent

func NewTaskCompletedEvent(taskID int32, result *wrapperspb.StringValue) *protos.HistoryEvent

func NewTaskFailedEvent

func NewTaskFailedEvent(taskID int32, failureDetails *protos.TaskFailureDetails) *protos.HistoryEvent

func NewTaskScheduledEvent

func NewTaskScheduledEvent(taskID int32, name string, version *wrapperspb.StringValue, rawInput *wrapperspb.StringValue) *protos.HistoryEvent

func NewTimerCreatedEvent

func NewTimerCreatedEvent(eventID int32, fireAt *timestamppb.Timestamp) *protos.HistoryEvent

func NewTimerFiredEvent

func NewTimerFiredEvent(timerID int32, fireAt *timestamppb.Timestamp) *protos.HistoryEvent

Types

This section is empty.

Jump to

Keyboard shortcuts

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