Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Job) predicate.Job
- func ClientID(v string) predicate.Job
- func ClientIDContains(v string) predicate.Job
- func ClientIDContainsFold(v string) predicate.Job
- func ClientIDEQ(v string) predicate.Job
- func ClientIDEqualFold(v string) predicate.Job
- func ClientIDGT(v string) predicate.Job
- func ClientIDGTE(v string) predicate.Job
- func ClientIDHasPrefix(v string) predicate.Job
- func ClientIDHasSuffix(v string) predicate.Job
- func ClientIDIn(vs ...string) predicate.Job
- func ClientIDLT(v string) predicate.Job
- func ClientIDLTE(v string) predicate.Job
- func ClientIDNEQ(v string) predicate.Job
- func ClientIDNotIn(vs ...string) predicate.Job
- func DefinitionIsNil() predicate.Job
- func DefinitionNotNil() predicate.Job
- func Group(v string) predicate.Job
- func GroupContains(v string) predicate.Job
- func GroupContainsFold(v string) predicate.Job
- func GroupEQ(v string) predicate.Job
- func GroupEqualFold(v string) predicate.Job
- func GroupGT(v string) predicate.Job
- func GroupGTE(v string) predicate.Job
- func GroupHasPrefix(v string) predicate.Job
- func GroupHasSuffix(v string) predicate.Job
- func GroupIn(vs ...string) predicate.Job
- func GroupIsNil() predicate.Job
- func GroupLT(v string) predicate.Job
- func GroupLTE(v string) predicate.Job
- func GroupNEQ(v string) predicate.Job
- func GroupNotIn(vs ...string) predicate.Job
- func GroupNotNil() predicate.Job
- func HasHistory() predicate.Job
- func HasHistoryWith(preds ...predicate.History) predicate.Job
- func HasTags() predicate.Job
- func HasTagsWith(preds ...predicate.Tag) predicate.Job
- func HasWorkflow() predicate.Job
- func HasWorkflowWith(preds ...predicate.Workflow) predicate.Job
- func ID(id string) predicate.Job
- func IDContainsFold(id string) predicate.Job
- func IDEQ(id string) predicate.Job
- func IDEqualFold(id string) predicate.Job
- func IDGT(id string) predicate.Job
- func IDGTE(id string) predicate.Job
- func IDIn(ids ...string) predicate.Job
- func IDLT(id string) predicate.Job
- func IDLTE(id string) predicate.Job
- func IDNEQ(id string) predicate.Job
- func IDNotIn(ids ...string) predicate.Job
- func Mtime(v time.Time) predicate.Job
- func MtimeEQ(v time.Time) predicate.Job
- func MtimeGT(v time.Time) predicate.Job
- func MtimeGTE(v time.Time) predicate.Job
- func MtimeIn(vs ...time.Time) predicate.Job
- func MtimeLT(v time.Time) predicate.Job
- func MtimeLTE(v time.Time) predicate.Job
- func MtimeNEQ(v time.Time) predicate.Job
- func MtimeNotIn(vs ...time.Time) predicate.Job
- func Not(p predicate.Job) predicate.Job
- func Or(predicates ...predicate.Job) predicate.Job
- func Stime(v time.Time) predicate.Job
- func StimeEQ(v time.Time) predicate.Job
- func StimeGT(v time.Time) predicate.Job
- func StimeGTE(v time.Time) predicate.Job
- func StimeIn(vs ...time.Time) predicate.Job
- func StimeLT(v time.Time) predicate.Job
- func StimeLTE(v time.Time) predicate.Job
- func StimeNEQ(v time.Time) predicate.Job
- func StimeNotIn(vs ...time.Time) predicate.Job
- func ValidColumn(column string) bool
- type OrderOption
- func ByClientID(opts ...sql.OrderTermOption) OrderOption
- func ByGroup(opts ...sql.OrderTermOption) OrderOption
- func ByHistory(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByHistoryCount(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByMtime(opts ...sql.OrderTermOption) OrderOption
- func ByStime(opts ...sql.OrderTermOption) OrderOption
- func ByTags(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByTagsCount(opts ...sql.OrderTermOption) OrderOption
- func ByWorkflowField(field string, opts ...sql.OrderTermOption) OrderOption
Constants ¶
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 ¶
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 )
var Columns = []string{ FieldID, FieldStime, FieldMtime, FieldClientID, FieldDefinition, FieldStatus, FieldGroup, }
Columns holds all SQL columns for job fields.
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.
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 ClientID ¶
ClientID applies equality check predicate on the "client_id" field. It's identical to ClientIDEQ.
func ClientIDContains ¶
ClientIDContains applies the Contains predicate on the "client_id" field.
func ClientIDContainsFold ¶
ClientIDContainsFold applies the ContainsFold predicate on the "client_id" field.
func ClientIDEQ ¶
ClientIDEQ applies the EQ predicate on the "client_id" field.
func ClientIDEqualFold ¶
ClientIDEqualFold applies the EqualFold predicate on the "client_id" field.
func ClientIDGT ¶
ClientIDGT applies the GT predicate on the "client_id" field.
func ClientIDGTE ¶
ClientIDGTE applies the GTE predicate on the "client_id" field.
func ClientIDHasPrefix ¶
ClientIDHasPrefix applies the HasPrefix predicate on the "client_id" field.
func ClientIDHasSuffix ¶
ClientIDHasSuffix applies the HasSuffix predicate on the "client_id" field.
func ClientIDIn ¶
ClientIDIn applies the In predicate on the "client_id" field.
func ClientIDLT ¶
ClientIDLT applies the LT predicate on the "client_id" field.
func ClientIDLTE ¶
ClientIDLTE applies the LTE predicate on the "client_id" field.
func ClientIDNEQ ¶
ClientIDNEQ applies the NEQ predicate on the "client_id" field.
func ClientIDNotIn ¶
ClientIDNotIn applies the NotIn predicate on the "client_id" field.
func DefinitionIsNil ¶
DefinitionIsNil applies the IsNil predicate on the "definition" field.
func DefinitionNotNil ¶
DefinitionNotNil applies the NotNil predicate on the "definition" field.
func Group ¶
Group applies equality check predicate on the "group" field. It's identical to GroupEQ.
func GroupContains ¶
GroupContains applies the Contains predicate on the "group" field.
func GroupContainsFold ¶
GroupContainsFold applies the ContainsFold predicate on the "group" field.
func GroupEqualFold ¶
GroupEqualFold applies the EqualFold predicate on the "group" field.
func GroupHasPrefix ¶
GroupHasPrefix applies the HasPrefix predicate on the "group" field.
func GroupHasSuffix ¶
GroupHasSuffix applies the HasSuffix predicate on the "group" field.
func GroupIsNil ¶
GroupIsNil applies the IsNil predicate on the "group" field.
func GroupNotIn ¶
GroupNotIn applies the NotIn predicate on the "group" field.
func GroupNotNil ¶
GroupNotNil applies the NotNil predicate on the "group" field.
func HasHistory ¶
HasHistory applies the HasEdge predicate on the "history" edge.
func HasHistoryWith ¶
HasHistoryWith applies the HasEdge predicate on the "history" edge with a given conditions (other predicates).
func HasTagsWith ¶
HasTagsWith applies the HasEdge predicate on the "tags" edge with a given conditions (other predicates).
func HasWorkflow ¶
HasWorkflow applies the HasEdge predicate on the "workflow" edge.
func HasWorkflowWith ¶
HasWorkflowWith applies the HasEdge predicate on the "workflow" edge with a given conditions (other predicates).
func IDContainsFold ¶
IDContainsFold applies the ContainsFold predicate on the ID field.
func IDEqualFold ¶
IDEqualFold applies the EqualFold predicate on the ID field.
func Mtime ¶
Mtime applies equality check predicate on the "mtime" field. It's identical to MtimeEQ.
func MtimeNotIn ¶
MtimeNotIn applies the NotIn predicate on the "mtime" field.
func Stime ¶
Stime applies equality check predicate on the "stime" field. It's identical to StimeEQ.
func StimeNotIn ¶
StimeNotIn applies the NotIn predicate on the "stime" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
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.