pkg

package
v0.0.0-...-c2b9680 Latest Latest
Warning

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

Go to latest
Published: May 24, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
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

Columns holds all SQL columns for pkg fields.

View Source
var (
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
)

Functions

func AipID

func AipID(v uuid.UUID) predicate.Pkg

AipID applies equality check predicate on the "aip_id" field. It's identical to AipIDEQ.

func AipIDEQ

func AipIDEQ(v uuid.UUID) predicate.Pkg

AipIDEQ applies the EQ predicate on the "aip_id" field.

func AipIDGT

func AipIDGT(v uuid.UUID) predicate.Pkg

AipIDGT applies the GT predicate on the "aip_id" field.

func AipIDGTE

func AipIDGTE(v uuid.UUID) predicate.Pkg

AipIDGTE applies the GTE predicate on the "aip_id" field.

func AipIDIn

func AipIDIn(vs ...uuid.UUID) predicate.Pkg

AipIDIn applies the In predicate on the "aip_id" field.

func AipIDIsNil

func AipIDIsNil() predicate.Pkg

AipIDIsNil applies the IsNil predicate on the "aip_id" field.

func AipIDLT

func AipIDLT(v uuid.UUID) predicate.Pkg

AipIDLT applies the LT predicate on the "aip_id" field.

func AipIDLTE

func AipIDLTE(v uuid.UUID) predicate.Pkg

AipIDLTE applies the LTE predicate on the "aip_id" field.

func AipIDNEQ

func AipIDNEQ(v uuid.UUID) predicate.Pkg

AipIDNEQ applies the NEQ predicate on the "aip_id" field.

func AipIDNotIn

func AipIDNotIn(vs ...uuid.UUID) predicate.Pkg

AipIDNotIn applies the NotIn predicate on the "aip_id" field.

func AipIDNotNil

func AipIDNotNil() predicate.Pkg

AipIDNotNil applies the NotNil predicate on the "aip_id" field.

func And

func And(predicates ...predicate.Pkg) predicate.Pkg

And groups predicates with the AND operator between them.

func CompletedAt

func CompletedAt(v time.Time) predicate.Pkg

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

func CompletedAtEQ

func CompletedAtEQ(v time.Time) predicate.Pkg

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

func CompletedAtGT

func CompletedAtGT(v time.Time) predicate.Pkg

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

func CompletedAtGTE

func CompletedAtGTE(v time.Time) predicate.Pkg

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

func CompletedAtIn

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

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

func CompletedAtIsNil

func CompletedAtIsNil() predicate.Pkg

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

func CompletedAtLT

func CompletedAtLT(v time.Time) predicate.Pkg

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

func CompletedAtLTE

func CompletedAtLTE(v time.Time) predicate.Pkg

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

func CompletedAtNEQ

func CompletedAtNEQ(v time.Time) predicate.Pkg

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

func CompletedAtNotIn

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

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

func CompletedAtNotNil

func CompletedAtNotNil() predicate.Pkg

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

func CreatedAt

func CreatedAt(v time.Time) predicate.Pkg

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Pkg

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Pkg

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Pkg

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.Pkg

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Pkg

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Pkg

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Pkg

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.Pkg

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func HasPreservationActions

func HasPreservationActions() predicate.Pkg

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 ID

func ID(id int) predicate.Pkg

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Pkg

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Pkg

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Pkg

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Pkg

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Pkg

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Pkg

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func LocationID

func LocationID(v uuid.UUID) predicate.Pkg

LocationID applies equality check predicate on the "location_id" field. It's identical to LocationIDEQ.

func LocationIDEQ

func LocationIDEQ(v uuid.UUID) predicate.Pkg

LocationIDEQ applies the EQ predicate on the "location_id" field.

func LocationIDGT

func LocationIDGT(v uuid.UUID) predicate.Pkg

LocationIDGT applies the GT predicate on the "location_id" field.

func LocationIDGTE

func LocationIDGTE(v uuid.UUID) predicate.Pkg

LocationIDGTE applies the GTE predicate on the "location_id" field.

func LocationIDIn

func LocationIDIn(vs ...uuid.UUID) predicate.Pkg

LocationIDIn applies the In predicate on the "location_id" field.

func LocationIDIsNil

func LocationIDIsNil() predicate.Pkg

LocationIDIsNil applies the IsNil predicate on the "location_id" field.

func LocationIDLT

func LocationIDLT(v uuid.UUID) predicate.Pkg

LocationIDLT applies the LT predicate on the "location_id" field.

func LocationIDLTE

func LocationIDLTE(v uuid.UUID) predicate.Pkg

LocationIDLTE applies the LTE predicate on the "location_id" field.

func LocationIDNEQ

func LocationIDNEQ(v uuid.UUID) predicate.Pkg

LocationIDNEQ applies the NEQ predicate on the "location_id" field.

func LocationIDNotIn

func LocationIDNotIn(vs ...uuid.UUID) predicate.Pkg

LocationIDNotIn applies the NotIn predicate on the "location_id" field.

func LocationIDNotNil

func LocationIDNotNil() predicate.Pkg

LocationIDNotNil applies the NotNil predicate on the "location_id" field.

func Name

func Name(v string) predicate.Pkg

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

func NameContains

func NameContains(v string) predicate.Pkg

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

func NameContainsFold

func NameContainsFold(v string) predicate.Pkg

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

func NameEQ

func NameEQ(v string) predicate.Pkg

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

func NameEqualFold

func NameEqualFold(v string) predicate.Pkg

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

func NameGT

func NameGT(v string) predicate.Pkg

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

func NameGTE

func NameGTE(v string) predicate.Pkg

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.Pkg

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.Pkg

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.Pkg

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

func NameLTE

func NameLTE(v string) predicate.Pkg

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

func NameNEQ

func NameNEQ(v string) predicate.Pkg

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

func NameNotIn

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

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

func Not

func Not(p predicate.Pkg) predicate.Pkg

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Pkg) predicate.Pkg

Or groups predicates with the OR operator between them.

func RunID

func RunID(v uuid.UUID) predicate.Pkg

RunID applies equality check predicate on the "run_id" field. It's identical to RunIDEQ.

func RunIDEQ

func RunIDEQ(v uuid.UUID) predicate.Pkg

RunIDEQ applies the EQ predicate on the "run_id" field.

func RunIDGT

func RunIDGT(v uuid.UUID) predicate.Pkg

RunIDGT applies the GT predicate on the "run_id" field.

func RunIDGTE

func RunIDGTE(v uuid.UUID) predicate.Pkg

RunIDGTE applies the GTE predicate on the "run_id" field.

func RunIDIn

func RunIDIn(vs ...uuid.UUID) predicate.Pkg

RunIDIn applies the In predicate on the "run_id" field.

func RunIDLT

func RunIDLT(v uuid.UUID) predicate.Pkg

RunIDLT applies the LT predicate on the "run_id" field.

func RunIDLTE

func RunIDLTE(v uuid.UUID) predicate.Pkg

RunIDLTE applies the LTE predicate on the "run_id" field.

func RunIDNEQ

func RunIDNEQ(v uuid.UUID) predicate.Pkg

RunIDNEQ applies the NEQ predicate on the "run_id" field.

func RunIDNotIn

func RunIDNotIn(vs ...uuid.UUID) predicate.Pkg

RunIDNotIn applies the NotIn predicate on the "run_id" field.

func StartedAt

func StartedAt(v time.Time) predicate.Pkg

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

func StartedAtEQ

func StartedAtEQ(v time.Time) predicate.Pkg

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

func StartedAtGT

func StartedAtGT(v time.Time) predicate.Pkg

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

func StartedAtGTE

func StartedAtGTE(v time.Time) predicate.Pkg

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

func StartedAtIn

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

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

func StartedAtIsNil

func StartedAtIsNil() predicate.Pkg

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

func StartedAtLT

func StartedAtLT(v time.Time) predicate.Pkg

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

func StartedAtLTE

func StartedAtLTE(v time.Time) predicate.Pkg

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

func StartedAtNEQ

func StartedAtNEQ(v time.Time) predicate.Pkg

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

func StartedAtNotIn

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

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

func StartedAtNotNil

func StartedAtNotNil() predicate.Pkg

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

func Status

func Status(v int8) predicate.Pkg

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

func StatusEQ

func StatusEQ(v int8) predicate.Pkg

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

func StatusGT

func StatusGT(v int8) predicate.Pkg

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

func StatusGTE

func StatusGTE(v int8) predicate.Pkg

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

func StatusIn

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

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

func StatusLT

func StatusLT(v int8) predicate.Pkg

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

func StatusLTE

func StatusLTE(v int8) predicate.Pkg

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

func StatusNEQ

func StatusNEQ(v int8) predicate.Pkg

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

func StatusNotIn

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

StatusNotIn applies the NotIn predicate on the "status" 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.Pkg

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

func WorkflowIDContains

func WorkflowIDContains(v string) predicate.Pkg

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

func WorkflowIDContainsFold

func WorkflowIDContainsFold(v string) predicate.Pkg

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

func WorkflowIDEQ

func WorkflowIDEQ(v string) predicate.Pkg

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

func WorkflowIDEqualFold

func WorkflowIDEqualFold(v string) predicate.Pkg

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

func WorkflowIDGT

func WorkflowIDGT(v string) predicate.Pkg

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

func WorkflowIDGTE

func WorkflowIDGTE(v string) predicate.Pkg

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

func WorkflowIDHasPrefix

func WorkflowIDHasPrefix(v string) predicate.Pkg

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

func WorkflowIDHasSuffix

func WorkflowIDHasSuffix(v string) predicate.Pkg

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

func WorkflowIDIn

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

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

func WorkflowIDLT

func WorkflowIDLT(v string) predicate.Pkg

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

func WorkflowIDLTE

func WorkflowIDLTE(v string) predicate.Pkg

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

func WorkflowIDNEQ

func WorkflowIDNEQ(v string) predicate.Pkg

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

func WorkflowIDNotIn

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

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 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.

Jump to

Keyboard shortcuts

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