transformers

package
v0.86.3 Latest Latest
Warning

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

Go to latest
Published: May 7, 2026 License: MIT Imports: 13 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 StatusToTaskRunMetrics added in v0.80.0

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

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 uuid.UUID, workflowVersion *sqlcv1.GetWorkflowVersionByIdRow) gen.V1TaskSummary

func ToTaskRunEventMany

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

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[uuid.UUID]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 *v1.ListLogLineRow) *gen.V1LogLine

func ToV1OtelSpan added in v0.82.0

func ToV1OtelSpan(spans []*repository.OtelSpanRow) []gen.OtelSpan

func ToV1OtelSpanList added in v0.82.0

func ToV1OtelSpanList(spans []*repository.OtelSpanRow, retryCounts []int32, limit, offset, total int64) gen.OtelSpanList

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 ToV1WebhookResponse added in v0.78.26

func ToV1WebhookResponse(message, challenge *string, event *sqlcv1.Event) (*gen.V1WebhookResponse, error)

func ToWorkerRuntimeInfo

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

func ToWorkerSqlc

func ToWorkerSqlc(worker *sqlcv1.Worker, slotConfig map[string]gen.WorkerSlotConfig, actions []string, workflows *[]*sqlcv1.Workflow, labels []*sqlcv1.ListWorkerLabelsRow) *gen.Worker

func ToWorkflowRunDetails

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

func ToWorkflowRunDisplayNamesList

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

func ToWorkflowRunMany

func ToWorkflowRunMany(
	tasks []*v1.WorkflowRunData,
	dagExternalIdToChildren map[uuid.UUID][]gen.V1TaskSummary,
	taskIdToActionId map[int64]string,
	workflowIdsToNames map[uuid.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[uuid.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