Documentation
¶
Index ¶
- Constants
- Variables
- func AgentID(v uint32) predicate.Task
- func AgentIDEQ(v uint32) predicate.Task
- func AgentIDIn(vs ...uint32) predicate.Task
- func AgentIDNEQ(v uint32) predicate.Task
- func AgentIDNotIn(vs ...uint32) predicate.Task
- func And(predicates ...predicate.Task) predicate.Task
- func ArgsID(v int) predicate.Task
- func ArgsIDEQ(v int) predicate.Task
- func ArgsIDIn(vs ...int) predicate.Task
- func ArgsIDNEQ(v int) predicate.Task
- func ArgsIDNotIn(vs ...int) predicate.Task
- func CapEQ(v shared.Capability) predicate.Task
- func CapIn(vs ...shared.Capability) predicate.Task
- func CapNEQ(v shared.Capability) predicate.Task
- func CapNotIn(vs ...shared.Capability) predicate.Task
- func CapValidator(c shared.Capability) error
- func CommandID(v int64) predicate.Task
- func CommandIDEQ(v int64) predicate.Task
- func CommandIDIn(vs ...int64) predicate.Task
- func CommandIDNEQ(v int64) predicate.Task
- func CommandIDNotIn(vs ...int64) predicate.Task
- func CreatedAt(v time.Time) predicate.Task
- func CreatedAtEQ(v time.Time) predicate.Task
- func CreatedAtGT(v time.Time) predicate.Task
- func CreatedAtGTE(v time.Time) predicate.Task
- func CreatedAtIn(vs ...time.Time) predicate.Task
- func CreatedAtLT(v time.Time) predicate.Task
- func CreatedAtLTE(v time.Time) predicate.Task
- func CreatedAtNEQ(v time.Time) predicate.Task
- func CreatedAtNotIn(vs ...time.Time) predicate.Task
- func DoneAt(v time.Time) predicate.Task
- func DoneAtEQ(v time.Time) predicate.Task
- func DoneAtGT(v time.Time) predicate.Task
- func DoneAtGTE(v time.Time) predicate.Task
- func DoneAtIn(vs ...time.Time) predicate.Task
- func DoneAtIsNil() predicate.Task
- func DoneAtLT(v time.Time) predicate.Task
- func DoneAtLTE(v time.Time) predicate.Task
- func DoneAtNEQ(v time.Time) predicate.Task
- func DoneAtNotIn(vs ...time.Time) predicate.Task
- func DoneAtNotNil() predicate.Task
- func HasAgent() predicate.Task
- func HasAgentWith(preds ...predicate.Agent) predicate.Task
- func HasBlobberArgs() predicate.Task
- func HasBlobberArgsWith(preds ...predicate.Blobber) predicate.Task
- func HasBlobberOutput() predicate.Task
- func HasBlobberOutputWith(preds ...predicate.Blobber) predicate.Task
- func HasCommand() predicate.Task
- func HasCommandWith(preds ...predicate.Command) predicate.Task
- func ID(id int64) predicate.Task
- func IDEQ(id int64) predicate.Task
- func IDGT(id int64) predicate.Task
- func IDGTE(id int64) predicate.Task
- func IDIn(ids ...int64) predicate.Task
- func IDLT(id int64) predicate.Task
- func IDLTE(id int64) predicate.Task
- func IDNEQ(id int64) predicate.Task
- func IDNotIn(ids ...int64) predicate.Task
- func Not(p predicate.Task) predicate.Task
- func Or(predicates ...predicate.Task) predicate.Task
- func OutputBig(v bool) predicate.Task
- func OutputBigEQ(v bool) predicate.Task
- func OutputBigIsNil() predicate.Task
- func OutputBigNEQ(v bool) predicate.Task
- func OutputBigNotNil() predicate.Task
- func OutputID(v int) predicate.Task
- func OutputIDEQ(v int) predicate.Task
- func OutputIDIn(vs ...int) predicate.Task
- func OutputIDIsNil() predicate.Task
- func OutputIDNEQ(v int) predicate.Task
- func OutputIDNotIn(vs ...int) predicate.Task
- func OutputIDNotNil() predicate.Task
- func PushedAt(v time.Time) predicate.Task
- func PushedAtEQ(v time.Time) predicate.Task
- func PushedAtGT(v time.Time) predicate.Task
- func PushedAtGTE(v time.Time) predicate.Task
- func PushedAtIn(vs ...time.Time) predicate.Task
- func PushedAtIsNil() predicate.Task
- func PushedAtLT(v time.Time) predicate.Task
- func PushedAtLTE(v time.Time) predicate.Task
- func PushedAtNEQ(v time.Time) predicate.Task
- func PushedAtNotIn(vs ...time.Time) predicate.Task
- func PushedAtNotNil() predicate.Task
- func StatusEQ(v shared.TaskStatus) predicate.Task
- func StatusIn(vs ...shared.TaskStatus) predicate.Task
- func StatusNEQ(v shared.TaskStatus) predicate.Task
- func StatusNotIn(vs ...shared.TaskStatus) predicate.Task
- func StatusValidator(s shared.TaskStatus) error
- func ValidColumn(column string) bool
- type OrderOption
- func ByAgentField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByAgentID(opts ...sql.OrderTermOption) OrderOption
- func ByArgsID(opts ...sql.OrderTermOption) OrderOption
- func ByBlobberArgsField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByBlobberOutputField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByCap(opts ...sql.OrderTermOption) OrderOption
- func ByCommandField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByCommandID(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDoneAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByOutputBig(opts ...sql.OrderTermOption) OrderOption
- func ByOutputID(opts ...sql.OrderTermOption) OrderOption
- func ByPushedAt(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" // FieldCommandID holds the string denoting the command_id field in the database. FieldCommandID = "command_id" // FieldAgentID holds the string denoting the agent_id field in the database. FieldAgentID = "agent_id" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldPushedAt holds the string denoting the pushed_at field in the database. FieldPushedAt = "pushed_at" // FieldDoneAt holds the string denoting the done_at field in the database. FieldDoneAt = "done_at" // FieldStatus holds the string denoting the status field in the database. FieldStatus = "status" // FieldCap holds the string denoting the cap field in the database. FieldCap = "cap" // FieldArgsID holds the string denoting the args_id field in the database. FieldArgsID = "args_id" // FieldOutputID holds the string denoting the output_id field in the database. FieldOutputID = "output_id" // FieldOutputBig holds the string denoting the output_big field in the database. FieldOutputBig = "output_big" // EdgeCommand holds the string denoting the command edge name in mutations. EdgeCommand = "command" // EdgeAgent holds the string denoting the agent edge name in mutations. EdgeAgent = "agent" // EdgeBlobberArgs holds the string denoting the blobber_args edge name in mutations. EdgeBlobberArgs = "blobber_args" // EdgeBlobberOutput holds the string denoting the blobber_output edge name in mutations. EdgeBlobberOutput = "blobber_output" // Table holds the table name of the task in the database. Table = "task" // CommandTable is the table that holds the command relation/edge. CommandTable = "task" // CommandInverseTable is the table name for the Command entity. // It exists in this package in order to avoid circular dependency with the "command" package. CommandInverseTable = "command" // CommandColumn is the table column denoting the command relation/edge. CommandColumn = "command_id" // AgentTable is the table that holds the agent relation/edge. AgentTable = "task" // AgentInverseTable is the table name for the Agent entity. // It exists in this package in order to avoid circular dependency with the "agent" package. AgentInverseTable = "agent" // AgentColumn is the table column denoting the agent relation/edge. AgentColumn = "agent_id" // BlobberArgsTable is the table that holds the blobber_args relation/edge. BlobberArgsTable = "task" // BlobberArgsInverseTable is the table name for the Blobber entity. // It exists in this package in order to avoid circular dependency with the "blobber" package. BlobberArgsInverseTable = "blobber" // BlobberArgsColumn is the table column denoting the blobber_args relation/edge. BlobberArgsColumn = "args_id" // BlobberOutputTable is the table that holds the blobber_output relation/edge. BlobberOutputTable = "task" // BlobberOutputInverseTable is the table name for the Blobber entity. // It exists in this package in order to avoid circular dependency with the "blobber" package. BlobberOutputInverseTable = "blobber" // BlobberOutputColumn is the table column denoting the blobber_output relation/edge. BlobberOutputColumn = "output_id" )
Variables ¶
var Columns = []string{ FieldID, FieldCommandID, FieldAgentID, FieldCreatedAt, FieldPushedAt, FieldDoneAt, FieldStatus, FieldCap, FieldArgsID, FieldOutputID, FieldOutputBig, }
Columns holds all SQL columns for task fields.
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time )
Functions ¶
func AgentID ¶
AgentID applies equality check predicate on the "agent_id" field. It's identical to AgentIDEQ.
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 ArgsID ¶
ArgsID applies equality check predicate on the "args_id" field. It's identical to ArgsIDEQ.
func ArgsIDNotIn ¶
ArgsIDNotIn applies the NotIn predicate on the "args_id" field.
func CapEQ ¶
func CapEQ(v shared.Capability) predicate.Task
CapEQ applies the EQ predicate on the "cap" field.
func CapIn ¶
func CapIn(vs ...shared.Capability) predicate.Task
CapIn applies the In predicate on the "cap" field.
func CapNEQ ¶
func CapNEQ(v shared.Capability) predicate.Task
CapNEQ applies the NEQ predicate on the "cap" field.
func CapNotIn ¶
func CapNotIn(vs ...shared.Capability) predicate.Task
CapNotIn applies the NotIn predicate on the "cap" field.
func CapValidator ¶
func CapValidator(c shared.Capability) error
CapValidator is a validator for the "cap" field enum values. It is called by the builders before save.
func CommandID ¶
CommandID applies equality check predicate on the "command_id" field. It's identical to CommandIDEQ.
func CommandIDEQ ¶
CommandIDEQ applies the EQ predicate on the "command_id" field.
func CommandIDIn ¶
CommandIDIn applies the In predicate on the "command_id" field.
func CommandIDNEQ ¶
CommandIDNEQ applies the NEQ predicate on the "command_id" field.
func CommandIDNotIn ¶
CommandIDNotIn applies the NotIn predicate on the "command_id" field.
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func DoneAt ¶
DoneAt applies equality check predicate on the "done_at" field. It's identical to DoneAtEQ.
func DoneAtIsNil ¶
DoneAtIsNil applies the IsNil predicate on the "done_at" field.
func DoneAtNotIn ¶
DoneAtNotIn applies the NotIn predicate on the "done_at" field.
func DoneAtNotNil ¶
DoneAtNotNil applies the NotNil predicate on the "done_at" field.
func HasAgentWith ¶
HasAgentWith applies the HasEdge predicate on the "agent" edge with a given conditions (other predicates).
func HasBlobberArgs ¶
HasBlobberArgs applies the HasEdge predicate on the "blobber_args" edge.
func HasBlobberArgsWith ¶
HasBlobberArgsWith applies the HasEdge predicate on the "blobber_args" edge with a given conditions (other predicates).
func HasBlobberOutput ¶
HasBlobberOutput applies the HasEdge predicate on the "blobber_output" edge.
func HasBlobberOutputWith ¶
HasBlobberOutputWith applies the HasEdge predicate on the "blobber_output" edge with a given conditions (other predicates).
func HasCommand ¶
HasCommand applies the HasEdge predicate on the "command" edge.
func HasCommandWith ¶
HasCommandWith applies the HasEdge predicate on the "command" edge with a given conditions (other predicates).
func OutputBig ¶
OutputBig applies equality check predicate on the "output_big" field. It's identical to OutputBigEQ.
func OutputBigEQ ¶
OutputBigEQ applies the EQ predicate on the "output_big" field.
func OutputBigIsNil ¶
OutputBigIsNil applies the IsNil predicate on the "output_big" field.
func OutputBigNEQ ¶
OutputBigNEQ applies the NEQ predicate on the "output_big" field.
func OutputBigNotNil ¶
OutputBigNotNil applies the NotNil predicate on the "output_big" field.
func OutputID ¶
OutputID applies equality check predicate on the "output_id" field. It's identical to OutputIDEQ.
func OutputIDEQ ¶
OutputIDEQ applies the EQ predicate on the "output_id" field.
func OutputIDIn ¶
OutputIDIn applies the In predicate on the "output_id" field.
func OutputIDIsNil ¶
OutputIDIsNil applies the IsNil predicate on the "output_id" field.
func OutputIDNEQ ¶
OutputIDNEQ applies the NEQ predicate on the "output_id" field.
func OutputIDNotIn ¶
OutputIDNotIn applies the NotIn predicate on the "output_id" field.
func OutputIDNotNil ¶
OutputIDNotNil applies the NotNil predicate on the "output_id" field.
func PushedAt ¶
PushedAt applies equality check predicate on the "pushed_at" field. It's identical to PushedAtEQ.
func PushedAtEQ ¶
PushedAtEQ applies the EQ predicate on the "pushed_at" field.
func PushedAtGT ¶
PushedAtGT applies the GT predicate on the "pushed_at" field.
func PushedAtGTE ¶
PushedAtGTE applies the GTE predicate on the "pushed_at" field.
func PushedAtIn ¶
PushedAtIn applies the In predicate on the "pushed_at" field.
func PushedAtIsNil ¶
PushedAtIsNil applies the IsNil predicate on the "pushed_at" field.
func PushedAtLT ¶
PushedAtLT applies the LT predicate on the "pushed_at" field.
func PushedAtLTE ¶
PushedAtLTE applies the LTE predicate on the "pushed_at" field.
func PushedAtNEQ ¶
PushedAtNEQ applies the NEQ predicate on the "pushed_at" field.
func PushedAtNotIn ¶
PushedAtNotIn applies the NotIn predicate on the "pushed_at" field.
func PushedAtNotNil ¶
PushedAtNotNil applies the NotNil predicate on the "pushed_at" field.
func StatusEQ ¶
func StatusEQ(v shared.TaskStatus) predicate.Task
StatusEQ applies the EQ predicate on the "status" field.
func StatusIn ¶
func StatusIn(vs ...shared.TaskStatus) predicate.Task
StatusIn applies the In predicate on the "status" field.
func StatusNEQ ¶
func StatusNEQ(v shared.TaskStatus) predicate.Task
StatusNEQ applies the NEQ predicate on the "status" field.
func StatusNotIn ¶
func StatusNotIn(vs ...shared.TaskStatus) predicate.Task
StatusNotIn applies the NotIn predicate on the "status" field.
func StatusValidator ¶
func StatusValidator(s shared.TaskStatus) error
StatusValidator is a validator for the "status" field enum values. It is called by the builders before save.
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 ByAgentField ¶
func ByAgentField(field string, opts ...sql.OrderTermOption) OrderOption
ByAgentField orders the results by agent field.
func ByAgentID ¶
func ByAgentID(opts ...sql.OrderTermOption) OrderOption
ByAgentID orders the results by the agent_id field.
func ByArgsID ¶
func ByArgsID(opts ...sql.OrderTermOption) OrderOption
ByArgsID orders the results by the args_id field.
func ByBlobberArgsField ¶
func ByBlobberArgsField(field string, opts ...sql.OrderTermOption) OrderOption
ByBlobberArgsField orders the results by blobber_args field.
func ByBlobberOutputField ¶
func ByBlobberOutputField(field string, opts ...sql.OrderTermOption) OrderOption
ByBlobberOutputField orders the results by blobber_output field.
func ByCap ¶
func ByCap(opts ...sql.OrderTermOption) OrderOption
ByCap orders the results by the cap field.
func ByCommandField ¶
func ByCommandField(field string, opts ...sql.OrderTermOption) OrderOption
ByCommandField orders the results by command field.
func ByCommandID ¶
func ByCommandID(opts ...sql.OrderTermOption) OrderOption
ByCommandID orders the results by the command_id field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByDoneAt ¶
func ByDoneAt(opts ...sql.OrderTermOption) OrderOption
ByDoneAt orders the results by the done_at field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByOutputBig ¶
func ByOutputBig(opts ...sql.OrderTermOption) OrderOption
ByOutputBig orders the results by the output_big field.
func ByOutputID ¶
func ByOutputID(opts ...sql.OrderTermOption) OrderOption
ByOutputID orders the results by the output_id field.
func ByPushedAt ¶
func ByPushedAt(opts ...sql.OrderTermOption) OrderOption
ByPushedAt orders the results by the pushed_at field.
func ByStatus ¶
func ByStatus(opts ...sql.OrderTermOption) OrderOption
ByStatus orders the results by the status field.