transformers

package
v0.50.2 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToAPIToken added in v0.7.0

func ToAPIToken(token *db.APITokenModel) *gen.APIToken

func ToEvent

func ToEvent(event *db.EventModel) *gen.Event

func ToEventFromSQLC

func ToEventFromSQLC(eventRow *dbsqlc.ListEventsRow) (*gen.Event, error)

func ToEventList added in v0.46.0

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

func ToJob

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

func ToLogFromSQLC added in v0.14.0

func ToLogFromSQLC(log *dbsqlc.LogLine) *gen.LogLine

func ToRateLimitFromSQLC added in v0.47.0

func ToRateLimitFromSQLC(rl *dbsqlc.ListRateLimitsForTenantNoMutateRow) (*gen.RateLimit, error)

func ToRecentStepRun added in v0.42.0

func ToRecentStepRun(stepRun *dbsqlc.GetStepRunForEngineRow) (*gen.RecentStepRuns, error)

func ToSNSIntegration added in v0.15.2

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

func ToSlackWebhook added in v0.25.0

func ToSlackWebhook(slack *db.SlackAppWebhookModel) *gen.SlackWebhook

func ToSlotState added in v0.42.0

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

func ToStep

func ToStep(step *dbsqlc.Step, parents []pgtype.UUID) *gen.Step

func ToStepRun

func ToStepRun(stepRun *repository.StepRunForJobRun) *gen.StepRun

func ToStepRunArchive added in v0.34.2

func ToStepRunArchive(stepRunArchive *dbsqlc.StepRunResultArchive) *gen.StepRunArchive

func ToStepRunEvent added in v0.26.0

func ToStepRunEvent(stepRunEvent *dbsqlc.StepRunEvent) *gen.StepRunEvent

func ToStepRunFull added in v0.44.8

func ToStepRunFull(stepRun *repository.GetStepRunFull) *gen.StepRun

func ToTenant

func ToTenant(tenant *db.TenantModel) *gen.Tenant

func ToTenantAlertEmailGroup added in v0.25.0

func ToTenantAlertEmailGroup(group *db.TenantAlertEmailGroupModel) *gen.TenantAlertEmailGroup

func ToTenantAlertingSettings added in v0.25.0

func ToTenantAlertingSettings(alerting *db.TenantAlertingSettingsModel) *gen.TenantAlertingSettings
func ToTenantInviteLink(invite *db.TenantInviteLinkModel) *gen.TenantInvite

func ToTenantMember

func ToTenantMember(tenantMember *db.TenantMemberModel) *gen.TenantMember

func ToTenantResourcePolicy added in v0.31.0

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

func ToTenantSqlc added in v0.34.2

func ToTenantSqlc(tenant *dbsqlc.Tenant) *gen.Tenant

func ToUser

func ToUser(user *db.UserModel, hasPassword bool, hashedEmail *string) *gen.User

func ToUserTenantPublic

func ToUserTenantPublic(user *db.UserModel) *gen.UserTenantPublic

func ToWebhookWorker added in v0.34.0

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

func ToWebhookWorkerCreated added in v0.34.0

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

func ToWebhookWorkerRequest added in v0.42.13

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

func ToWorkerLabels added in v0.40.0

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

func ToWorkerSqlc added in v0.12.0

func ToWorkerSqlc(worker *dbsqlc.Worker, remainingSlots *int, webhookUrl *string, actions []pgtype.Text) *gen.Worker

func ToWorkflow

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

func ToWorkflowFromSQLC

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

func ToWorkflowRunFromSQLC

func ToWorkflowRunFromSQLC(row *dbsqlc.ListWorkflowRunsRow) *gen.WorkflowRun

func ToWorkflowRunTriggeredBy

func ToWorkflowRunTriggeredBy(parentWorkflowRunId pgtype.UUID, triggeredBy *dbsqlc.WorkflowRunTriggeredBy) *gen.WorkflowRunTriggeredBy

func ToWorkflowVersionConcurrency added in v0.15.1

func ToWorkflowVersionConcurrency(concurrency *WorkflowConcurrency) *gen.WorkflowConcurrency

func ToWorkflowVersionFromSQLC

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

func ToWorkflowVersionMeta

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

func ToWorkflowYAMLBytes

func ToWorkflowYAMLBytes(workflow *db.WorkflowModel, version *db.WorkflowVersionModel) ([]byte, error)

Types

type WorkflowConcurrency added in v0.44.8

type WorkflowConcurrency struct {
	ID                    pgtype.UUID
	GetConcurrencyGroupId pgtype.UUID
	MaxRuns               pgtype.Int4
	LimitStrategy         dbsqlc.NullConcurrencyLimitStrategy
}

Jump to

Keyboard shortcuts

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