task

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2025 License: MIT 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"
	// FieldAgentID holds the string denoting the agent_id field in the database.
	FieldAgentID = "agent_id"
	// FieldCmd holds the string denoting the cmd field in the database.
	FieldCmd = "cmd"
	// FieldParams holds the string denoting the params field in the database.
	FieldParams = "params"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// FieldCreateTime holds the string denoting the create_time field in the database.
	FieldCreateTime = "create_time"
	// Table holds the table name of the task in the database.
	Table = "tasks"
)

Variables

View Source
var (
	// AgentIDValidator is a validator for the "agent_id" field. It is called by the builders before save.
	AgentIDValidator func(string) error
	// DefaultCmd holds the default value on creation for the "cmd" field.
	DefaultCmd int32
	// ParamsValidator is a validator for the "params" field. It is called by the builders before save.
	ParamsValidator func(string) error
	// DefaultCreateTime holds the default value on creation for the "create_time" field.
	DefaultCreateTime func() time.Time
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for task fields.

Functions

func AgentID

func AgentID(v string) predicate.Task

AgentID applies equality check predicate on the "agent_id" field. It's identical to AgentIDEQ.

func AgentIDContains

func AgentIDContains(v string) predicate.Task

AgentIDContains applies the Contains predicate on the "agent_id" field.

func AgentIDContainsFold

func AgentIDContainsFold(v string) predicate.Task

AgentIDContainsFold applies the ContainsFold predicate on the "agent_id" field.

func AgentIDEQ

func AgentIDEQ(v string) predicate.Task

AgentIDEQ applies the EQ predicate on the "agent_id" field.

func AgentIDEqualFold

func AgentIDEqualFold(v string) predicate.Task

AgentIDEqualFold applies the EqualFold predicate on the "agent_id" field.

func AgentIDGT

func AgentIDGT(v string) predicate.Task

AgentIDGT applies the GT predicate on the "agent_id" field.

func AgentIDGTE

func AgentIDGTE(v string) predicate.Task

AgentIDGTE applies the GTE predicate on the "agent_id" field.

func AgentIDHasPrefix

func AgentIDHasPrefix(v string) predicate.Task

AgentIDHasPrefix applies the HasPrefix predicate on the "agent_id" field.

func AgentIDHasSuffix

func AgentIDHasSuffix(v string) predicate.Task

AgentIDHasSuffix applies the HasSuffix predicate on the "agent_id" field.

func AgentIDIn

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

AgentIDIn applies the In predicate on the "agent_id" field.

func AgentIDLT

func AgentIDLT(v string) predicate.Task

AgentIDLT applies the LT predicate on the "agent_id" field.

func AgentIDLTE

func AgentIDLTE(v string) predicate.Task

AgentIDLTE applies the LTE predicate on the "agent_id" field.

func AgentIDNEQ

func AgentIDNEQ(v string) predicate.Task

AgentIDNEQ applies the NEQ predicate on the "agent_id" field.

func AgentIDNotIn

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

AgentIDNotIn applies the NotIn predicate on the "agent_id" field.

func And

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

And groups predicates with the AND operator between them.

func Cmd

func Cmd(v int32) predicate.Task

Cmd applies equality check predicate on the "cmd" field. It's identical to CmdEQ.

func CmdEQ

func CmdEQ(v int32) predicate.Task

CmdEQ applies the EQ predicate on the "cmd" field.

func CmdGT

func CmdGT(v int32) predicate.Task

CmdGT applies the GT predicate on the "cmd" field.

func CmdGTE

func CmdGTE(v int32) predicate.Task

CmdGTE applies the GTE predicate on the "cmd" field.

func CmdIn

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

CmdIn applies the In predicate on the "cmd" field.

func CmdLT

func CmdLT(v int32) predicate.Task

CmdLT applies the LT predicate on the "cmd" field.

func CmdLTE

func CmdLTE(v int32) predicate.Task

CmdLTE applies the LTE predicate on the "cmd" field.

func CmdNEQ

func CmdNEQ(v int32) predicate.Task

CmdNEQ applies the NEQ predicate on the "cmd" field.

func CmdNotIn

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

CmdNotIn applies the NotIn predicate on the "cmd" field.

func CreateTime

func CreateTime(v time.Time) predicate.Task

CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.

func CreateTimeEQ

func CreateTimeEQ(v time.Time) predicate.Task

CreateTimeEQ applies the EQ predicate on the "create_time" field.

func CreateTimeGT

func CreateTimeGT(v time.Time) predicate.Task

CreateTimeGT applies the GT predicate on the "create_time" field.

func CreateTimeGTE

func CreateTimeGTE(v time.Time) predicate.Task

CreateTimeGTE applies the GTE predicate on the "create_time" field.

func CreateTimeIn

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

CreateTimeIn applies the In predicate on the "create_time" field.

func CreateTimeLT

func CreateTimeLT(v time.Time) predicate.Task

CreateTimeLT applies the LT predicate on the "create_time" field.

func CreateTimeLTE

func CreateTimeLTE(v time.Time) predicate.Task

CreateTimeLTE applies the LTE predicate on the "create_time" field.

func CreateTimeNEQ

func CreateTimeNEQ(v time.Time) predicate.Task

CreateTimeNEQ applies the NEQ predicate on the "create_time" field.

func CreateTimeNotIn

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

CreateTimeNotIn applies the NotIn predicate on the "create_time" field.

func ID

func ID(id uuid.UUID) predicate.Task

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Task

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Task

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Task

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Task

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Task

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Task

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID 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 Params

func Params(v string) predicate.Task

Params applies equality check predicate on the "params" field. It's identical to ParamsEQ.

func ParamsContains

func ParamsContains(v string) predicate.Task

ParamsContains applies the Contains predicate on the "params" field.

func ParamsContainsFold

func ParamsContainsFold(v string) predicate.Task

ParamsContainsFold applies the ContainsFold predicate on the "params" field.

func ParamsEQ

func ParamsEQ(v string) predicate.Task

ParamsEQ applies the EQ predicate on the "params" field.

func ParamsEqualFold

func ParamsEqualFold(v string) predicate.Task

ParamsEqualFold applies the EqualFold predicate on the "params" field.

func ParamsGT

func ParamsGT(v string) predicate.Task

ParamsGT applies the GT predicate on the "params" field.

func ParamsGTE

func ParamsGTE(v string) predicate.Task

ParamsGTE applies the GTE predicate on the "params" field.

func ParamsHasPrefix

func ParamsHasPrefix(v string) predicate.Task

ParamsHasPrefix applies the HasPrefix predicate on the "params" field.

func ParamsHasSuffix

func ParamsHasSuffix(v string) predicate.Task

ParamsHasSuffix applies the HasSuffix predicate on the "params" field.

func ParamsIn

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

ParamsIn applies the In predicate on the "params" field.

func ParamsLT

func ParamsLT(v string) predicate.Task

ParamsLT applies the LT predicate on the "params" field.

func ParamsLTE

func ParamsLTE(v string) predicate.Task

ParamsLTE applies the LTE predicate on the "params" field.

func ParamsNEQ

func ParamsNEQ(v string) predicate.Task

ParamsNEQ applies the NEQ predicate on the "params" field.

func ParamsNotIn

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

ParamsNotIn applies the NotIn predicate on the "params" field.

func Status

func Status(v int) predicate.Task

Status applies equality check predicate on the "status" field. It's identical to StatusEQ.

func StatusEQ

func StatusEQ(v int) predicate.Task

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

func StatusGT

func StatusGT(v int) predicate.Task

StatusGT applies the GT predicate on the "status" field.

func StatusGTE

func StatusGTE(v int) predicate.Task

StatusGTE applies the GTE predicate on the "status" field.

func StatusIn

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

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

func StatusLT

func StatusLT(v int) predicate.Task

StatusLT applies the LT predicate on the "status" field.

func StatusLTE

func StatusLTE(v int) predicate.Task

StatusLTE applies the LTE predicate on the "status" field.

func StatusNEQ

func StatusNEQ(v int) predicate.Task

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

func StatusNotIn

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

StatusNotIn applies the NotIn predicate on the "status" 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 Task queries.

func ByAgentID

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

ByAgentID orders the results by the agent_id field.

func ByCmd

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

ByCmd orders the results by the cmd field.

func ByCreateTime

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

ByCreateTime orders the results by the create_time field.

func ByID

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

ByID orders the results by the id field.

func ByParams

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

ByParams orders the results by the params field.

func ByStatus

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

ByStatus orders the results by the status field.

Jump to

Keyboard shortcuts

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