task

package
v0.0.0-...-3e288c8 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2022 License: MIT Imports: 5 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"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// FieldImage holds the string denoting the image field in the database.
	FieldImage = "image"
	// FieldTimeout holds the string denoting the timeout field in the database.
	FieldTimeout = "timeout"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldCmd holds the string denoting the cmd field in the database.
	FieldCmd = "cmd"
	// FieldDetached holds the string denoting the detached field in the database.
	FieldDetached = "detached"
	// FieldEnvironment holds the string denoting the environment field in the database.
	FieldEnvironment = "environment"
	// FieldPorts holds the string denoting the ports field in the database.
	FieldPorts = "ports"
	// FieldVolumes holds the string denoting the volumes field in the database.
	FieldVolumes = "volumes"
	// FieldRestart holds the string denoting the restart field in the database.
	FieldRestart = "restart"
	// FieldSecurityOpt holds the string denoting the security_opt field in the database.
	FieldSecurityOpt = "security_opt"
	// FieldCapAdd holds the string denoting the cap_add field in the database.
	FieldCapAdd = "cap_add"
	// EdgeDeployment holds the string denoting the deployment edge name in mutations.
	EdgeDeployment = "deployment"
	// Table holds the table name of the task in the database.
	Table = "tasks"
	// DeploymentTable is the table that holds the deployment relation/edge.
	DeploymentTable = "tasks"
	// DeploymentInverseTable is the table name for the Deployment entity.
	// It exists in this package in order to avoid circular dependency with the "deployment" package.
	DeploymentInverseTable = "deployments"
	// DeploymentColumn is the table column denoting the deployment relation/edge.
	DeploymentColumn = "deployment_tasks"
)

Variables

View Source
var (
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// DefaultUpdatedAt holds the default value on creation for the "updated_at" field.
	DefaultUpdatedAt func() time.Time
	// UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field.
	UpdateDefaultUpdatedAt func() time.Time
	// DefaultDetached holds the default value on creation for the "detached" field.
	DefaultDetached bool
	// 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{
	"deployment_tasks",
	"process_tasks",
}

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 CapAddIsNil

func CapAddIsNil() predicate.Task

CapAddIsNil applies the IsNil predicate on the "cap_add" field.

func CapAddNotNil

func CapAddNotNil() predicate.Task

CapAddNotNil applies the NotNil predicate on the "cap_add" field.

func Cmd

func Cmd(v string) predicate.Task

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

func CmdContains

func CmdContains(v string) predicate.Task

CmdContains applies the Contains predicate on the "cmd" field.

func CmdContainsFold

func CmdContainsFold(v string) predicate.Task

CmdContainsFold applies the ContainsFold predicate on the "cmd" field.

func CmdEQ

func CmdEQ(v string) predicate.Task

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

func CmdEqualFold

func CmdEqualFold(v string) predicate.Task

CmdEqualFold applies the EqualFold predicate on the "cmd" field.

func CmdGT

func CmdGT(v string) predicate.Task

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

func CmdGTE

func CmdGTE(v string) predicate.Task

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

func CmdHasPrefix

func CmdHasPrefix(v string) predicate.Task

CmdHasPrefix applies the HasPrefix predicate on the "cmd" field.

func CmdHasSuffix

func CmdHasSuffix(v string) predicate.Task

CmdHasSuffix applies the HasSuffix predicate on the "cmd" field.

func CmdIn

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

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

func CmdIsNil

func CmdIsNil() predicate.Task

CmdIsNil applies the IsNil predicate on the "cmd" field.

func CmdLT

func CmdLT(v string) predicate.Task

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

func CmdLTE

func CmdLTE(v string) predicate.Task

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

func CmdNEQ

func CmdNEQ(v string) predicate.Task

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

func CmdNotIn

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

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

func CmdNotNil

func CmdNotNil() predicate.Task

CmdNotNil applies the NotNil predicate on the "cmd" 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 Detached

func Detached(v bool) predicate.Task

Detached applies equality check predicate on the "detached" field. It's identical to DetachedEQ.

func DetachedEQ

func DetachedEQ(v bool) predicate.Task

DetachedEQ applies the EQ predicate on the "detached" field.

func DetachedIsNil

func DetachedIsNil() predicate.Task

DetachedIsNil applies the IsNil predicate on the "detached" field.

func DetachedNEQ

func DetachedNEQ(v bool) predicate.Task

DetachedNEQ applies the NEQ predicate on the "detached" field.

func DetachedNotNil

func DetachedNotNil() predicate.Task

DetachedNotNil applies the NotNil predicate on the "detached" field.

func EnvironmentIsNil

func EnvironmentIsNil() predicate.Task

EnvironmentIsNil applies the IsNil predicate on the "environment" field.

func EnvironmentNotNil

func EnvironmentNotNil() predicate.Task

EnvironmentNotNil applies the NotNil predicate on the "environment" field.

func HasDeployment

func HasDeployment() predicate.Task

HasDeployment applies the HasEdge predicate on the "deployment" edge.

func HasDeploymentWith

func HasDeploymentWith(preds ...predicate.Deployment) predicate.Task

HasDeploymentWith applies the HasEdge predicate on the "deployment" 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 Image

func Image(v string) predicate.Task

Image applies equality check predicate on the "image" field. It's identical to ImageEQ.

func ImageContains

func ImageContains(v string) predicate.Task

ImageContains applies the Contains predicate on the "image" field.

func ImageContainsFold

func ImageContainsFold(v string) predicate.Task

ImageContainsFold applies the ContainsFold predicate on the "image" field.

func ImageEQ

func ImageEQ(v string) predicate.Task

ImageEQ applies the EQ predicate on the "image" field.

func ImageEqualFold

func ImageEqualFold(v string) predicate.Task

ImageEqualFold applies the EqualFold predicate on the "image" field.

func ImageGT

func ImageGT(v string) predicate.Task

ImageGT applies the GT predicate on the "image" field.

func ImageGTE

func ImageGTE(v string) predicate.Task

ImageGTE applies the GTE predicate on the "image" field.

func ImageHasPrefix

func ImageHasPrefix(v string) predicate.Task

ImageHasPrefix applies the HasPrefix predicate on the "image" field.

func ImageHasSuffix

func ImageHasSuffix(v string) predicate.Task

ImageHasSuffix applies the HasSuffix predicate on the "image" field.

func ImageIn

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

ImageIn applies the In predicate on the "image" field.

func ImageLT

func ImageLT(v string) predicate.Task

ImageLT applies the LT predicate on the "image" field.

func ImageLTE

func ImageLTE(v string) predicate.Task

ImageLTE applies the LTE predicate on the "image" field.

func ImageNEQ

func ImageNEQ(v string) predicate.Task

ImageNEQ applies the NEQ predicate on the "image" field.

func ImageNotIn

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

ImageNotIn applies the NotIn predicate on the "image" 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 NameIsNil

func NameIsNil() predicate.Task

NameIsNil applies the IsNil 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 NameNotNil

func NameNotNil() predicate.Task

NameNotNil applies the NotNil predicate on the "name" 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 PortsIsNil

func PortsIsNil() predicate.Task

PortsIsNil applies the IsNil predicate on the "ports" field.

func PortsNotNil

func PortsNotNil() predicate.Task

PortsNotNil applies the NotNil predicate on the "ports" field.

func Restart

func Restart(v string) predicate.Task

Restart applies equality check predicate on the "restart" field. It's identical to RestartEQ.

func RestartContains

func RestartContains(v string) predicate.Task

RestartContains applies the Contains predicate on the "restart" field.

func RestartContainsFold

func RestartContainsFold(v string) predicate.Task

RestartContainsFold applies the ContainsFold predicate on the "restart" field.

func RestartEQ

func RestartEQ(v string) predicate.Task

RestartEQ applies the EQ predicate on the "restart" field.

func RestartEqualFold

func RestartEqualFold(v string) predicate.Task

RestartEqualFold applies the EqualFold predicate on the "restart" field.

func RestartGT

func RestartGT(v string) predicate.Task

RestartGT applies the GT predicate on the "restart" field.

func RestartGTE

func RestartGTE(v string) predicate.Task

RestartGTE applies the GTE predicate on the "restart" field.

func RestartHasPrefix

func RestartHasPrefix(v string) predicate.Task

RestartHasPrefix applies the HasPrefix predicate on the "restart" field.

func RestartHasSuffix

func RestartHasSuffix(v string) predicate.Task

RestartHasSuffix applies the HasSuffix predicate on the "restart" field.

func RestartIn

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

RestartIn applies the In predicate on the "restart" field.

func RestartIsNil

func RestartIsNil() predicate.Task

RestartIsNil applies the IsNil predicate on the "restart" field.

func RestartLT

func RestartLT(v string) predicate.Task

RestartLT applies the LT predicate on the "restart" field.

func RestartLTE

func RestartLTE(v string) predicate.Task

RestartLTE applies the LTE predicate on the "restart" field.

func RestartNEQ

func RestartNEQ(v string) predicate.Task

RestartNEQ applies the NEQ predicate on the "restart" field.

func RestartNotIn

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

RestartNotIn applies the NotIn predicate on the "restart" field.

func RestartNotNil

func RestartNotNil() predicate.Task

RestartNotNil applies the NotNil predicate on the "restart" field.

func SecurityOptIsNil

func SecurityOptIsNil() predicate.Task

SecurityOptIsNil applies the IsNil predicate on the "security_opt" field.

func SecurityOptNotNil

func SecurityOptNotNil() predicate.Task

SecurityOptNotNil applies the NotNil predicate on the "security_opt" field.

func Timeout

func Timeout(v int) predicate.Task

Timeout applies equality check predicate on the "timeout" field. It's identical to TimeoutEQ.

func TimeoutEQ

func TimeoutEQ(v int) predicate.Task

TimeoutEQ applies the EQ predicate on the "timeout" field.

func TimeoutGT

func TimeoutGT(v int) predicate.Task

TimeoutGT applies the GT predicate on the "timeout" field.

func TimeoutGTE

func TimeoutGTE(v int) predicate.Task

TimeoutGTE applies the GTE predicate on the "timeout" field.

func TimeoutIn

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

TimeoutIn applies the In predicate on the "timeout" field.

func TimeoutIsNil

func TimeoutIsNil() predicate.Task

TimeoutIsNil applies the IsNil predicate on the "timeout" field.

func TimeoutLT

func TimeoutLT(v int) predicate.Task

TimeoutLT applies the LT predicate on the "timeout" field.

func TimeoutLTE

func TimeoutLTE(v int) predicate.Task

TimeoutLTE applies the LTE predicate on the "timeout" field.

func TimeoutNEQ

func TimeoutNEQ(v int) predicate.Task

TimeoutNEQ applies the NEQ predicate on the "timeout" field.

func TimeoutNotIn

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

TimeoutNotIn applies the NotIn predicate on the "timeout" field.

func TimeoutNotNil

func TimeoutNotNil() predicate.Task

TimeoutNotNil applies the NotNil predicate on the "timeout" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Task

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Task

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Task

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Task

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

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

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Task

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Task

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Task

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

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

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

func VolumesIsNil

func VolumesIsNil() predicate.Task

VolumesIsNil applies the IsNil predicate on the "volumes" field.

func VolumesNotNil

func VolumesNotNil() predicate.Task

VolumesNotNil applies the NotNil predicate on the "volumes" field.

Types

This section is empty.

Jump to

Keyboard shortcuts

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