job

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the job type in the database.
	Label = "job"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldStime holds the string denoting the stime field in the database.
	FieldStime = "stime"
	// FieldMtime holds the string denoting the mtime field in the database.
	FieldMtime = "mtime"
	// FieldClientID holds the string denoting the client_id field in the database.
	FieldClientID = "client_id"
	// FieldDefinition holds the string denoting the definition field in the database.
	FieldDefinition = "definition"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// FieldGroup holds the string denoting the group field in the database.
	FieldGroup = "group"
	// EdgeWorkflow holds the string denoting the workflow edge name in mutations.
	EdgeWorkflow = "workflow"
	// EdgeHistory holds the string denoting the history edge name in mutations.
	EdgeHistory = "history"
	// EdgeTags holds the string denoting the tags edge name in mutations.
	EdgeTags = "tags"
	// Table holds the table name of the job in the database.
	Table = "job"
	// WorkflowTable is the table that holds the workflow relation/edge.
	WorkflowTable = "job"
	// 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 = "workflow"
	// WorkflowColumn is the table column denoting the workflow relation/edge.
	WorkflowColumn = "workflow_jobs"
	// HistoryTable is the table that holds the history relation/edge.
	HistoryTable = "history"
	// HistoryInverseTable is the table name for the History entity.
	// It exists in this package in order to avoid circular dependency with the "history" package.
	HistoryInverseTable = "history"
	// HistoryColumn is the table column denoting the history relation/edge.
	HistoryColumn = "job_history"
	// TagsTable is the table that holds the tags relation/edge. The primary key declared below.
	TagsTable = "tag_jobs"
	// TagsInverseTable is the table name for the Tag entity.
	// It exists in this package in order to avoid circular dependency with the "tag" package.
	TagsInverseTable = "tag"
)

Variables

View Source
var (
	// DefaultStime holds the default value on creation for the "stime" field.
	DefaultStime func() time.Time
	// DefaultMtime holds the default value on creation for the "mtime" field.
	DefaultMtime func() time.Time
	// UpdateDefaultMtime holds the default value on update for the "mtime" field.
	UpdateDefaultMtime func() time.Time
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() string
	// 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 job fields.

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

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

View Source
var (
	// TagsPrimaryKey and TagsColumn2 are the table columns denoting the
	// primary key for the tags relation (M2M).
	TagsPrimaryKey = []string{"tag_id", "job_id"}
)

Functions

func And

func And(predicates ...predicate.Job) predicate.Job

And groups predicates with the AND operator between them.

func ClientID

func ClientID(v string) predicate.Job

ClientID applies equality check predicate on the "client_id" field. It's identical to ClientIDEQ.

func ClientIDContains

func ClientIDContains(v string) predicate.Job

ClientIDContains applies the Contains predicate on the "client_id" field.

func ClientIDContainsFold

func ClientIDContainsFold(v string) predicate.Job

ClientIDContainsFold applies the ContainsFold predicate on the "client_id" field.

func ClientIDEQ

func ClientIDEQ(v string) predicate.Job

ClientIDEQ applies the EQ predicate on the "client_id" field.

func ClientIDEqualFold

func ClientIDEqualFold(v string) predicate.Job

ClientIDEqualFold applies the EqualFold predicate on the "client_id" field.

func ClientIDGT

func ClientIDGT(v string) predicate.Job

ClientIDGT applies the GT predicate on the "client_id" field.

func ClientIDGTE

func ClientIDGTE(v string) predicate.Job

ClientIDGTE applies the GTE predicate on the "client_id" field.

func ClientIDHasPrefix

func ClientIDHasPrefix(v string) predicate.Job

ClientIDHasPrefix applies the HasPrefix predicate on the "client_id" field.

func ClientIDHasSuffix

func ClientIDHasSuffix(v string) predicate.Job

ClientIDHasSuffix applies the HasSuffix predicate on the "client_id" field.

func ClientIDIn

func ClientIDIn(vs ...string) predicate.Job

ClientIDIn applies the In predicate on the "client_id" field.

func ClientIDLT

func ClientIDLT(v string) predicate.Job

ClientIDLT applies the LT predicate on the "client_id" field.

func ClientIDLTE

func ClientIDLTE(v string) predicate.Job

ClientIDLTE applies the LTE predicate on the "client_id" field.

func ClientIDNEQ

func ClientIDNEQ(v string) predicate.Job

ClientIDNEQ applies the NEQ predicate on the "client_id" field.

func ClientIDNotIn

func ClientIDNotIn(vs ...string) predicate.Job

ClientIDNotIn applies the NotIn predicate on the "client_id" field.

func DefinitionIsNil

func DefinitionIsNil() predicate.Job

DefinitionIsNil applies the IsNil predicate on the "definition" field.

func DefinitionNotNil

func DefinitionNotNil() predicate.Job

DefinitionNotNil applies the NotNil predicate on the "definition" field.

func Group

func Group(v string) predicate.Job

Group applies equality check predicate on the "group" field. It's identical to GroupEQ.

func GroupContains

func GroupContains(v string) predicate.Job

GroupContains applies the Contains predicate on the "group" field.

func GroupContainsFold

func GroupContainsFold(v string) predicate.Job

GroupContainsFold applies the ContainsFold predicate on the "group" field.

func GroupEQ

func GroupEQ(v string) predicate.Job

GroupEQ applies the EQ predicate on the "group" field.

func GroupEqualFold

func GroupEqualFold(v string) predicate.Job

GroupEqualFold applies the EqualFold predicate on the "group" field.

func GroupGT

func GroupGT(v string) predicate.Job

GroupGT applies the GT predicate on the "group" field.

func GroupGTE

func GroupGTE(v string) predicate.Job

GroupGTE applies the GTE predicate on the "group" field.

func GroupHasPrefix

func GroupHasPrefix(v string) predicate.Job

GroupHasPrefix applies the HasPrefix predicate on the "group" field.

func GroupHasSuffix

func GroupHasSuffix(v string) predicate.Job

GroupHasSuffix applies the HasSuffix predicate on the "group" field.

func GroupIn

func GroupIn(vs ...string) predicate.Job

GroupIn applies the In predicate on the "group" field.

func GroupIsNil

func GroupIsNil() predicate.Job

GroupIsNil applies the IsNil predicate on the "group" field.

func GroupLT

func GroupLT(v string) predicate.Job

GroupLT applies the LT predicate on the "group" field.

func GroupLTE

func GroupLTE(v string) predicate.Job

GroupLTE applies the LTE predicate on the "group" field.

func GroupNEQ

func GroupNEQ(v string) predicate.Job

GroupNEQ applies the NEQ predicate on the "group" field.

func GroupNotIn

func GroupNotIn(vs ...string) predicate.Job

GroupNotIn applies the NotIn predicate on the "group" field.

func GroupNotNil

func GroupNotNil() predicate.Job

GroupNotNil applies the NotNil predicate on the "group" field.

func HasHistory

func HasHistory() predicate.Job

HasHistory applies the HasEdge predicate on the "history" edge.

func HasHistoryWith

func HasHistoryWith(preds ...predicate.History) predicate.Job

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

func HasTags

func HasTags() predicate.Job

HasTags applies the HasEdge predicate on the "tags" edge.

func HasTagsWith

func HasTagsWith(preds ...predicate.Tag) predicate.Job

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

func HasWorkflow

func HasWorkflow() predicate.Job

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

func HasWorkflowWith

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

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

func ID

func ID(id string) predicate.Job

ID filters vertices based on their ID field.

func IDContainsFold

func IDContainsFold(id string) predicate.Job

IDContainsFold applies the ContainsFold predicate on the ID field.

func IDEQ

func IDEQ(id string) predicate.Job

IDEQ applies the EQ predicate on the ID field.

func IDEqualFold

func IDEqualFold(id string) predicate.Job

IDEqualFold applies the EqualFold predicate on the ID field.

func IDGT

func IDGT(id string) predicate.Job

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.Job

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.Job

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.Job

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.Job

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Mtime

func Mtime(v time.Time) predicate.Job

Mtime applies equality check predicate on the "mtime" field. It's identical to MtimeEQ.

func MtimeEQ

func MtimeEQ(v time.Time) predicate.Job

MtimeEQ applies the EQ predicate on the "mtime" field.

func MtimeGT

func MtimeGT(v time.Time) predicate.Job

MtimeGT applies the GT predicate on the "mtime" field.

func MtimeGTE

func MtimeGTE(v time.Time) predicate.Job

MtimeGTE applies the GTE predicate on the "mtime" field.

func MtimeIn

func MtimeIn(vs ...time.Time) predicate.Job

MtimeIn applies the In predicate on the "mtime" field.

func MtimeLT

func MtimeLT(v time.Time) predicate.Job

MtimeLT applies the LT predicate on the "mtime" field.

func MtimeLTE

func MtimeLTE(v time.Time) predicate.Job

MtimeLTE applies the LTE predicate on the "mtime" field.

func MtimeNEQ

func MtimeNEQ(v time.Time) predicate.Job

MtimeNEQ applies the NEQ predicate on the "mtime" field.

func MtimeNotIn

func MtimeNotIn(vs ...time.Time) predicate.Job

MtimeNotIn applies the NotIn predicate on the "mtime" field.

func Not

func Not(p predicate.Job) predicate.Job

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Job) predicate.Job

Or groups predicates with the OR operator between them.

func Stime

func Stime(v time.Time) predicate.Job

Stime applies equality check predicate on the "stime" field. It's identical to StimeEQ.

func StimeEQ

func StimeEQ(v time.Time) predicate.Job

StimeEQ applies the EQ predicate on the "stime" field.

func StimeGT

func StimeGT(v time.Time) predicate.Job

StimeGT applies the GT predicate on the "stime" field.

func StimeGTE

func StimeGTE(v time.Time) predicate.Job

StimeGTE applies the GTE predicate on the "stime" field.

func StimeIn

func StimeIn(vs ...time.Time) predicate.Job

StimeIn applies the In predicate on the "stime" field.

func StimeLT

func StimeLT(v time.Time) predicate.Job

StimeLT applies the LT predicate on the "stime" field.

func StimeLTE

func StimeLTE(v time.Time) predicate.Job

StimeLTE applies the LTE predicate on the "stime" field.

func StimeNEQ

func StimeNEQ(v time.Time) predicate.Job

StimeNEQ applies the NEQ predicate on the "stime" field.

func StimeNotIn

func StimeNotIn(vs ...time.Time) predicate.Job

StimeNotIn applies the NotIn predicate on the "stime" field.

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 Job queries.

func ByClientID

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

ByClientID orders the results by the client_id field.

func ByGroup

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

ByGroup orders the results by the group field.

func ByHistory

func ByHistory(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByHistory orders the results by history terms.

func ByHistoryCount

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

ByHistoryCount orders the results by history count.

func ByID

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

ByID orders the results by the id field.

func ByMtime

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

ByMtime orders the results by the mtime field.

func ByStime

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

ByStime orders the results by the stime field.

func ByTags

func ByTags(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByTags orders the results by tags terms.

func ByTagsCount

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

ByTagsCount orders the results by tags count.

func ByWorkflowField

func ByWorkflowField(field string, opts ...sql.OrderTermOption) OrderOption

ByWorkflowField orders the results by workflow field.

Jump to

Keyboard shortcuts

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