softwarecatalog

package
v0.0.0-...-d4cf3a4 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the softwarecatalog type in the database.
	Label = "software_catalog"
	// 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"
	// FieldDescription holds the string denoting the description field in the database.
	FieldDescription = "description"
	// FieldRingOrder holds the string denoting the ring_order field in the database.
	FieldRingOrder = "ring_order"
	// FieldIsDefault holds the string denoting the is_default field in the database.
	FieldIsDefault = "is_default"
	// FieldCreated holds the string denoting the created field in the database.
	FieldCreated = "created"
	// FieldModified holds the string denoting the modified field in the database.
	FieldModified = "modified"
	// EdgeTenant holds the string denoting the tenant edge name in mutations.
	EdgeTenant = "tenant"
	// EdgePackages holds the string denoting the packages edge name in mutations.
	EdgePackages = "packages"
	// Table holds the table name of the softwarecatalog in the database.
	Table = "software_catalogs"
	// TenantTable is the table that holds the tenant relation/edge.
	TenantTable = "software_catalogs"
	// TenantInverseTable is the table name for the Tenant entity.
	// It exists in this package in order to avoid circular dependency with the "tenant" package.
	TenantInverseTable = "tenants"
	// TenantColumn is the table column denoting the tenant relation/edge.
	TenantColumn = "tenant_software_catalogs"
	// PackagesTable is the table that holds the packages relation/edge. The primary key declared below.
	PackagesTable = "software_catalog_packages"
	// PackagesInverseTable is the table name for the ManagedPackage entity.
	// It exists in this package in order to avoid circular dependency with the "managedpackage" package.
	PackagesInverseTable = "managed_packages"
)

Variables

View Source
var (
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// DefaultDescription holds the default value on creation for the "description" field.
	DefaultDescription string
	// DefaultIsDefault holds the default value on creation for the "is_default" field.
	DefaultIsDefault bool
	// DefaultCreated holds the default value on creation for the "created" field.
	DefaultCreated func() time.Time
	// DefaultModified holds the default value on creation for the "modified" field.
	DefaultModified func() time.Time
	// UpdateDefaultModified holds the default value on update for the "modified" field.
	UpdateDefaultModified func() time.Time
)

Columns holds all SQL columns for softwarecatalog fields.

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

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

View Source
var (
	// PackagesPrimaryKey and PackagesColumn2 are the table columns denoting the
	// primary key for the packages relation (M2M).
	PackagesPrimaryKey = []string{"software_catalog_id", "managed_package_id"}
)

Functions

func And

And groups predicates with the AND operator between them.

func Created

Created applies equality check predicate on the "created" field. It's identical to CreatedEQ.

func CreatedEQ

func CreatedEQ(v time.Time) predicate.SoftwareCatalog

CreatedEQ applies the EQ predicate on the "created" field.

func CreatedGT

func CreatedGT(v time.Time) predicate.SoftwareCatalog

CreatedGT applies the GT predicate on the "created" field.

func CreatedGTE

func CreatedGTE(v time.Time) predicate.SoftwareCatalog

CreatedGTE applies the GTE predicate on the "created" field.

func CreatedIn

func CreatedIn(vs ...time.Time) predicate.SoftwareCatalog

CreatedIn applies the In predicate on the "created" field.

func CreatedIsNil

func CreatedIsNil() predicate.SoftwareCatalog

CreatedIsNil applies the IsNil predicate on the "created" field.

func CreatedLT

func CreatedLT(v time.Time) predicate.SoftwareCatalog

CreatedLT applies the LT predicate on the "created" field.

func CreatedLTE

func CreatedLTE(v time.Time) predicate.SoftwareCatalog

CreatedLTE applies the LTE predicate on the "created" field.

func CreatedNEQ

func CreatedNEQ(v time.Time) predicate.SoftwareCatalog

CreatedNEQ applies the NEQ predicate on the "created" field.

func CreatedNotIn

func CreatedNotIn(vs ...time.Time) predicate.SoftwareCatalog

CreatedNotIn applies the NotIn predicate on the "created" field.

func CreatedNotNil

func CreatedNotNil() predicate.SoftwareCatalog

CreatedNotNil applies the NotNil predicate on the "created" field.

func Description

func Description(v string) predicate.SoftwareCatalog

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

func DescriptionContains

func DescriptionContains(v string) predicate.SoftwareCatalog

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

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.SoftwareCatalog

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

func DescriptionEQ

func DescriptionEQ(v string) predicate.SoftwareCatalog

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

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.SoftwareCatalog

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

func DescriptionGT

func DescriptionGT(v string) predicate.SoftwareCatalog

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

func DescriptionGTE

func DescriptionGTE(v string) predicate.SoftwareCatalog

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

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.SoftwareCatalog

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

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.SoftwareCatalog

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

func DescriptionIn

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

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

func DescriptionIsNil

func DescriptionIsNil() predicate.SoftwareCatalog

DescriptionIsNil applies the IsNil predicate on the "description" field.

func DescriptionLT

func DescriptionLT(v string) predicate.SoftwareCatalog

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

func DescriptionLTE

func DescriptionLTE(v string) predicate.SoftwareCatalog

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

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.SoftwareCatalog

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

func DescriptionNotIn

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

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

func DescriptionNotNil

func DescriptionNotNil() predicate.SoftwareCatalog

DescriptionNotNil applies the NotNil predicate on the "description" field.

func HasPackages

func HasPackages() predicate.SoftwareCatalog

HasPackages applies the HasEdge predicate on the "packages" edge.

func HasPackagesWith

func HasPackagesWith(preds ...predicate.ManagedPackage) predicate.SoftwareCatalog

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

func HasTenant

func HasTenant() predicate.SoftwareCatalog

HasTenant applies the HasEdge predicate on the "tenant" edge.

func HasTenantWith

func HasTenantWith(preds ...predicate.Tenant) predicate.SoftwareCatalog

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

func ID

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.SoftwareCatalog

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.SoftwareCatalog

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.SoftwareCatalog

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.SoftwareCatalog

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.SoftwareCatalog

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.SoftwareCatalog

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func IsDefault

func IsDefault(v bool) predicate.SoftwareCatalog

IsDefault applies equality check predicate on the "is_default" field. It's identical to IsDefaultEQ.

func IsDefaultEQ

func IsDefaultEQ(v bool) predicate.SoftwareCatalog

IsDefaultEQ applies the EQ predicate on the "is_default" field.

func IsDefaultIsNil

func IsDefaultIsNil() predicate.SoftwareCatalog

IsDefaultIsNil applies the IsNil predicate on the "is_default" field.

func IsDefaultNEQ

func IsDefaultNEQ(v bool) predicate.SoftwareCatalog

IsDefaultNEQ applies the NEQ predicate on the "is_default" field.

func IsDefaultNotNil

func IsDefaultNotNil() predicate.SoftwareCatalog

IsDefaultNotNil applies the NotNil predicate on the "is_default" field.

func Modified

func Modified(v time.Time) predicate.SoftwareCatalog

Modified applies equality check predicate on the "modified" field. It's identical to ModifiedEQ.

func ModifiedEQ

func ModifiedEQ(v time.Time) predicate.SoftwareCatalog

ModifiedEQ applies the EQ predicate on the "modified" field.

func ModifiedGT

func ModifiedGT(v time.Time) predicate.SoftwareCatalog

ModifiedGT applies the GT predicate on the "modified" field.

func ModifiedGTE

func ModifiedGTE(v time.Time) predicate.SoftwareCatalog

ModifiedGTE applies the GTE predicate on the "modified" field.

func ModifiedIn

func ModifiedIn(vs ...time.Time) predicate.SoftwareCatalog

ModifiedIn applies the In predicate on the "modified" field.

func ModifiedIsNil

func ModifiedIsNil() predicate.SoftwareCatalog

ModifiedIsNil applies the IsNil predicate on the "modified" field.

func ModifiedLT

func ModifiedLT(v time.Time) predicate.SoftwareCatalog

ModifiedLT applies the LT predicate on the "modified" field.

func ModifiedLTE

func ModifiedLTE(v time.Time) predicate.SoftwareCatalog

ModifiedLTE applies the LTE predicate on the "modified" field.

func ModifiedNEQ

func ModifiedNEQ(v time.Time) predicate.SoftwareCatalog

ModifiedNEQ applies the NEQ predicate on the "modified" field.

func ModifiedNotIn

func ModifiedNotIn(vs ...time.Time) predicate.SoftwareCatalog

ModifiedNotIn applies the NotIn predicate on the "modified" field.

func ModifiedNotNil

func ModifiedNotNil() predicate.SoftwareCatalog

ModifiedNotNil applies the NotNil predicate on the "modified" field.

func Name

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

func NameContains

func NameContains(v string) predicate.SoftwareCatalog

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

func NameContainsFold

func NameContainsFold(v string) predicate.SoftwareCatalog

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

func NameEQ

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

func NameEqualFold

func NameEqualFold(v string) predicate.SoftwareCatalog

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

func NameGT

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

func NameGTE

func NameGTE(v string) predicate.SoftwareCatalog

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.SoftwareCatalog

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.SoftwareCatalog

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

func NameIn

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

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

func NameLT

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

func NameLTE

func NameLTE(v string) predicate.SoftwareCatalog

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

func NameNEQ

func NameNEQ(v string) predicate.SoftwareCatalog

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

func NameNotIn

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

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

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func RingOrder

func RingOrder(v int) predicate.SoftwareCatalog

RingOrder applies equality check predicate on the "ring_order" field. It's identical to RingOrderEQ.

func RingOrderEQ

func RingOrderEQ(v int) predicate.SoftwareCatalog

RingOrderEQ applies the EQ predicate on the "ring_order" field.

func RingOrderGT

func RingOrderGT(v int) predicate.SoftwareCatalog

RingOrderGT applies the GT predicate on the "ring_order" field.

func RingOrderGTE

func RingOrderGTE(v int) predicate.SoftwareCatalog

RingOrderGTE applies the GTE predicate on the "ring_order" field.

func RingOrderIn

func RingOrderIn(vs ...int) predicate.SoftwareCatalog

RingOrderIn applies the In predicate on the "ring_order" field.

func RingOrderLT

func RingOrderLT(v int) predicate.SoftwareCatalog

RingOrderLT applies the LT predicate on the "ring_order" field.

func RingOrderLTE

func RingOrderLTE(v int) predicate.SoftwareCatalog

RingOrderLTE applies the LTE predicate on the "ring_order" field.

func RingOrderNEQ

func RingOrderNEQ(v int) predicate.SoftwareCatalog

RingOrderNEQ applies the NEQ predicate on the "ring_order" field.

func RingOrderNotIn

func RingOrderNotIn(vs ...int) predicate.SoftwareCatalog

RingOrderNotIn applies the NotIn predicate on the "ring_order" field.

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

func ByCreated

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

ByCreated orders the results by the created field.

func ByDescription

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

ByDescription orders the results by the description field.

func ByID

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

ByID orders the results by the id field.

func ByIsDefault

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

ByIsDefault orders the results by the is_default field.

func ByModified

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

ByModified orders the results by the modified field.

func ByName

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

ByName orders the results by the name field.

func ByPackages

func ByPackages(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByPackages orders the results by packages terms.

func ByPackagesCount

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

ByPackagesCount orders the results by packages count.

func ByRingOrder

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

ByRingOrder orders the results by the ring_order field.

func ByTenantField

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

ByTenantField orders the results by tenant field.

Jump to

Keyboard shortcuts

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