workflowrun

package
v0.8.93 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: Apache-2.0 Imports: 7 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"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldFinishedAt holds the string denoting the finished_at field in the database.
	FieldFinishedAt = "finished_at"
	// FieldState holds the string denoting the state field in the database.
	FieldState = "state"
	// FieldReason holds the string denoting the reason field in the database.
	FieldReason = "reason"
	// FieldRunURL holds the string denoting the run_url field in the database.
	FieldRunURL = "run_url"
	// FieldRunnerType holds the string denoting the runner_type field in the database.
	FieldRunnerType = "runner_type"
	// FieldAttestationRef holds the string denoting the attestation_ref field in the database.
	FieldAttestationRef = "attestation_ref"
	// EdgeWorkflow holds the string denoting the workflow edge name in mutations.
	EdgeWorkflow = "workflow"
	// EdgeRobotaccount holds the string denoting the robotaccount edge name in mutations.
	EdgeRobotaccount = "robotaccount"
	// EdgeContractVersion holds the string denoting the contract_version edge name in mutations.
	EdgeContractVersion = "contract_version"
	// Table holds the table name of the workflowrun in the database.
	Table = "workflow_runs"
	// WorkflowTable is the table that holds the workflow relation/edge.
	WorkflowTable = "workflow_runs"
	// WorkflowInverseTable is the table name for the Workflow entity.
	// It exists in this package in order to avoid circular dependency with the "workflow" package.
	WorkflowInverseTable = "workflows"
	// WorkflowColumn is the table column denoting the workflow relation/edge.
	WorkflowColumn = "workflow_workflowruns"
	// RobotaccountTable is the table that holds the robotaccount relation/edge.
	RobotaccountTable = "workflow_runs"
	// RobotaccountInverseTable is the table name for the RobotAccount entity.
	// It exists in this package in order to avoid circular dependency with the "robotaccount" package.
	RobotaccountInverseTable = "robot_accounts"
	// RobotaccountColumn is the table column denoting the robotaccount relation/edge.
	RobotaccountColumn = "robot_account_workflowruns"
	// ContractVersionTable is the table that holds the contract_version relation/edge.
	ContractVersionTable = "workflow_runs"
	// ContractVersionInverseTable is the table name for the WorkflowContractVersion entity.
	// It exists in this package in order to avoid circular dependency with the "workflowcontractversion" package.
	ContractVersionInverseTable = "workflow_contract_versions"
	// ContractVersionColumn is the table column denoting the contract_version relation/edge.
	ContractVersionColumn = "workflow_run_contract_version"
)
View Source
const DefaultState biz.WorkflowRunStatus = "initialized"

Variables

View Source
var (
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt 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.

View Source
var ForeignKeys = []string{
	"robot_account_workflowruns",
	"workflow_workflowruns",
	"workflow_run_contract_version",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "workflow_runs" table and are not defined as standalone fields in the schema.

Functions

func And

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

And groups predicates with the AND operator between them.

func AttestationRefIsNil

func AttestationRefIsNil() predicate.WorkflowRun

AttestationRefIsNil applies the IsNil predicate on the "attestation_ref" field.

func AttestationRefNotNil

func AttestationRefNotNil() predicate.WorkflowRun

AttestationRefNotNil applies the NotNil predicate on the "attestation_ref" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.WorkflowRun

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.WorkflowRun

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.WorkflowRun

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.WorkflowRun

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.WorkflowRun

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.WorkflowRun

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.WorkflowRun

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

func CreatedAtNotIn

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

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

func FinishedAt

func FinishedAt(v time.Time) predicate.WorkflowRun

FinishedAt applies equality check predicate on the "finished_at" field. It's identical to FinishedAtEQ.

func FinishedAtEQ

func FinishedAtEQ(v time.Time) predicate.WorkflowRun

FinishedAtEQ applies the EQ predicate on the "finished_at" field.

func FinishedAtGT

func FinishedAtGT(v time.Time) predicate.WorkflowRun

FinishedAtGT applies the GT predicate on the "finished_at" field.

func FinishedAtGTE

func FinishedAtGTE(v time.Time) predicate.WorkflowRun

FinishedAtGTE applies the GTE predicate on the "finished_at" field.

func FinishedAtIn

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

FinishedAtIn applies the In predicate on the "finished_at" field.

func FinishedAtIsNil

func FinishedAtIsNil() predicate.WorkflowRun

FinishedAtIsNil applies the IsNil predicate on the "finished_at" field.

func FinishedAtLT

func FinishedAtLT(v time.Time) predicate.WorkflowRun

FinishedAtLT applies the LT predicate on the "finished_at" field.

func FinishedAtLTE

func FinishedAtLTE(v time.Time) predicate.WorkflowRun

FinishedAtLTE applies the LTE predicate on the "finished_at" field.

func FinishedAtNEQ

func FinishedAtNEQ(v time.Time) predicate.WorkflowRun

FinishedAtNEQ applies the NEQ predicate on the "finished_at" field.

func FinishedAtNotIn

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

FinishedAtNotIn applies the NotIn predicate on the "finished_at" field.

func FinishedAtNotNil

func FinishedAtNotNil() predicate.WorkflowRun

FinishedAtNotNil applies the NotNil predicate on the "finished_at" field.

func HasContractVersion

func HasContractVersion() predicate.WorkflowRun

HasContractVersion applies the HasEdge predicate on the "contract_version" edge.

func HasContractVersionWith

func HasContractVersionWith(preds ...predicate.WorkflowContractVersion) predicate.WorkflowRun

HasContractVersionWith applies the HasEdge predicate on the "contract_version" edge with a given conditions (other predicates).

func HasRobotaccount

func HasRobotaccount() predicate.WorkflowRun

HasRobotaccount applies the HasEdge predicate on the "robotaccount" edge.

func HasRobotaccountWith

func HasRobotaccountWith(preds ...predicate.RobotAccount) predicate.WorkflowRun

HasRobotaccountWith applies the HasEdge predicate on the "robotaccount" edge with a given conditions (other predicates).

func HasWorkflow

func HasWorkflow() predicate.WorkflowRun

HasWorkflow applies the HasEdge predicate on the "workflow" edge.

func HasWorkflowWith

func HasWorkflowWith(preds ...predicate.Workflow) predicate.WorkflowRun

HasWorkflowWith applies the HasEdge predicate on the "workflow" edge with a given conditions (other predicates).

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 Reason

func Reason(v string) predicate.WorkflowRun

Reason applies equality check predicate on the "reason" field. It's identical to ReasonEQ.

func ReasonContains

func ReasonContains(v string) predicate.WorkflowRun

ReasonContains applies the Contains predicate on the "reason" field.

func ReasonContainsFold

func ReasonContainsFold(v string) predicate.WorkflowRun

ReasonContainsFold applies the ContainsFold predicate on the "reason" field.

func ReasonEQ

func ReasonEQ(v string) predicate.WorkflowRun

ReasonEQ applies the EQ predicate on the "reason" field.

func ReasonEqualFold

func ReasonEqualFold(v string) predicate.WorkflowRun

ReasonEqualFold applies the EqualFold predicate on the "reason" field.

func ReasonGT

func ReasonGT(v string) predicate.WorkflowRun

ReasonGT applies the GT predicate on the "reason" field.

func ReasonGTE

func ReasonGTE(v string) predicate.WorkflowRun

ReasonGTE applies the GTE predicate on the "reason" field.

func ReasonHasPrefix

func ReasonHasPrefix(v string) predicate.WorkflowRun

ReasonHasPrefix applies the HasPrefix predicate on the "reason" field.

func ReasonHasSuffix

func ReasonHasSuffix(v string) predicate.WorkflowRun

ReasonHasSuffix applies the HasSuffix predicate on the "reason" field.

func ReasonIn

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

ReasonIn applies the In predicate on the "reason" field.

func ReasonIsNil

func ReasonIsNil() predicate.WorkflowRun

ReasonIsNil applies the IsNil predicate on the "reason" field.

func ReasonLT

func ReasonLT(v string) predicate.WorkflowRun

ReasonLT applies the LT predicate on the "reason" field.

func ReasonLTE

func ReasonLTE(v string) predicate.WorkflowRun

ReasonLTE applies the LTE predicate on the "reason" field.

func ReasonNEQ

func ReasonNEQ(v string) predicate.WorkflowRun

ReasonNEQ applies the NEQ predicate on the "reason" field.

func ReasonNotIn

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

ReasonNotIn applies the NotIn predicate on the "reason" field.

func ReasonNotNil

func ReasonNotNil() predicate.WorkflowRun

ReasonNotNil applies the NotNil predicate on the "reason" field.

func RunURL

func RunURL(v string) predicate.WorkflowRun

RunURL applies equality check predicate on the "run_url" field. It's identical to RunURLEQ.

func RunURLContains

func RunURLContains(v string) predicate.WorkflowRun

RunURLContains applies the Contains predicate on the "run_url" field.

func RunURLContainsFold

func RunURLContainsFold(v string) predicate.WorkflowRun

RunURLContainsFold applies the ContainsFold predicate on the "run_url" field.

func RunURLEQ

func RunURLEQ(v string) predicate.WorkflowRun

RunURLEQ applies the EQ predicate on the "run_url" field.

func RunURLEqualFold

func RunURLEqualFold(v string) predicate.WorkflowRun

RunURLEqualFold applies the EqualFold predicate on the "run_url" field.

func RunURLGT

func RunURLGT(v string) predicate.WorkflowRun

RunURLGT applies the GT predicate on the "run_url" field.

func RunURLGTE

func RunURLGTE(v string) predicate.WorkflowRun

RunURLGTE applies the GTE predicate on the "run_url" field.

func RunURLHasPrefix

func RunURLHasPrefix(v string) predicate.WorkflowRun

RunURLHasPrefix applies the HasPrefix predicate on the "run_url" field.

func RunURLHasSuffix

func RunURLHasSuffix(v string) predicate.WorkflowRun

RunURLHasSuffix applies the HasSuffix predicate on the "run_url" field.

func RunURLIn

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

RunURLIn applies the In predicate on the "run_url" field.

func RunURLIsNil

func RunURLIsNil() predicate.WorkflowRun

RunURLIsNil applies the IsNil predicate on the "run_url" field.

func RunURLLT

func RunURLLT(v string) predicate.WorkflowRun

RunURLLT applies the LT predicate on the "run_url" field.

func RunURLLTE

func RunURLLTE(v string) predicate.WorkflowRun

RunURLLTE applies the LTE predicate on the "run_url" field.

func RunURLNEQ

func RunURLNEQ(v string) predicate.WorkflowRun

RunURLNEQ applies the NEQ predicate on the "run_url" field.

func RunURLNotIn

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

RunURLNotIn applies the NotIn predicate on the "run_url" field.

func RunURLNotNil

func RunURLNotNil() predicate.WorkflowRun

RunURLNotNil applies the NotNil predicate on the "run_url" field.

func RunnerType

func RunnerType(v string) predicate.WorkflowRun

RunnerType applies equality check predicate on the "runner_type" field. It's identical to RunnerTypeEQ.

func RunnerTypeContains

func RunnerTypeContains(v string) predicate.WorkflowRun

RunnerTypeContains applies the Contains predicate on the "runner_type" field.

func RunnerTypeContainsFold

func RunnerTypeContainsFold(v string) predicate.WorkflowRun

RunnerTypeContainsFold applies the ContainsFold predicate on the "runner_type" field.

func RunnerTypeEQ

func RunnerTypeEQ(v string) predicate.WorkflowRun

RunnerTypeEQ applies the EQ predicate on the "runner_type" field.

func RunnerTypeEqualFold

func RunnerTypeEqualFold(v string) predicate.WorkflowRun

RunnerTypeEqualFold applies the EqualFold predicate on the "runner_type" field.

func RunnerTypeGT

func RunnerTypeGT(v string) predicate.WorkflowRun

RunnerTypeGT applies the GT predicate on the "runner_type" field.

func RunnerTypeGTE

func RunnerTypeGTE(v string) predicate.WorkflowRun

RunnerTypeGTE applies the GTE predicate on the "runner_type" field.

func RunnerTypeHasPrefix

func RunnerTypeHasPrefix(v string) predicate.WorkflowRun

RunnerTypeHasPrefix applies the HasPrefix predicate on the "runner_type" field.

func RunnerTypeHasSuffix

func RunnerTypeHasSuffix(v string) predicate.WorkflowRun

RunnerTypeHasSuffix applies the HasSuffix predicate on the "runner_type" field.

func RunnerTypeIn

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

RunnerTypeIn applies the In predicate on the "runner_type" field.

func RunnerTypeIsNil

func RunnerTypeIsNil() predicate.WorkflowRun

RunnerTypeIsNil applies the IsNil predicate on the "runner_type" field.

func RunnerTypeLT

func RunnerTypeLT(v string) predicate.WorkflowRun

RunnerTypeLT applies the LT predicate on the "runner_type" field.

func RunnerTypeLTE

func RunnerTypeLTE(v string) predicate.WorkflowRun

RunnerTypeLTE applies the LTE predicate on the "runner_type" field.

func RunnerTypeNEQ

func RunnerTypeNEQ(v string) predicate.WorkflowRun

RunnerTypeNEQ applies the NEQ predicate on the "runner_type" field.

func RunnerTypeNotIn

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

RunnerTypeNotIn applies the NotIn predicate on the "runner_type" field.

func RunnerTypeNotNil

func RunnerTypeNotNil() predicate.WorkflowRun

RunnerTypeNotNil applies the NotNil predicate on the "runner_type" field.

func StateEQ

StateEQ applies the EQ predicate on the "state" field.

func StateIn

StateIn applies the In predicate on the "state" field.

func StateNEQ

StateNEQ applies the NEQ predicate on the "state" field.

func StateNotIn

func StateNotIn(vs ...biz.WorkflowRunStatus) predicate.WorkflowRun

StateNotIn applies the NotIn predicate on the "state" field.

func StateValidator

func StateValidator(s biz.WorkflowRunStatus) error

StateValidator is a validator for the "state" 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).

Types

This section is empty.

Jump to

Keyboard shortcuts

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