task

package
v0.0.0-...-2b4f063 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2024 License: GPL-3.0 Imports: 6 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"
	// FieldGid holds the string denoting the gid field in the database.
	FieldGid = "gid"
	// FieldBid holds the string denoting the bid field in the database.
	FieldBid = "bid"
	// 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"
	// FieldArgs holds the string denoting the args field in the database.
	FieldArgs = "args"
	// FieldOutput holds the string denoting the output field in the database.
	FieldOutput = "output"
	// FieldOutputBig holds the string denoting the output_big field in the database.
	FieldOutputBig = "output_big"
	// EdgeGroup holds the string denoting the group edge name in mutations.
	EdgeGroup = "group"
	// EdgeBeacon holds the string denoting the beacon edge name in mutations.
	EdgeBeacon = "beacon"
	// 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"
	// GroupTable is the table that holds the group relation/edge.
	GroupTable = "task"
	// GroupInverseTable is the table name for the Group entity.
	// It exists in this package in order to avoid circular dependency with the "group" package.
	GroupInverseTable = "group"
	// GroupColumn is the table column denoting the group relation/edge.
	GroupColumn = "gid"
	// BeaconTable is the table that holds the beacon relation/edge.
	BeaconTable = "task"
	// BeaconInverseTable is the table name for the Beacon entity.
	// It exists in this package in order to avoid circular dependency with the "beacon" package.
	BeaconInverseTable = "beacon"
	// BeaconColumn is the table column denoting the beacon relation/edge.
	BeaconColumn = "bid"
	// 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"
	// 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"
)

Variables

Columns holds all SQL columns for task fields.

View Source
var (
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
)

Functions

func And

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

And groups predicates with the AND operator between them.

func Args

func Args(v int) predicate.Task

Args applies equality check predicate on the "args" field. It's identical to ArgsEQ.

func ArgsEQ

func ArgsEQ(v int) predicate.Task

ArgsEQ applies the EQ predicate on the "args" field.

func ArgsIn

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

ArgsIn applies the In predicate on the "args" field.

func ArgsNEQ

func ArgsNEQ(v int) predicate.Task

ArgsNEQ applies the NEQ predicate on the "args" field.

func ArgsNotIn

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

ArgsNotIn applies the NotIn predicate on the "args" field.

func Bid

func Bid(v int) predicate.Task

Bid applies equality check predicate on the "bid" field. It's identical to BidEQ.

func BidEQ

func BidEQ(v int) predicate.Task

BidEQ applies the EQ predicate on the "bid" field.

func BidIn

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

BidIn applies the In predicate on the "bid" field.

func BidNEQ

func BidNEQ(v int) predicate.Task

BidNEQ applies the NEQ predicate on the "bid" field.

func BidNotIn

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

BidNotIn applies the NotIn predicate on the "bid" field.

func CapEQ

CapEQ applies the EQ predicate on the "cap" field.

func CapIn

func CapIn(vs ...defaults.Capability) predicate.Task

CapIn applies the In predicate on the "cap" field.

func CapNEQ

CapNEQ applies the NEQ predicate on the "cap" field.

func CapNotIn

func CapNotIn(vs ...defaults.Capability) predicate.Task

CapNotIn applies the NotIn predicate on the "cap" field.

func CapValidator

func CapValidator(c defaults.Capability) error

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

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 DoneAt

func DoneAt(v time.Time) predicate.Task

DoneAt applies equality check predicate on the "done_at" field. It's identical to DoneAtEQ.

func DoneAtEQ

func DoneAtEQ(v time.Time) predicate.Task

DoneAtEQ applies the EQ predicate on the "done_at" field.

func DoneAtGT

func DoneAtGT(v time.Time) predicate.Task

DoneAtGT applies the GT predicate on the "done_at" field.

func DoneAtGTE

func DoneAtGTE(v time.Time) predicate.Task

DoneAtGTE applies the GTE predicate on the "done_at" field.

func DoneAtIn

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

DoneAtIn applies the In predicate on the "done_at" field.

func DoneAtIsNil

func DoneAtIsNil() predicate.Task

DoneAtIsNil applies the IsNil predicate on the "done_at" field.

func DoneAtLT

func DoneAtLT(v time.Time) predicate.Task

DoneAtLT applies the LT predicate on the "done_at" field.

func DoneAtLTE

func DoneAtLTE(v time.Time) predicate.Task

DoneAtLTE applies the LTE predicate on the "done_at" field.

func DoneAtNEQ

func DoneAtNEQ(v time.Time) predicate.Task

DoneAtNEQ applies the NEQ predicate on the "done_at" field.

func DoneAtNotIn

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

DoneAtNotIn applies the NotIn predicate on the "done_at" field.

func DoneAtNotNil

func DoneAtNotNil() predicate.Task

DoneAtNotNil applies the NotNil predicate on the "done_at" field.

func Gid

func Gid(v int) predicate.Task

Gid applies equality check predicate on the "gid" field. It's identical to GidEQ.

func GidEQ

func GidEQ(v int) predicate.Task

GidEQ applies the EQ predicate on the "gid" field.

func GidIn

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

GidIn applies the In predicate on the "gid" field.

func GidNEQ

func GidNEQ(v int) predicate.Task

GidNEQ applies the NEQ predicate on the "gid" field.

func GidNotIn

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

GidNotIn applies the NotIn predicate on the "gid" field.

func HasBeacon

func HasBeacon() predicate.Task

HasBeacon applies the HasEdge predicate on the "beacon" edge.

func HasBeaconWith

func HasBeaconWith(preds ...predicate.Beacon) predicate.Task

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

func HasBlobberArgs

func HasBlobberArgs() predicate.Task

HasBlobberArgs applies the HasEdge predicate on the "blobber_args" edge.

func HasBlobberArgsWith

func HasBlobberArgsWith(preds ...predicate.Blobber) predicate.Task

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

func HasBlobberOutput

func HasBlobberOutput() predicate.Task

HasBlobberOutput applies the HasEdge predicate on the "blobber_output" edge.

func HasBlobberOutputWith

func HasBlobberOutputWith(preds ...predicate.Blobber) predicate.Task

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

func HasGroup

func HasGroup() predicate.Task

HasGroup applies the HasEdge predicate on the "group" edge.

func HasGroupWith

func HasGroupWith(preds ...predicate.Group) predicate.Task

HasGroupWith applies the HasEdge predicate on the "group" 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 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 Output

func Output(v int) predicate.Task

Output applies equality check predicate on the "output" field. It's identical to OutputEQ.

func OutputBig

func OutputBig(v bool) predicate.Task

OutputBig applies equality check predicate on the "output_big" field. It's identical to OutputBigEQ.

func OutputBigEQ

func OutputBigEQ(v bool) predicate.Task

OutputBigEQ applies the EQ predicate on the "output_big" field.

func OutputBigIsNil

func OutputBigIsNil() predicate.Task

OutputBigIsNil applies the IsNil predicate on the "output_big" field.

func OutputBigNEQ

func OutputBigNEQ(v bool) predicate.Task

OutputBigNEQ applies the NEQ predicate on the "output_big" field.

func OutputBigNotNil

func OutputBigNotNil() predicate.Task

OutputBigNotNil applies the NotNil predicate on the "output_big" field.

func OutputEQ

func OutputEQ(v int) predicate.Task

OutputEQ applies the EQ predicate on the "output" field.

func OutputIn

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

OutputIn applies the In predicate on the "output" field.

func OutputIsNil

func OutputIsNil() predicate.Task

OutputIsNil applies the IsNil predicate on the "output" field.

func OutputNEQ

func OutputNEQ(v int) predicate.Task

OutputNEQ applies the NEQ predicate on the "output" field.

func OutputNotIn

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

OutputNotIn applies the NotIn predicate on the "output" field.

func OutputNotNil

func OutputNotNil() predicate.Task

OutputNotNil applies the NotNil predicate on the "output" field.

func PushedAt

func PushedAt(v time.Time) predicate.Task

PushedAt applies equality check predicate on the "pushed_at" field. It's identical to PushedAtEQ.

func PushedAtEQ

func PushedAtEQ(v time.Time) predicate.Task

PushedAtEQ applies the EQ predicate on the "pushed_at" field.

func PushedAtGT

func PushedAtGT(v time.Time) predicate.Task

PushedAtGT applies the GT predicate on the "pushed_at" field.

func PushedAtGTE

func PushedAtGTE(v time.Time) predicate.Task

PushedAtGTE applies the GTE predicate on the "pushed_at" field.

func PushedAtIn

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

PushedAtIn applies the In predicate on the "pushed_at" field.

func PushedAtIsNil

func PushedAtIsNil() predicate.Task

PushedAtIsNil applies the IsNil predicate on the "pushed_at" field.

func PushedAtLT

func PushedAtLT(v time.Time) predicate.Task

PushedAtLT applies the LT predicate on the "pushed_at" field.

func PushedAtLTE

func PushedAtLTE(v time.Time) predicate.Task

PushedAtLTE applies the LTE predicate on the "pushed_at" field.

func PushedAtNEQ

func PushedAtNEQ(v time.Time) predicate.Task

PushedAtNEQ applies the NEQ predicate on the "pushed_at" field.

func PushedAtNotIn

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

PushedAtNotIn applies the NotIn predicate on the "pushed_at" field.

func PushedAtNotNil

func PushedAtNotNil() predicate.Task

PushedAtNotNil applies the NotNil predicate on the "pushed_at" field.

func StatusEQ

func StatusEQ(v defaults.TaskStatus) predicate.Task

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

func StatusIn

func StatusIn(vs ...defaults.TaskStatus) predicate.Task

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

func StatusNEQ

func StatusNEQ(v defaults.TaskStatus) predicate.Task

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

func StatusNotIn

func StatusNotIn(vs ...defaults.TaskStatus) predicate.Task

StatusNotIn applies the NotIn predicate on the "status" field.

func StatusValidator

func StatusValidator(s defaults.TaskStatus) error

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

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 ByArgs

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

ByArgs orders the results by the args field.

func ByBeaconField

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

ByBeaconField orders the results by beacon field.

func ByBid

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

ByBid orders the results by the bid 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 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 ByGid

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

ByGid orders the results by the gid field.

func ByGroupField

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

ByGroupField orders the results by group field.

func ByID

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

ByID orders the results by the id field.

func ByOutput

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

ByOutput orders the results by the output field.

func ByOutputBig

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

ByOutputBig orders the results by the output_big 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.

Jump to

Keyboard shortcuts

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