task

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2022 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the task type in the database.
	Label = "task"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldQueueTime holds the string denoting the queuetime field in the database.
	FieldQueueTime = "queue_time"
	// FieldLastChangedTime holds the string denoting the lastchangedtime field in the database.
	FieldLastChangedTime = "last_changed_time"
	// FieldClaimTime holds the string denoting the claimtime field in the database.
	FieldClaimTime = "claim_time"
	// FieldExecStartTime holds the string denoting the execstarttime field in the database.
	FieldExecStartTime = "exec_start_time"
	// FieldExecStopTime holds the string denoting the execstoptime field in the database.
	FieldExecStopTime = "exec_stop_time"
	// FieldContent holds the string denoting the content field in the database.
	FieldContent = "content"
	// FieldOutput holds the string denoting the output field in the database.
	FieldOutput = "output"
	// FieldError holds the string denoting the error field in the database.
	FieldError = "error"
	// FieldSessionID holds the string denoting the sessionid field in the database.
	FieldSessionID = "session_id"
	// EdgeTags holds the string denoting the tags edge name in mutations.
	EdgeTags = "tags"
	// EdgeJob holds the string denoting the job edge name in mutations.
	EdgeJob = "job"
	// EdgeTarget holds the string denoting the target edge name in mutations.
	EdgeTarget = "target"
	// Table holds the table name of the task in the database.
	Table = "tasks"
	// TagsTable is the table that holds the tags relation/edge. The primary key declared below.
	TagsTable = "task_tags"
	// 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 = "tags"
	// JobTable is the table that holds the job relation/edge.
	JobTable = "tasks"
	// JobInverseTable is the table name for the Job entity.
	// It exists in this package in order to avoid circular dependency with the "job" package.
	JobInverseTable = "jobs"
	// JobColumn is the table column denoting the job relation/edge.
	JobColumn = "job_tasks"
	// TargetTable is the table that holds the target relation/edge.
	TargetTable = "tasks"
	// TargetInverseTable is the table name for the Target entity.
	// It exists in this package in order to avoid circular dependency with the "target" package.
	TargetInverseTable = "targets"
	// TargetColumn is the table column denoting the target relation/edge.
	TargetColumn = "target_tasks"
)

Variables

View Source
var (
	// DefaultQueueTime holds the default value on creation for the "QueueTime" field.
	DefaultQueueTime func() time.Time
	// ContentValidator is a validator for the "Content" field. It is called by the builders before save.
	ContentValidator func(string) error
	// SessionIDValidator is a validator for the "SessionID" field. It is called by the builders before save.
	SessionIDValidator func(string) error
)

Columns holds all SQL columns for task fields.

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

ForeignKeys holds the SQL foreign-keys that are owned by the "tasks" 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{"task_id", "tag_id"}
)

Functions

func And

func And(predicates ...predicate.Task) predicate.Task

And groups predicates with the AND operator between them.

func ClaimTime

func ClaimTime(v time.Time) predicate.Task

ClaimTime applies equality check predicate on the "ClaimTime" field. It's identical to ClaimTimeEQ.

func ClaimTimeEQ

func ClaimTimeEQ(v time.Time) predicate.Task

ClaimTimeEQ applies the EQ predicate on the "ClaimTime" field.

func ClaimTimeGT

func ClaimTimeGT(v time.Time) predicate.Task

ClaimTimeGT applies the GT predicate on the "ClaimTime" field.

func ClaimTimeGTE

func ClaimTimeGTE(v time.Time) predicate.Task

ClaimTimeGTE applies the GTE predicate on the "ClaimTime" field.

func ClaimTimeIn

func ClaimTimeIn(vs ...time.Time) predicate.Task

ClaimTimeIn applies the In predicate on the "ClaimTime" field.

func ClaimTimeIsNil

func ClaimTimeIsNil() predicate.Task

ClaimTimeIsNil applies the IsNil predicate on the "ClaimTime" field.

func ClaimTimeLT

func ClaimTimeLT(v time.Time) predicate.Task

ClaimTimeLT applies the LT predicate on the "ClaimTime" field.

func ClaimTimeLTE

func ClaimTimeLTE(v time.Time) predicate.Task

ClaimTimeLTE applies the LTE predicate on the "ClaimTime" field.

func ClaimTimeNEQ

func ClaimTimeNEQ(v time.Time) predicate.Task

ClaimTimeNEQ applies the NEQ predicate on the "ClaimTime" field.

func ClaimTimeNotIn

func ClaimTimeNotIn(vs ...time.Time) predicate.Task

ClaimTimeNotIn applies the NotIn predicate on the "ClaimTime" field.

func ClaimTimeNotNil

func ClaimTimeNotNil() predicate.Task

ClaimTimeNotNil applies the NotNil predicate on the "ClaimTime" field.

func Content

func Content(v string) predicate.Task

Content applies equality check predicate on the "Content" field. It's identical to ContentEQ.

func ContentContains

func ContentContains(v string) predicate.Task

ContentContains applies the Contains predicate on the "Content" field.

func ContentContainsFold

func ContentContainsFold(v string) predicate.Task

ContentContainsFold applies the ContainsFold predicate on the "Content" field.

func ContentEQ

func ContentEQ(v string) predicate.Task

ContentEQ applies the EQ predicate on the "Content" field.

func ContentEqualFold

func ContentEqualFold(v string) predicate.Task

ContentEqualFold applies the EqualFold predicate on the "Content" field.

func ContentGT

func ContentGT(v string) predicate.Task

ContentGT applies the GT predicate on the "Content" field.

func ContentGTE

func ContentGTE(v string) predicate.Task

ContentGTE applies the GTE predicate on the "Content" field.

func ContentHasPrefix

func ContentHasPrefix(v string) predicate.Task

ContentHasPrefix applies the HasPrefix predicate on the "Content" field.

func ContentHasSuffix

func ContentHasSuffix(v string) predicate.Task

ContentHasSuffix applies the HasSuffix predicate on the "Content" field.

func ContentIn

func ContentIn(vs ...string) predicate.Task

ContentIn applies the In predicate on the "Content" field.

func ContentLT

func ContentLT(v string) predicate.Task

ContentLT applies the LT predicate on the "Content" field.

func ContentLTE

func ContentLTE(v string) predicate.Task

ContentLTE applies the LTE predicate on the "Content" field.

func ContentNEQ

func ContentNEQ(v string) predicate.Task

ContentNEQ applies the NEQ predicate on the "Content" field.

func ContentNotIn

func ContentNotIn(vs ...string) predicate.Task

ContentNotIn applies the NotIn predicate on the "Content" field.

func Error

func Error(v string) predicate.Task

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

func ErrorContains

func ErrorContains(v string) predicate.Task

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

func ErrorContainsFold

func ErrorContainsFold(v string) predicate.Task

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

func ErrorEQ

func ErrorEQ(v string) predicate.Task

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

func ErrorEqualFold

func ErrorEqualFold(v string) predicate.Task

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

func ErrorGT

func ErrorGT(v string) predicate.Task

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

func ErrorGTE

func ErrorGTE(v string) predicate.Task

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

func ErrorHasPrefix

func ErrorHasPrefix(v string) predicate.Task

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

func ErrorHasSuffix

func ErrorHasSuffix(v string) predicate.Task

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

func ErrorIn

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

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

func ErrorIsNil

func ErrorIsNil() predicate.Task

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

func ErrorLT

func ErrorLT(v string) predicate.Task

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

func ErrorLTE

func ErrorLTE(v string) predicate.Task

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

func ErrorNEQ

func ErrorNEQ(v string) predicate.Task

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

func ErrorNotIn

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

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

func ErrorNotNil

func ErrorNotNil() predicate.Task

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

func ExecStartTime

func ExecStartTime(v time.Time) predicate.Task

ExecStartTime applies equality check predicate on the "ExecStartTime" field. It's identical to ExecStartTimeEQ.

func ExecStartTimeEQ

func ExecStartTimeEQ(v time.Time) predicate.Task

ExecStartTimeEQ applies the EQ predicate on the "ExecStartTime" field.

func ExecStartTimeGT

func ExecStartTimeGT(v time.Time) predicate.Task

ExecStartTimeGT applies the GT predicate on the "ExecStartTime" field.

func ExecStartTimeGTE

func ExecStartTimeGTE(v time.Time) predicate.Task

ExecStartTimeGTE applies the GTE predicate on the "ExecStartTime" field.

func ExecStartTimeIn

func ExecStartTimeIn(vs ...time.Time) predicate.Task

ExecStartTimeIn applies the In predicate on the "ExecStartTime" field.

func ExecStartTimeIsNil

func ExecStartTimeIsNil() predicate.Task

ExecStartTimeIsNil applies the IsNil predicate on the "ExecStartTime" field.

func ExecStartTimeLT

func ExecStartTimeLT(v time.Time) predicate.Task

ExecStartTimeLT applies the LT predicate on the "ExecStartTime" field.

func ExecStartTimeLTE

func ExecStartTimeLTE(v time.Time) predicate.Task

ExecStartTimeLTE applies the LTE predicate on the "ExecStartTime" field.

func ExecStartTimeNEQ

func ExecStartTimeNEQ(v time.Time) predicate.Task

ExecStartTimeNEQ applies the NEQ predicate on the "ExecStartTime" field.

func ExecStartTimeNotIn

func ExecStartTimeNotIn(vs ...time.Time) predicate.Task

ExecStartTimeNotIn applies the NotIn predicate on the "ExecStartTime" field.

func ExecStartTimeNotNil

func ExecStartTimeNotNil() predicate.Task

ExecStartTimeNotNil applies the NotNil predicate on the "ExecStartTime" field.

func ExecStopTime

func ExecStopTime(v time.Time) predicate.Task

ExecStopTime applies equality check predicate on the "ExecStopTime" field. It's identical to ExecStopTimeEQ.

func ExecStopTimeEQ

func ExecStopTimeEQ(v time.Time) predicate.Task

ExecStopTimeEQ applies the EQ predicate on the "ExecStopTime" field.

func ExecStopTimeGT

func ExecStopTimeGT(v time.Time) predicate.Task

ExecStopTimeGT applies the GT predicate on the "ExecStopTime" field.

func ExecStopTimeGTE

func ExecStopTimeGTE(v time.Time) predicate.Task

ExecStopTimeGTE applies the GTE predicate on the "ExecStopTime" field.

func ExecStopTimeIn

func ExecStopTimeIn(vs ...time.Time) predicate.Task

ExecStopTimeIn applies the In predicate on the "ExecStopTime" field.

func ExecStopTimeIsNil

func ExecStopTimeIsNil() predicate.Task

ExecStopTimeIsNil applies the IsNil predicate on the "ExecStopTime" field.

func ExecStopTimeLT

func ExecStopTimeLT(v time.Time) predicate.Task

ExecStopTimeLT applies the LT predicate on the "ExecStopTime" field.

func ExecStopTimeLTE

func ExecStopTimeLTE(v time.Time) predicate.Task

ExecStopTimeLTE applies the LTE predicate on the "ExecStopTime" field.

func ExecStopTimeNEQ

func ExecStopTimeNEQ(v time.Time) predicate.Task

ExecStopTimeNEQ applies the NEQ predicate on the "ExecStopTime" field.

func ExecStopTimeNotIn

func ExecStopTimeNotIn(vs ...time.Time) predicate.Task

ExecStopTimeNotIn applies the NotIn predicate on the "ExecStopTime" field.

func ExecStopTimeNotNil

func ExecStopTimeNotNil() predicate.Task

ExecStopTimeNotNil applies the NotNil predicate on the "ExecStopTime" field.

func HasJob

func HasJob() predicate.Task

HasJob applies the HasEdge predicate on the "job" edge.

func HasJobWith

func HasJobWith(preds ...predicate.Job) predicate.Task

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

func HasTags

func HasTags() predicate.Task

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

func HasTagsWith

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

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

func HasTarget added in v0.2.2

func HasTarget() predicate.Task

HasTarget applies the HasEdge predicate on the "target" edge.

func HasTargetWith added in v0.2.2

func HasTargetWith(preds ...predicate.Target) predicate.Task

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

func ID

func ID(id int) predicate.Task

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Task

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Task

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Task

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.Task

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Task

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Task

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Task

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.Task

IDNotIn applies the NotIn predicate on the ID field.

func LastChangedTime added in v0.2.2

func LastChangedTime(v time.Time) predicate.Task

LastChangedTime applies equality check predicate on the "LastChangedTime" field. It's identical to LastChangedTimeEQ.

func LastChangedTimeEQ added in v0.2.2

func LastChangedTimeEQ(v time.Time) predicate.Task

LastChangedTimeEQ applies the EQ predicate on the "LastChangedTime" field.

func LastChangedTimeGT added in v0.2.2

func LastChangedTimeGT(v time.Time) predicate.Task

LastChangedTimeGT applies the GT predicate on the "LastChangedTime" field.

func LastChangedTimeGTE added in v0.2.2

func LastChangedTimeGTE(v time.Time) predicate.Task

LastChangedTimeGTE applies the GTE predicate on the "LastChangedTime" field.

func LastChangedTimeIn added in v0.2.2

func LastChangedTimeIn(vs ...time.Time) predicate.Task

LastChangedTimeIn applies the In predicate on the "LastChangedTime" field.

func LastChangedTimeLT added in v0.2.2

func LastChangedTimeLT(v time.Time) predicate.Task

LastChangedTimeLT applies the LT predicate on the "LastChangedTime" field.

func LastChangedTimeLTE added in v0.2.2

func LastChangedTimeLTE(v time.Time) predicate.Task

LastChangedTimeLTE applies the LTE predicate on the "LastChangedTime" field.

func LastChangedTimeNEQ added in v0.2.2

func LastChangedTimeNEQ(v time.Time) predicate.Task

LastChangedTimeNEQ applies the NEQ predicate on the "LastChangedTime" field.

func LastChangedTimeNotIn added in v0.2.2

func LastChangedTimeNotIn(vs ...time.Time) predicate.Task

LastChangedTimeNotIn applies the NotIn predicate on the "LastChangedTime" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Task) predicate.Task

Or groups predicates with the OR operator between them.

func Output

func Output(v string) predicate.Task

Output applies equality check predicate on the "Output" field. It's identical to OutputEQ.

func OutputContains

func OutputContains(v string) predicate.Task

OutputContains applies the Contains predicate on the "Output" field.

func OutputContainsFold

func OutputContainsFold(v string) predicate.Task

OutputContainsFold applies the ContainsFold predicate on the "Output" field.

func OutputEQ

func OutputEQ(v string) predicate.Task

OutputEQ applies the EQ predicate on the "Output" field.

func OutputEqualFold

func OutputEqualFold(v string) predicate.Task

OutputEqualFold applies the EqualFold predicate on the "Output" field.

func OutputGT

func OutputGT(v string) predicate.Task

OutputGT applies the GT predicate on the "Output" field.

func OutputGTE

func OutputGTE(v string) predicate.Task

OutputGTE applies the GTE predicate on the "Output" field.

func OutputHasPrefix

func OutputHasPrefix(v string) predicate.Task

OutputHasPrefix applies the HasPrefix predicate on the "Output" field.

func OutputHasSuffix

func OutputHasSuffix(v string) predicate.Task

OutputHasSuffix applies the HasSuffix predicate on the "Output" field.

func OutputIn

func OutputIn(vs ...string) predicate.Task

OutputIn applies the In predicate on the "Output" field.

func OutputIsNil

func OutputIsNil() predicate.Task

OutputIsNil applies the IsNil predicate on the "Output" field.

func OutputLT

func OutputLT(v string) predicate.Task

OutputLT applies the LT predicate on the "Output" field.

func OutputLTE

func OutputLTE(v string) predicate.Task

OutputLTE applies the LTE predicate on the "Output" field.

func OutputNEQ

func OutputNEQ(v string) predicate.Task

OutputNEQ applies the NEQ predicate on the "Output" field.

func OutputNotIn

func OutputNotIn(vs ...string) predicate.Task

OutputNotIn applies the NotIn predicate on the "Output" field.

func OutputNotNil

func OutputNotNil() predicate.Task

OutputNotNil applies the NotNil predicate on the "Output" field.

func QueueTime

func QueueTime(v time.Time) predicate.Task

QueueTime applies equality check predicate on the "QueueTime" field. It's identical to QueueTimeEQ.

func QueueTimeEQ

func QueueTimeEQ(v time.Time) predicate.Task

QueueTimeEQ applies the EQ predicate on the "QueueTime" field.

func QueueTimeGT

func QueueTimeGT(v time.Time) predicate.Task

QueueTimeGT applies the GT predicate on the "QueueTime" field.

func QueueTimeGTE

func QueueTimeGTE(v time.Time) predicate.Task

QueueTimeGTE applies the GTE predicate on the "QueueTime" field.

func QueueTimeIn

func QueueTimeIn(vs ...time.Time) predicate.Task

QueueTimeIn applies the In predicate on the "QueueTime" field.

func QueueTimeLT

func QueueTimeLT(v time.Time) predicate.Task

QueueTimeLT applies the LT predicate on the "QueueTime" field.

func QueueTimeLTE

func QueueTimeLTE(v time.Time) predicate.Task

QueueTimeLTE applies the LTE predicate on the "QueueTime" field.

func QueueTimeNEQ

func QueueTimeNEQ(v time.Time) predicate.Task

QueueTimeNEQ applies the NEQ predicate on the "QueueTime" field.

func QueueTimeNotIn

func QueueTimeNotIn(vs ...time.Time) predicate.Task

QueueTimeNotIn applies the NotIn predicate on the "QueueTime" field.

func SessionID

func SessionID(v string) predicate.Task

SessionID applies equality check predicate on the "SessionID" field. It's identical to SessionIDEQ.

func SessionIDContains

func SessionIDContains(v string) predicate.Task

SessionIDContains applies the Contains predicate on the "SessionID" field.

func SessionIDContainsFold

func SessionIDContainsFold(v string) predicate.Task

SessionIDContainsFold applies the ContainsFold predicate on the "SessionID" field.

func SessionIDEQ

func SessionIDEQ(v string) predicate.Task

SessionIDEQ applies the EQ predicate on the "SessionID" field.

func SessionIDEqualFold

func SessionIDEqualFold(v string) predicate.Task

SessionIDEqualFold applies the EqualFold predicate on the "SessionID" field.

func SessionIDGT

func SessionIDGT(v string) predicate.Task

SessionIDGT applies the GT predicate on the "SessionID" field.

func SessionIDGTE

func SessionIDGTE(v string) predicate.Task

SessionIDGTE applies the GTE predicate on the "SessionID" field.

func SessionIDHasPrefix

func SessionIDHasPrefix(v string) predicate.Task

SessionIDHasPrefix applies the HasPrefix predicate on the "SessionID" field.

func SessionIDHasSuffix

func SessionIDHasSuffix(v string) predicate.Task

SessionIDHasSuffix applies the HasSuffix predicate on the "SessionID" field.

func SessionIDIn

func SessionIDIn(vs ...string) predicate.Task

SessionIDIn applies the In predicate on the "SessionID" field.

func SessionIDIsNil

func SessionIDIsNil() predicate.Task

SessionIDIsNil applies the IsNil predicate on the "SessionID" field.

func SessionIDLT

func SessionIDLT(v string) predicate.Task

SessionIDLT applies the LT predicate on the "SessionID" field.

func SessionIDLTE

func SessionIDLTE(v string) predicate.Task

SessionIDLTE applies the LTE predicate on the "SessionID" field.

func SessionIDNEQ

func SessionIDNEQ(v string) predicate.Task

SessionIDNEQ applies the NEQ predicate on the "SessionID" field.

func SessionIDNotIn

func SessionIDNotIn(vs ...string) predicate.Task

SessionIDNotIn applies the NotIn predicate on the "SessionID" field.

func SessionIDNotNil

func SessionIDNotNil() predicate.Task

SessionIDNotNil applies the NotNil predicate on the "SessionID" field.

func ValidColumn added in v0.4.3

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