transformers

package
v0.71.13 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PopulateTaskRunDataRowToV1TaskSummary

func PopulateTaskRunDataRowToV1TaskSummary(task *sqlcv1.PopulateTaskRunDataRow, workflowName *string) gen.V1TaskSummary

func TaskRunDataRowToWorkflowRunsMany

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

func ToCancelledOrReplayedTaskResponse

func ToCancelledOrReplayedTaskResponse(ids []string) gen.V1ReplayedTasks

func ToDagChildren

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

func ToSlotState

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

func ToTask

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

func ToTaskRunEventMany

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

func ToTaskRunMetrics

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

func ToTaskSummaryMany

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

func ToTaskSummaryRows

func ToTaskSummaryRows(
	tasks []*sqlcv1.PopulateTaskRunDataRow,
) []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 ToV1EventList

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

func ToV1Filter

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

func ToV1FilterList

func ToV1FilterList(filters []*sqlcv1.V1Filter) 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) *gen.Worker

func ToWorkflowRunDetails

func ToWorkflowRunDetails(
	taskRunEvents []*sqlcv1.ListTaskEventsForWorkflowRunRow,
	workflowRun *v1.WorkflowRunData,
	shape []*dbsqlc.GetWorkflowRunShapeRow,
	tasks []*sqlcv1.PopulateTaskRunDataRow,
	stepIdToTaskExternalId map[pgtype.UUID]pgtype.UUID,
	workflowVersion *dbsqlc.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[pgtype.UUID]string,
	total int, limit, offset int64,
) gen.V1TaskSummaryList

func ToWorkflowRunTaskRunEventsMany

func ToWorkflowRunTaskRunEventsMany(
	events []*sqlcv1.ListTaskEventsForWorkflowRunRow,
) 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