task

package
v0.0.0-...-c68951b Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2021 License: MIT Imports: 7 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"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// FieldEnginePayload holds the string denoting the engine_payload field in the database.
	FieldEnginePayload = "engine_payload"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldLastUpdatedAt holds the string denoting the last_updated_at field in the database.
	FieldLastUpdatedAt = "last_updated_at"
	// FieldAssignedToHost holds the string denoting the assigned_to_host field in the database.
	FieldAssignedToHost = "assigned_to_host"
	// FieldComment holds the string denoting the comment field in the database.
	FieldComment = "comment"
	// FieldCaseCode holds the string denoting the case_code field in the database.
	FieldCaseCode = "case_code"
	// FieldNumberCracked holds the string denoting the number_cracked field in the database.
	FieldNumberCracked = "number_cracked"
	// FieldNumberPasswords holds the string denoting the number_passwords field in the database.
	FieldNumberPasswords = "number_passwords"
	// FieldError holds the string denoting the error field in the database.
	FieldError = "error"
	// EdgeCreatedBy holds the string denoting the created_by edge name in mutations.
	EdgeCreatedBy = "created_by"
	// EdgeCrackedPasswords holds the string denoting the cracked_passwords edge name in mutations.
	EdgeCrackedPasswords = "cracked_passwords"
	// Table holds the table name of the task in the database.
	Table = "tasks"
	// CreatedByTable is the table that holds the created_by relation/edge.
	CreatedByTable = "tasks"
	// CreatedByInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	CreatedByInverseTable = "users"
	// CreatedByColumn is the table column denoting the created_by relation/edge.
	CreatedByColumn = "task_created_by"
	// CrackedPasswordsTable is the table that holds the cracked_passwords relation/edge.
	CrackedPasswordsTable = "cracked_passwords"
	// CrackedPasswordsInverseTable is the table name for the CrackedPassword entity.
	// It exists in this package in order to avoid circular dependency with the "crackedpassword" package.
	CrackedPasswordsInverseTable = "cracked_passwords"
	// CrackedPasswordsColumn is the table column denoting the cracked_passwords relation/edge.
	CrackedPasswordsColumn = "task_cracked_passwords"
)

Variables

View Source
var (
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// DefaultLastUpdatedAt holds the default value on creation for the "last_updated_at" field.
	DefaultLastUpdatedAt func() time.Time
	// DefaultNumberCracked holds the default value on creation for the "number_cracked" field.
	DefaultNumberCracked int
	// DefaultNumberPasswords holds the default value on creation for the "number_passwords" field.
	DefaultNumberPasswords int
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for task fields.

View Source
var ForeignKeys = []string{
	"task_created_by",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "tasks" table and are not defined as standalone fields in the schema.

Functions

func And

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

And groups predicates with the AND operator between them.

func AssignedToHost

func AssignedToHost(v string) predicate.Task

AssignedToHost applies equality check predicate on the "assigned_to_host" field. It's identical to AssignedToHostEQ.

func AssignedToHostContains

func AssignedToHostContains(v string) predicate.Task

AssignedToHostContains applies the Contains predicate on the "assigned_to_host" field.

func AssignedToHostContainsFold

func AssignedToHostContainsFold(v string) predicate.Task

AssignedToHostContainsFold applies the ContainsFold predicate on the "assigned_to_host" field.

func AssignedToHostEQ

func AssignedToHostEQ(v string) predicate.Task

AssignedToHostEQ applies the EQ predicate on the "assigned_to_host" field.

func AssignedToHostEqualFold

func AssignedToHostEqualFold(v string) predicate.Task

AssignedToHostEqualFold applies the EqualFold predicate on the "assigned_to_host" field.

func AssignedToHostGT

func AssignedToHostGT(v string) predicate.Task

AssignedToHostGT applies the GT predicate on the "assigned_to_host" field.

func AssignedToHostGTE

func AssignedToHostGTE(v string) predicate.Task

AssignedToHostGTE applies the GTE predicate on the "assigned_to_host" field.

func AssignedToHostHasPrefix

func AssignedToHostHasPrefix(v string) predicate.Task

AssignedToHostHasPrefix applies the HasPrefix predicate on the "assigned_to_host" field.

func AssignedToHostHasSuffix

func AssignedToHostHasSuffix(v string) predicate.Task

AssignedToHostHasSuffix applies the HasSuffix predicate on the "assigned_to_host" field.

func AssignedToHostIn

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

AssignedToHostIn applies the In predicate on the "assigned_to_host" field.

func AssignedToHostIsNil

func AssignedToHostIsNil() predicate.Task

AssignedToHostIsNil applies the IsNil predicate on the "assigned_to_host" field.

func AssignedToHostLT

func AssignedToHostLT(v string) predicate.Task

AssignedToHostLT applies the LT predicate on the "assigned_to_host" field.

func AssignedToHostLTE

func AssignedToHostLTE(v string) predicate.Task

AssignedToHostLTE applies the LTE predicate on the "assigned_to_host" field.

func AssignedToHostNEQ

func AssignedToHostNEQ(v string) predicate.Task

AssignedToHostNEQ applies the NEQ predicate on the "assigned_to_host" field.

func AssignedToHostNotIn

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

AssignedToHostNotIn applies the NotIn predicate on the "assigned_to_host" field.

func AssignedToHostNotNil

func AssignedToHostNotNil() predicate.Task

AssignedToHostNotNil applies the NotNil predicate on the "assigned_to_host" field.

func CaseCode

func CaseCode(v string) predicate.Task

CaseCode applies equality check predicate on the "case_code" field. It's identical to CaseCodeEQ.

func CaseCodeContains

func CaseCodeContains(v string) predicate.Task

CaseCodeContains applies the Contains predicate on the "case_code" field.

func CaseCodeContainsFold

func CaseCodeContainsFold(v string) predicate.Task

CaseCodeContainsFold applies the ContainsFold predicate on the "case_code" field.

func CaseCodeEQ

func CaseCodeEQ(v string) predicate.Task

CaseCodeEQ applies the EQ predicate on the "case_code" field.

func CaseCodeEqualFold

func CaseCodeEqualFold(v string) predicate.Task

CaseCodeEqualFold applies the EqualFold predicate on the "case_code" field.

func CaseCodeGT

func CaseCodeGT(v string) predicate.Task

CaseCodeGT applies the GT predicate on the "case_code" field.

func CaseCodeGTE

func CaseCodeGTE(v string) predicate.Task

CaseCodeGTE applies the GTE predicate on the "case_code" field.

func CaseCodeHasPrefix

func CaseCodeHasPrefix(v string) predicate.Task

CaseCodeHasPrefix applies the HasPrefix predicate on the "case_code" field.

func CaseCodeHasSuffix

func CaseCodeHasSuffix(v string) predicate.Task

CaseCodeHasSuffix applies the HasSuffix predicate on the "case_code" field.

func CaseCodeIn

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

CaseCodeIn applies the In predicate on the "case_code" field.

func CaseCodeIsNil

func CaseCodeIsNil() predicate.Task

CaseCodeIsNil applies the IsNil predicate on the "case_code" field.

func CaseCodeLT

func CaseCodeLT(v string) predicate.Task

CaseCodeLT applies the LT predicate on the "case_code" field.

func CaseCodeLTE

func CaseCodeLTE(v string) predicate.Task

CaseCodeLTE applies the LTE predicate on the "case_code" field.

func CaseCodeNEQ

func CaseCodeNEQ(v string) predicate.Task

CaseCodeNEQ applies the NEQ predicate on the "case_code" field.

func CaseCodeNotIn

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

CaseCodeNotIn applies the NotIn predicate on the "case_code" field.

func CaseCodeNotNil

func CaseCodeNotNil() predicate.Task

CaseCodeNotNil applies the NotNil predicate on the "case_code" field.

func Comment

func Comment(v string) predicate.Task

Comment applies equality check predicate on the "comment" field. It's identical to CommentEQ.

func CommentContains

func CommentContains(v string) predicate.Task

CommentContains applies the Contains predicate on the "comment" field.

func CommentContainsFold

func CommentContainsFold(v string) predicate.Task

CommentContainsFold applies the ContainsFold predicate on the "comment" field.

func CommentEQ

func CommentEQ(v string) predicate.Task

CommentEQ applies the EQ predicate on the "comment" field.

func CommentEqualFold

func CommentEqualFold(v string) predicate.Task

CommentEqualFold applies the EqualFold predicate on the "comment" field.

func CommentGT

func CommentGT(v string) predicate.Task

CommentGT applies the GT predicate on the "comment" field.

func CommentGTE

func CommentGTE(v string) predicate.Task

CommentGTE applies the GTE predicate on the "comment" field.

func CommentHasPrefix

func CommentHasPrefix(v string) predicate.Task

CommentHasPrefix applies the HasPrefix predicate on the "comment" field.

func CommentHasSuffix

func CommentHasSuffix(v string) predicate.Task

CommentHasSuffix applies the HasSuffix predicate on the "comment" field.

func CommentIn

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

CommentIn applies the In predicate on the "comment" field.

func CommentIsNil

func CommentIsNil() predicate.Task

CommentIsNil applies the IsNil predicate on the "comment" field.

func CommentLT

func CommentLT(v string) predicate.Task

CommentLT applies the LT predicate on the "comment" field.

func CommentLTE

func CommentLTE(v string) predicate.Task

CommentLTE applies the LTE predicate on the "comment" field.

func CommentNEQ

func CommentNEQ(v string) predicate.Task

CommentNEQ applies the NEQ predicate on the "comment" field.

func CommentNotIn

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

CommentNotIn applies the NotIn predicate on the "comment" field.

func CommentNotNil

func CommentNotNil() predicate.Task

CommentNotNil applies the NotNil predicate on the "comment" 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 EnginePayloadIsNil

func EnginePayloadIsNil() predicate.Task

EnginePayloadIsNil applies the IsNil predicate on the "engine_payload" field.

func EnginePayloadNotNil

func EnginePayloadNotNil() predicate.Task

EnginePayloadNotNil applies the NotNil predicate on the "engine_payload" field.

func Error

func Error(v string) predicate.Task

Error applies equality check predicate on the "error" field. It's identical to ErrorEQ.

func ErrorContains

func ErrorContains(v string) predicate.Task

ErrorContains applies the Contains predicate on the "error" field.

func ErrorContainsFold

func ErrorContainsFold(v string) predicate.Task

ErrorContainsFold applies the ContainsFold predicate on the "error" field.

func ErrorEQ

func ErrorEQ(v string) predicate.Task

ErrorEQ applies the EQ predicate on the "error" field.

func ErrorEqualFold

func ErrorEqualFold(v string) predicate.Task

ErrorEqualFold applies the EqualFold predicate on the "error" field.

func ErrorGT

func ErrorGT(v string) predicate.Task

ErrorGT applies the GT predicate on the "error" field.

func ErrorGTE

func ErrorGTE(v string) predicate.Task

ErrorGTE applies the GTE predicate on the "error" field.

func ErrorHasPrefix

func ErrorHasPrefix(v string) predicate.Task

ErrorHasPrefix applies the HasPrefix predicate on the "error" field.

func ErrorHasSuffix

func ErrorHasSuffix(v string) predicate.Task

ErrorHasSuffix applies the HasSuffix predicate on the "error" field.

func ErrorIn

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

ErrorIn applies the In predicate on the "error" field.

func ErrorIsNil

func ErrorIsNil() predicate.Task

ErrorIsNil applies the IsNil predicate on the "error" field.

func ErrorLT

func ErrorLT(v string) predicate.Task

ErrorLT applies the LT predicate on the "error" field.

func ErrorLTE

func ErrorLTE(v string) predicate.Task

ErrorLTE applies the LTE predicate on the "error" field.

func ErrorNEQ

func ErrorNEQ(v string) predicate.Task

ErrorNEQ applies the NEQ predicate on the "error" field.

func ErrorNotIn

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

ErrorNotIn applies the NotIn predicate on the "error" field.

func ErrorNotNil

func ErrorNotNil() predicate.Task

ErrorNotNil applies the NotNil predicate on the "error" field.

func HasCrackedPasswords

func HasCrackedPasswords() predicate.Task

HasCrackedPasswords applies the HasEdge predicate on the "cracked_passwords" edge.

func HasCrackedPasswordsWith

func HasCrackedPasswordsWith(preds ...predicate.CrackedPassword) predicate.Task

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

func HasCreatedBy

func HasCreatedBy() predicate.Task

HasCreatedBy applies the HasEdge predicate on the "created_by" edge.

func HasCreatedByWith

func HasCreatedByWith(preds ...predicate.User) predicate.Task

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

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 LastUpdatedAt

func LastUpdatedAt(v time.Time) predicate.Task

LastUpdatedAt applies equality check predicate on the "last_updated_at" field. It's identical to LastUpdatedAtEQ.

func LastUpdatedAtEQ

func LastUpdatedAtEQ(v time.Time) predicate.Task

LastUpdatedAtEQ applies the EQ predicate on the "last_updated_at" field.

func LastUpdatedAtGT

func LastUpdatedAtGT(v time.Time) predicate.Task

LastUpdatedAtGT applies the GT predicate on the "last_updated_at" field.

func LastUpdatedAtGTE

func LastUpdatedAtGTE(v time.Time) predicate.Task

LastUpdatedAtGTE applies the GTE predicate on the "last_updated_at" field.

func LastUpdatedAtIn

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

LastUpdatedAtIn applies the In predicate on the "last_updated_at" field.

func LastUpdatedAtLT

func LastUpdatedAtLT(v time.Time) predicate.Task

LastUpdatedAtLT applies the LT predicate on the "last_updated_at" field.

func LastUpdatedAtLTE

func LastUpdatedAtLTE(v time.Time) predicate.Task

LastUpdatedAtLTE applies the LTE predicate on the "last_updated_at" field.

func LastUpdatedAtNEQ

func LastUpdatedAtNEQ(v time.Time) predicate.Task

LastUpdatedAtNEQ applies the NEQ predicate on the "last_updated_at" field.

func LastUpdatedAtNotIn

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

LastUpdatedAtNotIn applies the NotIn predicate on the "last_updated_at" field.

func Name

func Name(v string) predicate.Task

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.Task

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.Task

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.Task

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.Task

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.Task

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.Task

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.Task

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.Task

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

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

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.Task

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.Task

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.Task

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

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

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func NumberCracked

func NumberCracked(v int) predicate.Task

NumberCracked applies equality check predicate on the "number_cracked" field. It's identical to NumberCrackedEQ.

func NumberCrackedEQ

func NumberCrackedEQ(v int) predicate.Task

NumberCrackedEQ applies the EQ predicate on the "number_cracked" field.

func NumberCrackedGT

func NumberCrackedGT(v int) predicate.Task

NumberCrackedGT applies the GT predicate on the "number_cracked" field.

func NumberCrackedGTE

func NumberCrackedGTE(v int) predicate.Task

NumberCrackedGTE applies the GTE predicate on the "number_cracked" field.

func NumberCrackedIn

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

NumberCrackedIn applies the In predicate on the "number_cracked" field.

func NumberCrackedLT

func NumberCrackedLT(v int) predicate.Task

NumberCrackedLT applies the LT predicate on the "number_cracked" field.

func NumberCrackedLTE

func NumberCrackedLTE(v int) predicate.Task

NumberCrackedLTE applies the LTE predicate on the "number_cracked" field.

func NumberCrackedNEQ

func NumberCrackedNEQ(v int) predicate.Task

NumberCrackedNEQ applies the NEQ predicate on the "number_cracked" field.

func NumberCrackedNotIn

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

NumberCrackedNotIn applies the NotIn predicate on the "number_cracked" field.

func NumberPasswords

func NumberPasswords(v int) predicate.Task

NumberPasswords applies equality check predicate on the "number_passwords" field. It's identical to NumberPasswordsEQ.

func NumberPasswordsEQ

func NumberPasswordsEQ(v int) predicate.Task

NumberPasswordsEQ applies the EQ predicate on the "number_passwords" field.

func NumberPasswordsGT

func NumberPasswordsGT(v int) predicate.Task

NumberPasswordsGT applies the GT predicate on the "number_passwords" field.

func NumberPasswordsGTE

func NumberPasswordsGTE(v int) predicate.Task

NumberPasswordsGTE applies the GTE predicate on the "number_passwords" field.

func NumberPasswordsIn

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

NumberPasswordsIn applies the In predicate on the "number_passwords" field.

func NumberPasswordsLT

func NumberPasswordsLT(v int) predicate.Task

NumberPasswordsLT applies the LT predicate on the "number_passwords" field.

func NumberPasswordsLTE

func NumberPasswordsLTE(v int) predicate.Task

NumberPasswordsLTE applies the LTE predicate on the "number_passwords" field.

func NumberPasswordsNEQ

func NumberPasswordsNEQ(v int) predicate.Task

NumberPasswordsNEQ applies the NEQ predicate on the "number_passwords" field.

func NumberPasswordsNotIn

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

NumberPasswordsNotIn applies the NotIn predicate on the "number_passwords" field.

func Or

func Or(predicates ...predicate.Task) predicate.Task

Or groups predicates with the OR operator between them.

func StatusEQ

func StatusEQ(v oldschema.TaskStatus) predicate.Task

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

func StatusIn

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

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

func StatusNEQ

func StatusNEQ(v oldschema.TaskStatus) predicate.Task

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

func StatusNotIn

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

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

func StatusValidator

func StatusValidator(s oldschema.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

This section is empty.

Jump to

Keyboard shortcuts

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