Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Addon) predicate.Addon
- func AnnotationsIsNil() predicate.Addon
- func AnnotationsNotNil() predicate.Addon
- func CreatedAt(v time.Time) predicate.Addon
- func CreatedAtEQ(v time.Time) predicate.Addon
- func CreatedAtGT(v time.Time) predicate.Addon
- func CreatedAtGTE(v time.Time) predicate.Addon
- func CreatedAtIn(vs ...time.Time) predicate.Addon
- func CreatedAtLT(v time.Time) predicate.Addon
- func CreatedAtLTE(v time.Time) predicate.Addon
- func CreatedAtNEQ(v time.Time) predicate.Addon
- func CreatedAtNotIn(vs ...time.Time) predicate.Addon
- func Currency(v string) predicate.Addon
- func CurrencyContains(v string) predicate.Addon
- func CurrencyContainsFold(v string) predicate.Addon
- func CurrencyEQ(v string) predicate.Addon
- func CurrencyEqualFold(v string) predicate.Addon
- func CurrencyGT(v string) predicate.Addon
- func CurrencyGTE(v string) predicate.Addon
- func CurrencyHasPrefix(v string) predicate.Addon
- func CurrencyHasSuffix(v string) predicate.Addon
- func CurrencyIn(vs ...string) predicate.Addon
- func CurrencyLT(v string) predicate.Addon
- func CurrencyLTE(v string) predicate.Addon
- func CurrencyNEQ(v string) predicate.Addon
- func CurrencyNotIn(vs ...string) predicate.Addon
- func DeletedAt(v time.Time) predicate.Addon
- func DeletedAtEQ(v time.Time) predicate.Addon
- func DeletedAtGT(v time.Time) predicate.Addon
- func DeletedAtGTE(v time.Time) predicate.Addon
- func DeletedAtIn(vs ...time.Time) predicate.Addon
- func DeletedAtIsNil() predicate.Addon
- func DeletedAtLT(v time.Time) predicate.Addon
- func DeletedAtLTE(v time.Time) predicate.Addon
- func DeletedAtNEQ(v time.Time) predicate.Addon
- func DeletedAtNotIn(vs ...time.Time) predicate.Addon
- func DeletedAtNotNil() predicate.Addon
- func Description(v string) predicate.Addon
- func DescriptionContains(v string) predicate.Addon
- func DescriptionContainsFold(v string) predicate.Addon
- func DescriptionEQ(v string) predicate.Addon
- func DescriptionEqualFold(v string) predicate.Addon
- func DescriptionGT(v string) predicate.Addon
- func DescriptionGTE(v string) predicate.Addon
- func DescriptionHasPrefix(v string) predicate.Addon
- func DescriptionHasSuffix(v string) predicate.Addon
- func DescriptionIn(vs ...string) predicate.Addon
- func DescriptionIsNil() predicate.Addon
- func DescriptionLT(v string) predicate.Addon
- func DescriptionLTE(v string) predicate.Addon
- func DescriptionNEQ(v string) predicate.Addon
- func DescriptionNotIn(vs ...string) predicate.Addon
- func DescriptionNotNil() predicate.Addon
- func EffectiveFrom(v time.Time) predicate.Addon
- func EffectiveFromEQ(v time.Time) predicate.Addon
- func EffectiveFromGT(v time.Time) predicate.Addon
- func EffectiveFromGTE(v time.Time) predicate.Addon
- func EffectiveFromIn(vs ...time.Time) predicate.Addon
- func EffectiveFromIsNil() predicate.Addon
- func EffectiveFromLT(v time.Time) predicate.Addon
- func EffectiveFromLTE(v time.Time) predicate.Addon
- func EffectiveFromNEQ(v time.Time) predicate.Addon
- func EffectiveFromNotIn(vs ...time.Time) predicate.Addon
- func EffectiveFromNotNil() predicate.Addon
- func EffectiveTo(v time.Time) predicate.Addon
- func EffectiveToEQ(v time.Time) predicate.Addon
- func EffectiveToGT(v time.Time) predicate.Addon
- func EffectiveToGTE(v time.Time) predicate.Addon
- func EffectiveToIn(vs ...time.Time) predicate.Addon
- func EffectiveToIsNil() predicate.Addon
- func EffectiveToLT(v time.Time) predicate.Addon
- func EffectiveToLTE(v time.Time) predicate.Addon
- func EffectiveToNEQ(v time.Time) predicate.Addon
- func EffectiveToNotIn(vs ...time.Time) predicate.Addon
- func EffectiveToNotNil() predicate.Addon
- func HasPlans() predicate.Addon
- func HasPlansWith(preds ...predicate.PlanAddon) predicate.Addon
- func HasRatecards() predicate.Addon
- func HasRatecardsWith(preds ...predicate.AddonRateCard) predicate.Addon
- func HasSubscriptionAddons() predicate.Addon
- func HasSubscriptionAddonsWith(preds ...predicate.SubscriptionAddon) predicate.Addon
- func ID(id string) predicate.Addon
- func IDContainsFold(id string) predicate.Addon
- func IDEQ(id string) predicate.Addon
- func IDEqualFold(id string) predicate.Addon
- func IDGT(id string) predicate.Addon
- func IDGTE(id string) predicate.Addon
- func IDIn(ids ...string) predicate.Addon
- func IDLT(id string) predicate.Addon
- func IDLTE(id string) predicate.Addon
- func IDNEQ(id string) predicate.Addon
- func IDNotIn(ids ...string) predicate.Addon
- func InstanceTypeEQ(v productcatalog.AddonInstanceType) predicate.Addon
- func InstanceTypeIn(vs ...productcatalog.AddonInstanceType) predicate.Addon
- func InstanceTypeNEQ(v productcatalog.AddonInstanceType) predicate.Addon
- func InstanceTypeNotIn(vs ...productcatalog.AddonInstanceType) predicate.Addon
- func InstanceTypeValidator(it productcatalog.AddonInstanceType) error
- func Key(v string) predicate.Addon
- func KeyContains(v string) predicate.Addon
- func KeyContainsFold(v string) predicate.Addon
- func KeyEQ(v string) predicate.Addon
- func KeyEqualFold(v string) predicate.Addon
- func KeyGT(v string) predicate.Addon
- func KeyGTE(v string) predicate.Addon
- func KeyHasPrefix(v string) predicate.Addon
- func KeyHasSuffix(v string) predicate.Addon
- func KeyIn(vs ...string) predicate.Addon
- func KeyLT(v string) predicate.Addon
- func KeyLTE(v string) predicate.Addon
- func KeyNEQ(v string) predicate.Addon
- func KeyNotIn(vs ...string) predicate.Addon
- func MetadataIsNil() predicate.Addon
- func MetadataNotNil() predicate.Addon
- func Name(v string) predicate.Addon
- func NameContains(v string) predicate.Addon
- func NameContainsFold(v string) predicate.Addon
- func NameEQ(v string) predicate.Addon
- func NameEqualFold(v string) predicate.Addon
- func NameGT(v string) predicate.Addon
- func NameGTE(v string) predicate.Addon
- func NameHasPrefix(v string) predicate.Addon
- func NameHasSuffix(v string) predicate.Addon
- func NameIn(vs ...string) predicate.Addon
- func NameLT(v string) predicate.Addon
- func NameLTE(v string) predicate.Addon
- func NameNEQ(v string) predicate.Addon
- func NameNotIn(vs ...string) predicate.Addon
- func Namespace(v string) predicate.Addon
- func NamespaceContains(v string) predicate.Addon
- func NamespaceContainsFold(v string) predicate.Addon
- func NamespaceEQ(v string) predicate.Addon
- func NamespaceEqualFold(v string) predicate.Addon
- func NamespaceGT(v string) predicate.Addon
- func NamespaceGTE(v string) predicate.Addon
- func NamespaceHasPrefix(v string) predicate.Addon
- func NamespaceHasSuffix(v string) predicate.Addon
- func NamespaceIn(vs ...string) predicate.Addon
- func NamespaceLT(v string) predicate.Addon
- func NamespaceLTE(v string) predicate.Addon
- func NamespaceNEQ(v string) predicate.Addon
- func NamespaceNotIn(vs ...string) predicate.Addon
- func Not(p predicate.Addon) predicate.Addon
- func Or(predicates ...predicate.Addon) predicate.Addon
- func UpdatedAt(v time.Time) predicate.Addon
- func UpdatedAtEQ(v time.Time) predicate.Addon
- func UpdatedAtGT(v time.Time) predicate.Addon
- func UpdatedAtGTE(v time.Time) predicate.Addon
- func UpdatedAtIn(vs ...time.Time) predicate.Addon
- func UpdatedAtLT(v time.Time) predicate.Addon
- func UpdatedAtLTE(v time.Time) predicate.Addon
- func UpdatedAtNEQ(v time.Time) predicate.Addon
- func UpdatedAtNotIn(vs ...time.Time) predicate.Addon
- func ValidColumn(column string) bool
- func Version(v int) predicate.Addon
- func VersionEQ(v int) predicate.Addon
- func VersionGT(v int) predicate.Addon
- func VersionGTE(v int) predicate.Addon
- func VersionIn(vs ...int) predicate.Addon
- func VersionLT(v int) predicate.Addon
- func VersionLTE(v int) predicate.Addon
- func VersionNEQ(v int) predicate.Addon
- func VersionNotIn(vs ...int) predicate.Addon
- type OrderOption
- func ByAnnotations(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByCurrency(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDescription(opts ...sql.OrderTermOption) OrderOption
- func ByEffectiveFrom(opts ...sql.OrderTermOption) OrderOption
- func ByEffectiveTo(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByInstanceType(opts ...sql.OrderTermOption) OrderOption
- func ByKey(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByNamespace(opts ...sql.OrderTermOption) OrderOption
- func ByPlans(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByPlansCount(opts ...sql.OrderTermOption) OrderOption
- func ByRatecards(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByRatecardsCount(opts ...sql.OrderTermOption) OrderOption
- func BySubscriptionAddons(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func BySubscriptionAddonsCount(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByVersion(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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" )
const DefaultInstanceType productcatalog.AddonInstanceType = "single"
Variables ¶
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] } )
var Columns = []string{ FieldID, FieldNamespace, FieldMetadata, FieldCreatedAt, FieldUpdatedAt, FieldDeletedAt, FieldName, FieldDescription, FieldKey, FieldVersion, FieldCurrency, FieldInstanceType, FieldEffectiveFrom, FieldEffectiveTo, FieldAnnotations, }
Columns holds all SQL columns for addon fields.
Functions ¶
func AnnotationsIsNil ¶
AnnotationsIsNil applies the IsNil predicate on the "annotations" field.
func AnnotationsNotNil ¶
AnnotationsNotNil applies the NotNil predicate on the "annotations" field.
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func Currency ¶
Currency applies equality check predicate on the "currency" field. It's identical to CurrencyEQ.
func CurrencyContains ¶
CurrencyContains applies the Contains predicate on the "currency" field.
func CurrencyContainsFold ¶
CurrencyContainsFold applies the ContainsFold predicate on the "currency" field.
func CurrencyEQ ¶
CurrencyEQ applies the EQ predicate on the "currency" field.
func CurrencyEqualFold ¶
CurrencyEqualFold applies the EqualFold predicate on the "currency" field.
func CurrencyGT ¶
CurrencyGT applies the GT predicate on the "currency" field.
func CurrencyGTE ¶
CurrencyGTE applies the GTE predicate on the "currency" field.
func CurrencyHasPrefix ¶
CurrencyHasPrefix applies the HasPrefix predicate on the "currency" field.
func CurrencyHasSuffix ¶
CurrencyHasSuffix applies the HasSuffix predicate on the "currency" field.
func CurrencyIn ¶
CurrencyIn applies the In predicate on the "currency" field.
func CurrencyLT ¶
CurrencyLT applies the LT predicate on the "currency" field.
func CurrencyLTE ¶
CurrencyLTE applies the LTE predicate on the "currency" field.
func CurrencyNEQ ¶
CurrencyNEQ applies the NEQ predicate on the "currency" field.
func CurrencyNotIn ¶
CurrencyNotIn applies the NotIn predicate on the "currency" field.
func DeletedAt ¶
DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAtEQ ¶
DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtGT ¶
DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGTE ¶
DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtIn ¶
DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIsNil ¶
DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtLT ¶
DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLTE ¶
DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtNEQ ¶
DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNotIn ¶
DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotNil ¶
DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
func Description ¶
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶
DescriptionIn applies the In predicate on the "description" field.
func DescriptionIsNil ¶
DescriptionIsNil applies the IsNil predicate on the "description" field.
func DescriptionLT ¶
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶
DescriptionNotIn applies the NotIn predicate on the "description" field.
func DescriptionNotNil ¶
DescriptionNotNil applies the NotNil predicate on the "description" field.
func EffectiveFrom ¶
EffectiveFrom applies equality check predicate on the "effective_from" field. It's identical to EffectiveFromEQ.
func EffectiveFromEQ ¶
EffectiveFromEQ applies the EQ predicate on the "effective_from" field.
func EffectiveFromGT ¶
EffectiveFromGT applies the GT predicate on the "effective_from" field.
func EffectiveFromGTE ¶
EffectiveFromGTE applies the GTE predicate on the "effective_from" field.
func EffectiveFromIn ¶
EffectiveFromIn applies the In predicate on the "effective_from" field.
func EffectiveFromIsNil ¶
EffectiveFromIsNil applies the IsNil predicate on the "effective_from" field.
func EffectiveFromLT ¶
EffectiveFromLT applies the LT predicate on the "effective_from" field.
func EffectiveFromLTE ¶
EffectiveFromLTE applies the LTE predicate on the "effective_from" field.
func EffectiveFromNEQ ¶
EffectiveFromNEQ applies the NEQ predicate on the "effective_from" field.
func EffectiveFromNotIn ¶
EffectiveFromNotIn applies the NotIn predicate on the "effective_from" field.
func EffectiveFromNotNil ¶
EffectiveFromNotNil applies the NotNil predicate on the "effective_from" field.
func EffectiveTo ¶
EffectiveTo applies equality check predicate on the "effective_to" field. It's identical to EffectiveToEQ.
func EffectiveToEQ ¶
EffectiveToEQ applies the EQ predicate on the "effective_to" field.
func EffectiveToGT ¶
EffectiveToGT applies the GT predicate on the "effective_to" field.
func EffectiveToGTE ¶
EffectiveToGTE applies the GTE predicate on the "effective_to" field.
func EffectiveToIn ¶
EffectiveToIn applies the In predicate on the "effective_to" field.
func EffectiveToIsNil ¶
EffectiveToIsNil applies the IsNil predicate on the "effective_to" field.
func EffectiveToLT ¶
EffectiveToLT applies the LT predicate on the "effective_to" field.
func EffectiveToLTE ¶
EffectiveToLTE applies the LTE predicate on the "effective_to" field.
func EffectiveToNEQ ¶
EffectiveToNEQ applies the NEQ predicate on the "effective_to" field.
func EffectiveToNotIn ¶
EffectiveToNotIn applies the NotIn predicate on the "effective_to" field.
func EffectiveToNotNil ¶
EffectiveToNotNil applies the NotNil predicate on the "effective_to" field.
func HasPlansWith ¶
HasPlansWith applies the HasEdge predicate on the "plans" edge with a given conditions (other predicates).
func HasRatecards ¶
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 ¶
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 IDContainsFold ¶
IDContainsFold applies the ContainsFold predicate on the ID field.
func IDEqualFold ¶
IDEqualFold applies the EqualFold predicate on the ID field.
func InstanceTypeEQ ¶
func InstanceTypeEQ(v productcatalog.AddonInstanceType) predicate.Addon
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 ¶
func InstanceTypeNEQ(v productcatalog.AddonInstanceType) predicate.Addon
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 KeyContains ¶
KeyContains applies the Contains predicate on the "key" field.
func KeyContainsFold ¶
KeyContainsFold applies the ContainsFold predicate on the "key" field.
func KeyEqualFold ¶
KeyEqualFold applies the EqualFold predicate on the "key" field.
func KeyHasPrefix ¶
KeyHasPrefix applies the HasPrefix predicate on the "key" field.
func KeyHasSuffix ¶
KeyHasSuffix applies the HasSuffix predicate on the "key" field.
func MetadataIsNil ¶
MetadataIsNil applies the IsNil predicate on the "metadata" field.
func MetadataNotNil ¶
MetadataNotNil applies the NotNil predicate on the "metadata" field.
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func Namespace ¶
Namespace applies equality check predicate on the "namespace" field. It's identical to NamespaceEQ.
func NamespaceContains ¶
NamespaceContains applies the Contains predicate on the "namespace" field.
func NamespaceContainsFold ¶
NamespaceContainsFold applies the ContainsFold predicate on the "namespace" field.
func NamespaceEQ ¶
NamespaceEQ applies the EQ predicate on the "namespace" field.
func NamespaceEqualFold ¶
NamespaceEqualFold applies the EqualFold predicate on the "namespace" field.
func NamespaceGT ¶
NamespaceGT applies the GT predicate on the "namespace" field.
func NamespaceGTE ¶
NamespaceGTE applies the GTE predicate on the "namespace" field.
func NamespaceHasPrefix ¶
NamespaceHasPrefix applies the HasPrefix predicate on the "namespace" field.
func NamespaceHasSuffix ¶
NamespaceHasSuffix applies the HasSuffix predicate on the "namespace" field.
func NamespaceIn ¶
NamespaceIn applies the In predicate on the "namespace" field.
func NamespaceLT ¶
NamespaceLT applies the LT predicate on the "namespace" field.
func NamespaceLTE ¶
NamespaceLTE applies the LTE predicate on the "namespace" field.
func NamespaceNEQ ¶
NamespaceNEQ applies the NEQ predicate on the "namespace" field.
func NamespaceNotIn ¶
NamespaceNotIn applies the NotIn predicate on the "namespace" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func Version ¶
Version applies equality check predicate on the "version" field. It's identical to VersionEQ.
func VersionGTE ¶
VersionGTE applies the GTE predicate on the "version" field.
func VersionLTE ¶
VersionLTE applies the LTE predicate on the "version" field.
func VersionNEQ ¶
VersionNEQ applies the NEQ predicate on the "version" field.
func VersionNotIn ¶
VersionNotIn applies the NotIn predicate on the "version" field.
Types ¶
type OrderOption ¶
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.