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: 7 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"
	// 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"
	// FieldObjectKey holds the string denoting the object_key field in the database.
	FieldObjectKey = "object_key"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// EdgeLocation holds the string denoting the location edge name in mutations.
	EdgeLocation = "location"
	// Table holds the table name of the pkg in the database.
	Table = "package"
	// LocationTable is the table that holds the location relation/edge.
	LocationTable = "package"
	// LocationInverseTable is the table name for the Location entity.
	// It exists in this package in order to avoid circular dependency with the "location" package.
	LocationInverseTable = "location"
	// LocationColumn is the table column denoting the location relation/edge.
	LocationColumn = "location_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 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 And

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

And groups predicates with the AND operator between them.

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 HasLocation

func HasLocation() predicate.Pkg

HasLocation applies the HasEdge predicate on the "location" edge.

func HasLocationWith

func HasLocationWith(preds ...predicate.Location) predicate.Pkg

HasLocationWith applies the HasEdge predicate on the "location" 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 int) predicate.Pkg

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

func LocationIDEQ

func LocationIDEQ(v int) predicate.Pkg

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

func LocationIDIn

func LocationIDIn(vs ...int) 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 LocationIDNEQ

func LocationIDNEQ(v int) predicate.Pkg

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

func LocationIDNotIn

func LocationIDNotIn(vs ...int) 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 ObjectKey

func ObjectKey(v uuid.UUID) predicate.Pkg

ObjectKey applies equality check predicate on the "object_key" field. It's identical to ObjectKeyEQ.

func ObjectKeyEQ

func ObjectKeyEQ(v uuid.UUID) predicate.Pkg

ObjectKeyEQ applies the EQ predicate on the "object_key" field.

func ObjectKeyGT

func ObjectKeyGT(v uuid.UUID) predicate.Pkg

ObjectKeyGT applies the GT predicate on the "object_key" field.

func ObjectKeyGTE

func ObjectKeyGTE(v uuid.UUID) predicate.Pkg

ObjectKeyGTE applies the GTE predicate on the "object_key" field.

func ObjectKeyIn

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

ObjectKeyIn applies the In predicate on the "object_key" field.

func ObjectKeyLT

func ObjectKeyLT(v uuid.UUID) predicate.Pkg

ObjectKeyLT applies the LT predicate on the "object_key" field.

func ObjectKeyLTE

func ObjectKeyLTE(v uuid.UUID) predicate.Pkg

ObjectKeyLTE applies the LTE predicate on the "object_key" field.

func ObjectKeyNEQ

func ObjectKeyNEQ(v uuid.UUID) predicate.Pkg

ObjectKeyNEQ applies the NEQ predicate on the "object_key" field.

func ObjectKeyNotIn

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

ObjectKeyNotIn applies the NotIn predicate on the "object_key" field.

func Or

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

Or groups predicates with the OR operator between them.

func StatusEQ

func StatusEQ(v types.PackageStatus) predicate.Pkg

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

func StatusIn

func StatusIn(vs ...types.PackageStatus) predicate.Pkg

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

func StatusNEQ

func StatusNEQ(v types.PackageStatus) predicate.Pkg

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

func StatusNotIn

func StatusNotIn(vs ...types.PackageStatus) predicate.Pkg

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

func StatusValidator

func StatusValidator(s types.PackageStatus) error

StatusValidator is a validator for the "status" field enum values. It is called by the builders before save.

func ValidColumn

func ValidColumn(column string) bool

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

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

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

ByLocationField orders the results by location 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 ByObjectKey

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

ByObjectKey orders the results by the object_key field.

func ByStatus

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

ByStatus orders the results by the status field.

Jump to

Keyboard shortcuts

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