functionrun

package
v0.99.0 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2026 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the functionrun type in the database.
	Label = "function_run"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldFunctionName holds the string denoting the function_name field in the database.
	FieldFunctionName = "function_name"
	// FieldVersion holds the string denoting the version field in the database.
	FieldVersion = "version"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// FieldDurationMs holds the string denoting the duration_ms field in the database.
	FieldDurationMs = "duration_ms"
	// FieldExitCode holds the string denoting the exit_code field in the database.
	FieldExitCode = "exit_code"
	// FieldError holds the string denoting the error field in the database.
	FieldError = "error"
	// FieldResultJSON holds the string denoting the result_json field in the database.
	FieldResultJSON = "result_json"
	// FieldIdempotencyKey holds the string denoting the idempotency_key field in the database.
	FieldIdempotencyKey = "idempotency_key"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// Table holds the table name of the functionrun in the database.
	Table = "function_runs"
)
View Source
const DefaultStatus = StatusRunning

StatusRunning is the default value of the Status enum.

Variables

View Source
var (
	// FunctionNameValidator is a validator for the "function_name" field. It is called by the builders before save.
	FunctionNameValidator func(string) error
	// DefaultDurationMs holds the default value on creation for the "duration_ms" field.
	DefaultDurationMs int64
	// DefaultError holds the default value on creation for the "error" field.
	DefaultError string
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
)

Columns holds all SQL columns for functionrun fields.

Functions

func And

func And(predicates ...predicate.FunctionRun) predicate.FunctionRun

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.FunctionRun

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.FunctionRun

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.FunctionRun

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.FunctionRun

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.FunctionRun

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.FunctionRun

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.FunctionRun

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.FunctionRun

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.FunctionRun

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func DurationMs

func DurationMs(v int64) predicate.FunctionRun

DurationMs applies equality check predicate on the "duration_ms" field. It's identical to DurationMsEQ.

func DurationMsEQ

func DurationMsEQ(v int64) predicate.FunctionRun

DurationMsEQ applies the EQ predicate on the "duration_ms" field.

func DurationMsGT

func DurationMsGT(v int64) predicate.FunctionRun

DurationMsGT applies the GT predicate on the "duration_ms" field.

func DurationMsGTE

func DurationMsGTE(v int64) predicate.FunctionRun

DurationMsGTE applies the GTE predicate on the "duration_ms" field.

func DurationMsIn

func DurationMsIn(vs ...int64) predicate.FunctionRun

DurationMsIn applies the In predicate on the "duration_ms" field.

func DurationMsLT

func DurationMsLT(v int64) predicate.FunctionRun

DurationMsLT applies the LT predicate on the "duration_ms" field.

func DurationMsLTE

func DurationMsLTE(v int64) predicate.FunctionRun

DurationMsLTE applies the LTE predicate on the "duration_ms" field.

func DurationMsNEQ

func DurationMsNEQ(v int64) predicate.FunctionRun

DurationMsNEQ applies the NEQ predicate on the "duration_ms" field.

func DurationMsNotIn

func DurationMsNotIn(vs ...int64) predicate.FunctionRun

DurationMsNotIn applies the NotIn predicate on the "duration_ms" field.

func Error

func Error(v string) predicate.FunctionRun

Error applies equality check predicate on the "error" field. It's identical to ErrorEQ.

func ErrorContains

func ErrorContains(v string) predicate.FunctionRun

ErrorContains applies the Contains predicate on the "error" field.

func ErrorContainsFold

func ErrorContainsFold(v string) predicate.FunctionRun

ErrorContainsFold applies the ContainsFold predicate on the "error" field.

func ErrorEQ

func ErrorEQ(v string) predicate.FunctionRun

ErrorEQ applies the EQ predicate on the "error" field.

func ErrorEqualFold

func ErrorEqualFold(v string) predicate.FunctionRun

ErrorEqualFold applies the EqualFold predicate on the "error" field.

func ErrorGT

func ErrorGT(v string) predicate.FunctionRun

ErrorGT applies the GT predicate on the "error" field.

func ErrorGTE

func ErrorGTE(v string) predicate.FunctionRun

ErrorGTE applies the GTE predicate on the "error" field.

func ErrorHasPrefix

func ErrorHasPrefix(v string) predicate.FunctionRun

ErrorHasPrefix applies the HasPrefix predicate on the "error" field.

func ErrorHasSuffix

func ErrorHasSuffix(v string) predicate.FunctionRun

ErrorHasSuffix applies the HasSuffix predicate on the "error" field.

func ErrorIn

func ErrorIn(vs ...string) predicate.FunctionRun

ErrorIn applies the In predicate on the "error" field.

func ErrorLT

func ErrorLT(v string) predicate.FunctionRun

ErrorLT applies the LT predicate on the "error" field.

func ErrorLTE

func ErrorLTE(v string) predicate.FunctionRun

ErrorLTE applies the LTE predicate on the "error" field.

func ErrorNEQ

func ErrorNEQ(v string) predicate.FunctionRun

ErrorNEQ applies the NEQ predicate on the "error" field.

func ErrorNotIn

func ErrorNotIn(vs ...string) predicate.FunctionRun

ErrorNotIn applies the NotIn predicate on the "error" field.

func ExitCode

func ExitCode(v int) predicate.FunctionRun

ExitCode applies equality check predicate on the "exit_code" field. It's identical to ExitCodeEQ.

func ExitCodeEQ

func ExitCodeEQ(v int) predicate.FunctionRun

ExitCodeEQ applies the EQ predicate on the "exit_code" field.

func ExitCodeGT

func ExitCodeGT(v int) predicate.FunctionRun

ExitCodeGT applies the GT predicate on the "exit_code" field.

func ExitCodeGTE

func ExitCodeGTE(v int) predicate.FunctionRun

ExitCodeGTE applies the GTE predicate on the "exit_code" field.

func ExitCodeIn

func ExitCodeIn(vs ...int) predicate.FunctionRun

ExitCodeIn applies the In predicate on the "exit_code" field.

func ExitCodeIsNil

func ExitCodeIsNil() predicate.FunctionRun

ExitCodeIsNil applies the IsNil predicate on the "exit_code" field.

func ExitCodeLT

func ExitCodeLT(v int) predicate.FunctionRun

ExitCodeLT applies the LT predicate on the "exit_code" field.

func ExitCodeLTE

func ExitCodeLTE(v int) predicate.FunctionRun

ExitCodeLTE applies the LTE predicate on the "exit_code" field.

func ExitCodeNEQ

func ExitCodeNEQ(v int) predicate.FunctionRun

ExitCodeNEQ applies the NEQ predicate on the "exit_code" field.

func ExitCodeNotIn

func ExitCodeNotIn(vs ...int) predicate.FunctionRun

ExitCodeNotIn applies the NotIn predicate on the "exit_code" field.

func ExitCodeNotNil

func ExitCodeNotNil() predicate.FunctionRun

ExitCodeNotNil applies the NotNil predicate on the "exit_code" field.

func FunctionName

func FunctionName(v string) predicate.FunctionRun

FunctionName applies equality check predicate on the "function_name" field. It's identical to FunctionNameEQ.

func FunctionNameContains

func FunctionNameContains(v string) predicate.FunctionRun

FunctionNameContains applies the Contains predicate on the "function_name" field.

func FunctionNameContainsFold

func FunctionNameContainsFold(v string) predicate.FunctionRun

FunctionNameContainsFold applies the ContainsFold predicate on the "function_name" field.

func FunctionNameEQ

func FunctionNameEQ(v string) predicate.FunctionRun

FunctionNameEQ applies the EQ predicate on the "function_name" field.

func FunctionNameEqualFold

func FunctionNameEqualFold(v string) predicate.FunctionRun

FunctionNameEqualFold applies the EqualFold predicate on the "function_name" field.

func FunctionNameGT

func FunctionNameGT(v string) predicate.FunctionRun

FunctionNameGT applies the GT predicate on the "function_name" field.

func FunctionNameGTE

func FunctionNameGTE(v string) predicate.FunctionRun

FunctionNameGTE applies the GTE predicate on the "function_name" field.

func FunctionNameHasPrefix

func FunctionNameHasPrefix(v string) predicate.FunctionRun

FunctionNameHasPrefix applies the HasPrefix predicate on the "function_name" field.

func FunctionNameHasSuffix

func FunctionNameHasSuffix(v string) predicate.FunctionRun

FunctionNameHasSuffix applies the HasSuffix predicate on the "function_name" field.

func FunctionNameIn

func FunctionNameIn(vs ...string) predicate.FunctionRun

FunctionNameIn applies the In predicate on the "function_name" field.

func FunctionNameLT

func FunctionNameLT(v string) predicate.FunctionRun

FunctionNameLT applies the LT predicate on the "function_name" field.

func FunctionNameLTE

func FunctionNameLTE(v string) predicate.FunctionRun

FunctionNameLTE applies the LTE predicate on the "function_name" field.

func FunctionNameNEQ

func FunctionNameNEQ(v string) predicate.FunctionRun

FunctionNameNEQ applies the NEQ predicate on the "function_name" field.

func FunctionNameNotIn

func FunctionNameNotIn(vs ...string) predicate.FunctionRun

FunctionNameNotIn applies the NotIn predicate on the "function_name" field.

func ID

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int64) predicate.FunctionRun

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int64) predicate.FunctionRun

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int64) predicate.FunctionRun

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int64) predicate.FunctionRun

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int64) predicate.FunctionRun

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int64) predicate.FunctionRun

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int64) predicate.FunctionRun

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int64) predicate.FunctionRun

IDNotIn applies the NotIn predicate on the ID field.

func IdempotencyKey

func IdempotencyKey(v string) predicate.FunctionRun

IdempotencyKey applies equality check predicate on the "idempotency_key" field. It's identical to IdempotencyKeyEQ.

func IdempotencyKeyContains

func IdempotencyKeyContains(v string) predicate.FunctionRun

IdempotencyKeyContains applies the Contains predicate on the "idempotency_key" field.

func IdempotencyKeyContainsFold

func IdempotencyKeyContainsFold(v string) predicate.FunctionRun

IdempotencyKeyContainsFold applies the ContainsFold predicate on the "idempotency_key" field.

func IdempotencyKeyEQ

func IdempotencyKeyEQ(v string) predicate.FunctionRun

IdempotencyKeyEQ applies the EQ predicate on the "idempotency_key" field.

func IdempotencyKeyEqualFold

func IdempotencyKeyEqualFold(v string) predicate.FunctionRun

IdempotencyKeyEqualFold applies the EqualFold predicate on the "idempotency_key" field.

func IdempotencyKeyGT

func IdempotencyKeyGT(v string) predicate.FunctionRun

IdempotencyKeyGT applies the GT predicate on the "idempotency_key" field.

func IdempotencyKeyGTE

func IdempotencyKeyGTE(v string) predicate.FunctionRun

IdempotencyKeyGTE applies the GTE predicate on the "idempotency_key" field.

func IdempotencyKeyHasPrefix

func IdempotencyKeyHasPrefix(v string) predicate.FunctionRun

IdempotencyKeyHasPrefix applies the HasPrefix predicate on the "idempotency_key" field.

func IdempotencyKeyHasSuffix

func IdempotencyKeyHasSuffix(v string) predicate.FunctionRun

IdempotencyKeyHasSuffix applies the HasSuffix predicate on the "idempotency_key" field.

func IdempotencyKeyIn

func IdempotencyKeyIn(vs ...string) predicate.FunctionRun

IdempotencyKeyIn applies the In predicate on the "idempotency_key" field.

func IdempotencyKeyIsNil

func IdempotencyKeyIsNil() predicate.FunctionRun

IdempotencyKeyIsNil applies the IsNil predicate on the "idempotency_key" field.

func IdempotencyKeyLT

func IdempotencyKeyLT(v string) predicate.FunctionRun

IdempotencyKeyLT applies the LT predicate on the "idempotency_key" field.

func IdempotencyKeyLTE

func IdempotencyKeyLTE(v string) predicate.FunctionRun

IdempotencyKeyLTE applies the LTE predicate on the "idempotency_key" field.

func IdempotencyKeyNEQ

func IdempotencyKeyNEQ(v string) predicate.FunctionRun

IdempotencyKeyNEQ applies the NEQ predicate on the "idempotency_key" field.

func IdempotencyKeyNotIn

func IdempotencyKeyNotIn(vs ...string) predicate.FunctionRun

IdempotencyKeyNotIn applies the NotIn predicate on the "idempotency_key" field.

func IdempotencyKeyNotNil

func IdempotencyKeyNotNil() predicate.FunctionRun

IdempotencyKeyNotNil applies the NotNil predicate on the "idempotency_key" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.FunctionRun) predicate.FunctionRun

Or groups predicates with the OR operator between them.

func ResultJSON

func ResultJSON(v string) predicate.FunctionRun

ResultJSON applies equality check predicate on the "result_json" field. It's identical to ResultJSONEQ.

func ResultJSONContains

func ResultJSONContains(v string) predicate.FunctionRun

ResultJSONContains applies the Contains predicate on the "result_json" field.

func ResultJSONContainsFold

func ResultJSONContainsFold(v string) predicate.FunctionRun

ResultJSONContainsFold applies the ContainsFold predicate on the "result_json" field.

func ResultJSONEQ

func ResultJSONEQ(v string) predicate.FunctionRun

ResultJSONEQ applies the EQ predicate on the "result_json" field.

func ResultJSONEqualFold

func ResultJSONEqualFold(v string) predicate.FunctionRun

ResultJSONEqualFold applies the EqualFold predicate on the "result_json" field.

func ResultJSONGT

func ResultJSONGT(v string) predicate.FunctionRun

ResultJSONGT applies the GT predicate on the "result_json" field.

func ResultJSONGTE

func ResultJSONGTE(v string) predicate.FunctionRun

ResultJSONGTE applies the GTE predicate on the "result_json" field.

func ResultJSONHasPrefix

func ResultJSONHasPrefix(v string) predicate.FunctionRun

ResultJSONHasPrefix applies the HasPrefix predicate on the "result_json" field.

func ResultJSONHasSuffix

func ResultJSONHasSuffix(v string) predicate.FunctionRun

ResultJSONHasSuffix applies the HasSuffix predicate on the "result_json" field.

func ResultJSONIn

func ResultJSONIn(vs ...string) predicate.FunctionRun

ResultJSONIn applies the In predicate on the "result_json" field.

func ResultJSONIsNil

func ResultJSONIsNil() predicate.FunctionRun

ResultJSONIsNil applies the IsNil predicate on the "result_json" field.

func ResultJSONLT

func ResultJSONLT(v string) predicate.FunctionRun

ResultJSONLT applies the LT predicate on the "result_json" field.

func ResultJSONLTE

func ResultJSONLTE(v string) predicate.FunctionRun

ResultJSONLTE applies the LTE predicate on the "result_json" field.

func ResultJSONNEQ

func ResultJSONNEQ(v string) predicate.FunctionRun

ResultJSONNEQ applies the NEQ predicate on the "result_json" field.

func ResultJSONNotIn

func ResultJSONNotIn(vs ...string) predicate.FunctionRun

ResultJSONNotIn applies the NotIn predicate on the "result_json" field.

func ResultJSONNotNil

func ResultJSONNotNil() predicate.FunctionRun

ResultJSONNotNil applies the NotNil predicate on the "result_json" field.

func StatusEQ

func StatusEQ(v Status) predicate.FunctionRun

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

func StatusIn

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

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

func StatusNEQ

func StatusNEQ(v Status) predicate.FunctionRun

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

func StatusNotIn

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

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 ValidColumn

func ValidColumn(column string) bool

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

func Version

func Version(v int) predicate.FunctionRun

Version applies equality check predicate on the "version" field. It's identical to VersionEQ.

func VersionEQ

func VersionEQ(v int) predicate.FunctionRun

VersionEQ applies the EQ predicate on the "version" field.

func VersionGT

func VersionGT(v int) predicate.FunctionRun

VersionGT applies the GT predicate on the "version" field.

func VersionGTE

func VersionGTE(v int) predicate.FunctionRun

VersionGTE applies the GTE predicate on the "version" field.

func VersionIn

func VersionIn(vs ...int) predicate.FunctionRun

VersionIn applies the In predicate on the "version" field.

func VersionLT

func VersionLT(v int) predicate.FunctionRun

VersionLT applies the LT predicate on the "version" field.

func VersionLTE

func VersionLTE(v int) predicate.FunctionRun

VersionLTE applies the LTE predicate on the "version" field.

func VersionNEQ

func VersionNEQ(v int) predicate.FunctionRun

VersionNEQ applies the NEQ predicate on the "version" field.

func VersionNotIn

func VersionNotIn(vs ...int) predicate.FunctionRun

VersionNotIn applies the NotIn predicate on the "version" field.

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the FunctionRun queries.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByDurationMs

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

ByDurationMs orders the results by the duration_ms field.

func ByError

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

ByError orders the results by the error field.

func ByExitCode

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

ByExitCode orders the results by the exit_code field.

func ByFunctionName

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

ByFunctionName orders the results by the function_name field.

func ByID

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

ByID orders the results by the id field.

func ByIdempotencyKey

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

ByIdempotencyKey orders the results by the idempotency_key field.

func ByResultJSON

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

ByResultJSON orders the results by the result_json field.

func ByStatus

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

ByStatus orders the results by the status field.

func ByVersion

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

ByVersion orders the results by the version field.

type Status

type Status string

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

const (
	StatusRunning   Status = "running"
	StatusSucceeded Status = "succeeded"
	StatusFailed    Status = "failed"
)

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