Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.PreservationAction) predicate.PreservationAction
- func CompletedAt(v time.Time) predicate.PreservationAction
- func CompletedAtEQ(v time.Time) predicate.PreservationAction
- func CompletedAtGT(v time.Time) predicate.PreservationAction
- func CompletedAtGTE(v time.Time) predicate.PreservationAction
- func CompletedAtIn(vs ...time.Time) predicate.PreservationAction
- func CompletedAtIsNil() predicate.PreservationAction
- func CompletedAtLT(v time.Time) predicate.PreservationAction
- func CompletedAtLTE(v time.Time) predicate.PreservationAction
- func CompletedAtNEQ(v time.Time) predicate.PreservationAction
- func CompletedAtNotIn(vs ...time.Time) predicate.PreservationAction
- func CompletedAtNotNil() predicate.PreservationAction
- func HasPackage() predicate.PreservationAction
- func HasPackageWith(preds ...predicate.Pkg) predicate.PreservationAction
- func HasTasks() predicate.PreservationAction
- func HasTasksWith(preds ...predicate.PreservationTask) predicate.PreservationAction
- func ID(id int) predicate.PreservationAction
- func IDEQ(id int) predicate.PreservationAction
- func IDGT(id int) predicate.PreservationAction
- func IDGTE(id int) predicate.PreservationAction
- func IDIn(ids ...int) predicate.PreservationAction
- func IDLT(id int) predicate.PreservationAction
- func IDLTE(id int) predicate.PreservationAction
- func IDNEQ(id int) predicate.PreservationAction
- func IDNotIn(ids ...int) predicate.PreservationAction
- func Not(p predicate.PreservationAction) predicate.PreservationAction
- func Or(predicates ...predicate.PreservationAction) predicate.PreservationAction
- func PackageID(v int) predicate.PreservationAction
- func PackageIDEQ(v int) predicate.PreservationAction
- func PackageIDIn(vs ...int) predicate.PreservationAction
- func PackageIDNEQ(v int) predicate.PreservationAction
- func PackageIDNotIn(vs ...int) predicate.PreservationAction
- func StartedAt(v time.Time) predicate.PreservationAction
- func StartedAtEQ(v time.Time) predicate.PreservationAction
- func StartedAtGT(v time.Time) predicate.PreservationAction
- func StartedAtGTE(v time.Time) predicate.PreservationAction
- func StartedAtIn(vs ...time.Time) predicate.PreservationAction
- func StartedAtIsNil() predicate.PreservationAction
- func StartedAtLT(v time.Time) predicate.PreservationAction
- func StartedAtLTE(v time.Time) predicate.PreservationAction
- func StartedAtNEQ(v time.Time) predicate.PreservationAction
- func StartedAtNotIn(vs ...time.Time) predicate.PreservationAction
- func StartedAtNotNil() predicate.PreservationAction
- func Status(v int8) predicate.PreservationAction
- func StatusEQ(v int8) predicate.PreservationAction
- func StatusGT(v int8) predicate.PreservationAction
- func StatusGTE(v int8) predicate.PreservationAction
- func StatusIn(vs ...int8) predicate.PreservationAction
- func StatusLT(v int8) predicate.PreservationAction
- func StatusLTE(v int8) predicate.PreservationAction
- func StatusNEQ(v int8) predicate.PreservationAction
- func StatusNotIn(vs ...int8) predicate.PreservationAction
- func Type(v int8) predicate.PreservationAction
- func TypeEQ(v int8) predicate.PreservationAction
- func TypeGT(v int8) predicate.PreservationAction
- func TypeGTE(v int8) predicate.PreservationAction
- func TypeIn(vs ...int8) predicate.PreservationAction
- func TypeLT(v int8) predicate.PreservationAction
- func TypeLTE(v int8) predicate.PreservationAction
- func TypeNEQ(v int8) predicate.PreservationAction
- func TypeNotIn(vs ...int8) predicate.PreservationAction
- func ValidColumn(column string) bool
- func WorkflowID(v string) predicate.PreservationAction
- func WorkflowIDContains(v string) predicate.PreservationAction
- func WorkflowIDContainsFold(v string) predicate.PreservationAction
- func WorkflowIDEQ(v string) predicate.PreservationAction
- func WorkflowIDEqualFold(v string) predicate.PreservationAction
- func WorkflowIDGT(v string) predicate.PreservationAction
- func WorkflowIDGTE(v string) predicate.PreservationAction
- func WorkflowIDHasPrefix(v string) predicate.PreservationAction
- func WorkflowIDHasSuffix(v string) predicate.PreservationAction
- func WorkflowIDIn(vs ...string) predicate.PreservationAction
- func WorkflowIDLT(v string) predicate.PreservationAction
- func WorkflowIDLTE(v string) predicate.PreservationAction
- func WorkflowIDNEQ(v string) predicate.PreservationAction
- func WorkflowIDNotIn(vs ...string) predicate.PreservationAction
- type OrderOption
- func ByCompletedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByPackageField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByPackageID(opts ...sql.OrderTermOption) OrderOption
- func ByStartedAt(opts ...sql.OrderTermOption) OrderOption
- func ByStatus(opts ...sql.OrderTermOption) OrderOption
- func ByTasks(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByTasksCount(opts ...sql.OrderTermOption) OrderOption
- func ByType(opts ...sql.OrderTermOption) OrderOption
- func ByWorkflowID(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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 ¶
var Columns = []string{ FieldID, FieldWorkflowID, FieldType, FieldStatus, FieldStartedAt, FieldCompletedAt, FieldPackageID, }
Columns holds all SQL columns for preservationaction fields.
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 ¶
func And(predicates ...predicate.PreservationAction) predicate.PreservationAction
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 ¶
func HasTasksWith(preds ...predicate.PreservationTask) predicate.PreservationAction
HasTasksWith applies the HasEdge predicate on the "tasks" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id int) predicate.PreservationAction
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id int) predicate.PreservationAction
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id int) predicate.PreservationAction
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 ¶
func IDLT(id int) predicate.PreservationAction
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.PreservationAction
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.PreservationAction
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 ¶
func Not(p predicate.PreservationAction) predicate.PreservationAction
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.PreservationAction) predicate.PreservationAction
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 ¶
func StartedAt(v time.Time) predicate.PreservationAction
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 ¶
func Status(v int8) predicate.PreservationAction
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 ¶
func Type(v int8) predicate.PreservationAction
Type applies equality check predicate on the "type" field. It's identical to TypeEQ.
func TypeEQ ¶
func TypeEQ(v int8) predicate.PreservationAction
TypeEQ applies the EQ predicate on the "type" field.
func TypeGT ¶
func TypeGT(v int8) predicate.PreservationAction
TypeGT applies the GT predicate on the "type" field.
func TypeGTE ¶
func TypeGTE(v int8) predicate.PreservationAction
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 ¶
func TypeLT(v int8) predicate.PreservationAction
TypeLT applies the LT predicate on the "type" field.
func TypeLTE ¶
func TypeLTE(v int8) predicate.PreservationAction
TypeLTE applies the LTE predicate on the "type" field.
func TypeNEQ ¶
func TypeNEQ(v int8) predicate.PreservationAction
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 ¶
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 ¶
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.