transformers

package
v0.109.17 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToAPIToken

func ToAPIToken(token *sqlcv1.APIToken) *gen.APIToken

func ToCronWorkflowsFromSQLC

func ToCronWorkflowsFromSQLC(cron *sqlcv1.ListCronWorkflowsRow, opts ...PayloadOption) *gen.CronWorkflows

func ToEvent

func ToEvent(event *sqlcv1.Event) gen.Event

func ToEventFromSQLCV1 added in v0.73.6

func ToEventFromSQLCV1(event *v1.EventWithPayload) (*gen.Event, error)

func ToEventList

func ToEventList(events []*sqlcv1.Event) []gen.Event

func ToJob

func ToJob(job *sqlcv1.Job, steps []*sqlcv1.GetStepsForJobsRow) *gen.Job

func ToSNSIntegration

func ToSNSIntegration(sns *sqlcv1.SNSIntegration, serverUrl string) *gen.SNSIntegration

func ToScheduledWorkflowsFromSQLC

func ToScheduledWorkflowsFromSQLC(scheduled *sqlcv1.ListScheduledWorkflowsRow, opts ...PayloadOption) *gen.ScheduledWorkflows

func ToSlackWebhook

func ToSlackWebhook(slack *sqlcv1.SlackAppWebhook) *gen.SlackWebhook

func ToStep

func ToStep(step *sqlcv1.Step, parents []uuid.UUID) *gen.Step

func ToTaskStats added in v0.73.46

func ToTaskStats(stats map[string]v1.TaskStat, requiredNames []string) gen.TaskStats

func ToTenant

func ToTenant(tenant *sqlcv1.Tenant, serverURL string) *gen.Tenant

func ToTenantAlertingSettings

func ToTenantAlertingSettings(alerting *sqlcv1.TenantAlertingSettings) *gen.TenantAlertingSettings
func ToTenantInviteLink(invite *sqlcv1.TenantInviteLink) *gen.TenantInvite

func ToTenantMember

func ToTenantMember(tenantMember *sqlcv1.PopulateTenantMembersRow) *gen.TenantMember

func ToTenantResourcePolicy

func ToTenantResourcePolicy(_limits []*sqlcv1.TenantResourceLimit) *gen.TenantResourcePolicy

func ToUser

func ToUser(user *sqlcv1.User, hasPassword bool, hashedEmail *string) *gen.User
func ToUserTenantInviteLink(invite *sqlcv1.ListTenantInvitesByEmailRow) *gen.TenantInvite

func ToV1Concurrency added in v0.74.14

func ToV1Concurrency(workflowConcurrencies []*sqlcv1.ListWorkflowConcurrencyByVersionIdRow, taskConcurrencies []*sqlcv1.ListConcurrencyStrategiesByWorkflowVersionIdRow) *[]gen.ConcurrencySetting

func ToWebhookWorker

func ToWebhookWorker(webhookWorker *sqlcv1.WebhookWorker) *gen.WebhookWorker

func ToWebhookWorkerCreated

func ToWebhookWorkerCreated(webhookWorker *sqlcv1.WebhookWorker) *gen.WebhookWorkerCreated

func ToWebhookWorkerRequest

func ToWebhookWorkerRequest(webhookWorker *sqlcv1.WebhookWorkerRequest) *gen.WebhookWorkerRequest

func ToWorkerLabels

func ToWorkerLabels(labels []*sqlcv1.ListWorkerLabelsRow) *[]gen.WorkerLabel

func ToWorkerRuntimeInfo

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

func ToWorkerSqlc

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

func ToWorkflow

func ToWorkflow(
	workflow *sqlcv1.Workflow,
	version *sqlcv1.WorkflowVersion,
) *gen.Workflow

func ToWorkflowFromSQLC

func ToWorkflowFromSQLC(row *sqlcv1.Workflow) *gen.Workflow

func ToWorkflowVersionFromSQLC

func ToWorkflowVersionFromSQLC(row *sqlcv1.WorkflowVersion, workflow *gen.Workflow) *gen.WorkflowVersion

func ToWorkflowVersionMeta

func ToWorkflowVersionMeta(version *sqlcv1.WorkflowVersion, workflow *sqlcv1.Workflow) *gen.WorkflowVersionMeta

Types

type PayloadOption added in v0.109.17

type PayloadOption func(*payloadOptions)

func WithPayloads added in v0.109.17

func WithPayloads(include bool) PayloadOption

WithPayloads includes or omits input, output, and event payload fields. Additional metadata is always included. Omitting the option redacts payloads.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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