Documentation
¶
Index ¶
- func CancelExecution(ctx context.Context, authService authorization.Authorization, ...) (*pb.CancelExecutionResponse, error)
- func CreateWorkflow(ctx context.Context, registry *registry.Registry, organizationID string, ...) (*pb.CreateWorkflowResponse, error)
- func DeleteNodeQueueItem(ctx context.Context, registry *registry.Registry, ...) (*pb.DeleteNodeQueueItemResponse, error)
- func DeleteWorkflow(ctx context.Context, registry *registry.Registry, organizationID uuid.UUID, ...) (*pb.DeleteWorkflowResponse, error)
- func DescribeWorkflow(ctx context.Context, registry *registry.Registry, organizationID string, ...) (*pb.DescribeWorkflowResponse, error)
- func EmitNodeEvent(ctx context.Context, orgID uuid.UUID, workflowID uuid.UUID, nodeID string, ...) (*pb.EmitNodeEventResponse, error)
- func ExpandNodes(organizationID string, nodes []models.Node) ([]models.Node, error)
- func InvokeNodeExecutionAction(ctx context.Context, authService authorization.Authorization, ...) (*pb.InvokeNodeExecutionActionResponse, error)
- func InvokeNodeTriggerAction(ctx context.Context, authService authorization.Authorization, ...) (*pb.InvokeNodeTriggerActionResponse, error)
- func ListChildExecutions(ctx context.Context, registry *registry.Registry, ...) (*pb.ListChildExecutionsResponse, error)
- func ListEventExecutions(ctx context.Context, registry *registry.Registry, workflowID, eventID string) (*pb.ListEventExecutionsResponse, error)
- func ListNodeEvents(ctx context.Context, registry *registry.Registry, workflowID uuid.UUID, ...) (*pb.ListNodeEventsResponse, error)
- func ListNodeExecutions(ctx context.Context, registry *registry.Registry, workflowID, nodeID string, ...) (*pb.ListNodeExecutionsResponse, error)
- func ListNodeQueueItems(ctx context.Context, registry *registry.Registry, workflowID, nodeID string, ...) (*pb.ListNodeQueueItemsResponse, error)
- func ListWorkflowEvents(ctx context.Context, registry *registry.Registry, workflowID uuid.UUID, ...) (*pb.ListWorkflowEventsResponse, error)
- func ListWorkflows(ctx context.Context, registry *registry.Registry, organizationID string, ...) (*pb.ListWorkflowsResponse, error)
- func NodeExecutionResultReasonToProto(reason string) pb.WorkflowNodeExecution_ResultReason
- func NodeExecutionResultToProto(result string) pb.WorkflowNodeExecution_Result
- func NodeExecutionStateToProto(state string) pb.WorkflowNodeExecution_State
- func ParseWorkflow(registry *registry.Registry, orgID string, workflow *pb.Workflow) ([]models.Node, []models.Edge, error)
- func ProtoToNodeExecutionResult(result pb.WorkflowNodeExecution_Result) (string, error)
- func ProtoToNodeExecutionState(state pb.WorkflowNodeExecution_State) (string, error)
- func ResolveExecutionErrors(ctx context.Context, workflowID uuid.UUID, executionIDs []uuid.UUID) (*pb.ResolveExecutionErrorsResponse, error)
- func SerializeNodeExecutions(executions []models.WorkflowNodeExecution, ...) ([]*pb.WorkflowNodeExecution, error)
- func SerializeNodeExecutionsForSingleNode(node *models.WorkflowNode, executions []models.WorkflowNodeExecution) ([]*pb.WorkflowNodeExecution, error)
- func SerializeNodeQueueItems(queueItems []models.WorkflowNodeQueueItem) ([]*pb.WorkflowNodeQueueItem, error)
- func SerializeWorkflow(workflow *models.Workflow, includeStatus bool) (*pb.Workflow, error)
- func SerializeWorkflowEvent(event models.WorkflowEvent) (*pb.WorkflowEvent, error)
- func SerializeWorkflowEventWithExecutions(event models.WorkflowEvent, executions []models.WorkflowNodeExecution, ...) (*pb.WorkflowEventWithExecutions, error)
- func SerializeWorkflowEvents(events []models.WorkflowEvent) ([]*pb.WorkflowEvent, error)
- func SerializeWorkflowEventsWithExecutions(events []models.WorkflowEvent, ...) ([]*pb.WorkflowEventWithExecutions, error)
- func UpdateWorkflow(ctx context.Context, encryptor crypto.Encryptor, registry *registry.Registry, ...) (*pb.UpdateWorkflowResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CancelExecution ¶
func CancelExecution(ctx context.Context, authService authorization.Authorization, encryptor crypto.Encryptor, organizationID string, registry *registry.Registry, workflowID, executionID uuid.UUID) (*pb.CancelExecutionResponse, error)
func CreateWorkflow ¶
func DeleteNodeQueueItem ¶
func DeleteWorkflow ¶
func DescribeWorkflow ¶
func EmitNodeEvent ¶
func ExpandNodes ¶ added in v0.0.45
func InvokeNodeExecutionAction ¶
func InvokeNodeExecutionAction( ctx context.Context, authService authorization.Authorization, encryptor crypto.Encryptor, registry *registry.Registry, orgID uuid.UUID, workflowID uuid.UUID, executionID uuid.UUID, actionName string, parameters map[string]any, ) (*pb.InvokeNodeExecutionActionResponse, error)
func InvokeNodeTriggerAction ¶ added in v0.0.18
func InvokeNodeTriggerAction( ctx context.Context, authService authorization.Authorization, encryptor crypto.Encryptor, registry *registry.Registry, orgID uuid.UUID, workflowID uuid.UUID, nodeID string, actionName string, parameters map[string]any, webhookBaseURL string, ) (*pb.InvokeNodeTriggerActionResponse, error)
func ListChildExecutions ¶
func ListEventExecutions ¶
func ListNodeEvents ¶
func ListNodeExecutions ¶
func ListNodeExecutions(ctx context.Context, registry *registry.Registry, workflowID, nodeID string, pbStates []pb.WorkflowNodeExecution_State, pbResults []pb.WorkflowNodeExecution_Result, limit uint32, before *timestamppb.Timestamp) (*pb.ListNodeExecutionsResponse, error)
func ListNodeQueueItems ¶
func ListWorkflowEvents ¶
func ListWorkflows ¶
func NodeExecutionResultReasonToProto ¶
func NodeExecutionResultReasonToProto(reason string) pb.WorkflowNodeExecution_ResultReason
func NodeExecutionResultToProto ¶
func NodeExecutionResultToProto(result string) pb.WorkflowNodeExecution_Result
func NodeExecutionStateToProto ¶
func NodeExecutionStateToProto(state string) pb.WorkflowNodeExecution_State
func ParseWorkflow ¶
func ProtoToNodeExecutionResult ¶
func ProtoToNodeExecutionResult(result pb.WorkflowNodeExecution_Result) (string, error)
func ProtoToNodeExecutionState ¶
func ProtoToNodeExecutionState(state pb.WorkflowNodeExecution_State) (string, error)
func ResolveExecutionErrors ¶ added in v0.1.5
func SerializeNodeExecutions ¶
func SerializeNodeExecutions(executions []models.WorkflowNodeExecution, childExecutions []models.WorkflowNodeExecution) ([]*pb.WorkflowNodeExecution, error)
func SerializeNodeExecutionsForSingleNode ¶
func SerializeNodeExecutionsForSingleNode(node *models.WorkflowNode, executions []models.WorkflowNodeExecution) ([]*pb.WorkflowNodeExecution, error)
func SerializeNodeQueueItems ¶
func SerializeNodeQueueItems(queueItems []models.WorkflowNodeQueueItem) ([]*pb.WorkflowNodeQueueItem, error)
func SerializeWorkflow ¶
func SerializeWorkflowEvent ¶
func SerializeWorkflowEvent(event models.WorkflowEvent) (*pb.WorkflowEvent, error)
func SerializeWorkflowEventWithExecutions ¶ added in v0.0.40
func SerializeWorkflowEventWithExecutions(event models.WorkflowEvent, executions []models.WorkflowNodeExecution, childExecutions []models.WorkflowNodeExecution) (*pb.WorkflowEventWithExecutions, error)
func SerializeWorkflowEvents ¶
func SerializeWorkflowEvents(events []models.WorkflowEvent) ([]*pb.WorkflowEvent, error)
func SerializeWorkflowEventsWithExecutions ¶ added in v0.0.40
func SerializeWorkflowEventsWithExecutions(events []models.WorkflowEvent, executionsByEventID map[string][]models.WorkflowNodeExecution, childExecutionsByEventID map[string][]models.WorkflowNodeExecution) ([]*pb.WorkflowEventWithExecutions, error)
Types ¶
This section is empty.
Source Files
¶
- cancel_execution.go
- create_workflow.go
- delete_node_queue_item.go
- delete_workflow.go
- describe_workflow.go
- emit_node_event.go
- expand_nodes.go
- invoke_node_execution_action.go
- invoke_node_trigger_action.go
- list_child_executions.go
- list_event_executions.go
- list_node_events.go
- list_node_executions.go
- list_node_queue_items.go
- list_workflow_events.go
- list_workflows.go
- resolve_execution_errors.go
- serialization.go
- update_workflow.go
Click to show internal directories.
Click to hide internal directories.