run

package
v0.1.0-beta Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the run type in the database.
	Label = "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"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// FieldStartedAt holds the string denoting the startedat field in the database.
	FieldStartedAt = "started_at"
	// FieldEndedAt holds the string denoting the endedat field in the database.
	FieldEndedAt = "ended_at"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldStartAt holds the string denoting the startat field in the database.
	FieldStartAt = "start_at"
	// FieldError holds the string denoting the error field in the database.
	FieldError = "error"

	// EdgeProject holds the string denoting the project edge name in mutations.
	EdgeProject = "project"
	// EdgeTemplate holds the string denoting the template edge name in mutations.
	EdgeTemplate = "template"
	// EdgeCurrentStep holds the string denoting the currentstep edge name in mutations.
	EdgeCurrentStep = "currentStep"
	// EdgeSteps holds the string denoting the steps edge name in mutations.
	EdgeSteps = "steps"

	// Table holds the table name of the run in the database.
	Table = "runs"
	// ProjectTable is the table the holds the project relation/edge.
	ProjectTable = "runs"
	// ProjectInverseTable is the table name for the Project entity.
	// It exists in this package in order to avoid circular dependency with the "project" package.
	ProjectInverseTable = "projects"
	// ProjectColumn is the table column denoting the project relation/edge.
	ProjectColumn = "project_runs"
	// TemplateTable is the table the holds the template relation/edge.
	TemplateTable = "templates"
	// TemplateInverseTable is the table name for the Template entity.
	// It exists in this package in order to avoid circular dependency with the "template" package.
	TemplateInverseTable = "templates"
	// TemplateColumn is the table column denoting the template relation/edge.
	TemplateColumn = "run_template"
	// CurrentStepTable is the table the holds the currentStep relation/edge.
	CurrentStepTable = "runs"
	// CurrentStepInverseTable is the table name for the StepRun entity.
	// It exists in this package in order to avoid circular dependency with the "steprun" package.
	CurrentStepInverseTable = "step_runs"
	// CurrentStepColumn is the table column denoting the currentStep relation/edge.
	CurrentStepColumn = "run_current_step"
	// StepsTable is the table the holds the steps relation/edge.
	StepsTable = "step_runs"
	// StepsInverseTable is the table name for the StepRun entity.
	// It exists in this package in order to avoid circular dependency with the "steprun" package.
	StepsInverseTable = "step_runs"
	// StepsColumn is the table column denoting the steps relation/edge.
	StepsColumn = "run_steps"
)

Variables

View Source
var (
	// DefaultCreatedAt holds the default value on creation for the created_at field.
	DefaultCreatedAt func() time.Time
	// DefaultUpdatedAt holds the default value on creation for the updated_at field.
	DefaultUpdatedAt func() time.Time
	// UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
	UpdateDefaultUpdatedAt func() time.Time
	// IDValidator is a validator for the "id" field. It is called by the builders before save.
	IDValidator func(string) error
)

Columns holds all SQL columns for run fields.

View Source
var ForeignKeys = []string{
	"project_runs",
	"run_current_step",
}

ForeignKeys holds the SQL foreign-keys that are owned by the Run type.

Functions

func And

func And(predicates ...predicate.Run) predicate.Run

And groups list of predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Run

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Run

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Run

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Run

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Run

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Run

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Run

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

func CreatedAtNotIn

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

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

func EndedAt

func EndedAt(v time.Time) predicate.Run

EndedAt applies equality check predicate on the "endedAt" field. It's identical to EndedAtEQ.

func EndedAtEQ

func EndedAtEQ(v time.Time) predicate.Run

EndedAtEQ applies the EQ predicate on the "endedAt" field.

func EndedAtGT

func EndedAtGT(v time.Time) predicate.Run

EndedAtGT applies the GT predicate on the "endedAt" field.

func EndedAtGTE

func EndedAtGTE(v time.Time) predicate.Run

EndedAtGTE applies the GTE predicate on the "endedAt" field.

func EndedAtIn

func EndedAtIn(vs ...time.Time) predicate.Run

EndedAtIn applies the In predicate on the "endedAt" field.

func EndedAtIsNil

func EndedAtIsNil() predicate.Run

EndedAtIsNil applies the IsNil predicate on the "endedAt" field.

func EndedAtLT

func EndedAtLT(v time.Time) predicate.Run

EndedAtLT applies the LT predicate on the "endedAt" field.

func EndedAtLTE

func EndedAtLTE(v time.Time) predicate.Run

EndedAtLTE applies the LTE predicate on the "endedAt" field.

func EndedAtNEQ

func EndedAtNEQ(v time.Time) predicate.Run

EndedAtNEQ applies the NEQ predicate on the "endedAt" field.

func EndedAtNotIn

func EndedAtNotIn(vs ...time.Time) predicate.Run

EndedAtNotIn applies the NotIn predicate on the "endedAt" field.

func EndedAtNotNil

func EndedAtNotNil() predicate.Run

EndedAtNotNil applies the NotNil predicate on the "endedAt" field.

func Error

func Error(v string) predicate.Run

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

func ErrorContains

func ErrorContains(v string) predicate.Run

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

func ErrorContainsFold

func ErrorContainsFold(v string) predicate.Run

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

func ErrorEQ

func ErrorEQ(v string) predicate.Run

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

func ErrorEqualFold

func ErrorEqualFold(v string) predicate.Run

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

func ErrorGT

func ErrorGT(v string) predicate.Run

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

func ErrorGTE

func ErrorGTE(v string) predicate.Run

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

func ErrorHasPrefix

func ErrorHasPrefix(v string) predicate.Run

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

func ErrorHasSuffix

func ErrorHasSuffix(v string) predicate.Run

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

func ErrorIn

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

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

func ErrorIsNil

func ErrorIsNil() predicate.Run

ErrorIsNil applies the IsNil predicate on the "error" field.

func ErrorLT

func ErrorLT(v string) predicate.Run

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

func ErrorLTE

func ErrorLTE(v string) predicate.Run

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

func ErrorNEQ

func ErrorNEQ(v string) predicate.Run

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

func ErrorNotIn

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

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

func ErrorNotNil

func ErrorNotNil() predicate.Run

ErrorNotNil applies the NotNil predicate on the "error" field.

func HasCurrentStep

func HasCurrentStep() predicate.Run

HasCurrentStep applies the HasEdge predicate on the "currentStep" edge.

func HasCurrentStepWith

func HasCurrentStepWith(preds ...predicate.StepRun) predicate.Run

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

func HasProject

func HasProject() predicate.Run

HasProject applies the HasEdge predicate on the "project" edge.

func HasProjectWith

func HasProjectWith(preds ...predicate.Project) predicate.Run

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

func HasSteps

func HasSteps() predicate.Run

HasSteps applies the HasEdge predicate on the "steps" edge.

func HasStepsWith

func HasStepsWith(preds ...predicate.StepRun) predicate.Run

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

func HasTemplate

func HasTemplate() predicate.Run

HasTemplate applies the HasEdge predicate on the "template" edge.

func HasTemplateWith

func HasTemplateWith(preds ...predicate.Template) predicate.Run

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

func ID

func ID(id string) predicate.Run

ID filters vertices based on their identifier.

func IDEQ

func IDEQ(id string) predicate.Run

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id string) predicate.Run

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.Run

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...string) predicate.Run

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.Run

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.Run

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.Run

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...string) predicate.Run

IDNotIn applies the NotIn predicate on the ID field.

func Name

func Name(v string) predicate.Run

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.Run

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.Run

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.Run

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.Run

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.Run

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.Run

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.Run

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.Run

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.Run

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.Run

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.Run

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.Run

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.Run

NameNotIn applies the NotIn predicate on the "name" field.

func Not

func Not(p predicate.Run) predicate.Run

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Run) predicate.Run

Or groups list of predicates with the OR operator between them.

func StartAt

func StartAt(v time.Time) predicate.Run

StartAt applies equality check predicate on the "startAt" field. It's identical to StartAtEQ.

func StartAtEQ

func StartAtEQ(v time.Time) predicate.Run

StartAtEQ applies the EQ predicate on the "startAt" field.

func StartAtGT

func StartAtGT(v time.Time) predicate.Run

StartAtGT applies the GT predicate on the "startAt" field.

func StartAtGTE

func StartAtGTE(v time.Time) predicate.Run

StartAtGTE applies the GTE predicate on the "startAt" field.

func StartAtIn

func StartAtIn(vs ...time.Time) predicate.Run

StartAtIn applies the In predicate on the "startAt" field.

func StartAtIsNil

func StartAtIsNil() predicate.Run

StartAtIsNil applies the IsNil predicate on the "startAt" field.

func StartAtLT

func StartAtLT(v time.Time) predicate.Run

StartAtLT applies the LT predicate on the "startAt" field.

func StartAtLTE

func StartAtLTE(v time.Time) predicate.Run

StartAtLTE applies the LTE predicate on the "startAt" field.

func StartAtNEQ

func StartAtNEQ(v time.Time) predicate.Run

StartAtNEQ applies the NEQ predicate on the "startAt" field.

func StartAtNotIn

func StartAtNotIn(vs ...time.Time) predicate.Run

StartAtNotIn applies the NotIn predicate on the "startAt" field.

func StartAtNotNil

func StartAtNotNil() predicate.Run

StartAtNotNil applies the NotNil predicate on the "startAt" field.

func StartedAt

func StartedAt(v time.Time) predicate.Run

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

func StartedAtEQ

func StartedAtEQ(v time.Time) predicate.Run

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

func StartedAtGT

func StartedAtGT(v time.Time) predicate.Run

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

func StartedAtGTE

func StartedAtGTE(v time.Time) predicate.Run

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

func StartedAtIn

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

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

func StartedAtIsNil

func StartedAtIsNil() predicate.Run

StartedAtIsNil applies the IsNil predicate on the "startedAt" field.

func StartedAtLT

func StartedAtLT(v time.Time) predicate.Run

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

func StartedAtLTE

func StartedAtLTE(v time.Time) predicate.Run

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

func StartedAtNEQ

func StartedAtNEQ(v time.Time) predicate.Run

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

func StartedAtNotIn

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

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

func StartedAtNotNil

func StartedAtNotNil() predicate.Run

StartedAtNotNil applies the NotNil predicate on the "startedAt" field.

func StatusEQ

func StatusEQ(v Status) predicate.Run

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

func StatusIn

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

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

func StatusNEQ

func StatusNEQ(v Status) predicate.Run

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

func StatusNotIn

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

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 UpdatedAt

func UpdatedAt(v time.Time) predicate.Run

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Run

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Run

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Run

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.Run

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Run

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Run

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Run

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.Run

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func ValidColumn

func ValidColumn(column string) bool

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

Types

type Status

type Status string

Status defines the type for the status enum field.

const (
	StatusCREATED    Status = "CREATED"
	StatusRUNNING    Status = "RUNNING"
	StatusPAUSED     Status = "PAUSED"
	StatusDONE       Status = "DONE"
	StatusTERMINATED Status = "TERMINATED"
	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