addon

package
v1.0.0-beta.227 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the addon type in the database.
	Label = "addon"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldNamespace holds the string denoting the namespace field in the database.
	FieldNamespace = "namespace"
	// FieldMetadata holds the string denoting the metadata field in the database.
	FieldMetadata = "metadata"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// FieldDeletedAt holds the string denoting the deleted_at field in the database.
	FieldDeletedAt = "deleted_at"
	// 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"
	// FieldKey holds the string denoting the key field in the database.
	FieldKey = "key"
	// FieldVersion holds the string denoting the version field in the database.
	FieldVersion = "version"
	// FieldCurrency holds the string denoting the currency field in the database.
	FieldCurrency = "currency"
	// FieldInstanceType holds the string denoting the instance_type field in the database.
	FieldInstanceType = "instance_type"
	// FieldEffectiveFrom holds the string denoting the effective_from field in the database.
	FieldEffectiveFrom = "effective_from"
	// FieldEffectiveTo holds the string denoting the effective_to field in the database.
	FieldEffectiveTo = "effective_to"
	// FieldAnnotations holds the string denoting the annotations field in the database.
	FieldAnnotations = "annotations"
	// EdgeRatecards holds the string denoting the ratecards edge name in mutations.
	EdgeRatecards = "ratecards"
	// EdgePlans holds the string denoting the plans edge name in mutations.
	EdgePlans = "plans"
	// EdgeSubscriptionAddons holds the string denoting the subscription_addons edge name in mutations.
	EdgeSubscriptionAddons = "subscription_addons"
	// Table holds the table name of the addon in the database.
	Table = "addons"
	// RatecardsTable is the table that holds the ratecards relation/edge.
	RatecardsTable = "addon_rate_cards"
	// RatecardsInverseTable is the table name for the AddonRateCard entity.
	// It exists in this package in order to avoid circular dependency with the "addonratecard" package.
	RatecardsInverseTable = "addon_rate_cards"
	// RatecardsColumn is the table column denoting the ratecards relation/edge.
	RatecardsColumn = "addon_id"
	// PlansTable is the table that holds the plans relation/edge.
	PlansTable = "plan_addons"
	// PlansInverseTable is the table name for the PlanAddon entity.
	// It exists in this package in order to avoid circular dependency with the "planaddon" package.
	PlansInverseTable = "plan_addons"
	// PlansColumn is the table column denoting the plans relation/edge.
	PlansColumn = "addon_id"
	// SubscriptionAddonsTable is the table that holds the subscription_addons relation/edge.
	SubscriptionAddonsTable = "subscription_addons"
	// SubscriptionAddonsInverseTable is the table name for the SubscriptionAddon entity.
	// It exists in this package in order to avoid circular dependency with the "subscriptionaddon" package.
	SubscriptionAddonsInverseTable = "subscription_addons"
	// SubscriptionAddonsColumn is the table column denoting the subscription_addons relation/edge.
	SubscriptionAddonsColumn = "addon_id"
)
View Source
const DefaultInstanceType productcatalog.AddonInstanceType = "single"

Variables

View Source
var (
	// NamespaceValidator is a validator for the "namespace" field. It is called by the builders before save.
	NamespaceValidator func(string) error
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// 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
	// KeyValidator is a validator for the "key" field. It is called by the builders before save.
	KeyValidator func(string) error
	// VersionValidator is a validator for the "version" field. It is called by the builders before save.
	VersionValidator func(int) error
	// DefaultCurrency holds the default value on creation for the "currency" field.
	DefaultCurrency string
	// CurrencyValidator is a validator for the "currency" field. It is called by the builders before save.
	CurrencyValidator func(string) error
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() string
	// ValueScanner of all Addon fields.
	ValueScanner struct {
		Annotations field.TypeValueScanner[models.Annotations]
	}
)

Columns holds all SQL columns for addon fields.

Functions

func And

func And(predicates ...predicate.Addon) predicate.Addon

And groups predicates with the AND operator between them.

func AnnotationsIsNil

func AnnotationsIsNil() predicate.Addon

AnnotationsIsNil applies the IsNil predicate on the "annotations" field.

func AnnotationsNotNil

func AnnotationsNotNil() predicate.Addon

AnnotationsNotNil applies the NotNil predicate on the "annotations" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Addon

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Addon

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Addon

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Addon

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Addon

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Addon

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Addon

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

func CreatedAtNotIn

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

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

func Currency

func Currency(v string) predicate.Addon

Currency applies equality check predicate on the "currency" field. It's identical to CurrencyEQ.

func CurrencyContains

func CurrencyContains(v string) predicate.Addon

CurrencyContains applies the Contains predicate on the "currency" field.

func CurrencyContainsFold

func CurrencyContainsFold(v string) predicate.Addon

CurrencyContainsFold applies the ContainsFold predicate on the "currency" field.

func CurrencyEQ

func CurrencyEQ(v string) predicate.Addon

CurrencyEQ applies the EQ predicate on the "currency" field.

func CurrencyEqualFold

func CurrencyEqualFold(v string) predicate.Addon

CurrencyEqualFold applies the EqualFold predicate on the "currency" field.

func CurrencyGT

func CurrencyGT(v string) predicate.Addon

CurrencyGT applies the GT predicate on the "currency" field.

func CurrencyGTE

func CurrencyGTE(v string) predicate.Addon

CurrencyGTE applies the GTE predicate on the "currency" field.

func CurrencyHasPrefix

func CurrencyHasPrefix(v string) predicate.Addon

CurrencyHasPrefix applies the HasPrefix predicate on the "currency" field.

func CurrencyHasSuffix

func CurrencyHasSuffix(v string) predicate.Addon

CurrencyHasSuffix applies the HasSuffix predicate on the "currency" field.

func CurrencyIn

func CurrencyIn(vs ...string) predicate.Addon

CurrencyIn applies the In predicate on the "currency" field.

func CurrencyLT

func CurrencyLT(v string) predicate.Addon

CurrencyLT applies the LT predicate on the "currency" field.

func CurrencyLTE

func CurrencyLTE(v string) predicate.Addon

CurrencyLTE applies the LTE predicate on the "currency" field.

func CurrencyNEQ

func CurrencyNEQ(v string) predicate.Addon

CurrencyNEQ applies the NEQ predicate on the "currency" field.

func CurrencyNotIn

func CurrencyNotIn(vs ...string) predicate.Addon

CurrencyNotIn applies the NotIn predicate on the "currency" field.

func DeletedAt

func DeletedAt(v time.Time) predicate.Addon

DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.

func DeletedAtEQ

func DeletedAtEQ(v time.Time) predicate.Addon

DeletedAtEQ applies the EQ predicate on the "deleted_at" field.

func DeletedAtGT

func DeletedAtGT(v time.Time) predicate.Addon

DeletedAtGT applies the GT predicate on the "deleted_at" field.

func DeletedAtGTE

func DeletedAtGTE(v time.Time) predicate.Addon

DeletedAtGTE applies the GTE predicate on the "deleted_at" field.

func DeletedAtIn

func DeletedAtIn(vs ...time.Time) predicate.Addon

DeletedAtIn applies the In predicate on the "deleted_at" field.

func DeletedAtIsNil

func DeletedAtIsNil() predicate.Addon

DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.

func DeletedAtLT

func DeletedAtLT(v time.Time) predicate.Addon

DeletedAtLT applies the LT predicate on the "deleted_at" field.

func DeletedAtLTE

func DeletedAtLTE(v time.Time) predicate.Addon

DeletedAtLTE applies the LTE predicate on the "deleted_at" field.

func DeletedAtNEQ

func DeletedAtNEQ(v time.Time) predicate.Addon

DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.

func DeletedAtNotIn

func DeletedAtNotIn(vs ...time.Time) predicate.Addon

DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.

func DeletedAtNotNil

func DeletedAtNotNil() predicate.Addon

DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.

func Description

func Description(v string) predicate.Addon

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

func DescriptionContains

func DescriptionContains(v string) predicate.Addon

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

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.Addon

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

func DescriptionEQ

func DescriptionEQ(v string) predicate.Addon

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

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.Addon

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

func DescriptionGT

func DescriptionGT(v string) predicate.Addon

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

func DescriptionGTE

func DescriptionGTE(v string) predicate.Addon

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

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.Addon

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

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.Addon

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

func DescriptionIn

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

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

func DescriptionIsNil

func DescriptionIsNil() predicate.Addon

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

func DescriptionLT

func DescriptionLT(v string) predicate.Addon

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

func DescriptionLTE

func DescriptionLTE(v string) predicate.Addon

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

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.Addon

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

func DescriptionNotIn

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

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

func DescriptionNotNil

func DescriptionNotNil() predicate.Addon

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

func EffectiveFrom

func EffectiveFrom(v time.Time) predicate.Addon

EffectiveFrom applies equality check predicate on the "effective_from" field. It's identical to EffectiveFromEQ.

func EffectiveFromEQ

func EffectiveFromEQ(v time.Time) predicate.Addon

EffectiveFromEQ applies the EQ predicate on the "effective_from" field.

func EffectiveFromGT

func EffectiveFromGT(v time.Time) predicate.Addon

EffectiveFromGT applies the GT predicate on the "effective_from" field.

func EffectiveFromGTE

func EffectiveFromGTE(v time.Time) predicate.Addon

EffectiveFromGTE applies the GTE predicate on the "effective_from" field.

func EffectiveFromIn

func EffectiveFromIn(vs ...time.Time) predicate.Addon

EffectiveFromIn applies the In predicate on the "effective_from" field.

func EffectiveFromIsNil

func EffectiveFromIsNil() predicate.Addon

EffectiveFromIsNil applies the IsNil predicate on the "effective_from" field.

func EffectiveFromLT

func EffectiveFromLT(v time.Time) predicate.Addon

EffectiveFromLT applies the LT predicate on the "effective_from" field.

func EffectiveFromLTE

func EffectiveFromLTE(v time.Time) predicate.Addon

EffectiveFromLTE applies the LTE predicate on the "effective_from" field.

func EffectiveFromNEQ

func EffectiveFromNEQ(v time.Time) predicate.Addon

EffectiveFromNEQ applies the NEQ predicate on the "effective_from" field.

func EffectiveFromNotIn

func EffectiveFromNotIn(vs ...time.Time) predicate.Addon

EffectiveFromNotIn applies the NotIn predicate on the "effective_from" field.

func EffectiveFromNotNil

func EffectiveFromNotNil() predicate.Addon

EffectiveFromNotNil applies the NotNil predicate on the "effective_from" field.

func EffectiveTo

func EffectiveTo(v time.Time) predicate.Addon

EffectiveTo applies equality check predicate on the "effective_to" field. It's identical to EffectiveToEQ.

func EffectiveToEQ

func EffectiveToEQ(v time.Time) predicate.Addon

EffectiveToEQ applies the EQ predicate on the "effective_to" field.

func EffectiveToGT

func EffectiveToGT(v time.Time) predicate.Addon

EffectiveToGT applies the GT predicate on the "effective_to" field.

func EffectiveToGTE

func EffectiveToGTE(v time.Time) predicate.Addon

EffectiveToGTE applies the GTE predicate on the "effective_to" field.

func EffectiveToIn

func EffectiveToIn(vs ...time.Time) predicate.Addon

EffectiveToIn applies the In predicate on the "effective_to" field.

func EffectiveToIsNil

func EffectiveToIsNil() predicate.Addon

EffectiveToIsNil applies the IsNil predicate on the "effective_to" field.

func EffectiveToLT

func EffectiveToLT(v time.Time) predicate.Addon

EffectiveToLT applies the LT predicate on the "effective_to" field.

func EffectiveToLTE

func EffectiveToLTE(v time.Time) predicate.Addon

EffectiveToLTE applies the LTE predicate on the "effective_to" field.

func EffectiveToNEQ

func EffectiveToNEQ(v time.Time) predicate.Addon

EffectiveToNEQ applies the NEQ predicate on the "effective_to" field.

func EffectiveToNotIn

func EffectiveToNotIn(vs ...time.Time) predicate.Addon

EffectiveToNotIn applies the NotIn predicate on the "effective_to" field.

func EffectiveToNotNil

func EffectiveToNotNil() predicate.Addon

EffectiveToNotNil applies the NotNil predicate on the "effective_to" field.

func HasPlans

func HasPlans() predicate.Addon

HasPlans applies the HasEdge predicate on the "plans" edge.

func HasPlansWith

func HasPlansWith(preds ...predicate.PlanAddon) predicate.Addon

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

func HasRatecards

func HasRatecards() predicate.Addon

HasRatecards applies the HasEdge predicate on the "ratecards" edge.

func HasRatecardsWith

func HasRatecardsWith(preds ...predicate.AddonRateCard) predicate.Addon

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

func HasSubscriptionAddons

func HasSubscriptionAddons() predicate.Addon

HasSubscriptionAddons applies the HasEdge predicate on the "subscription_addons" edge.

func HasSubscriptionAddonsWith

func HasSubscriptionAddonsWith(preds ...predicate.SubscriptionAddon) predicate.Addon

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

func ID

func ID(id string) predicate.Addon

ID filters vertices based on their ID field.

func IDContainsFold

func IDContainsFold(id string) predicate.Addon

IDContainsFold applies the ContainsFold predicate on the ID field.

func IDEQ

func IDEQ(id string) predicate.Addon

IDEQ applies the EQ predicate on the ID field.

func IDEqualFold

func IDEqualFold(id string) predicate.Addon

IDEqualFold applies the EqualFold predicate on the ID field.

func IDGT

func IDGT(id string) predicate.Addon

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.Addon

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...string) predicate.Addon

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.Addon

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.Addon

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.Addon

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...string) predicate.Addon

IDNotIn applies the NotIn predicate on the ID field.

func InstanceTypeEQ

InstanceTypeEQ applies the EQ predicate on the "instance_type" field.

func InstanceTypeIn

func InstanceTypeIn(vs ...productcatalog.AddonInstanceType) predicate.Addon

InstanceTypeIn applies the In predicate on the "instance_type" field.

func InstanceTypeNEQ

InstanceTypeNEQ applies the NEQ predicate on the "instance_type" field.

func InstanceTypeNotIn

func InstanceTypeNotIn(vs ...productcatalog.AddonInstanceType) predicate.Addon

InstanceTypeNotIn applies the NotIn predicate on the "instance_type" field.

func InstanceTypeValidator

func InstanceTypeValidator(it productcatalog.AddonInstanceType) error

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

func Key

func Key(v string) predicate.Addon

Key applies equality check predicate on the "key" field. It's identical to KeyEQ.

func KeyContains

func KeyContains(v string) predicate.Addon

KeyContains applies the Contains predicate on the "key" field.

func KeyContainsFold

func KeyContainsFold(v string) predicate.Addon

KeyContainsFold applies the ContainsFold predicate on the "key" field.

func KeyEQ

func KeyEQ(v string) predicate.Addon

KeyEQ applies the EQ predicate on the "key" field.

func KeyEqualFold

func KeyEqualFold(v string) predicate.Addon

KeyEqualFold applies the EqualFold predicate on the "key" field.

func KeyGT

func KeyGT(v string) predicate.Addon

KeyGT applies the GT predicate on the "key" field.

func KeyGTE

func KeyGTE(v string) predicate.Addon

KeyGTE applies the GTE predicate on the "key" field.

func KeyHasPrefix

func KeyHasPrefix(v string) predicate.Addon

KeyHasPrefix applies the HasPrefix predicate on the "key" field.

func KeyHasSuffix

func KeyHasSuffix(v string) predicate.Addon

KeyHasSuffix applies the HasSuffix predicate on the "key" field.

func KeyIn

func KeyIn(vs ...string) predicate.Addon

KeyIn applies the In predicate on the "key" field.

func KeyLT

func KeyLT(v string) predicate.Addon

KeyLT applies the LT predicate on the "key" field.

func KeyLTE

func KeyLTE(v string) predicate.Addon

KeyLTE applies the LTE predicate on the "key" field.

func KeyNEQ

func KeyNEQ(v string) predicate.Addon

KeyNEQ applies the NEQ predicate on the "key" field.

func KeyNotIn

func KeyNotIn(vs ...string) predicate.Addon

KeyNotIn applies the NotIn predicate on the "key" field.

func MetadataIsNil

func MetadataIsNil() predicate.Addon

MetadataIsNil applies the IsNil predicate on the "metadata" field.

func MetadataNotNil

func MetadataNotNil() predicate.Addon

MetadataNotNil applies the NotNil predicate on the "metadata" field.

func Name

func Name(v string) predicate.Addon

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

func NameContains

func NameContains(v string) predicate.Addon

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

func NameContainsFold

func NameContainsFold(v string) predicate.Addon

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

func NameEQ

func NameEQ(v string) predicate.Addon

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

func NameEqualFold

func NameEqualFold(v string) predicate.Addon

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

func NameGT

func NameGT(v string) predicate.Addon

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

func NameGTE

func NameGTE(v string) predicate.Addon

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.Addon

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.Addon

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.Addon

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

func NameLTE

func NameLTE(v string) predicate.Addon

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

func NameNEQ

func NameNEQ(v string) predicate.Addon

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

func NameNotIn

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

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

func Namespace

func Namespace(v string) predicate.Addon

Namespace applies equality check predicate on the "namespace" field. It's identical to NamespaceEQ.

func NamespaceContains

func NamespaceContains(v string) predicate.Addon

NamespaceContains applies the Contains predicate on the "namespace" field.

func NamespaceContainsFold

func NamespaceContainsFold(v string) predicate.Addon

NamespaceContainsFold applies the ContainsFold predicate on the "namespace" field.

func NamespaceEQ

func NamespaceEQ(v string) predicate.Addon

NamespaceEQ applies the EQ predicate on the "namespace" field.

func NamespaceEqualFold

func NamespaceEqualFold(v string) predicate.Addon

NamespaceEqualFold applies the EqualFold predicate on the "namespace" field.

func NamespaceGT

func NamespaceGT(v string) predicate.Addon

NamespaceGT applies the GT predicate on the "namespace" field.

func NamespaceGTE

func NamespaceGTE(v string) predicate.Addon

NamespaceGTE applies the GTE predicate on the "namespace" field.

func NamespaceHasPrefix

func NamespaceHasPrefix(v string) predicate.Addon

NamespaceHasPrefix applies the HasPrefix predicate on the "namespace" field.

func NamespaceHasSuffix

func NamespaceHasSuffix(v string) predicate.Addon

NamespaceHasSuffix applies the HasSuffix predicate on the "namespace" field.

func NamespaceIn

func NamespaceIn(vs ...string) predicate.Addon

NamespaceIn applies the In predicate on the "namespace" field.

func NamespaceLT

func NamespaceLT(v string) predicate.Addon

NamespaceLT applies the LT predicate on the "namespace" field.

func NamespaceLTE

func NamespaceLTE(v string) predicate.Addon

NamespaceLTE applies the LTE predicate on the "namespace" field.

func NamespaceNEQ

func NamespaceNEQ(v string) predicate.Addon

NamespaceNEQ applies the NEQ predicate on the "namespace" field.

func NamespaceNotIn

func NamespaceNotIn(vs ...string) predicate.Addon

NamespaceNotIn applies the NotIn predicate on the "namespace" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Addon) predicate.Addon

Or groups predicates with the OR operator between them.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Addon

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Addon

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Addon

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Addon

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Addon

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Addon

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Addon

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

func UpdatedAtNotIn

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

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

func Version

func Version(v int) predicate.Addon

Version applies equality check predicate on the "version" field. It's identical to VersionEQ.

func VersionEQ

func VersionEQ(v int) predicate.Addon

VersionEQ applies the EQ predicate on the "version" field.

func VersionGT

func VersionGT(v int) predicate.Addon

VersionGT applies the GT predicate on the "version" field.

func VersionGTE

func VersionGTE(v int) predicate.Addon

VersionGTE applies the GTE predicate on the "version" field.

func VersionIn

func VersionIn(vs ...int) predicate.Addon

VersionIn applies the In predicate on the "version" field.

func VersionLT

func VersionLT(v int) predicate.Addon

VersionLT applies the LT predicate on the "version" field.

func VersionLTE

func VersionLTE(v int) predicate.Addon

VersionLTE applies the LTE predicate on the "version" field.

func VersionNEQ

func VersionNEQ(v int) predicate.Addon

VersionNEQ applies the NEQ predicate on the "version" field.

func VersionNotIn

func VersionNotIn(vs ...int) predicate.Addon

VersionNotIn applies the NotIn predicate on the "version" field.

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Addon queries.

func ByAnnotations

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

ByAnnotations orders the results by the annotations field.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByCurrency

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

ByCurrency orders the results by the currency field.

func ByDeletedAt

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

ByDeletedAt orders the results by the deleted_at field.

func ByDescription

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

ByDescription orders the results by the description field.

func ByEffectiveFrom

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

ByEffectiveFrom orders the results by the effective_from field.

func ByEffectiveTo

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

ByEffectiveTo orders the results by the effective_to field.

func ByID

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

ByID orders the results by the id field.

func ByInstanceType

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

ByInstanceType orders the results by the instance_type field.

func ByKey

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

ByKey orders the results by the key field.

func ByName

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

ByName orders the results by the name field.

func ByNamespace

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

ByNamespace orders the results by the namespace field.

func ByPlans

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

ByPlans orders the results by plans terms.

func ByPlansCount

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

ByPlansCount orders the results by plans count.

func ByRatecards

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

ByRatecards orders the results by ratecards terms.

func ByRatecardsCount

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

ByRatecardsCount orders the results by ratecards count.

func BySubscriptionAddons

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

BySubscriptionAddons orders the results by subscription_addons terms.

func BySubscriptionAddonsCount

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

BySubscriptionAddonsCount orders the results by subscription_addons count.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

func ByVersion

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

ByVersion orders the results by the version field.

Jump to

Keyboard shortcuts

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