apppackage

package
v0.0.6-2 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the apppackage type in the database.
	Label = "app_package"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldSource holds the string denoting the source field in the database.
	FieldSource = "source"
	// FieldSourceID holds the string denoting the source_id field in the database.
	FieldSourceID = "source_id"
	// FieldSourcePackageID holds the string denoting the source_package_id field in the database.
	FieldSourcePackageID = "source_package_id"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldDescription holds the string denoting the description field in the database.
	FieldDescription = "description"
	// FieldBinaryName holds the string denoting the binary_name field in the database.
	FieldBinaryName = "binary_name"
	// FieldBinarySize holds the string denoting the binary_size field in the database.
	FieldBinarySize = "binary_size"
	// FieldBinaryPublicURL holds the string denoting the binary_public_url field in the database.
	FieldBinaryPublicURL = "binary_public_url"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// EdgeApp holds the string denoting the app edge name in mutations.
	EdgeApp = "app"
	// Table holds the table name of the apppackage in the database.
	Table = "app_packages"
	// AppTable is the table that holds the app relation/edge.
	AppTable = "app_packages"
	// AppInverseTable is the table name for the App entity.
	// It exists in this package in order to avoid circular dependency with the "app" package.
	AppInverseTable = "apps"
	// AppColumn is the table column denoting the app relation/edge.
	AppColumn = "app_app_package"
)

Variables

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

Columns holds all SQL columns for apppackage fields.

View Source
var ForeignKeys = []string{
	"app_app_package",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "app_packages" table and are not defined as standalone fields in the schema.

Functions

func And

func And(predicates ...predicate.AppPackage) predicate.AppPackage

And groups predicates with the AND operator between them.

func BinaryName

func BinaryName(v string) predicate.AppPackage

BinaryName applies equality check predicate on the "binary_name" field. It's identical to BinaryNameEQ.

func BinaryNameContains

func BinaryNameContains(v string) predicate.AppPackage

BinaryNameContains applies the Contains predicate on the "binary_name" field.

func BinaryNameContainsFold

func BinaryNameContainsFold(v string) predicate.AppPackage

BinaryNameContainsFold applies the ContainsFold predicate on the "binary_name" field.

func BinaryNameEQ

func BinaryNameEQ(v string) predicate.AppPackage

BinaryNameEQ applies the EQ predicate on the "binary_name" field.

func BinaryNameEqualFold

func BinaryNameEqualFold(v string) predicate.AppPackage

BinaryNameEqualFold applies the EqualFold predicate on the "binary_name" field.

func BinaryNameGT

func BinaryNameGT(v string) predicate.AppPackage

BinaryNameGT applies the GT predicate on the "binary_name" field.

func BinaryNameGTE

func BinaryNameGTE(v string) predicate.AppPackage

BinaryNameGTE applies the GTE predicate on the "binary_name" field.

func BinaryNameHasPrefix

func BinaryNameHasPrefix(v string) predicate.AppPackage

BinaryNameHasPrefix applies the HasPrefix predicate on the "binary_name" field.

func BinaryNameHasSuffix

func BinaryNameHasSuffix(v string) predicate.AppPackage

BinaryNameHasSuffix applies the HasSuffix predicate on the "binary_name" field.

func BinaryNameIn

func BinaryNameIn(vs ...string) predicate.AppPackage

BinaryNameIn applies the In predicate on the "binary_name" field.

func BinaryNameLT

func BinaryNameLT(v string) predicate.AppPackage

BinaryNameLT applies the LT predicate on the "binary_name" field.

func BinaryNameLTE

func BinaryNameLTE(v string) predicate.AppPackage

BinaryNameLTE applies the LTE predicate on the "binary_name" field.

func BinaryNameNEQ

func BinaryNameNEQ(v string) predicate.AppPackage

BinaryNameNEQ applies the NEQ predicate on the "binary_name" field.

func BinaryNameNotIn

func BinaryNameNotIn(vs ...string) predicate.AppPackage

BinaryNameNotIn applies the NotIn predicate on the "binary_name" field.

func BinaryPublicURL added in v0.0.5

func BinaryPublicURL(v string) predicate.AppPackage

BinaryPublicURL applies equality check predicate on the "binary_public_url" field. It's identical to BinaryPublicURLEQ.

func BinaryPublicURLContains added in v0.0.5

func BinaryPublicURLContains(v string) predicate.AppPackage

BinaryPublicURLContains applies the Contains predicate on the "binary_public_url" field.

func BinaryPublicURLContainsFold added in v0.0.5

func BinaryPublicURLContainsFold(v string) predicate.AppPackage

BinaryPublicURLContainsFold applies the ContainsFold predicate on the "binary_public_url" field.

func BinaryPublicURLEQ added in v0.0.5

func BinaryPublicURLEQ(v string) predicate.AppPackage

BinaryPublicURLEQ applies the EQ predicate on the "binary_public_url" field.

func BinaryPublicURLEqualFold added in v0.0.5

func BinaryPublicURLEqualFold(v string) predicate.AppPackage

BinaryPublicURLEqualFold applies the EqualFold predicate on the "binary_public_url" field.

func BinaryPublicURLGT added in v0.0.5

func BinaryPublicURLGT(v string) predicate.AppPackage

BinaryPublicURLGT applies the GT predicate on the "binary_public_url" field.

func BinaryPublicURLGTE added in v0.0.5

func BinaryPublicURLGTE(v string) predicate.AppPackage

BinaryPublicURLGTE applies the GTE predicate on the "binary_public_url" field.

func BinaryPublicURLHasPrefix added in v0.0.5

func BinaryPublicURLHasPrefix(v string) predicate.AppPackage

BinaryPublicURLHasPrefix applies the HasPrefix predicate on the "binary_public_url" field.

func BinaryPublicURLHasSuffix added in v0.0.5

func BinaryPublicURLHasSuffix(v string) predicate.AppPackage

BinaryPublicURLHasSuffix applies the HasSuffix predicate on the "binary_public_url" field.

func BinaryPublicURLIn added in v0.0.5

func BinaryPublicURLIn(vs ...string) predicate.AppPackage

BinaryPublicURLIn applies the In predicate on the "binary_public_url" field.

func BinaryPublicURLLT added in v0.0.5

func BinaryPublicURLLT(v string) predicate.AppPackage

BinaryPublicURLLT applies the LT predicate on the "binary_public_url" field.

func BinaryPublicURLLTE added in v0.0.5

func BinaryPublicURLLTE(v string) predicate.AppPackage

BinaryPublicURLLTE applies the LTE predicate on the "binary_public_url" field.

func BinaryPublicURLNEQ added in v0.0.5

func BinaryPublicURLNEQ(v string) predicate.AppPackage

BinaryPublicURLNEQ applies the NEQ predicate on the "binary_public_url" field.

func BinaryPublicURLNotIn added in v0.0.5

func BinaryPublicURLNotIn(vs ...string) predicate.AppPackage

BinaryPublicURLNotIn applies the NotIn predicate on the "binary_public_url" field.

func BinarySize

func BinarySize(v int64) predicate.AppPackage

BinarySize applies equality check predicate on the "binary_size" field. It's identical to BinarySizeEQ.

func BinarySizeEQ

func BinarySizeEQ(v int64) predicate.AppPackage

BinarySizeEQ applies the EQ predicate on the "binary_size" field.

func BinarySizeGT

func BinarySizeGT(v int64) predicate.AppPackage

BinarySizeGT applies the GT predicate on the "binary_size" field.

func BinarySizeGTE

func BinarySizeGTE(v int64) predicate.AppPackage

BinarySizeGTE applies the GTE predicate on the "binary_size" field.

func BinarySizeIn

func BinarySizeIn(vs ...int64) predicate.AppPackage

BinarySizeIn applies the In predicate on the "binary_size" field.

func BinarySizeLT

func BinarySizeLT(v int64) predicate.AppPackage

BinarySizeLT applies the LT predicate on the "binary_size" field.

func BinarySizeLTE

func BinarySizeLTE(v int64) predicate.AppPackage

BinarySizeLTE applies the LTE predicate on the "binary_size" field.

func BinarySizeNEQ

func BinarySizeNEQ(v int64) predicate.AppPackage

BinarySizeNEQ applies the NEQ predicate on the "binary_size" field.

func BinarySizeNotIn

func BinarySizeNotIn(vs ...int64) predicate.AppPackage

BinarySizeNotIn applies the NotIn predicate on the "binary_size" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.AppPackage

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.AppPackage

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.AppPackage

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.AppPackage

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.AppPackage

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.AppPackage

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.AppPackage

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

func CreatedAtNotIn

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

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

func Description

func Description(v string) predicate.AppPackage

Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.

func DescriptionContains

func DescriptionContains(v string) predicate.AppPackage

DescriptionContains applies the Contains predicate on the "description" field.

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.AppPackage

DescriptionContainsFold applies the ContainsFold predicate on the "description" field.

func DescriptionEQ

func DescriptionEQ(v string) predicate.AppPackage

DescriptionEQ applies the EQ predicate on the "description" field.

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.AppPackage

DescriptionEqualFold applies the EqualFold predicate on the "description" field.

func DescriptionGT

func DescriptionGT(v string) predicate.AppPackage

DescriptionGT applies the GT predicate on the "description" field.

func DescriptionGTE

func DescriptionGTE(v string) predicate.AppPackage

DescriptionGTE applies the GTE predicate on the "description" field.

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.AppPackage

DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.AppPackage

DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.

func DescriptionIn

func DescriptionIn(vs ...string) predicate.AppPackage

DescriptionIn applies the In predicate on the "description" field.

func DescriptionLT

func DescriptionLT(v string) predicate.AppPackage

DescriptionLT applies the LT predicate on the "description" field.

func DescriptionLTE

func DescriptionLTE(v string) predicate.AppPackage

DescriptionLTE applies the LTE predicate on the "description" field.

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.AppPackage

DescriptionNEQ applies the NEQ predicate on the "description" field.

func DescriptionNotIn

func DescriptionNotIn(vs ...string) predicate.AppPackage

DescriptionNotIn applies the NotIn predicate on the "description" field.

func HasApp added in v0.0.6

func HasApp() predicate.AppPackage

HasApp applies the HasEdge predicate on the "app" edge.

func HasAppWith added in v0.0.6

func HasAppWith(preds ...predicate.App) predicate.AppPackage

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

func ID

func ID(id int64) predicate.AppPackage

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int64) predicate.AppPackage

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int64) predicate.AppPackage

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int64) predicate.AppPackage

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int64) predicate.AppPackage

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int64) predicate.AppPackage

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int64) predicate.AppPackage

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int64) predicate.AppPackage

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int64) predicate.AppPackage

IDNotIn applies the NotIn predicate on the ID field.

func Name

func Name(v string) predicate.AppPackage

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

func NameContains

func NameContains(v string) predicate.AppPackage

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

func NameContainsFold

func NameContainsFold(v string) predicate.AppPackage

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

func NameEQ

func NameEQ(v string) predicate.AppPackage

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

func NameEqualFold

func NameEqualFold(v string) predicate.AppPackage

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

func NameGT

func NameGT(v string) predicate.AppPackage

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

func NameGTE

func NameGTE(v string) predicate.AppPackage

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.AppPackage

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.AppPackage

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.AppPackage

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

func NameLTE

func NameLTE(v string) predicate.AppPackage

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

func NameNEQ

func NameNEQ(v string) predicate.AppPackage

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

func NameNotIn

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

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

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.AppPackage) predicate.AppPackage

Or groups predicates with the OR operator between them.

func SourceEQ

func SourceEQ(v Source) predicate.AppPackage

SourceEQ applies the EQ predicate on the "source" field.

func SourceID

func SourceID(v int64) predicate.AppPackage

SourceID applies equality check predicate on the "source_id" field. It's identical to SourceIDEQ.

func SourceIDEQ

func SourceIDEQ(v int64) predicate.AppPackage

SourceIDEQ applies the EQ predicate on the "source_id" field.

func SourceIDGT

func SourceIDGT(v int64) predicate.AppPackage

SourceIDGT applies the GT predicate on the "source_id" field.

func SourceIDGTE

func SourceIDGTE(v int64) predicate.AppPackage

SourceIDGTE applies the GTE predicate on the "source_id" field.

func SourceIDIn

func SourceIDIn(vs ...int64) predicate.AppPackage

SourceIDIn applies the In predicate on the "source_id" field.

func SourceIDLT

func SourceIDLT(v int64) predicate.AppPackage

SourceIDLT applies the LT predicate on the "source_id" field.

func SourceIDLTE

func SourceIDLTE(v int64) predicate.AppPackage

SourceIDLTE applies the LTE predicate on the "source_id" field.

func SourceIDNEQ

func SourceIDNEQ(v int64) predicate.AppPackage

SourceIDNEQ applies the NEQ predicate on the "source_id" field.

func SourceIDNotIn

func SourceIDNotIn(vs ...int64) predicate.AppPackage

SourceIDNotIn applies the NotIn predicate on the "source_id" field.

func SourceIn

func SourceIn(vs ...Source) predicate.AppPackage

SourceIn applies the In predicate on the "source" field.

func SourceNEQ

func SourceNEQ(v Source) predicate.AppPackage

SourceNEQ applies the NEQ predicate on the "source" field.

func SourceNotIn

func SourceNotIn(vs ...Source) predicate.AppPackage

SourceNotIn applies the NotIn predicate on the "source" field.

func SourcePackageID

func SourcePackageID(v string) predicate.AppPackage

SourcePackageID applies equality check predicate on the "source_package_id" field. It's identical to SourcePackageIDEQ.

func SourcePackageIDContains

func SourcePackageIDContains(v string) predicate.AppPackage

SourcePackageIDContains applies the Contains predicate on the "source_package_id" field.

func SourcePackageIDContainsFold

func SourcePackageIDContainsFold(v string) predicate.AppPackage

SourcePackageIDContainsFold applies the ContainsFold predicate on the "source_package_id" field.

func SourcePackageIDEQ

func SourcePackageIDEQ(v string) predicate.AppPackage

SourcePackageIDEQ applies the EQ predicate on the "source_package_id" field.

func SourcePackageIDEqualFold

func SourcePackageIDEqualFold(v string) predicate.AppPackage

SourcePackageIDEqualFold applies the EqualFold predicate on the "source_package_id" field.

func SourcePackageIDGT

func SourcePackageIDGT(v string) predicate.AppPackage

SourcePackageIDGT applies the GT predicate on the "source_package_id" field.

func SourcePackageIDGTE

func SourcePackageIDGTE(v string) predicate.AppPackage

SourcePackageIDGTE applies the GTE predicate on the "source_package_id" field.

func SourcePackageIDHasPrefix

func SourcePackageIDHasPrefix(v string) predicate.AppPackage

SourcePackageIDHasPrefix applies the HasPrefix predicate on the "source_package_id" field.

func SourcePackageIDHasSuffix

func SourcePackageIDHasSuffix(v string) predicate.AppPackage

SourcePackageIDHasSuffix applies the HasSuffix predicate on the "source_package_id" field.

func SourcePackageIDIn

func SourcePackageIDIn(vs ...string) predicate.AppPackage

SourcePackageIDIn applies the In predicate on the "source_package_id" field.

func SourcePackageIDLT

func SourcePackageIDLT(v string) predicate.AppPackage

SourcePackageIDLT applies the LT predicate on the "source_package_id" field.

func SourcePackageIDLTE

func SourcePackageIDLTE(v string) predicate.AppPackage

SourcePackageIDLTE applies the LTE predicate on the "source_package_id" field.

func SourcePackageIDNEQ

func SourcePackageIDNEQ(v string) predicate.AppPackage

SourcePackageIDNEQ applies the NEQ predicate on the "source_package_id" field.

func SourcePackageIDNotIn

func SourcePackageIDNotIn(vs ...string) predicate.AppPackage

SourcePackageIDNotIn applies the NotIn predicate on the "source_package_id" field.

func SourceValidator

func SourceValidator(s Source) error

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

func UpdatedAt

func UpdatedAt(v time.Time) predicate.AppPackage

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.AppPackage

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.AppPackage

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.AppPackage

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.AppPackage

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.AppPackage

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.AppPackage

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.AppPackage

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.AppPackage

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func ValidColumn

func ValidColumn(column string) bool

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

Types

type Source

type Source string

Source defines the type for the "source" enum field.

const (
	SourceManual   Source = "manual"
	SourceSentinel Source = "sentinel"
)

Source values.

func (Source) String

func (s Source) String() string

Jump to

Keyboard shortcuts

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