Documentation
¶
Index ¶
- Constants
- Variables
- func AipID(v uuid.UUID) predicate.Pkg
- func AipIDEQ(v uuid.UUID) predicate.Pkg
- func AipIDGT(v uuid.UUID) predicate.Pkg
- func AipIDGTE(v uuid.UUID) predicate.Pkg
- func AipIDIn(vs ...uuid.UUID) predicate.Pkg
- func AipIDIsNil() predicate.Pkg
- func AipIDLT(v uuid.UUID) predicate.Pkg
- func AipIDLTE(v uuid.UUID) predicate.Pkg
- func AipIDNEQ(v uuid.UUID) predicate.Pkg
- func AipIDNotIn(vs ...uuid.UUID) predicate.Pkg
- func AipIDNotNil() predicate.Pkg
- func And(predicates ...predicate.Pkg) predicate.Pkg
- func CompletedAt(v time.Time) predicate.Pkg
- func CompletedAtEQ(v time.Time) predicate.Pkg
- func CompletedAtGT(v time.Time) predicate.Pkg
- func CompletedAtGTE(v time.Time) predicate.Pkg
- func CompletedAtIn(vs ...time.Time) predicate.Pkg
- func CompletedAtIsNil() predicate.Pkg
- func CompletedAtLT(v time.Time) predicate.Pkg
- func CompletedAtLTE(v time.Time) predicate.Pkg
- func CompletedAtNEQ(v time.Time) predicate.Pkg
- func CompletedAtNotIn(vs ...time.Time) predicate.Pkg
- func CompletedAtNotNil() predicate.Pkg
- func CreatedAt(v time.Time) predicate.Pkg
- func CreatedAtEQ(v time.Time) predicate.Pkg
- func CreatedAtGT(v time.Time) predicate.Pkg
- func CreatedAtGTE(v time.Time) predicate.Pkg
- func CreatedAtIn(vs ...time.Time) predicate.Pkg
- func CreatedAtLT(v time.Time) predicate.Pkg
- func CreatedAtLTE(v time.Time) predicate.Pkg
- func CreatedAtNEQ(v time.Time) predicate.Pkg
- func CreatedAtNotIn(vs ...time.Time) predicate.Pkg
- func HasPreservationActions() predicate.Pkg
- func HasPreservationActionsWith(preds ...predicate.PreservationAction) predicate.Pkg
- func ID(id int) predicate.Pkg
- func IDEQ(id int) predicate.Pkg
- func IDGT(id int) predicate.Pkg
- func IDGTE(id int) predicate.Pkg
- func IDIn(ids ...int) predicate.Pkg
- func IDLT(id int) predicate.Pkg
- func IDLTE(id int) predicate.Pkg
- func IDNEQ(id int) predicate.Pkg
- func IDNotIn(ids ...int) predicate.Pkg
- func LocationID(v uuid.UUID) predicate.Pkg
- func LocationIDEQ(v uuid.UUID) predicate.Pkg
- func LocationIDGT(v uuid.UUID) predicate.Pkg
- func LocationIDGTE(v uuid.UUID) predicate.Pkg
- func LocationIDIn(vs ...uuid.UUID) predicate.Pkg
- func LocationIDIsNil() predicate.Pkg
- func LocationIDLT(v uuid.UUID) predicate.Pkg
- func LocationIDLTE(v uuid.UUID) predicate.Pkg
- func LocationIDNEQ(v uuid.UUID) predicate.Pkg
- func LocationIDNotIn(vs ...uuid.UUID) predicate.Pkg
- func LocationIDNotNil() predicate.Pkg
- func Name(v string) predicate.Pkg
- func NameContains(v string) predicate.Pkg
- func NameContainsFold(v string) predicate.Pkg
- func NameEQ(v string) predicate.Pkg
- func NameEqualFold(v string) predicate.Pkg
- func NameGT(v string) predicate.Pkg
- func NameGTE(v string) predicate.Pkg
- func NameHasPrefix(v string) predicate.Pkg
- func NameHasSuffix(v string) predicate.Pkg
- func NameIn(vs ...string) predicate.Pkg
- func NameLT(v string) predicate.Pkg
- func NameLTE(v string) predicate.Pkg
- func NameNEQ(v string) predicate.Pkg
- func NameNotIn(vs ...string) predicate.Pkg
- func Not(p predicate.Pkg) predicate.Pkg
- func Or(predicates ...predicate.Pkg) predicate.Pkg
- func RunID(v uuid.UUID) predicate.Pkg
- func RunIDEQ(v uuid.UUID) predicate.Pkg
- func RunIDGT(v uuid.UUID) predicate.Pkg
- func RunIDGTE(v uuid.UUID) predicate.Pkg
- func RunIDIn(vs ...uuid.UUID) predicate.Pkg
- func RunIDLT(v uuid.UUID) predicate.Pkg
- func RunIDLTE(v uuid.UUID) predicate.Pkg
- func RunIDNEQ(v uuid.UUID) predicate.Pkg
- func RunIDNotIn(vs ...uuid.UUID) predicate.Pkg
- func StartedAt(v time.Time) predicate.Pkg
- func StartedAtEQ(v time.Time) predicate.Pkg
- func StartedAtGT(v time.Time) predicate.Pkg
- func StartedAtGTE(v time.Time) predicate.Pkg
- func StartedAtIn(vs ...time.Time) predicate.Pkg
- func StartedAtIsNil() predicate.Pkg
- func StartedAtLT(v time.Time) predicate.Pkg
- func StartedAtLTE(v time.Time) predicate.Pkg
- func StartedAtNEQ(v time.Time) predicate.Pkg
- func StartedAtNotIn(vs ...time.Time) predicate.Pkg
- func StartedAtNotNil() predicate.Pkg
- func Status(v int8) predicate.Pkg
- func StatusEQ(v int8) predicate.Pkg
- func StatusGT(v int8) predicate.Pkg
- func StatusGTE(v int8) predicate.Pkg
- func StatusIn(vs ...int8) predicate.Pkg
- func StatusLT(v int8) predicate.Pkg
- func StatusLTE(v int8) predicate.Pkg
- func StatusNEQ(v int8) predicate.Pkg
- func StatusNotIn(vs ...int8) predicate.Pkg
- func ValidColumn(column string) bool
- func WorkflowID(v string) predicate.Pkg
- func WorkflowIDContains(v string) predicate.Pkg
- func WorkflowIDContainsFold(v string) predicate.Pkg
- func WorkflowIDEQ(v string) predicate.Pkg
- func WorkflowIDEqualFold(v string) predicate.Pkg
- func WorkflowIDGT(v string) predicate.Pkg
- func WorkflowIDGTE(v string) predicate.Pkg
- func WorkflowIDHasPrefix(v string) predicate.Pkg
- func WorkflowIDHasSuffix(v string) predicate.Pkg
- func WorkflowIDIn(vs ...string) predicate.Pkg
- func WorkflowIDLT(v string) predicate.Pkg
- func WorkflowIDLTE(v string) predicate.Pkg
- func WorkflowIDNEQ(v string) predicate.Pkg
- func WorkflowIDNotIn(vs ...string) predicate.Pkg
- type OrderOption
- func ByAipID(opts ...sql.OrderTermOption) OrderOption
- func ByCompletedAt(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByLocationID(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByPreservationActions(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByPreservationActionsCount(opts ...sql.OrderTermOption) OrderOption
- func ByRunID(opts ...sql.OrderTermOption) OrderOption
- func ByStartedAt(opts ...sql.OrderTermOption) OrderOption
- func ByStatus(opts ...sql.OrderTermOption) OrderOption
- func ByWorkflowID(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the pkg type in the database. Label = "pkg" // 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" // FieldWorkflowID holds the string denoting the workflow_id field in the database. FieldWorkflowID = "workflow_id" // FieldRunID holds the string denoting the run_id field in the database. FieldRunID = "run_id" // FieldAipID holds the string denoting the aip_id field in the database. FieldAipID = "aip_id" // FieldLocationID holds the string denoting the location_id field in the database. FieldLocationID = "location_id" // FieldStatus holds the string denoting the status field in the database. FieldStatus = "status" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // 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" // EdgePreservationActions holds the string denoting the preservation_actions edge name in mutations. EdgePreservationActions = "preservation_actions" // Table holds the table name of the pkg in the database. Table = "package" // PreservationActionsTable is the table that holds the preservation_actions relation/edge. PreservationActionsTable = "preservation_action" // PreservationActionsInverseTable is the table name for the PreservationAction entity. // It exists in this package in order to avoid circular dependency with the "preservationaction" package. PreservationActionsInverseTable = "preservation_action" // PreservationActionsColumn is the table column denoting the preservation_actions relation/edge. PreservationActionsColumn = "package_id" )
Variables ¶
var Columns = []string{ FieldID, FieldName, FieldWorkflowID, FieldRunID, FieldAipID, FieldLocationID, FieldStatus, FieldCreatedAt, FieldStartedAt, FieldCompletedAt, }
Columns holds all SQL columns for pkg fields.
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time )
Functions ¶
func AipID ¶
AipID applies equality check predicate on the "aip_id" field. It's identical to AipIDEQ.
func AipIDIsNil ¶
AipIDIsNil applies the IsNil predicate on the "aip_id" field.
func AipIDNotIn ¶
AipIDNotIn applies the NotIn predicate on the "aip_id" field.
func AipIDNotNil ¶
AipIDNotNil applies the NotNil predicate on the "aip_id" field.
func CompletedAt ¶
CompletedAt applies equality check predicate on the "completed_at" field. It's identical to CompletedAtEQ.
func CompletedAtEQ ¶
CompletedAtEQ applies the EQ predicate on the "completed_at" field.
func CompletedAtGT ¶
CompletedAtGT applies the GT predicate on the "completed_at" field.
func CompletedAtGTE ¶
CompletedAtGTE applies the GTE predicate on the "completed_at" field.
func CompletedAtIn ¶
CompletedAtIn applies the In predicate on the "completed_at" field.
func CompletedAtIsNil ¶
CompletedAtIsNil applies the IsNil predicate on the "completed_at" field.
func CompletedAtLT ¶
CompletedAtLT applies the LT predicate on the "completed_at" field.
func CompletedAtLTE ¶
CompletedAtLTE applies the LTE predicate on the "completed_at" field.
func CompletedAtNEQ ¶
CompletedAtNEQ applies the NEQ predicate on the "completed_at" field.
func CompletedAtNotIn ¶
CompletedAtNotIn applies the NotIn predicate on the "completed_at" field.
func CompletedAtNotNil ¶
CompletedAtNotNil applies the NotNil predicate on the "completed_at" field.
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func HasPreservationActions ¶
HasPreservationActions applies the HasEdge predicate on the "preservation_actions" edge.
func HasPreservationActionsWith ¶
func HasPreservationActionsWith(preds ...predicate.PreservationAction) predicate.Pkg
HasPreservationActionsWith applies the HasEdge predicate on the "preservation_actions" edge with a given conditions (other predicates).
func LocationID ¶
LocationID applies equality check predicate on the "location_id" field. It's identical to LocationIDEQ.
func LocationIDEQ ¶
LocationIDEQ applies the EQ predicate on the "location_id" field.
func LocationIDGT ¶
LocationIDGT applies the GT predicate on the "location_id" field.
func LocationIDGTE ¶
LocationIDGTE applies the GTE predicate on the "location_id" field.
func LocationIDIn ¶
LocationIDIn applies the In predicate on the "location_id" field.
func LocationIDIsNil ¶
LocationIDIsNil applies the IsNil predicate on the "location_id" field.
func LocationIDLT ¶
LocationIDLT applies the LT predicate on the "location_id" field.
func LocationIDLTE ¶
LocationIDLTE applies the LTE predicate on the "location_id" field.
func LocationIDNEQ ¶
LocationIDNEQ applies the NEQ predicate on the "location_id" field.
func LocationIDNotIn ¶
LocationIDNotIn applies the NotIn predicate on the "location_id" field.
func LocationIDNotNil ¶
LocationIDNotNil applies the NotNil predicate on the "location_id" field.
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func RunID ¶
RunID applies equality check predicate on the "run_id" field. It's identical to RunIDEQ.
func RunIDNotIn ¶
RunIDNotIn applies the NotIn predicate on the "run_id" field.
func StartedAt ¶
StartedAt applies equality check predicate on the "started_at" field. It's identical to StartedAtEQ.
func StartedAtEQ ¶
StartedAtEQ applies the EQ predicate on the "started_at" field.
func StartedAtGT ¶
StartedAtGT applies the GT predicate on the "started_at" field.
func StartedAtGTE ¶
StartedAtGTE applies the GTE predicate on the "started_at" field.
func StartedAtIn ¶
StartedAtIn applies the In predicate on the "started_at" field.
func StartedAtIsNil ¶
StartedAtIsNil applies the IsNil predicate on the "started_at" field.
func StartedAtLT ¶
StartedAtLT applies the LT predicate on the "started_at" field.
func StartedAtLTE ¶
StartedAtLTE applies the LTE predicate on the "started_at" field.
func StartedAtNEQ ¶
StartedAtNEQ applies the NEQ predicate on the "started_at" field.
func StartedAtNotIn ¶
StartedAtNotIn applies the NotIn predicate on the "started_at" field.
func StartedAtNotNil ¶
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 StatusNotIn ¶
StatusNotIn applies the NotIn predicate on the "status" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func WorkflowID ¶
WorkflowID applies equality check predicate on the "workflow_id" field. It's identical to WorkflowIDEQ.
func WorkflowIDContains ¶
WorkflowIDContains applies the Contains predicate on the "workflow_id" field.
func WorkflowIDContainsFold ¶
WorkflowIDContainsFold applies the ContainsFold predicate on the "workflow_id" field.
func WorkflowIDEQ ¶
WorkflowIDEQ applies the EQ predicate on the "workflow_id" field.
func WorkflowIDEqualFold ¶
WorkflowIDEqualFold applies the EqualFold predicate on the "workflow_id" field.
func WorkflowIDGT ¶
WorkflowIDGT applies the GT predicate on the "workflow_id" field.
func WorkflowIDGTE ¶
WorkflowIDGTE applies the GTE predicate on the "workflow_id" field.
func WorkflowIDHasPrefix ¶
WorkflowIDHasPrefix applies the HasPrefix predicate on the "workflow_id" field.
func WorkflowIDHasSuffix ¶
WorkflowIDHasSuffix applies the HasSuffix predicate on the "workflow_id" field.
func WorkflowIDIn ¶
WorkflowIDIn applies the In predicate on the "workflow_id" field.
func WorkflowIDLT ¶
WorkflowIDLT applies the LT predicate on the "workflow_id" field.
func WorkflowIDLTE ¶
WorkflowIDLTE applies the LTE predicate on the "workflow_id" field.
func WorkflowIDNEQ ¶
WorkflowIDNEQ applies the NEQ predicate on the "workflow_id" field.
func WorkflowIDNotIn ¶
WorkflowIDNotIn applies the NotIn predicate on the "workflow_id" field.
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Pkg queries.
func ByAipID ¶
func ByAipID(opts ...sql.OrderTermOption) OrderOption
ByAipID orders the results by the aip_id field.
func ByCompletedAt ¶
func ByCompletedAt(opts ...sql.OrderTermOption) OrderOption
ByCompletedAt orders the results by the completed_at field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByLocationID ¶
func ByLocationID(opts ...sql.OrderTermOption) OrderOption
ByLocationID orders the results by the location_id field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByPreservationActions ¶
func ByPreservationActions(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByPreservationActions orders the results by preservation_actions terms.
func ByPreservationActionsCount ¶
func ByPreservationActionsCount(opts ...sql.OrderTermOption) OrderOption
ByPreservationActionsCount orders the results by preservation_actions count.
func ByRunID ¶
func ByRunID(opts ...sql.OrderTermOption) OrderOption
ByRunID orders the results by the run_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 ByWorkflowID ¶
func ByWorkflowID(opts ...sql.OrderTermOption) OrderOption
ByWorkflowID orders the results by the workflow_id field.