Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.UsageReset) predicate.UsageReset
- func CreatedAt(v time.Time) predicate.UsageReset
- func CreatedAtEQ(v time.Time) predicate.UsageReset
- func CreatedAtGT(v time.Time) predicate.UsageReset
- func CreatedAtGTE(v time.Time) predicate.UsageReset
- func CreatedAtIn(vs ...time.Time) predicate.UsageReset
- func CreatedAtLT(v time.Time) predicate.UsageReset
- func CreatedAtLTE(v time.Time) predicate.UsageReset
- func CreatedAtNEQ(v time.Time) predicate.UsageReset
- func CreatedAtNotIn(vs ...time.Time) predicate.UsageReset
- func DeletedAt(v time.Time) predicate.UsageReset
- func DeletedAtEQ(v time.Time) predicate.UsageReset
- func DeletedAtGT(v time.Time) predicate.UsageReset
- func DeletedAtGTE(v time.Time) predicate.UsageReset
- func DeletedAtIn(vs ...time.Time) predicate.UsageReset
- func DeletedAtIsNil() predicate.UsageReset
- func DeletedAtLT(v time.Time) predicate.UsageReset
- func DeletedAtLTE(v time.Time) predicate.UsageReset
- func DeletedAtNEQ(v time.Time) predicate.UsageReset
- func DeletedAtNotIn(vs ...time.Time) predicate.UsageReset
- func DeletedAtNotNil() predicate.UsageReset
- func EntitlementID(v string) predicate.UsageReset
- func EntitlementIDContains(v string) predicate.UsageReset
- func EntitlementIDContainsFold(v string) predicate.UsageReset
- func EntitlementIDEQ(v string) predicate.UsageReset
- func EntitlementIDEqualFold(v string) predicate.UsageReset
- func EntitlementIDGT(v string) predicate.UsageReset
- func EntitlementIDGTE(v string) predicate.UsageReset
- func EntitlementIDHasPrefix(v string) predicate.UsageReset
- func EntitlementIDHasSuffix(v string) predicate.UsageReset
- func EntitlementIDIn(vs ...string) predicate.UsageReset
- func EntitlementIDLT(v string) predicate.UsageReset
- func EntitlementIDLTE(v string) predicate.UsageReset
- func EntitlementIDNEQ(v string) predicate.UsageReset
- func EntitlementIDNotIn(vs ...string) predicate.UsageReset
- func HasEntitlement() predicate.UsageReset
- func HasEntitlementWith(preds ...predicate.Entitlement) predicate.UsageReset
- func ID(id string) predicate.UsageReset
- func IDContainsFold(id string) predicate.UsageReset
- func IDEQ(id string) predicate.UsageReset
- func IDEqualFold(id string) predicate.UsageReset
- func IDGT(id string) predicate.UsageReset
- func IDGTE(id string) predicate.UsageReset
- func IDIn(ids ...string) predicate.UsageReset
- func IDLT(id string) predicate.UsageReset
- func IDLTE(id string) predicate.UsageReset
- func IDNEQ(id string) predicate.UsageReset
- func IDNotIn(ids ...string) predicate.UsageReset
- func Namespace(v string) predicate.UsageReset
- func NamespaceContains(v string) predicate.UsageReset
- func NamespaceContainsFold(v string) predicate.UsageReset
- func NamespaceEQ(v string) predicate.UsageReset
- func NamespaceEqualFold(v string) predicate.UsageReset
- func NamespaceGT(v string) predicate.UsageReset
- func NamespaceGTE(v string) predicate.UsageReset
- func NamespaceHasPrefix(v string) predicate.UsageReset
- func NamespaceHasSuffix(v string) predicate.UsageReset
- func NamespaceIn(vs ...string) predicate.UsageReset
- func NamespaceLT(v string) predicate.UsageReset
- func NamespaceLTE(v string) predicate.UsageReset
- func NamespaceNEQ(v string) predicate.UsageReset
- func NamespaceNotIn(vs ...string) predicate.UsageReset
- func Not(p predicate.UsageReset) predicate.UsageReset
- func Or(predicates ...predicate.UsageReset) predicate.UsageReset
- func ResetTime(v time.Time) predicate.UsageReset
- func ResetTimeEQ(v time.Time) predicate.UsageReset
- func ResetTimeGT(v time.Time) predicate.UsageReset
- func ResetTimeGTE(v time.Time) predicate.UsageReset
- func ResetTimeIn(vs ...time.Time) predicate.UsageReset
- func ResetTimeLT(v time.Time) predicate.UsageReset
- func ResetTimeLTE(v time.Time) predicate.UsageReset
- func ResetTimeNEQ(v time.Time) predicate.UsageReset
- func ResetTimeNotIn(vs ...time.Time) predicate.UsageReset
- func UpdatedAt(v time.Time) predicate.UsageReset
- func UpdatedAtEQ(v time.Time) predicate.UsageReset
- func UpdatedAtGT(v time.Time) predicate.UsageReset
- func UpdatedAtGTE(v time.Time) predicate.UsageReset
- func UpdatedAtIn(vs ...time.Time) predicate.UsageReset
- func UpdatedAtLT(v time.Time) predicate.UsageReset
- func UpdatedAtLTE(v time.Time) predicate.UsageReset
- func UpdatedAtNEQ(v time.Time) predicate.UsageReset
- func UpdatedAtNotIn(vs ...time.Time) predicate.UsageReset
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
- func ByEntitlementField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByEntitlementID(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByNamespace(opts ...sql.OrderTermOption) OrderOption
- func ByResetTime(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the usagereset type in the database. Label = "usage_reset" // 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" // 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" // FieldEntitlementID holds the string denoting the entitlement_id field in the database. FieldEntitlementID = "entitlement_id" // FieldResetTime holds the string denoting the reset_time field in the database. FieldResetTime = "reset_time" // EdgeEntitlement holds the string denoting the entitlement edge name in mutations. EdgeEntitlement = "entitlement" // Table holds the table name of the usagereset in the database. Table = "usage_resets" // EntitlementTable is the table that holds the entitlement relation/edge. EntitlementTable = "usage_resets" // EntitlementInverseTable is the table name for the Entitlement entity. // It exists in this package in order to avoid circular dependency with the "entitlement" package. EntitlementInverseTable = "entitlements" // EntitlementColumn is the table column denoting the entitlement relation/edge. EntitlementColumn = "entitlement_id" )
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 // DefaultID holds the default value on creation for the "id" field. DefaultID func() string )
var Columns = []string{ FieldID, FieldNamespace, FieldCreatedAt, FieldUpdatedAt, FieldDeletedAt, FieldEntitlementID, FieldResetTime, }
Columns holds all SQL columns for usagereset fields.
Functions ¶
func And ¶
func And(predicates ...predicate.UsageReset) predicate.UsageReset
And groups predicates with the AND operator between them.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.UsageReset
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.UsageReset
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.UsageReset
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.UsageReset
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.UsageReset
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.UsageReset
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.UsageReset
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.UsageReset
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.UsageReset
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func DeletedAt ¶
func DeletedAt(v time.Time) predicate.UsageReset
DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAtEQ ¶
func DeletedAtEQ(v time.Time) predicate.UsageReset
DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtGT ¶
func DeletedAtGT(v time.Time) predicate.UsageReset
DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGTE ¶
func DeletedAtGTE(v time.Time) predicate.UsageReset
DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtIn ¶
func DeletedAtIn(vs ...time.Time) predicate.UsageReset
DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIsNil ¶
func DeletedAtIsNil() predicate.UsageReset
DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtLT ¶
func DeletedAtLT(v time.Time) predicate.UsageReset
DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLTE ¶
func DeletedAtLTE(v time.Time) predicate.UsageReset
DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtNEQ ¶
func DeletedAtNEQ(v time.Time) predicate.UsageReset
DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNotIn ¶
func DeletedAtNotIn(vs ...time.Time) predicate.UsageReset
DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotNil ¶
func DeletedAtNotNil() predicate.UsageReset
DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
func EntitlementID ¶
func EntitlementID(v string) predicate.UsageReset
EntitlementID applies equality check predicate on the "entitlement_id" field. It's identical to EntitlementIDEQ.
func EntitlementIDContains ¶
func EntitlementIDContains(v string) predicate.UsageReset
EntitlementIDContains applies the Contains predicate on the "entitlement_id" field.
func EntitlementIDContainsFold ¶
func EntitlementIDContainsFold(v string) predicate.UsageReset
EntitlementIDContainsFold applies the ContainsFold predicate on the "entitlement_id" field.
func EntitlementIDEQ ¶
func EntitlementIDEQ(v string) predicate.UsageReset
EntitlementIDEQ applies the EQ predicate on the "entitlement_id" field.
func EntitlementIDEqualFold ¶
func EntitlementIDEqualFold(v string) predicate.UsageReset
EntitlementIDEqualFold applies the EqualFold predicate on the "entitlement_id" field.
func EntitlementIDGT ¶
func EntitlementIDGT(v string) predicate.UsageReset
EntitlementIDGT applies the GT predicate on the "entitlement_id" field.
func EntitlementIDGTE ¶
func EntitlementIDGTE(v string) predicate.UsageReset
EntitlementIDGTE applies the GTE predicate on the "entitlement_id" field.
func EntitlementIDHasPrefix ¶
func EntitlementIDHasPrefix(v string) predicate.UsageReset
EntitlementIDHasPrefix applies the HasPrefix predicate on the "entitlement_id" field.
func EntitlementIDHasSuffix ¶
func EntitlementIDHasSuffix(v string) predicate.UsageReset
EntitlementIDHasSuffix applies the HasSuffix predicate on the "entitlement_id" field.
func EntitlementIDIn ¶
func EntitlementIDIn(vs ...string) predicate.UsageReset
EntitlementIDIn applies the In predicate on the "entitlement_id" field.
func EntitlementIDLT ¶
func EntitlementIDLT(v string) predicate.UsageReset
EntitlementIDLT applies the LT predicate on the "entitlement_id" field.
func EntitlementIDLTE ¶
func EntitlementIDLTE(v string) predicate.UsageReset
EntitlementIDLTE applies the LTE predicate on the "entitlement_id" field.
func EntitlementIDNEQ ¶
func EntitlementIDNEQ(v string) predicate.UsageReset
EntitlementIDNEQ applies the NEQ predicate on the "entitlement_id" field.
func EntitlementIDNotIn ¶
func EntitlementIDNotIn(vs ...string) predicate.UsageReset
EntitlementIDNotIn applies the NotIn predicate on the "entitlement_id" field.
func HasEntitlement ¶
func HasEntitlement() predicate.UsageReset
HasEntitlement applies the HasEdge predicate on the "entitlement" edge.
func HasEntitlementWith ¶
func HasEntitlementWith(preds ...predicate.Entitlement) predicate.UsageReset
HasEntitlementWith applies the HasEdge predicate on the "entitlement" edge with a given conditions (other predicates).
func IDContainsFold ¶
func IDContainsFold(id string) predicate.UsageReset
IDContainsFold applies the ContainsFold predicate on the ID field.
func IDEQ ¶
func IDEQ(id string) predicate.UsageReset
IDEQ applies the EQ predicate on the ID field.
func IDEqualFold ¶
func IDEqualFold(id string) predicate.UsageReset
IDEqualFold applies the EqualFold predicate on the ID field.
func IDGT ¶
func IDGT(id string) predicate.UsageReset
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id string) predicate.UsageReset
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...string) predicate.UsageReset
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id string) predicate.UsageReset
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id string) predicate.UsageReset
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id string) predicate.UsageReset
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...string) predicate.UsageReset
IDNotIn applies the NotIn predicate on the ID field.
func Namespace ¶
func Namespace(v string) predicate.UsageReset
Namespace applies equality check predicate on the "namespace" field. It's identical to NamespaceEQ.
func NamespaceContains ¶
func NamespaceContains(v string) predicate.UsageReset
NamespaceContains applies the Contains predicate on the "namespace" field.
func NamespaceContainsFold ¶
func NamespaceContainsFold(v string) predicate.UsageReset
NamespaceContainsFold applies the ContainsFold predicate on the "namespace" field.
func NamespaceEQ ¶
func NamespaceEQ(v string) predicate.UsageReset
NamespaceEQ applies the EQ predicate on the "namespace" field.
func NamespaceEqualFold ¶
func NamespaceEqualFold(v string) predicate.UsageReset
NamespaceEqualFold applies the EqualFold predicate on the "namespace" field.
func NamespaceGT ¶
func NamespaceGT(v string) predicate.UsageReset
NamespaceGT applies the GT predicate on the "namespace" field.
func NamespaceGTE ¶
func NamespaceGTE(v string) predicate.UsageReset
NamespaceGTE applies the GTE predicate on the "namespace" field.
func NamespaceHasPrefix ¶
func NamespaceHasPrefix(v string) predicate.UsageReset
NamespaceHasPrefix applies the HasPrefix predicate on the "namespace" field.
func NamespaceHasSuffix ¶
func NamespaceHasSuffix(v string) predicate.UsageReset
NamespaceHasSuffix applies the HasSuffix predicate on the "namespace" field.
func NamespaceIn ¶
func NamespaceIn(vs ...string) predicate.UsageReset
NamespaceIn applies the In predicate on the "namespace" field.
func NamespaceLT ¶
func NamespaceLT(v string) predicate.UsageReset
NamespaceLT applies the LT predicate on the "namespace" field.
func NamespaceLTE ¶
func NamespaceLTE(v string) predicate.UsageReset
NamespaceLTE applies the LTE predicate on the "namespace" field.
func NamespaceNEQ ¶
func NamespaceNEQ(v string) predicate.UsageReset
NamespaceNEQ applies the NEQ predicate on the "namespace" field.
func NamespaceNotIn ¶
func NamespaceNotIn(vs ...string) predicate.UsageReset
NamespaceNotIn applies the NotIn predicate on the "namespace" field.
func Not ¶
func Not(p predicate.UsageReset) predicate.UsageReset
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.UsageReset) predicate.UsageReset
Or groups predicates with the OR operator between them.
func ResetTime ¶
func ResetTime(v time.Time) predicate.UsageReset
ResetTime applies equality check predicate on the "reset_time" field. It's identical to ResetTimeEQ.
func ResetTimeEQ ¶
func ResetTimeEQ(v time.Time) predicate.UsageReset
ResetTimeEQ applies the EQ predicate on the "reset_time" field.
func ResetTimeGT ¶
func ResetTimeGT(v time.Time) predicate.UsageReset
ResetTimeGT applies the GT predicate on the "reset_time" field.
func ResetTimeGTE ¶
func ResetTimeGTE(v time.Time) predicate.UsageReset
ResetTimeGTE applies the GTE predicate on the "reset_time" field.
func ResetTimeIn ¶
func ResetTimeIn(vs ...time.Time) predicate.UsageReset
ResetTimeIn applies the In predicate on the "reset_time" field.
func ResetTimeLT ¶
func ResetTimeLT(v time.Time) predicate.UsageReset
ResetTimeLT applies the LT predicate on the "reset_time" field.
func ResetTimeLTE ¶
func ResetTimeLTE(v time.Time) predicate.UsageReset
ResetTimeLTE applies the LTE predicate on the "reset_time" field.
func ResetTimeNEQ ¶
func ResetTimeNEQ(v time.Time) predicate.UsageReset
ResetTimeNEQ applies the NEQ predicate on the "reset_time" field.
func ResetTimeNotIn ¶
func ResetTimeNotIn(vs ...time.Time) predicate.UsageReset
ResetTimeNotIn applies the NotIn predicate on the "reset_time" field.
func UpdatedAt ¶
func UpdatedAt(v time.Time) predicate.UsageReset
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
func UpdatedAtEQ(v time.Time) predicate.UsageReset
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
func UpdatedAtGT(v time.Time) predicate.UsageReset
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
func UpdatedAtGTE(v time.Time) predicate.UsageReset
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
func UpdatedAtIn(vs ...time.Time) predicate.UsageReset
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
func UpdatedAtLT(v time.Time) predicate.UsageReset
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
func UpdatedAtLTE(v time.Time) predicate.UsageReset
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
func UpdatedAtNEQ(v time.Time) predicate.UsageReset
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
func UpdatedAtNotIn(vs ...time.Time) predicate.UsageReset
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).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the UsageReset queries.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByDeletedAt ¶
func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
ByDeletedAt orders the results by the deleted_at field.
func ByEntitlementField ¶
func ByEntitlementField(field string, opts ...sql.OrderTermOption) OrderOption
ByEntitlementField orders the results by entitlement field.
func ByEntitlementID ¶
func ByEntitlementID(opts ...sql.OrderTermOption) OrderOption
ByEntitlementID orders the results by the entitlement_id field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByNamespace ¶
func ByNamespace(opts ...sql.OrderTermOption) OrderOption
ByNamespace orders the results by the namespace field.
func ByResetTime ¶
func ByResetTime(opts ...sql.OrderTermOption) OrderOption
ByResetTime orders the results by the reset_time field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.