task

package
v0.0.0-...-738d89c Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2023 License: AGPL-3.0 Imports: 9 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"
	// FieldTenantID holds the string denoting the tenant_id field in the database.
	FieldTenantID = "tenant_id"
	// FieldProcInstID holds the string denoting the proc_inst_id field in the database.
	FieldProcInstID = "proc_inst_id"
	// FieldProcDefID holds the string denoting the proc_def_id field in the database.
	FieldProcDefID = "proc_def_id"
	// FieldExecutionID holds the string denoting the execution_id field in the database.
	FieldExecutionID = "execution_id"
	// FieldRunID holds the string denoting the run_id field in the database.
	FieldRunID = "run_id"
	// FieldTaskDefKey holds the string denoting the task_def_key field in the database.
	FieldTaskDefKey = "task_def_key"
	// FieldParentID holds the string denoting the parent_id field in the database.
	FieldParentID = "parent_id"
	// FieldComments holds the string denoting the comments field in the database.
	FieldComments = "comments"
	// FieldAssignee holds the string denoting the assignee field in the database.
	FieldAssignee = "assignee"
	// FieldMemberCount holds the string denoting the member_count field in the database.
	FieldMemberCount = "member_count"
	// FieldUnfinishedCount holds the string denoting the unfinished_count field in the database.
	FieldUnfinishedCount = "unfinished_count"
	// FieldAgreeCount holds the string denoting the agree_count field in the database.
	FieldAgreeCount = "agree_count"
	// FieldKind holds the string denoting the kind field in the database.
	FieldKind = "kind"
	// FieldSequential holds the string denoting the sequential field in the database.
	FieldSequential = "sequential"
	// 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"
	// EdgeProcInst holds the string denoting the proc_inst edge name in mutations.
	EdgeProcInst = "proc_inst"
	// EdgeTaskIdentities holds the string denoting the task_identities edge name in mutations.
	EdgeTaskIdentities = "task_identities"
	// Table holds the table name of the task in the database.
	Table = "act_task"
	// ProcInstTable is the table that holds the proc_inst relation/edge.
	ProcInstTable = "act_task"
	// ProcInstInverseTable is the table name for the ProcInst entity.
	// It exists in this package in order to avoid circular dependency with the "procinst" package.
	ProcInstInverseTable = "act_proc_inst"
	// ProcInstColumn is the table column denoting the proc_inst relation/edge.
	ProcInstColumn = "proc_inst_id"
	// TaskIdentitiesTable is the table that holds the task_identities relation/edge.
	TaskIdentitiesTable = "act_identity_link"
	// TaskIdentitiesInverseTable is the table name for the IdentityLink entity.
	// It exists in this package in order to avoid circular dependency with the "identitylink" package.
	TaskIdentitiesInverseTable = "act_identity_link"
	// TaskIdentitiesColumn is the table column denoting the task_identities relation/edge.
	TaskIdentitiesColumn = "task_id"
)
View Source
const DefaultKind = KindOR

KindOR is the default value of the Kind enum.

View Source
const DefaultStatus = StatusCreated

StatusCreated is the default value of the Status enum.

Variables

View Source
var (
	Hooks        [1]ent.Hook
	Interceptors [1]ent.Interceptor
	// DefaultParentID holds the default value on creation for the "parent_id" field.
	DefaultParentID int
	// DefaultAgreeCount holds the default value on creation for the "agree_count" field.
	DefaultAgreeCount int32
	// DefaultSequential holds the default value on creation for the "sequential" field.
	DefaultSequential bool
	// 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
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() int
)

Note that the variables below are initialized by the runtime package on the initialization of the application. Therefore, it should be imported in the main as follows:

import _ "github.com/woocoos/workflow/ent/runtime"

Columns holds all SQL columns for task fields.

Functions

func AgreeCount

func AgreeCount(v int32) predicate.Task

AgreeCount applies equality check predicate on the "agree_count" field. It's identical to AgreeCountEQ.

func AgreeCountEQ

func AgreeCountEQ(v int32) predicate.Task

AgreeCountEQ applies the EQ predicate on the "agree_count" field.

func AgreeCountGT

func AgreeCountGT(v int32) predicate.Task

AgreeCountGT applies the GT predicate on the "agree_count" field.

func AgreeCountGTE

func AgreeCountGTE(v int32) predicate.Task

AgreeCountGTE applies the GTE predicate on the "agree_count" field.

func AgreeCountIn

func AgreeCountIn(vs ...int32) predicate.Task

AgreeCountIn applies the In predicate on the "agree_count" field.

func AgreeCountLT

func AgreeCountLT(v int32) predicate.Task

AgreeCountLT applies the LT predicate on the "agree_count" field.

func AgreeCountLTE

func AgreeCountLTE(v int32) predicate.Task

AgreeCountLTE applies the LTE predicate on the "agree_count" field.

func AgreeCountNEQ

func AgreeCountNEQ(v int32) predicate.Task

AgreeCountNEQ applies the NEQ predicate on the "agree_count" field.

func AgreeCountNotIn

func AgreeCountNotIn(vs ...int32) predicate.Task

AgreeCountNotIn applies the NotIn predicate on the "agree_count" field.

func And

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

And groups predicates with the AND operator between them.

func Assignee

func Assignee(v string) predicate.Task

Assignee applies equality check predicate on the "assignee" field. It's identical to AssigneeEQ.

func AssigneeContains

func AssigneeContains(v string) predicate.Task

AssigneeContains applies the Contains predicate on the "assignee" field.

func AssigneeContainsFold

func AssigneeContainsFold(v string) predicate.Task

AssigneeContainsFold applies the ContainsFold predicate on the "assignee" field.

func AssigneeEQ

func AssigneeEQ(v string) predicate.Task

AssigneeEQ applies the EQ predicate on the "assignee" field.

func AssigneeEqualFold

func AssigneeEqualFold(v string) predicate.Task

AssigneeEqualFold applies the EqualFold predicate on the "assignee" field.

func AssigneeGT

func AssigneeGT(v string) predicate.Task

AssigneeGT applies the GT predicate on the "assignee" field.

func AssigneeGTE

func AssigneeGTE(v string) predicate.Task

AssigneeGTE applies the GTE predicate on the "assignee" field.

func AssigneeHasPrefix

func AssigneeHasPrefix(v string) predicate.Task

AssigneeHasPrefix applies the HasPrefix predicate on the "assignee" field.

func AssigneeHasSuffix

func AssigneeHasSuffix(v string) predicate.Task

AssigneeHasSuffix applies the HasSuffix predicate on the "assignee" field.

func AssigneeIn

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

AssigneeIn applies the In predicate on the "assignee" field.

func AssigneeIsNil

func AssigneeIsNil() predicate.Task

AssigneeIsNil applies the IsNil predicate on the "assignee" field.

func AssigneeLT

func AssigneeLT(v string) predicate.Task

AssigneeLT applies the LT predicate on the "assignee" field.

func AssigneeLTE

func AssigneeLTE(v string) predicate.Task

AssigneeLTE applies the LTE predicate on the "assignee" field.

func AssigneeNEQ

func AssigneeNEQ(v string) predicate.Task

AssigneeNEQ applies the NEQ predicate on the "assignee" field.

func AssigneeNotIn

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

AssigneeNotIn applies the NotIn predicate on the "assignee" field.

func AssigneeNotNil

func AssigneeNotNil() predicate.Task

AssigneeNotNil applies the NotNil predicate on the "assignee" field.

func Comments

func Comments(v string) predicate.Task

Comments applies equality check predicate on the "comments" field. It's identical to CommentsEQ.

func CommentsContains

func CommentsContains(v string) predicate.Task

CommentsContains applies the Contains predicate on the "comments" field.

func CommentsContainsFold

func CommentsContainsFold(v string) predicate.Task

CommentsContainsFold applies the ContainsFold predicate on the "comments" field.

func CommentsEQ

func CommentsEQ(v string) predicate.Task

CommentsEQ applies the EQ predicate on the "comments" field.

func CommentsEqualFold

func CommentsEqualFold(v string) predicate.Task

CommentsEqualFold applies the EqualFold predicate on the "comments" field.

func CommentsGT

func CommentsGT(v string) predicate.Task

CommentsGT applies the GT predicate on the "comments" field.

func CommentsGTE

func CommentsGTE(v string) predicate.Task

CommentsGTE applies the GTE predicate on the "comments" field.

func CommentsHasPrefix

func CommentsHasPrefix(v string) predicate.Task

CommentsHasPrefix applies the HasPrefix predicate on the "comments" field.

func CommentsHasSuffix

func CommentsHasSuffix(v string) predicate.Task

CommentsHasSuffix applies the HasSuffix predicate on the "comments" field.

func CommentsIn

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

CommentsIn applies the In predicate on the "comments" field.

func CommentsIsNil

func CommentsIsNil() predicate.Task

CommentsIsNil applies the IsNil predicate on the "comments" field.

func CommentsLT

func CommentsLT(v string) predicate.Task

CommentsLT applies the LT predicate on the "comments" field.

func CommentsLTE

func CommentsLTE(v string) predicate.Task

CommentsLTE applies the LTE predicate on the "comments" field.

func CommentsNEQ

func CommentsNEQ(v string) predicate.Task

CommentsNEQ applies the NEQ predicate on the "comments" field.

func CommentsNotIn

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

CommentsNotIn applies the NotIn predicate on the "comments" field.

func CommentsNotNil

func CommentsNotNil() predicate.Task

CommentsNotNil applies the NotNil predicate on the "comments" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Task

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Task

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Task

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Task

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Task

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Task

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Task

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

func CreatedAtNotIn

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

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

func ExecutionID

func ExecutionID(v string) predicate.Task

ExecutionID applies equality check predicate on the "execution_id" field. It's identical to ExecutionIDEQ.

func ExecutionIDContains

func ExecutionIDContains(v string) predicate.Task

ExecutionIDContains applies the Contains predicate on the "execution_id" field.

func ExecutionIDContainsFold

func ExecutionIDContainsFold(v string) predicate.Task

ExecutionIDContainsFold applies the ContainsFold predicate on the "execution_id" field.

func ExecutionIDEQ

func ExecutionIDEQ(v string) predicate.Task

ExecutionIDEQ applies the EQ predicate on the "execution_id" field.

func ExecutionIDEqualFold

func ExecutionIDEqualFold(v string) predicate.Task

ExecutionIDEqualFold applies the EqualFold predicate on the "execution_id" field.

func ExecutionIDGT

func ExecutionIDGT(v string) predicate.Task

ExecutionIDGT applies the GT predicate on the "execution_id" field.

func ExecutionIDGTE

func ExecutionIDGTE(v string) predicate.Task

ExecutionIDGTE applies the GTE predicate on the "execution_id" field.

func ExecutionIDHasPrefix

func ExecutionIDHasPrefix(v string) predicate.Task

ExecutionIDHasPrefix applies the HasPrefix predicate on the "execution_id" field.

func ExecutionIDHasSuffix

func ExecutionIDHasSuffix(v string) predicate.Task

ExecutionIDHasSuffix applies the HasSuffix predicate on the "execution_id" field.

func ExecutionIDIn

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

ExecutionIDIn applies the In predicate on the "execution_id" field.

func ExecutionIDLT

func ExecutionIDLT(v string) predicate.Task

ExecutionIDLT applies the LT predicate on the "execution_id" field.

func ExecutionIDLTE

func ExecutionIDLTE(v string) predicate.Task

ExecutionIDLTE applies the LTE predicate on the "execution_id" field.

func ExecutionIDNEQ

func ExecutionIDNEQ(v string) predicate.Task

ExecutionIDNEQ applies the NEQ predicate on the "execution_id" field.

func ExecutionIDNotIn

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

ExecutionIDNotIn applies the NotIn predicate on the "execution_id" field.

func HasProcInst

func HasProcInst() predicate.Task

HasProcInst applies the HasEdge predicate on the "proc_inst" edge.

func HasProcInstWith

func HasProcInstWith(preds ...predicate.ProcInst) predicate.Task

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

func HasTaskIdentities

func HasTaskIdentities() predicate.Task

HasTaskIdentities applies the HasEdge predicate on the "task_identities" edge.

func HasTaskIdentitiesWith

func HasTaskIdentitiesWith(preds ...predicate.IdentityLink) predicate.Task

HasTaskIdentitiesWith applies the HasEdge predicate on the "task_identities" 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 KindEQ

func KindEQ(v Kind) predicate.Task

KindEQ applies the EQ predicate on the "kind" field.

func KindIn

func KindIn(vs ...Kind) predicate.Task

KindIn applies the In predicate on the "kind" field.

func KindNEQ

func KindNEQ(v Kind) predicate.Task

KindNEQ applies the NEQ predicate on the "kind" field.

func KindNotIn

func KindNotIn(vs ...Kind) predicate.Task

KindNotIn applies the NotIn predicate on the "kind" field.

func KindValidator

func KindValidator(k Kind) error

KindValidator is a validator for the "kind" field enum values. It is called by the builders before save.

func MemberCount

func MemberCount(v int32) predicate.Task

MemberCount applies equality check predicate on the "member_count" field. It's identical to MemberCountEQ.

func MemberCountEQ

func MemberCountEQ(v int32) predicate.Task

MemberCountEQ applies the EQ predicate on the "member_count" field.

func MemberCountGT

func MemberCountGT(v int32) predicate.Task

MemberCountGT applies the GT predicate on the "member_count" field.

func MemberCountGTE

func MemberCountGTE(v int32) predicate.Task

MemberCountGTE applies the GTE predicate on the "member_count" field.

func MemberCountIn

func MemberCountIn(vs ...int32) predicate.Task

MemberCountIn applies the In predicate on the "member_count" field.

func MemberCountLT

func MemberCountLT(v int32) predicate.Task

MemberCountLT applies the LT predicate on the "member_count" field.

func MemberCountLTE

func MemberCountLTE(v int32) predicate.Task

MemberCountLTE applies the LTE predicate on the "member_count" field.

func MemberCountNEQ

func MemberCountNEQ(v int32) predicate.Task

MemberCountNEQ applies the NEQ predicate on the "member_count" field.

func MemberCountNotIn

func MemberCountNotIn(vs ...int32) predicate.Task

MemberCountNotIn applies the NotIn predicate on the "member_count" 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 ParentID

func ParentID(v int) predicate.Task

ParentID applies equality check predicate on the "parent_id" field. It's identical to ParentIDEQ.

func ParentIDEQ

func ParentIDEQ(v int) predicate.Task

ParentIDEQ applies the EQ predicate on the "parent_id" field.

func ParentIDGT

func ParentIDGT(v int) predicate.Task

ParentIDGT applies the GT predicate on the "parent_id" field.

func ParentIDGTE

func ParentIDGTE(v int) predicate.Task

ParentIDGTE applies the GTE predicate on the "parent_id" field.

func ParentIDIn

func ParentIDIn(vs ...int) predicate.Task

ParentIDIn applies the In predicate on the "parent_id" field.

func ParentIDIsNil

func ParentIDIsNil() predicate.Task

ParentIDIsNil applies the IsNil predicate on the "parent_id" field.

func ParentIDLT

func ParentIDLT(v int) predicate.Task

ParentIDLT applies the LT predicate on the "parent_id" field.

func ParentIDLTE

func ParentIDLTE(v int) predicate.Task

ParentIDLTE applies the LTE predicate on the "parent_id" field.

func ParentIDNEQ

func ParentIDNEQ(v int) predicate.Task

ParentIDNEQ applies the NEQ predicate on the "parent_id" field.

func ParentIDNotIn

func ParentIDNotIn(vs ...int) predicate.Task

ParentIDNotIn applies the NotIn predicate on the "parent_id" field.

func ParentIDNotNil

func ParentIDNotNil() predicate.Task

ParentIDNotNil applies the NotNil predicate on the "parent_id" field.

func ProcDefID

func ProcDefID(v int) predicate.Task

ProcDefID applies equality check predicate on the "proc_def_id" field. It's identical to ProcDefIDEQ.

func ProcDefIDEQ

func ProcDefIDEQ(v int) predicate.Task

ProcDefIDEQ applies the EQ predicate on the "proc_def_id" field.

func ProcDefIDGT

func ProcDefIDGT(v int) predicate.Task

ProcDefIDGT applies the GT predicate on the "proc_def_id" field.

func ProcDefIDGTE

func ProcDefIDGTE(v int) predicate.Task

ProcDefIDGTE applies the GTE predicate on the "proc_def_id" field.

func ProcDefIDIn

func ProcDefIDIn(vs ...int) predicate.Task

ProcDefIDIn applies the In predicate on the "proc_def_id" field.

func ProcDefIDLT

func ProcDefIDLT(v int) predicate.Task

ProcDefIDLT applies the LT predicate on the "proc_def_id" field.

func ProcDefIDLTE

func ProcDefIDLTE(v int) predicate.Task

ProcDefIDLTE applies the LTE predicate on the "proc_def_id" field.

func ProcDefIDNEQ

func ProcDefIDNEQ(v int) predicate.Task

ProcDefIDNEQ applies the NEQ predicate on the "proc_def_id" field.

func ProcDefIDNotIn

func ProcDefIDNotIn(vs ...int) predicate.Task

ProcDefIDNotIn applies the NotIn predicate on the "proc_def_id" field.

func ProcInstID

func ProcInstID(v int) predicate.Task

ProcInstID applies equality check predicate on the "proc_inst_id" field. It's identical to ProcInstIDEQ.

func ProcInstIDEQ

func ProcInstIDEQ(v int) predicate.Task

ProcInstIDEQ applies the EQ predicate on the "proc_inst_id" field.

func ProcInstIDIn

func ProcInstIDIn(vs ...int) predicate.Task

ProcInstIDIn applies the In predicate on the "proc_inst_id" field.

func ProcInstIDNEQ

func ProcInstIDNEQ(v int) predicate.Task

ProcInstIDNEQ applies the NEQ predicate on the "proc_inst_id" field.

func ProcInstIDNotIn

func ProcInstIDNotIn(vs ...int) predicate.Task

ProcInstIDNotIn applies the NotIn predicate on the "proc_inst_id" field.

func RunID

func RunID(v string) predicate.Task

RunID applies equality check predicate on the "run_id" field. It's identical to RunIDEQ.

func RunIDContains

func RunIDContains(v string) predicate.Task

RunIDContains applies the Contains predicate on the "run_id" field.

func RunIDContainsFold

func RunIDContainsFold(v string) predicate.Task

RunIDContainsFold applies the ContainsFold predicate on the "run_id" field.

func RunIDEQ

func RunIDEQ(v string) predicate.Task

RunIDEQ applies the EQ predicate on the "run_id" field.

func RunIDEqualFold

func RunIDEqualFold(v string) predicate.Task

RunIDEqualFold applies the EqualFold predicate on the "run_id" field.

func RunIDGT

func RunIDGT(v string) predicate.Task

RunIDGT applies the GT predicate on the "run_id" field.

func RunIDGTE

func RunIDGTE(v string) predicate.Task

RunIDGTE applies the GTE predicate on the "run_id" field.

func RunIDHasPrefix

func RunIDHasPrefix(v string) predicate.Task

RunIDHasPrefix applies the HasPrefix predicate on the "run_id" field.

func RunIDHasSuffix

func RunIDHasSuffix(v string) predicate.Task

RunIDHasSuffix applies the HasSuffix predicate on the "run_id" field.

func RunIDIn

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

RunIDIn applies the In predicate on the "run_id" field.

func RunIDIsNil

func RunIDIsNil() predicate.Task

RunIDIsNil applies the IsNil predicate on the "run_id" field.

func RunIDLT

func RunIDLT(v string) predicate.Task

RunIDLT applies the LT predicate on the "run_id" field.

func RunIDLTE

func RunIDLTE(v string) predicate.Task

RunIDLTE applies the LTE predicate on the "run_id" field.

func RunIDNEQ

func RunIDNEQ(v string) predicate.Task

RunIDNEQ applies the NEQ predicate on the "run_id" field.

func RunIDNotIn

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

RunIDNotIn applies the NotIn predicate on the "run_id" field.

func RunIDNotNil

func RunIDNotNil() predicate.Task

RunIDNotNil applies the NotNil predicate on the "run_id" field.

func Sequential

func Sequential(v bool) predicate.Task

Sequential applies equality check predicate on the "sequential" field. It's identical to SequentialEQ.

func SequentialEQ

func SequentialEQ(v bool) predicate.Task

SequentialEQ applies the EQ predicate on the "sequential" field.

func SequentialNEQ

func SequentialNEQ(v bool) predicate.Task

SequentialNEQ applies the NEQ predicate on the "sequential" field.

func StatusEQ

func StatusEQ(v Status) predicate.Task

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

func StatusIn

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

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

func StatusNEQ

func StatusNEQ(v Status) predicate.Task

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

func StatusNotIn

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

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 TaskDefKey

func TaskDefKey(v string) predicate.Task

TaskDefKey applies equality check predicate on the "task_def_key" field. It's identical to TaskDefKeyEQ.

func TaskDefKeyContains

func TaskDefKeyContains(v string) predicate.Task

TaskDefKeyContains applies the Contains predicate on the "task_def_key" field.

func TaskDefKeyContainsFold

func TaskDefKeyContainsFold(v string) predicate.Task

TaskDefKeyContainsFold applies the ContainsFold predicate on the "task_def_key" field.

func TaskDefKeyEQ

func TaskDefKeyEQ(v string) predicate.Task

TaskDefKeyEQ applies the EQ predicate on the "task_def_key" field.

func TaskDefKeyEqualFold

func TaskDefKeyEqualFold(v string) predicate.Task

TaskDefKeyEqualFold applies the EqualFold predicate on the "task_def_key" field.

func TaskDefKeyGT

func TaskDefKeyGT(v string) predicate.Task

TaskDefKeyGT applies the GT predicate on the "task_def_key" field.

func TaskDefKeyGTE

func TaskDefKeyGTE(v string) predicate.Task

TaskDefKeyGTE applies the GTE predicate on the "task_def_key" field.

func TaskDefKeyHasPrefix

func TaskDefKeyHasPrefix(v string) predicate.Task

TaskDefKeyHasPrefix applies the HasPrefix predicate on the "task_def_key" field.

func TaskDefKeyHasSuffix

func TaskDefKeyHasSuffix(v string) predicate.Task

TaskDefKeyHasSuffix applies the HasSuffix predicate on the "task_def_key" field.

func TaskDefKeyIn

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

TaskDefKeyIn applies the In predicate on the "task_def_key" field.

func TaskDefKeyLT

func TaskDefKeyLT(v string) predicate.Task

TaskDefKeyLT applies the LT predicate on the "task_def_key" field.

func TaskDefKeyLTE

func TaskDefKeyLTE(v string) predicate.Task

TaskDefKeyLTE applies the LTE predicate on the "task_def_key" field.

func TaskDefKeyNEQ

func TaskDefKeyNEQ(v string) predicate.Task

TaskDefKeyNEQ applies the NEQ predicate on the "task_def_key" field.

func TaskDefKeyNotIn

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

TaskDefKeyNotIn applies the NotIn predicate on the "task_def_key" field.

func TenantID

func TenantID(v int) predicate.Task

TenantID applies equality check predicate on the "tenant_id" field. It's identical to TenantIDEQ.

func TenantIDEQ

func TenantIDEQ(v int) predicate.Task

TenantIDEQ applies the EQ predicate on the "tenant_id" field.

func TenantIDGT

func TenantIDGT(v int) predicate.Task

TenantIDGT applies the GT predicate on the "tenant_id" field.

func TenantIDGTE

func TenantIDGTE(v int) predicate.Task

TenantIDGTE applies the GTE predicate on the "tenant_id" field.

func TenantIDIn

func TenantIDIn(vs ...int) predicate.Task

TenantIDIn applies the In predicate on the "tenant_id" field.

func TenantIDLT

func TenantIDLT(v int) predicate.Task

TenantIDLT applies the LT predicate on the "tenant_id" field.

func TenantIDLTE

func TenantIDLTE(v int) predicate.Task

TenantIDLTE applies the LTE predicate on the "tenant_id" field.

func TenantIDNEQ

func TenantIDNEQ(v int) predicate.Task

TenantIDNEQ applies the NEQ predicate on the "tenant_id" field.

func TenantIDNotIn

func TenantIDNotIn(vs ...int) predicate.Task

TenantIDNotIn applies the NotIn predicate on the "tenant_id" field.

func UnfinishedCount

func UnfinishedCount(v int32) predicate.Task

UnfinishedCount applies equality check predicate on the "unfinished_count" field. It's identical to UnfinishedCountEQ.

func UnfinishedCountEQ

func UnfinishedCountEQ(v int32) predicate.Task

UnfinishedCountEQ applies the EQ predicate on the "unfinished_count" field.

func UnfinishedCountGT

func UnfinishedCountGT(v int32) predicate.Task

UnfinishedCountGT applies the GT predicate on the "unfinished_count" field.

func UnfinishedCountGTE

func UnfinishedCountGTE(v int32) predicate.Task

UnfinishedCountGTE applies the GTE predicate on the "unfinished_count" field.

func UnfinishedCountIn

func UnfinishedCountIn(vs ...int32) predicate.Task

UnfinishedCountIn applies the In predicate on the "unfinished_count" field.

func UnfinishedCountLT

func UnfinishedCountLT(v int32) predicate.Task

UnfinishedCountLT applies the LT predicate on the "unfinished_count" field.

func UnfinishedCountLTE

func UnfinishedCountLTE(v int32) predicate.Task

UnfinishedCountLTE applies the LTE predicate on the "unfinished_count" field.

func UnfinishedCountNEQ

func UnfinishedCountNEQ(v int32) predicate.Task

UnfinishedCountNEQ applies the NEQ predicate on the "unfinished_count" field.

func UnfinishedCountNotIn

func UnfinishedCountNotIn(vs ...int32) predicate.Task

UnfinishedCountNotIn applies the NotIn predicate on the "unfinished_count" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Task

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Task

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Task

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Task

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Task

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Task

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Task

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

func UpdatedAtNotIn

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

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 Kind

type Kind string

Kind defines the type for the "kind" enum field.

const (
	KindAND Kind = "AND"
	KindOR  Kind = "OR"
)

Kind values.

func (Kind) MarshalGQL

func (e Kind) MarshalGQL(w io.Writer)

MarshalGQL implements graphql.Marshaler interface.

func (Kind) String

func (k Kind) String() string

func (*Kind) UnmarshalGQL

func (e *Kind) UnmarshalGQL(val interface{}) error

UnmarshalGQL implements graphql.Unmarshaler interface.

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Task queries.

func ByAgreeCount

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

ByAgreeCount orders the results by the agree_count field.

func ByAssignee

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

ByAssignee orders the results by the assignee field.

func ByComments

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

ByComments orders the results by the comments field.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByExecutionID

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

ByExecutionID orders the results by the execution_id field.

func ByID

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

ByID orders the results by the id field.

func ByKind

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

ByKind orders the results by the kind field.

func ByMemberCount

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

ByMemberCount orders the results by the member_count field.

func ByParentID

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

ByParentID orders the results by the parent_id field.

func ByProcDefID

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

ByProcDefID orders the results by the proc_def_id field.

func ByProcInstField

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

ByProcInstField orders the results by proc_inst field.

func ByProcInstID

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

ByProcInstID orders the results by the proc_inst_id field.

func ByRunID

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

ByRunID orders the results by the run_id field.

func BySequential

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

BySequential orders the results by the sequential field.

func ByStatus

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

ByStatus orders the results by the status field.

func ByTaskDefKey

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

ByTaskDefKey orders the results by the task_def_key field.

func ByTaskIdentities

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

ByTaskIdentities orders the results by task_identities terms.

func ByTaskIdentitiesCount

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

ByTaskIdentitiesCount orders the results by task_identities count.

func ByTenantID

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

ByTenantID orders the results by the tenant_id field.

func ByUnfinishedCount

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

ByUnfinishedCount orders the results by the unfinished_count field.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

type Status

type Status string

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

const (
	StatusCreated  Status = "created"
	StatusRunning  Status = "running"
	StatusFinished Status = "finished"
	StatusCanceled Status = "canceled"
)

Status values.

func (Status) MarshalGQL

func (e Status) MarshalGQL(w io.Writer)

MarshalGQL implements graphql.Marshaler interface.

func (Status) String

func (s Status) String() string

func (*Status) UnmarshalGQL

func (e *Status) UnmarshalGQL(val interface{}) error

UnmarshalGQL implements graphql.Unmarshaler interface.

Jump to

Keyboard shortcuts

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