preservationaction

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the preservationaction type in the database.
	Label = "preservation_action"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldWorkflowID holds the string denoting the workflow_id field in the database.
	FieldWorkflowID = "workflow_id"
	// FieldType holds the string denoting the type field in the database.
	FieldType = "type"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// FieldStartedAt holds the string denoting the started_at field in the database.
	FieldStartedAt = "started_at"
	// FieldCompletedAt holds the string denoting the completed_at field in the database.
	FieldCompletedAt = "completed_at"
	// FieldPackageID holds the string denoting the package_id field in the database.
	FieldPackageID = "package_id"
	// EdgePackage holds the string denoting the package edge name in mutations.
	EdgePackage = "package"
	// EdgeTasks holds the string denoting the tasks edge name in mutations.
	EdgeTasks = "tasks"
	// Table holds the table name of the preservationaction in the database.
	Table = "preservation_action"
	// PackageTable is the table that holds the package relation/edge.
	PackageTable = "preservation_action"
	// PackageInverseTable is the table name for the Pkg entity.
	// It exists in this package in order to avoid circular dependency with the "pkg" package.
	PackageInverseTable = "package"
	// PackageColumn is the table column denoting the package relation/edge.
	PackageColumn = "package_id"
	// TasksTable is the table that holds the tasks relation/edge.
	TasksTable = "preservation_task"
	// TasksInverseTable is the table name for the PreservationTask entity.
	// It exists in this package in order to avoid circular dependency with the "preservationtask" package.
	TasksInverseTable = "preservation_task"
	// TasksColumn is the table column denoting the tasks relation/edge.
	TasksColumn = "preservation_action_id"
)

Variables

Columns holds all SQL columns for preservationaction fields.

View Source
var (
	// PackageIDValidator is a validator for the "package_id" field. It is called by the builders before save.
	PackageIDValidator func(int) error
)

Functions

func And

And groups predicates with the AND operator between them.

func CompletedAt

func CompletedAt(v time.Time) predicate.PreservationAction

CompletedAt applies equality check predicate on the "completed_at" field. It's identical to CompletedAtEQ.

func CompletedAtEQ

func CompletedAtEQ(v time.Time) predicate.PreservationAction

CompletedAtEQ applies the EQ predicate on the "completed_at" field.

func CompletedAtGT

func CompletedAtGT(v time.Time) predicate.PreservationAction

CompletedAtGT applies the GT predicate on the "completed_at" field.

func CompletedAtGTE

func CompletedAtGTE(v time.Time) predicate.PreservationAction

CompletedAtGTE applies the GTE predicate on the "completed_at" field.

func CompletedAtIn

func CompletedAtIn(vs ...time.Time) predicate.PreservationAction

CompletedAtIn applies the In predicate on the "completed_at" field.

func CompletedAtIsNil

func CompletedAtIsNil() predicate.PreservationAction

CompletedAtIsNil applies the IsNil predicate on the "completed_at" field.

func CompletedAtLT

func CompletedAtLT(v time.Time) predicate.PreservationAction

CompletedAtLT applies the LT predicate on the "completed_at" field.

func CompletedAtLTE

func CompletedAtLTE(v time.Time) predicate.PreservationAction

CompletedAtLTE applies the LTE predicate on the "completed_at" field.

func CompletedAtNEQ

func CompletedAtNEQ(v time.Time) predicate.PreservationAction

CompletedAtNEQ applies the NEQ predicate on the "completed_at" field.

func CompletedAtNotIn

func CompletedAtNotIn(vs ...time.Time) predicate.PreservationAction

CompletedAtNotIn applies the NotIn predicate on the "completed_at" field.

func CompletedAtNotNil

func CompletedAtNotNil() predicate.PreservationAction

CompletedAtNotNil applies the NotNil predicate on the "completed_at" field.

func HasPackage

func HasPackage() predicate.PreservationAction

HasPackage applies the HasEdge predicate on the "package" edge.

func HasPackageWith

func HasPackageWith(preds ...predicate.Pkg) predicate.PreservationAction

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

func HasTasks

func HasTasks() predicate.PreservationAction

HasTasks applies the HasEdge predicate on the "tasks" edge.

func HasTasksWith

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

func ID

ID filters vertices based on their ID field.

func IDEQ

IDEQ applies the EQ predicate on the ID field.

func IDGT

IDGT applies the GT predicate on the ID field.

func IDGTE

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.PreservationAction

IDIn applies the In predicate on the ID field.

func IDLT

IDLT applies the LT predicate on the ID field.

func IDLTE

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.PreservationAction

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func PackageID

func PackageID(v int) predicate.PreservationAction

PackageID applies equality check predicate on the "package_id" field. It's identical to PackageIDEQ.

func PackageIDEQ

func PackageIDEQ(v int) predicate.PreservationAction

PackageIDEQ applies the EQ predicate on the "package_id" field.

func PackageIDIn

func PackageIDIn(vs ...int) predicate.PreservationAction

PackageIDIn applies the In predicate on the "package_id" field.

func PackageIDNEQ

func PackageIDNEQ(v int) predicate.PreservationAction

PackageIDNEQ applies the NEQ predicate on the "package_id" field.

func PackageIDNotIn

func PackageIDNotIn(vs ...int) predicate.PreservationAction

PackageIDNotIn applies the NotIn predicate on the "package_id" field.

func StartedAt

StartedAt applies equality check predicate on the "started_at" field. It's identical to StartedAtEQ.

func StartedAtEQ

func StartedAtEQ(v time.Time) predicate.PreservationAction

StartedAtEQ applies the EQ predicate on the "started_at" field.

func StartedAtGT

func StartedAtGT(v time.Time) predicate.PreservationAction

StartedAtGT applies the GT predicate on the "started_at" field.

func StartedAtGTE

func StartedAtGTE(v time.Time) predicate.PreservationAction

StartedAtGTE applies the GTE predicate on the "started_at" field.

func StartedAtIn

func StartedAtIn(vs ...time.Time) predicate.PreservationAction

StartedAtIn applies the In predicate on the "started_at" field.

func StartedAtIsNil

func StartedAtIsNil() predicate.PreservationAction

StartedAtIsNil applies the IsNil predicate on the "started_at" field.

func StartedAtLT

func StartedAtLT(v time.Time) predicate.PreservationAction

StartedAtLT applies the LT predicate on the "started_at" field.

func StartedAtLTE

func StartedAtLTE(v time.Time) predicate.PreservationAction

StartedAtLTE applies the LTE predicate on the "started_at" field.

func StartedAtNEQ

func StartedAtNEQ(v time.Time) predicate.PreservationAction

StartedAtNEQ applies the NEQ predicate on the "started_at" field.

func StartedAtNotIn

func StartedAtNotIn(vs ...time.Time) predicate.PreservationAction

StartedAtNotIn applies the NotIn predicate on the "started_at" field.

func StartedAtNotNil

func StartedAtNotNil() predicate.PreservationAction

StartedAtNotNil applies the NotNil predicate on the "started_at" field.

func Status

Status applies equality check predicate on the "status" field. It's identical to StatusEQ.

func StatusEQ

func StatusEQ(v int8) predicate.PreservationAction

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

func StatusGT

func StatusGT(v int8) predicate.PreservationAction

StatusGT applies the GT predicate on the "status" field.

func StatusGTE

func StatusGTE(v int8) predicate.PreservationAction

StatusGTE applies the GTE predicate on the "status" field.

func StatusIn

func StatusIn(vs ...int8) predicate.PreservationAction

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

func StatusLT

func StatusLT(v int8) predicate.PreservationAction

StatusLT applies the LT predicate on the "status" field.

func StatusLTE

func StatusLTE(v int8) predicate.PreservationAction

StatusLTE applies the LTE predicate on the "status" field.

func StatusNEQ

func StatusNEQ(v int8) predicate.PreservationAction

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

func StatusNotIn

func StatusNotIn(vs ...int8) predicate.PreservationAction

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

func Type

Type applies equality check predicate on the "type" field. It's identical to TypeEQ.

func TypeEQ

TypeEQ applies the EQ predicate on the "type" field.

func TypeGT

TypeGT applies the GT predicate on the "type" field.

func TypeGTE

TypeGTE applies the GTE predicate on the "type" field.

func TypeIn

func TypeIn(vs ...int8) predicate.PreservationAction

TypeIn applies the In predicate on the "type" field.

func TypeLT

TypeLT applies the LT predicate on the "type" field.

func TypeLTE

TypeLTE applies the LTE predicate on the "type" field.

func TypeNEQ

TypeNEQ applies the NEQ predicate on the "type" field.

func TypeNotIn

func TypeNotIn(vs ...int8) predicate.PreservationAction

TypeNotIn applies the NotIn predicate on the "type" field.

func ValidColumn

func ValidColumn(column string) bool

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

func WorkflowID

func WorkflowID(v string) predicate.PreservationAction

WorkflowID applies equality check predicate on the "workflow_id" field. It's identical to WorkflowIDEQ.

func WorkflowIDContains

func WorkflowIDContains(v string) predicate.PreservationAction

WorkflowIDContains applies the Contains predicate on the "workflow_id" field.

func WorkflowIDContainsFold

func WorkflowIDContainsFold(v string) predicate.PreservationAction

WorkflowIDContainsFold applies the ContainsFold predicate on the "workflow_id" field.

func WorkflowIDEQ

func WorkflowIDEQ(v string) predicate.PreservationAction

WorkflowIDEQ applies the EQ predicate on the "workflow_id" field.

func WorkflowIDEqualFold

func WorkflowIDEqualFold(v string) predicate.PreservationAction

WorkflowIDEqualFold applies the EqualFold predicate on the "workflow_id" field.

func WorkflowIDGT

func WorkflowIDGT(v string) predicate.PreservationAction

WorkflowIDGT applies the GT predicate on the "workflow_id" field.

func WorkflowIDGTE

func WorkflowIDGTE(v string) predicate.PreservationAction

WorkflowIDGTE applies the GTE predicate on the "workflow_id" field.

func WorkflowIDHasPrefix

func WorkflowIDHasPrefix(v string) predicate.PreservationAction

WorkflowIDHasPrefix applies the HasPrefix predicate on the "workflow_id" field.

func WorkflowIDHasSuffix

func WorkflowIDHasSuffix(v string) predicate.PreservationAction

WorkflowIDHasSuffix applies the HasSuffix predicate on the "workflow_id" field.

func WorkflowIDIn

func WorkflowIDIn(vs ...string) predicate.PreservationAction

WorkflowIDIn applies the In predicate on the "workflow_id" field.

func WorkflowIDLT

func WorkflowIDLT(v string) predicate.PreservationAction

WorkflowIDLT applies the LT predicate on the "workflow_id" field.

func WorkflowIDLTE

func WorkflowIDLTE(v string) predicate.PreservationAction

WorkflowIDLTE applies the LTE predicate on the "workflow_id" field.

func WorkflowIDNEQ

func WorkflowIDNEQ(v string) predicate.PreservationAction

WorkflowIDNEQ applies the NEQ predicate on the "workflow_id" field.

func WorkflowIDNotIn

func WorkflowIDNotIn(vs ...string) predicate.PreservationAction

WorkflowIDNotIn applies the NotIn predicate on the "workflow_id" field.

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the PreservationAction queries.

func ByCompletedAt

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

ByCompletedAt orders the results by the completed_at field.

func ByID

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

ByID orders the results by the id field.

func ByPackageField

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

ByPackageField orders the results by package field.

func ByPackageID

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

ByPackageID orders the results by the package_id field.

func ByStartedAt

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

ByStartedAt orders the results by the started_at field.

func ByStatus

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

ByStatus orders the results by the status field.

func ByTasks

func ByTasks(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByTasks orders the results by tasks terms.

func ByTasksCount

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

ByTasksCount orders the results by tasks count.

func ByType

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

ByType orders the results by the type field.

func ByWorkflowID

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

ByWorkflowID orders the results by the workflow_id field.

Jump to

Keyboard shortcuts

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