usagereset

package
v1.0.0-beta.111 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
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

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
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() string
)

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 ID

ID filters vertices based on their ID field.

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

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

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

Jump to

Keyboard shortcuts

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