run

package
v0.0.0-...-fbc00b7 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2024 License: MIT 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"
	// FieldJob holds the string denoting the job field in the database.
	FieldJob = "job"
	// FieldStart holds the string denoting the start field in the database.
	FieldStart = "start"
	// FieldEnd holds the string denoting the end field in the database.
	FieldEnd = "end"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// FieldLog holds the string denoting the log field in the database.
	FieldLog = "log"
	// Table holds the table name of the run in the database.
	Table = "runs"
)

Variables

Columns holds all SQL columns for run fields.

View Source
var (
	// DefaultStart holds the default value on creation for the "start" field.
	DefaultStart func() time.Time
)

Functions

func And

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

And groups predicates with the AND operator between them.

func End

func End(v time.Time) predicate.Run

End applies equality check predicate on the "end" field. It's identical to EndEQ.

func EndEQ

func EndEQ(v time.Time) predicate.Run

EndEQ applies the EQ predicate on the "end" field.

func EndGT

func EndGT(v time.Time) predicate.Run

EndGT applies the GT predicate on the "end" field.

func EndGTE

func EndGTE(v time.Time) predicate.Run

EndGTE applies the GTE predicate on the "end" field.

func EndIn

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

EndIn applies the In predicate on the "end" field.

func EndIsNil

func EndIsNil() predicate.Run

EndIsNil applies the IsNil predicate on the "end" field.

func EndLT

func EndLT(v time.Time) predicate.Run

EndLT applies the LT predicate on the "end" field.

func EndLTE

func EndLTE(v time.Time) predicate.Run

EndLTE applies the LTE predicate on the "end" field.

func EndNEQ

func EndNEQ(v time.Time) predicate.Run

EndNEQ applies the NEQ predicate on the "end" field.

func EndNotIn

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

EndNotIn applies the NotIn predicate on the "end" field.

func EndNotNil

func EndNotNil() predicate.Run

EndNotNil applies the NotNil predicate on the "end" field.

func ID

func ID(id uuid.UUID) predicate.Run

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Run

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Run

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Run

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Run

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Run

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Run

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Job

func Job(v string) predicate.Run

Job applies equality check predicate on the "job" field. It's identical to JobEQ.

func JobContains

func JobContains(v string) predicate.Run

JobContains applies the Contains predicate on the "job" field.

func JobContainsFold

func JobContainsFold(v string) predicate.Run

JobContainsFold applies the ContainsFold predicate on the "job" field.

func JobEQ

func JobEQ(v string) predicate.Run

JobEQ applies the EQ predicate on the "job" field.

func JobEqualFold

func JobEqualFold(v string) predicate.Run

JobEqualFold applies the EqualFold predicate on the "job" field.

func JobGT

func JobGT(v string) predicate.Run

JobGT applies the GT predicate on the "job" field.

func JobGTE

func JobGTE(v string) predicate.Run

JobGTE applies the GTE predicate on the "job" field.

func JobHasPrefix

func JobHasPrefix(v string) predicate.Run

JobHasPrefix applies the HasPrefix predicate on the "job" field.

func JobHasSuffix

func JobHasSuffix(v string) predicate.Run

JobHasSuffix applies the HasSuffix predicate on the "job" field.

func JobIn

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

JobIn applies the In predicate on the "job" field.

func JobLT

func JobLT(v string) predicate.Run

JobLT applies the LT predicate on the "job" field.

func JobLTE

func JobLTE(v string) predicate.Run

JobLTE applies the LTE predicate on the "job" field.

func JobNEQ

func JobNEQ(v string) predicate.Run

JobNEQ applies the NEQ predicate on the "job" field.

func JobNotIn

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

JobNotIn applies the NotIn predicate on the "job" field.

func Log

func Log(v string) predicate.Run

Log applies equality check predicate on the "log" field. It's identical to LogEQ.

func LogContains

func LogContains(v string) predicate.Run

LogContains applies the Contains predicate on the "log" field.

func LogContainsFold

func LogContainsFold(v string) predicate.Run

LogContainsFold applies the ContainsFold predicate on the "log" field.

func LogEQ

func LogEQ(v string) predicate.Run

LogEQ applies the EQ predicate on the "log" field.

func LogEqualFold

func LogEqualFold(v string) predicate.Run

LogEqualFold applies the EqualFold predicate on the "log" field.

func LogGT

func LogGT(v string) predicate.Run

LogGT applies the GT predicate on the "log" field.

func LogGTE

func LogGTE(v string) predicate.Run

LogGTE applies the GTE predicate on the "log" field.

func LogHasPrefix

func LogHasPrefix(v string) predicate.Run

LogHasPrefix applies the HasPrefix predicate on the "log" field.

func LogHasSuffix

func LogHasSuffix(v string) predicate.Run

LogHasSuffix applies the HasSuffix predicate on the "log" field.

func LogIn

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

LogIn applies the In predicate on the "log" field.

func LogIsNil

func LogIsNil() predicate.Run

LogIsNil applies the IsNil predicate on the "log" field.

func LogLT

func LogLT(v string) predicate.Run

LogLT applies the LT predicate on the "log" field.

func LogLTE

func LogLTE(v string) predicate.Run

LogLTE applies the LTE predicate on the "log" field.

func LogNEQ

func LogNEQ(v string) predicate.Run

LogNEQ applies the NEQ predicate on the "log" field.

func LogNotIn

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

LogNotIn applies the NotIn predicate on the "log" field.

func LogNotNil

func LogNotNil() predicate.Run

LogNotNil applies the NotNil predicate on the "log" 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 predicates with the OR operator between them.

func Start

func Start(v time.Time) predicate.Run

Start applies equality check predicate on the "start" field. It's identical to StartEQ.

func StartEQ

func StartEQ(v time.Time) predicate.Run

StartEQ applies the EQ predicate on the "start" field.

func StartGT

func StartGT(v time.Time) predicate.Run

StartGT applies the GT predicate on the "start" field.

func StartGTE

func StartGTE(v time.Time) predicate.Run

StartGTE applies the GTE predicate on the "start" field.

func StartIn

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

StartIn applies the In predicate on the "start" field.

func StartIsNil

func StartIsNil() predicate.Run

StartIsNil applies the IsNil predicate on the "start" field.

func StartLT

func StartLT(v time.Time) predicate.Run

StartLT applies the LT predicate on the "start" field.

func StartLTE

func StartLTE(v time.Time) predicate.Run

StartLTE applies the LTE predicate on the "start" field.

func StartNEQ

func StartNEQ(v time.Time) predicate.Run

StartNEQ applies the NEQ predicate on the "start" field.

func StartNotIn

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

StartNotIn applies the NotIn predicate on the "start" field.

func StartNotNil

func StartNotNil() predicate.Run

StartNotNil applies the NotNil predicate on the "start" 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 ValidColumn

func ValidColumn(column string) bool

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

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Run queries.

func ByEnd

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

ByEnd orders the results by the end field.

func ByID

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

ByID orders the results by the id field.

func ByJob

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

ByJob orders the results by the job field.

func ByLog

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

ByLog orders the results by the log field.

func ByStart

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

ByStart orders the results by the start field.

func ByStatus

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

ByStatus orders the results by the status field.

type Status

type Status string

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

const (
	StatusRunning    Status = "running"
	StatusFailed     Status = "failed"
	StatusSuccessful Status = "successful"
)

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