workflowrun

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the workflowrun type in the database.
	Label = "workflow_run"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldWorkflowName holds the string denoting the workflow_name field in the database.
	FieldWorkflowName = "workflow_name"
	// FieldDescription holds the string denoting the description field in the database.
	FieldDescription = "description"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// FieldTotalSteps holds the string denoting the total_steps field in the database.
	FieldTotalSteps = "total_steps"
	// FieldCompletedSteps holds the string denoting the completed_steps field in the database.
	FieldCompletedSteps = "completed_steps"
	// FieldErrorMessage holds the string denoting the error_message field in the database.
	FieldErrorMessage = "error_message"
	// FieldStartedAt holds the string denoting the started_at field in the database.
	FieldStartedAt = "started_at"
	// FieldCompletedAt holds the string denoting the completed_at field in the database.
	FieldCompletedAt = "completed_at"
	// Table holds the table name of the workflowrun in the database.
	Table = "workflow_runs"
)
View Source
const DefaultStatus = StatusPending

StatusPending is the default value of the Status enum.

Variables

View Source
var (
	// WorkflowNameValidator is a validator for the "workflow_name" field. It is called by the builders before save.
	WorkflowNameValidator func(string) error
	// DefaultTotalSteps holds the default value on creation for the "total_steps" field.
	DefaultTotalSteps int
	// DefaultCompletedSteps holds the default value on creation for the "completed_steps" field.
	DefaultCompletedSteps int
	// DefaultStartedAt holds the default value on creation for the "started_at" field.
	DefaultStartedAt func() time.Time
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for workflowrun fields.

Functions

func And

func And(predicates ...predicate.WorkflowRun) predicate.WorkflowRun

And groups predicates with the AND operator between them.

func CompletedAt

func CompletedAt(v time.Time) predicate.WorkflowRun

CompletedAt applies equality check predicate on the "completed_at" field. It's identical to CompletedAtEQ.

func CompletedAtEQ

func CompletedAtEQ(v time.Time) predicate.WorkflowRun

CompletedAtEQ applies the EQ predicate on the "completed_at" field.

func CompletedAtGT

func CompletedAtGT(v time.Time) predicate.WorkflowRun

CompletedAtGT applies the GT predicate on the "completed_at" field.

func CompletedAtGTE

func CompletedAtGTE(v time.Time) predicate.WorkflowRun

CompletedAtGTE applies the GTE predicate on the "completed_at" field.

func CompletedAtIn

func CompletedAtIn(vs ...time.Time) predicate.WorkflowRun

CompletedAtIn applies the In predicate on the "completed_at" field.

func CompletedAtIsNil

func CompletedAtIsNil() predicate.WorkflowRun

CompletedAtIsNil applies the IsNil predicate on the "completed_at" field.

func CompletedAtLT

func CompletedAtLT(v time.Time) predicate.WorkflowRun

CompletedAtLT applies the LT predicate on the "completed_at" field.

func CompletedAtLTE

func CompletedAtLTE(v time.Time) predicate.WorkflowRun

CompletedAtLTE applies the LTE predicate on the "completed_at" field.

func CompletedAtNEQ

func CompletedAtNEQ(v time.Time) predicate.WorkflowRun

CompletedAtNEQ applies the NEQ predicate on the "completed_at" field.

func CompletedAtNotIn

func CompletedAtNotIn(vs ...time.Time) predicate.WorkflowRun

CompletedAtNotIn applies the NotIn predicate on the "completed_at" field.

func CompletedAtNotNil

func CompletedAtNotNil() predicate.WorkflowRun

CompletedAtNotNil applies the NotNil predicate on the "completed_at" field.

func CompletedSteps

func CompletedSteps(v int) predicate.WorkflowRun

CompletedSteps applies equality check predicate on the "completed_steps" field. It's identical to CompletedStepsEQ.

func CompletedStepsEQ

func CompletedStepsEQ(v int) predicate.WorkflowRun

CompletedStepsEQ applies the EQ predicate on the "completed_steps" field.

func CompletedStepsGT

func CompletedStepsGT(v int) predicate.WorkflowRun

CompletedStepsGT applies the GT predicate on the "completed_steps" field.

func CompletedStepsGTE

func CompletedStepsGTE(v int) predicate.WorkflowRun

CompletedStepsGTE applies the GTE predicate on the "completed_steps" field.

func CompletedStepsIn

func CompletedStepsIn(vs ...int) predicate.WorkflowRun

CompletedStepsIn applies the In predicate on the "completed_steps" field.

func CompletedStepsLT

func CompletedStepsLT(v int) predicate.WorkflowRun

CompletedStepsLT applies the LT predicate on the "completed_steps" field.

func CompletedStepsLTE

func CompletedStepsLTE(v int) predicate.WorkflowRun

CompletedStepsLTE applies the LTE predicate on the "completed_steps" field.

func CompletedStepsNEQ

func CompletedStepsNEQ(v int) predicate.WorkflowRun

CompletedStepsNEQ applies the NEQ predicate on the "completed_steps" field.

func CompletedStepsNotIn

func CompletedStepsNotIn(vs ...int) predicate.WorkflowRun

CompletedStepsNotIn applies the NotIn predicate on the "completed_steps" field.

func Description

func Description(v string) predicate.WorkflowRun

Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.

func DescriptionContains

func DescriptionContains(v string) predicate.WorkflowRun

DescriptionContains applies the Contains predicate on the "description" field.

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.WorkflowRun

DescriptionContainsFold applies the ContainsFold predicate on the "description" field.

func DescriptionEQ

func DescriptionEQ(v string) predicate.WorkflowRun

DescriptionEQ applies the EQ predicate on the "description" field.

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.WorkflowRun

DescriptionEqualFold applies the EqualFold predicate on the "description" field.

func DescriptionGT

func DescriptionGT(v string) predicate.WorkflowRun

DescriptionGT applies the GT predicate on the "description" field.

func DescriptionGTE

func DescriptionGTE(v string) predicate.WorkflowRun

DescriptionGTE applies the GTE predicate on the "description" field.

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.WorkflowRun

DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.WorkflowRun

DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.

func DescriptionIn

func DescriptionIn(vs ...string) predicate.WorkflowRun

DescriptionIn applies the In predicate on the "description" field.

func DescriptionIsNil

func DescriptionIsNil() predicate.WorkflowRun

DescriptionIsNil applies the IsNil predicate on the "description" field.

func DescriptionLT

func DescriptionLT(v string) predicate.WorkflowRun

DescriptionLT applies the LT predicate on the "description" field.

func DescriptionLTE

func DescriptionLTE(v string) predicate.WorkflowRun

DescriptionLTE applies the LTE predicate on the "description" field.

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.WorkflowRun

DescriptionNEQ applies the NEQ predicate on the "description" field.

func DescriptionNotIn

func DescriptionNotIn(vs ...string) predicate.WorkflowRun

DescriptionNotIn applies the NotIn predicate on the "description" field.

func DescriptionNotNil

func DescriptionNotNil() predicate.WorkflowRun

DescriptionNotNil applies the NotNil predicate on the "description" field.

func ErrorMessage

func ErrorMessage(v string) predicate.WorkflowRun

ErrorMessage applies equality check predicate on the "error_message" field. It's identical to ErrorMessageEQ.

func ErrorMessageContains

func ErrorMessageContains(v string) predicate.WorkflowRun

ErrorMessageContains applies the Contains predicate on the "error_message" field.

func ErrorMessageContainsFold

func ErrorMessageContainsFold(v string) predicate.WorkflowRun

ErrorMessageContainsFold applies the ContainsFold predicate on the "error_message" field.

func ErrorMessageEQ

func ErrorMessageEQ(v string) predicate.WorkflowRun

ErrorMessageEQ applies the EQ predicate on the "error_message" field.

func ErrorMessageEqualFold

func ErrorMessageEqualFold(v string) predicate.WorkflowRun

ErrorMessageEqualFold applies the EqualFold predicate on the "error_message" field.

func ErrorMessageGT

func ErrorMessageGT(v string) predicate.WorkflowRun

ErrorMessageGT applies the GT predicate on the "error_message" field.

func ErrorMessageGTE

func ErrorMessageGTE(v string) predicate.WorkflowRun

ErrorMessageGTE applies the GTE predicate on the "error_message" field.

func ErrorMessageHasPrefix

func ErrorMessageHasPrefix(v string) predicate.WorkflowRun

ErrorMessageHasPrefix applies the HasPrefix predicate on the "error_message" field.

func ErrorMessageHasSuffix

func ErrorMessageHasSuffix(v string) predicate.WorkflowRun

ErrorMessageHasSuffix applies the HasSuffix predicate on the "error_message" field.

func ErrorMessageIn

func ErrorMessageIn(vs ...string) predicate.WorkflowRun

ErrorMessageIn applies the In predicate on the "error_message" field.

func ErrorMessageIsNil

func ErrorMessageIsNil() predicate.WorkflowRun

ErrorMessageIsNil applies the IsNil predicate on the "error_message" field.

func ErrorMessageLT

func ErrorMessageLT(v string) predicate.WorkflowRun

ErrorMessageLT applies the LT predicate on the "error_message" field.

func ErrorMessageLTE

func ErrorMessageLTE(v string) predicate.WorkflowRun

ErrorMessageLTE applies the LTE predicate on the "error_message" field.

func ErrorMessageNEQ

func ErrorMessageNEQ(v string) predicate.WorkflowRun

ErrorMessageNEQ applies the NEQ predicate on the "error_message" field.

func ErrorMessageNotIn

func ErrorMessageNotIn(vs ...string) predicate.WorkflowRun

ErrorMessageNotIn applies the NotIn predicate on the "error_message" field.

func ErrorMessageNotNil

func ErrorMessageNotNil() predicate.WorkflowRun

ErrorMessageNotNil applies the NotNil predicate on the "error_message" field.

func ID

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.WorkflowRun

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.WorkflowRun

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.WorkflowRun

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.WorkflowRun

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.WorkflowRun

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.WorkflowRun

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.WorkflowRun

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.WorkflowRun

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.WorkflowRun) predicate.WorkflowRun

Or groups predicates with the OR operator between them.

func StartedAt

func StartedAt(v time.Time) predicate.WorkflowRun

StartedAt applies equality check predicate on the "started_at" field. It's identical to StartedAtEQ.

func StartedAtEQ

func StartedAtEQ(v time.Time) predicate.WorkflowRun

StartedAtEQ applies the EQ predicate on the "started_at" field.

func StartedAtGT

func StartedAtGT(v time.Time) predicate.WorkflowRun

StartedAtGT applies the GT predicate on the "started_at" field.

func StartedAtGTE

func StartedAtGTE(v time.Time) predicate.WorkflowRun

StartedAtGTE applies the GTE predicate on the "started_at" field.

func StartedAtIn

func StartedAtIn(vs ...time.Time) predicate.WorkflowRun

StartedAtIn applies the In predicate on the "started_at" field.

func StartedAtLT

func StartedAtLT(v time.Time) predicate.WorkflowRun

StartedAtLT applies the LT predicate on the "started_at" field.

func StartedAtLTE

func StartedAtLTE(v time.Time) predicate.WorkflowRun

StartedAtLTE applies the LTE predicate on the "started_at" field.

func StartedAtNEQ

func StartedAtNEQ(v time.Time) predicate.WorkflowRun

StartedAtNEQ applies the NEQ predicate on the "started_at" field.

func StartedAtNotIn

func StartedAtNotIn(vs ...time.Time) predicate.WorkflowRun

StartedAtNotIn applies the NotIn predicate on the "started_at" field.

func StatusEQ

func StatusEQ(v Status) predicate.WorkflowRun

StatusEQ applies the EQ predicate on the "status" field.

func StatusIn

func StatusIn(vs ...Status) predicate.WorkflowRun

StatusIn applies the In predicate on the "status" field.

func StatusNEQ

func StatusNEQ(v Status) predicate.WorkflowRun

StatusNEQ applies the NEQ predicate on the "status" field.

func StatusNotIn

func StatusNotIn(vs ...Status) predicate.WorkflowRun

StatusNotIn applies the NotIn predicate on the "status" field.

func StatusValidator

func StatusValidator(s Status) error

StatusValidator is a validator for the "status" field enum values. It is called by the builders before save.

func TotalSteps

func TotalSteps(v int) predicate.WorkflowRun

TotalSteps applies equality check predicate on the "total_steps" field. It's identical to TotalStepsEQ.

func TotalStepsEQ

func TotalStepsEQ(v int) predicate.WorkflowRun

TotalStepsEQ applies the EQ predicate on the "total_steps" field.

func TotalStepsGT

func TotalStepsGT(v int) predicate.WorkflowRun

TotalStepsGT applies the GT predicate on the "total_steps" field.

func TotalStepsGTE

func TotalStepsGTE(v int) predicate.WorkflowRun

TotalStepsGTE applies the GTE predicate on the "total_steps" field.

func TotalStepsIn

func TotalStepsIn(vs ...int) predicate.WorkflowRun

TotalStepsIn applies the In predicate on the "total_steps" field.

func TotalStepsLT

func TotalStepsLT(v int) predicate.WorkflowRun

TotalStepsLT applies the LT predicate on the "total_steps" field.

func TotalStepsLTE

func TotalStepsLTE(v int) predicate.WorkflowRun

TotalStepsLTE applies the LTE predicate on the "total_steps" field.

func TotalStepsNEQ

func TotalStepsNEQ(v int) predicate.WorkflowRun

TotalStepsNEQ applies the NEQ predicate on the "total_steps" field.

func TotalStepsNotIn

func TotalStepsNotIn(vs ...int) predicate.WorkflowRun

TotalStepsNotIn applies the NotIn predicate on the "total_steps" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

func WorkflowName

func WorkflowName(v string) predicate.WorkflowRun

WorkflowName applies equality check predicate on the "workflow_name" field. It's identical to WorkflowNameEQ.

func WorkflowNameContains

func WorkflowNameContains(v string) predicate.WorkflowRun

WorkflowNameContains applies the Contains predicate on the "workflow_name" field.

func WorkflowNameContainsFold

func WorkflowNameContainsFold(v string) predicate.WorkflowRun

WorkflowNameContainsFold applies the ContainsFold predicate on the "workflow_name" field.

func WorkflowNameEQ

func WorkflowNameEQ(v string) predicate.WorkflowRun

WorkflowNameEQ applies the EQ predicate on the "workflow_name" field.

func WorkflowNameEqualFold

func WorkflowNameEqualFold(v string) predicate.WorkflowRun

WorkflowNameEqualFold applies the EqualFold predicate on the "workflow_name" field.

func WorkflowNameGT

func WorkflowNameGT(v string) predicate.WorkflowRun

WorkflowNameGT applies the GT predicate on the "workflow_name" field.

func WorkflowNameGTE

func WorkflowNameGTE(v string) predicate.WorkflowRun

WorkflowNameGTE applies the GTE predicate on the "workflow_name" field.

func WorkflowNameHasPrefix

func WorkflowNameHasPrefix(v string) predicate.WorkflowRun

WorkflowNameHasPrefix applies the HasPrefix predicate on the "workflow_name" field.

func WorkflowNameHasSuffix

func WorkflowNameHasSuffix(v string) predicate.WorkflowRun

WorkflowNameHasSuffix applies the HasSuffix predicate on the "workflow_name" field.

func WorkflowNameIn

func WorkflowNameIn(vs ...string) predicate.WorkflowRun

WorkflowNameIn applies the In predicate on the "workflow_name" field.

func WorkflowNameLT

func WorkflowNameLT(v string) predicate.WorkflowRun

WorkflowNameLT applies the LT predicate on the "workflow_name" field.

func WorkflowNameLTE

func WorkflowNameLTE(v string) predicate.WorkflowRun

WorkflowNameLTE applies the LTE predicate on the "workflow_name" field.

func WorkflowNameNEQ

func WorkflowNameNEQ(v string) predicate.WorkflowRun

WorkflowNameNEQ applies the NEQ predicate on the "workflow_name" field.

func WorkflowNameNotIn

func WorkflowNameNotIn(vs ...string) predicate.WorkflowRun

WorkflowNameNotIn applies the NotIn predicate on the "workflow_name" field.

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the WorkflowRun queries.

func ByCompletedAt

func ByCompletedAt(opts ...sql.OrderTermOption) OrderOption

ByCompletedAt orders the results by the completed_at field.

func ByCompletedSteps

func ByCompletedSteps(opts ...sql.OrderTermOption) OrderOption

ByCompletedSteps orders the results by the completed_steps field.

func ByDescription

func ByDescription(opts ...sql.OrderTermOption) OrderOption

ByDescription orders the results by the description field.

func ByErrorMessage

func ByErrorMessage(opts ...sql.OrderTermOption) OrderOption

ByErrorMessage orders the results by the error_message field.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByStartedAt

func ByStartedAt(opts ...sql.OrderTermOption) OrderOption

ByStartedAt orders the results by the started_at field.

func ByStatus

func ByStatus(opts ...sql.OrderTermOption) OrderOption

ByStatus orders the results by the status field.

func ByTotalSteps

func ByTotalSteps(opts ...sql.OrderTermOption) OrderOption

ByTotalSteps orders the results by the total_steps field.

func ByWorkflowName

func ByWorkflowName(opts ...sql.OrderTermOption) OrderOption

ByWorkflowName orders the results by the workflow_name field.

type Status

type Status string

Status defines the type for the "status" enum field.

const (
	StatusPending   Status = "pending"
	StatusRunning   Status = "running"
	StatusCompleted Status = "completed"
	StatusFailed    Status = "failed"
	StatusCancelled Status = "cancelled"
)

Status values.

func (Status) String

func (s Status) String() string

Jump to

Keyboard shortcuts

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