transformers

package
v0.77.13 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PopulateTaskRunDataRowToV1TaskSummary

func PopulateTaskRunDataRowToV1TaskSummary(task *v1.TaskWithPayloads, workflowName *string) gen.V1TaskSummary

func TaskRunDataRowToWorkflowRunsMany

func TaskRunDataRowToWorkflowRunsMany(
	tasks []*v1.TaskWithPayloads,
	taskIdToWorkflowName map[int64]string,
	total int, limit, offset int64,
) gen.V1TaskSummaryList

func ToCancelledOrReplayedTaskResponse

func ToCancelledOrReplayedTaskResponse(ids []string) gen.V1ReplayedTasks

func ToDagChildren

func ToDagChildren(
	tasks []*v1.TaskWithPayloads,
	taskIdToDagExternalId map[int64]uuid.UUID,
) []gen.V1DagChildren

func ToSlotState

func ToSlotState(slots []*sqlcv1.ListSemaphoreSlotsWithStateForWorkerRow, remainingSlots int) *[]gen.SemaphoreSlots

func ToTask

func ToTask(taskWithData *v1.TaskWithPayloads, workflowRunExternalId pgtype.UUID, workflowVersion *sqlcv1.GetWorkflowVersionByIdRow) gen.V1TaskSummary

func ToTaskRunEventMany

func ToTaskRunEventMany(
	events []*sqlcv1.ListTaskEventsRow,
	taskExternalId string,
) gen.V1TaskEventList

func ToTaskRunMetrics

func ToTaskRunMetrics(metrics *[]v1.TaskRunMetric) gen.V1TaskRunMetrics

func ToTaskSummary

func ToTaskSummary(task *v1.TaskWithPayloads) gen.V1TaskSummary

func ToTaskSummaryMany

func ToTaskSummaryMany(
	tasks []*v1.TaskWithPayloads,
	total int, limit, offset int64,
) gen.V1TaskSummaryList

func ToTaskSummaryRows

func ToTaskSummaryRows(
	tasks []*v1.TaskWithPayloads,
) []gen.V1TaskSummary

func ToTaskTimings

func ToTaskTimings(
	timings []*sqlcv1.PopulateTaskRunDataRow,
	idsToDepth map[string]int32,
) []gen.V1TaskTiming

func ToV1CELDebugResponse

func ToV1CELDebugResponse(success bool, output *bool, err *string) gen.V1CELDebugResponse

func ToV1Event added in v0.73.98

func ToV1Event(event *v1.EventWithPayload) gen.V1Event

func ToV1EventList

func ToV1EventList(events []*v1.EventWithPayload, limit, offset, total int64) gen.V1EventList

func ToV1Filter

func ToV1Filter(filter *sqlcv1.V1Filter) gen.V1Filter

func ToV1FilterList

func ToV1FilterList(filters []*sqlcv1.V1Filter, total, limit, offset int64) gen.V1FilterList

func ToV1LogLine

func ToV1LogLine(log *sqlcv1.V1LogLine) *gen.V1LogLine

func ToV1Webhook added in v0.70.0

func ToV1Webhook(webhook *sqlcv1.V1IncomingWebhook) gen.V1Webhook

func ToV1WebhookList added in v0.70.0

func ToV1WebhookList(webhooks []*sqlcv1.V1IncomingWebhook) gen.V1WebhookList

func ToWorkerRuntimeInfo

func ToWorkerRuntimeInfo(worker *sqlcv1.Worker) *gen.WorkerRuntimeInfo

func ToWorkerSqlc

func ToWorkerSqlc(worker *sqlcv1.Worker, remainingSlots *int, webhookUrl *string, actions []string, workflows *[]*sqlcv1.Workflow) *gen.Worker

func ToWorkflowRunDetails

func ToWorkflowRunDetails(
	taskRunEvents []*v1.TaskEventWithPayloads,
	workflowRun *v1.WorkflowRunData,
	shape []*sqlcv1.GetWorkflowShapeRow,
	tasks []*v1.TaskWithPayloads,
	stepIdToTaskExternalId map[pgtype.UUID]pgtype.UUID,
	workflowVersion *sqlcv1.GetWorkflowVersionByIdRow,
) (gen.V1WorkflowRunDetails, error)

func ToWorkflowRunDisplayNamesList

func ToWorkflowRunDisplayNamesList(
	displayNames []*sqlcv1.ListWorkflowRunDisplayNamesRow,
) gen.V1WorkflowRunDisplayNameList

func ToWorkflowRunExternalIds added in v0.73.38

func ToWorkflowRunExternalIds(
	externalIds []pgtype.UUID,
) gen.V1WorkflowRunExternalIdList

func ToWorkflowRunMany

func ToWorkflowRunMany(
	tasks []*v1.WorkflowRunData,
	dagExternalIdToChildren map[uuid.UUID][]gen.V1TaskSummary,
	taskIdToActionId map[int64]string,
	workflowIdsToNames map[pgtype.UUID]string,
	total int, limit, offset int64,
) gen.V1TaskSummaryList

func ToWorkflowRunTaskRunEventsMany

func ToWorkflowRunTaskRunEventsMany(
	events []*v1.TaskEventWithPayloads,
) gen.V1TaskEventList

func WorkflowRunDataToV1TaskSummary

func WorkflowRunDataToV1TaskSummary(task *v1.WorkflowRunData, workflowIdsToNames map[pgtype.UUID]string, actionId string) gen.V1TaskSummary

Types

This section is empty.

Jump to

Keyboard shortcuts

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