Documentation
¶
Index ¶
- Constants
- Variables
- func AgentID(v string) predicate.Task
- func AgentIDContains(v string) predicate.Task
- func AgentIDContainsFold(v string) predicate.Task
- func AgentIDEQ(v string) predicate.Task
- func AgentIDEqualFold(v string) predicate.Task
- func AgentIDGT(v string) predicate.Task
- func AgentIDGTE(v string) predicate.Task
- func AgentIDHasPrefix(v string) predicate.Task
- func AgentIDHasSuffix(v string) predicate.Task
- func AgentIDIn(vs ...string) predicate.Task
- func AgentIDLT(v string) predicate.Task
- func AgentIDLTE(v string) predicate.Task
- func AgentIDNEQ(v string) predicate.Task
- func AgentIDNotIn(vs ...string) predicate.Task
- func And(predicates ...predicate.Task) predicate.Task
- func Cmd(v int32) predicate.Task
- func CmdEQ(v int32) predicate.Task
- func CmdGT(v int32) predicate.Task
- func CmdGTE(v int32) predicate.Task
- func CmdIn(vs ...int32) predicate.Task
- func CmdLT(v int32) predicate.Task
- func CmdLTE(v int32) predicate.Task
- func CmdNEQ(v int32) predicate.Task
- func CmdNotIn(vs ...int32) predicate.Task
- func CreateTime(v time.Time) predicate.Task
- func CreateTimeEQ(v time.Time) predicate.Task
- func CreateTimeGT(v time.Time) predicate.Task
- func CreateTimeGTE(v time.Time) predicate.Task
- func CreateTimeIn(vs ...time.Time) predicate.Task
- func CreateTimeLT(v time.Time) predicate.Task
- func CreateTimeLTE(v time.Time) predicate.Task
- func CreateTimeNEQ(v time.Time) predicate.Task
- func CreateTimeNotIn(vs ...time.Time) predicate.Task
- func ID(id uuid.UUID) predicate.Task
- func IDEQ(id uuid.UUID) predicate.Task
- func IDGT(id uuid.UUID) predicate.Task
- func IDGTE(id uuid.UUID) predicate.Task
- func IDIn(ids ...uuid.UUID) predicate.Task
- func IDLT(id uuid.UUID) predicate.Task
- func IDLTE(id uuid.UUID) predicate.Task
- func IDNEQ(id uuid.UUID) predicate.Task
- func IDNotIn(ids ...uuid.UUID) predicate.Task
- func Not(p predicate.Task) predicate.Task
- func Or(predicates ...predicate.Task) predicate.Task
- func Params(v string) predicate.Task
- func ParamsContains(v string) predicate.Task
- func ParamsContainsFold(v string) predicate.Task
- func ParamsEQ(v string) predicate.Task
- func ParamsEqualFold(v string) predicate.Task
- func ParamsGT(v string) predicate.Task
- func ParamsGTE(v string) predicate.Task
- func ParamsHasPrefix(v string) predicate.Task
- func ParamsHasSuffix(v string) predicate.Task
- func ParamsIn(vs ...string) predicate.Task
- func ParamsLT(v string) predicate.Task
- func ParamsLTE(v string) predicate.Task
- func ParamsNEQ(v string) predicate.Task
- func ParamsNotIn(vs ...string) predicate.Task
- func Status(v int) predicate.Task
- func StatusEQ(v int) predicate.Task
- func StatusGT(v int) predicate.Task
- func StatusGTE(v int) predicate.Task
- func StatusIn(vs ...int) predicate.Task
- func StatusLT(v int) predicate.Task
- func StatusLTE(v int) predicate.Task
- func StatusNEQ(v int) predicate.Task
- func StatusNotIn(vs ...int) predicate.Task
- func ValidColumn(column string) bool
- type OrderOption
- func ByAgentID(opts ...sql.OrderTermOption) OrderOption
- func ByCmd(opts ...sql.OrderTermOption) OrderOption
- func ByCreateTime(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByParams(opts ...sql.OrderTermOption) OrderOption
- func ByStatus(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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 ¶
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 )
var Columns = []string{ FieldID, FieldAgentID, FieldCmd, FieldParams, FieldStatus, FieldCreateTime, }
Columns holds all SQL columns for task fields.
Functions ¶
func AgentID ¶
AgentID applies equality check predicate on the "agent_id" field. It's identical to AgentIDEQ.
func AgentIDContains ¶
AgentIDContains applies the Contains predicate on the "agent_id" field.
func AgentIDContainsFold ¶
AgentIDContainsFold applies the ContainsFold predicate on the "agent_id" field.
func AgentIDEqualFold ¶
AgentIDEqualFold applies the EqualFold predicate on the "agent_id" field.
func AgentIDGTE ¶
AgentIDGTE applies the GTE predicate on the "agent_id" field.
func AgentIDHasPrefix ¶
AgentIDHasPrefix applies the HasPrefix predicate on the "agent_id" field.
func AgentIDHasSuffix ¶
AgentIDHasSuffix applies the HasSuffix predicate on the "agent_id" field.
func AgentIDLTE ¶
AgentIDLTE applies the LTE predicate on the "agent_id" field.
func AgentIDNEQ ¶
AgentIDNEQ applies the NEQ predicate on the "agent_id" field.
func AgentIDNotIn ¶
AgentIDNotIn applies the NotIn predicate on the "agent_id" field.
func CreateTime ¶
CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.
func CreateTimeEQ ¶
CreateTimeEQ applies the EQ predicate on the "create_time" field.
func CreateTimeGT ¶
CreateTimeGT applies the GT predicate on the "create_time" field.
func CreateTimeGTE ¶
CreateTimeGTE applies the GTE predicate on the "create_time" field.
func CreateTimeIn ¶
CreateTimeIn applies the In predicate on the "create_time" field.
func CreateTimeLT ¶
CreateTimeLT applies the LT predicate on the "create_time" field.
func CreateTimeLTE ¶
CreateTimeLTE applies the LTE predicate on the "create_time" field.
func CreateTimeNEQ ¶
CreateTimeNEQ applies the NEQ predicate on the "create_time" field.
func CreateTimeNotIn ¶
CreateTimeNotIn applies the NotIn predicate on the "create_time" field.
func Params ¶
Params applies equality check predicate on the "params" field. It's identical to ParamsEQ.
func ParamsContains ¶
ParamsContains applies the Contains predicate on the "params" field.
func ParamsContainsFold ¶
ParamsContainsFold applies the ContainsFold predicate on the "params" field.
func ParamsEqualFold ¶
ParamsEqualFold applies the EqualFold predicate on the "params" field.
func ParamsHasPrefix ¶
ParamsHasPrefix applies the HasPrefix predicate on the "params" field.
func ParamsHasSuffix ¶
ParamsHasSuffix applies the HasSuffix predicate on the "params" field.
func ParamsNotIn ¶
ParamsNotIn applies the NotIn predicate on the "params" field.
func Status ¶
Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
func StatusNotIn ¶
StatusNotIn applies the NotIn predicate on the "status" 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 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.