user

package
v0.0.0-...-40a75d2 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the user type in the database.
	Label = "user"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldUserID holds the string denoting the user_id field in the database.
	FieldUserID = "user_id"
	// FieldUserPw holds the string denoting the user_pw field in the database.
	FieldUserPw = "user_pw"
	// FieldQuotaInstance holds the string denoting the quota_instance field in the database.
	FieldQuotaInstance = "quota_instance"
	// FieldQuotaCPU holds the string denoting the quota_cpu field in the database.
	FieldQuotaCPU = "quota_cpu"
	// FieldQuotaMemory holds the string denoting the quota_memory field in the database.
	FieldQuotaMemory = "quota_memory"
	// FieldQuotaNvidiaGpu holds the string denoting the quota_nvidia_gpu field in the database.
	FieldQuotaNvidiaGpu = "quota_nvidia_gpu"
	// FieldQuotaStorage holds the string denoting the quota_storage field in the database.
	FieldQuotaStorage = "quota_storage"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldDeletedAt holds the string denoting the deleted_at field in the database.
	FieldDeletedAt = "deleted_at"

	// EdgeEvents holds the string denoting the events edge name in mutations.
	EdgeEvents = "events"
	// EdgeServers holds the string denoting the servers edge name in mutations.
	EdgeServers = "servers"
	// EdgeTemplates holds the string denoting the templates edge name in mutations.
	EdgeTemplates = "templates"

	// Table holds the table name of the user in the database.
	Table = "users"
	// EventsTable is the table the holds the events relation/edge. The primary key declared below.
	EventsTable = "event_user"
	// EventsInverseTable is the table name for the Event entity.
	// It exists in this package in order to avoid circular dependency with the "event" package.
	EventsInverseTable = "events"
	// ServersTable is the table the holds the servers relation/edge. The primary key declared below.
	ServersTable = "user_servers"
	// ServersInverseTable is the table name for the Server entity.
	// It exists in this package in order to avoid circular dependency with the "server" package.
	ServersInverseTable = "servers"
	// TemplatesTable is the table the holds the templates relation/edge. The primary key declared below.
	TemplatesTable = "user_templates"
	// TemplatesInverseTable is the table name for the Template entity.
	// It exists in this package in order to avoid circular dependency with the "template" package.
	TemplatesInverseTable = "templates"
)

Variables

View Source
var (
	// EventsPrimaryKey and EventsColumn2 are the table columns denoting the
	// primary key for the events relation (M2M).
	EventsPrimaryKey = []string{"event_id", "user_id"}
	// ServersPrimaryKey and ServersColumn2 are the table columns denoting the
	// primary key for the servers relation (M2M).
	ServersPrimaryKey = []string{"user_id", "server_id"}
	// TemplatesPrimaryKey and TemplatesColumn2 are the table columns denoting the
	// primary key for the templates relation (M2M).
	TemplatesPrimaryKey = []string{"user_id", "template_id"}
)
View Source
var (
	// DefaultQuotaInstance holds the default value on creation for the quota_instance field.
	DefaultQuotaInstance int
	// DefaultQuotaCPU holds the default value on creation for the quota_cpu field.
	DefaultQuotaCPU int
	// DefaultQuotaMemory holds the default value on creation for the quota_memory field.
	DefaultQuotaMemory int
	// DefaultQuotaNvidiaGpu holds the default value on creation for the quota_nvidia_gpu field.
	DefaultQuotaNvidiaGpu int
	// DefaultQuotaStorage holds the default value on creation for the quota_storage field.
	DefaultQuotaStorage int
	// DefaultCreatedAt holds the default value on creation for the created_at field.
	DefaultCreatedAt func() time.Time
)

Columns holds all SQL columns for user fields.

Functions

func And

func And(predicates ...predicate.User) predicate.User

And groups list of predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.User

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.User

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.User

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.User

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.User

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.User

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.User

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

func CreatedAtNotIn

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

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

func DeletedAt

func DeletedAt(v time.Time) predicate.User

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

func DeletedAtEQ

func DeletedAtEQ(v time.Time) predicate.User

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

func DeletedAtGT

func DeletedAtGT(v time.Time) predicate.User

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

func DeletedAtGTE

func DeletedAtGTE(v time.Time) predicate.User

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

func DeletedAtIn

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

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

func DeletedAtIsNil

func DeletedAtIsNil() predicate.User

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

func DeletedAtLT

func DeletedAtLT(v time.Time) predicate.User

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

func DeletedAtLTE

func DeletedAtLTE(v time.Time) predicate.User

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

func DeletedAtNEQ

func DeletedAtNEQ(v time.Time) predicate.User

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

func DeletedAtNotIn

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

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

func DeletedAtNotNil

func DeletedAtNotNil() predicate.User

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

func HasEvents

func HasEvents() predicate.User

HasEvents applies the HasEdge predicate on the "events" edge.

func HasEventsWith

func HasEventsWith(preds ...predicate.Event) predicate.User

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

func HasServers

func HasServers() predicate.User

HasServers applies the HasEdge predicate on the "servers" edge.

func HasServersWith

func HasServersWith(preds ...predicate.Server) predicate.User

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

func HasTemplates

func HasTemplates() predicate.User

HasTemplates applies the HasEdge predicate on the "templates" edge.

func HasTemplatesWith

func HasTemplatesWith(preds ...predicate.Template) predicate.User

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

func ID

func ID(id int) predicate.User

ID filters vertices based on their identifier.

func IDEQ

func IDEQ(id int) predicate.User

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.User

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.User

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.User

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.User

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.User

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.User) predicate.User

Or groups list of predicates with the OR operator between them.

func QuotaCPU

func QuotaCPU(v int) predicate.User

QuotaCPU applies equality check predicate on the "quota_cpu" field. It's identical to QuotaCPUEQ.

func QuotaCPUEQ

func QuotaCPUEQ(v int) predicate.User

QuotaCPUEQ applies the EQ predicate on the "quota_cpu" field.

func QuotaCPUGT

func QuotaCPUGT(v int) predicate.User

QuotaCPUGT applies the GT predicate on the "quota_cpu" field.

func QuotaCPUGTE

func QuotaCPUGTE(v int) predicate.User

QuotaCPUGTE applies the GTE predicate on the "quota_cpu" field.

func QuotaCPUIn

func QuotaCPUIn(vs ...int) predicate.User

QuotaCPUIn applies the In predicate on the "quota_cpu" field.

func QuotaCPULT

func QuotaCPULT(v int) predicate.User

QuotaCPULT applies the LT predicate on the "quota_cpu" field.

func QuotaCPULTE

func QuotaCPULTE(v int) predicate.User

QuotaCPULTE applies the LTE predicate on the "quota_cpu" field.

func QuotaCPUNEQ

func QuotaCPUNEQ(v int) predicate.User

QuotaCPUNEQ applies the NEQ predicate on the "quota_cpu" field.

func QuotaCPUNotIn

func QuotaCPUNotIn(vs ...int) predicate.User

QuotaCPUNotIn applies the NotIn predicate on the "quota_cpu" field.

func QuotaInstance

func QuotaInstance(v int) predicate.User

QuotaInstance applies equality check predicate on the "quota_instance" field. It's identical to QuotaInstanceEQ.

func QuotaInstanceEQ

func QuotaInstanceEQ(v int) predicate.User

QuotaInstanceEQ applies the EQ predicate on the "quota_instance" field.

func QuotaInstanceGT

func QuotaInstanceGT(v int) predicate.User

QuotaInstanceGT applies the GT predicate on the "quota_instance" field.

func QuotaInstanceGTE

func QuotaInstanceGTE(v int) predicate.User

QuotaInstanceGTE applies the GTE predicate on the "quota_instance" field.

func QuotaInstanceIn

func QuotaInstanceIn(vs ...int) predicate.User

QuotaInstanceIn applies the In predicate on the "quota_instance" field.

func QuotaInstanceLT

func QuotaInstanceLT(v int) predicate.User

QuotaInstanceLT applies the LT predicate on the "quota_instance" field.

func QuotaInstanceLTE

func QuotaInstanceLTE(v int) predicate.User

QuotaInstanceLTE applies the LTE predicate on the "quota_instance" field.

func QuotaInstanceNEQ

func QuotaInstanceNEQ(v int) predicate.User

QuotaInstanceNEQ applies the NEQ predicate on the "quota_instance" field.

func QuotaInstanceNotIn

func QuotaInstanceNotIn(vs ...int) predicate.User

QuotaInstanceNotIn applies the NotIn predicate on the "quota_instance" field.

func QuotaMemory

func QuotaMemory(v int) predicate.User

QuotaMemory applies equality check predicate on the "quota_memory" field. It's identical to QuotaMemoryEQ.

func QuotaMemoryEQ

func QuotaMemoryEQ(v int) predicate.User

QuotaMemoryEQ applies the EQ predicate on the "quota_memory" field.

func QuotaMemoryGT

func QuotaMemoryGT(v int) predicate.User

QuotaMemoryGT applies the GT predicate on the "quota_memory" field.

func QuotaMemoryGTE

func QuotaMemoryGTE(v int) predicate.User

QuotaMemoryGTE applies the GTE predicate on the "quota_memory" field.

func QuotaMemoryIn

func QuotaMemoryIn(vs ...int) predicate.User

QuotaMemoryIn applies the In predicate on the "quota_memory" field.

func QuotaMemoryLT

func QuotaMemoryLT(v int) predicate.User

QuotaMemoryLT applies the LT predicate on the "quota_memory" field.

func QuotaMemoryLTE

func QuotaMemoryLTE(v int) predicate.User

QuotaMemoryLTE applies the LTE predicate on the "quota_memory" field.

func QuotaMemoryNEQ

func QuotaMemoryNEQ(v int) predicate.User

QuotaMemoryNEQ applies the NEQ predicate on the "quota_memory" field.

func QuotaMemoryNotIn

func QuotaMemoryNotIn(vs ...int) predicate.User

QuotaMemoryNotIn applies the NotIn predicate on the "quota_memory" field.

func QuotaNvidiaGpu

func QuotaNvidiaGpu(v int) predicate.User

QuotaNvidiaGpu applies equality check predicate on the "quota_nvidia_gpu" field. It's identical to QuotaNvidiaGpuEQ.

func QuotaNvidiaGpuEQ

func QuotaNvidiaGpuEQ(v int) predicate.User

QuotaNvidiaGpuEQ applies the EQ predicate on the "quota_nvidia_gpu" field.

func QuotaNvidiaGpuGT

func QuotaNvidiaGpuGT(v int) predicate.User

QuotaNvidiaGpuGT applies the GT predicate on the "quota_nvidia_gpu" field.

func QuotaNvidiaGpuGTE

func QuotaNvidiaGpuGTE(v int) predicate.User

QuotaNvidiaGpuGTE applies the GTE predicate on the "quota_nvidia_gpu" field.

func QuotaNvidiaGpuIn

func QuotaNvidiaGpuIn(vs ...int) predicate.User

QuotaNvidiaGpuIn applies the In predicate on the "quota_nvidia_gpu" field.

func QuotaNvidiaGpuLT

func QuotaNvidiaGpuLT(v int) predicate.User

QuotaNvidiaGpuLT applies the LT predicate on the "quota_nvidia_gpu" field.

func QuotaNvidiaGpuLTE

func QuotaNvidiaGpuLTE(v int) predicate.User

QuotaNvidiaGpuLTE applies the LTE predicate on the "quota_nvidia_gpu" field.

func QuotaNvidiaGpuNEQ

func QuotaNvidiaGpuNEQ(v int) predicate.User

QuotaNvidiaGpuNEQ applies the NEQ predicate on the "quota_nvidia_gpu" field.

func QuotaNvidiaGpuNotIn

func QuotaNvidiaGpuNotIn(vs ...int) predicate.User

QuotaNvidiaGpuNotIn applies the NotIn predicate on the "quota_nvidia_gpu" field.

func QuotaStorage

func QuotaStorage(v int) predicate.User

QuotaStorage applies equality check predicate on the "quota_storage" field. It's identical to QuotaStorageEQ.

func QuotaStorageEQ

func QuotaStorageEQ(v int) predicate.User

QuotaStorageEQ applies the EQ predicate on the "quota_storage" field.

func QuotaStorageGT

func QuotaStorageGT(v int) predicate.User

QuotaStorageGT applies the GT predicate on the "quota_storage" field.

func QuotaStorageGTE

func QuotaStorageGTE(v int) predicate.User

QuotaStorageGTE applies the GTE predicate on the "quota_storage" field.

func QuotaStorageIn

func QuotaStorageIn(vs ...int) predicate.User

QuotaStorageIn applies the In predicate on the "quota_storage" field.

func QuotaStorageLT

func QuotaStorageLT(v int) predicate.User

QuotaStorageLT applies the LT predicate on the "quota_storage" field.

func QuotaStorageLTE

func QuotaStorageLTE(v int) predicate.User

QuotaStorageLTE applies the LTE predicate on the "quota_storage" field.

func QuotaStorageNEQ

func QuotaStorageNEQ(v int) predicate.User

QuotaStorageNEQ applies the NEQ predicate on the "quota_storage" field.

func QuotaStorageNotIn

func QuotaStorageNotIn(vs ...int) predicate.User

QuotaStorageNotIn applies the NotIn predicate on the "quota_storage" field.

func UserID

func UserID(v string) predicate.User

UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.

func UserIDContains

func UserIDContains(v string) predicate.User

UserIDContains applies the Contains predicate on the "user_id" field.

func UserIDContainsFold

func UserIDContainsFold(v string) predicate.User

UserIDContainsFold applies the ContainsFold predicate on the "user_id" field.

func UserIDEQ

func UserIDEQ(v string) predicate.User

UserIDEQ applies the EQ predicate on the "user_id" field.

func UserIDEqualFold

func UserIDEqualFold(v string) predicate.User

UserIDEqualFold applies the EqualFold predicate on the "user_id" field.

func UserIDGT

func UserIDGT(v string) predicate.User

UserIDGT applies the GT predicate on the "user_id" field.

func UserIDGTE

func UserIDGTE(v string) predicate.User

UserIDGTE applies the GTE predicate on the "user_id" field.

func UserIDHasPrefix

func UserIDHasPrefix(v string) predicate.User

UserIDHasPrefix applies the HasPrefix predicate on the "user_id" field.

func UserIDHasSuffix

func UserIDHasSuffix(v string) predicate.User

UserIDHasSuffix applies the HasSuffix predicate on the "user_id" field.

func UserIDIn

func UserIDIn(vs ...string) predicate.User

UserIDIn applies the In predicate on the "user_id" field.

func UserIDLT

func UserIDLT(v string) predicate.User

UserIDLT applies the LT predicate on the "user_id" field.

func UserIDLTE

func UserIDLTE(v string) predicate.User

UserIDLTE applies the LTE predicate on the "user_id" field.

func UserIDNEQ

func UserIDNEQ(v string) predicate.User

UserIDNEQ applies the NEQ predicate on the "user_id" field.

func UserIDNotIn

func UserIDNotIn(vs ...string) predicate.User

UserIDNotIn applies the NotIn predicate on the "user_id" field.

func UserPw

func UserPw(v string) predicate.User

UserPw applies equality check predicate on the "user_pw" field. It's identical to UserPwEQ.

func UserPwContains

func UserPwContains(v string) predicate.User

UserPwContains applies the Contains predicate on the "user_pw" field.

func UserPwContainsFold

func UserPwContainsFold(v string) predicate.User

UserPwContainsFold applies the ContainsFold predicate on the "user_pw" field.

func UserPwEQ

func UserPwEQ(v string) predicate.User

UserPwEQ applies the EQ predicate on the "user_pw" field.

func UserPwEqualFold

func UserPwEqualFold(v string) predicate.User

UserPwEqualFold applies the EqualFold predicate on the "user_pw" field.

func UserPwGT

func UserPwGT(v string) predicate.User

UserPwGT applies the GT predicate on the "user_pw" field.

func UserPwGTE

func UserPwGTE(v string) predicate.User

UserPwGTE applies the GTE predicate on the "user_pw" field.

func UserPwHasPrefix

func UserPwHasPrefix(v string) predicate.User

UserPwHasPrefix applies the HasPrefix predicate on the "user_pw" field.

func UserPwHasSuffix

func UserPwHasSuffix(v string) predicate.User

UserPwHasSuffix applies the HasSuffix predicate on the "user_pw" field.

func UserPwIn

func UserPwIn(vs ...string) predicate.User

UserPwIn applies the In predicate on the "user_pw" field.

func UserPwLT

func UserPwLT(v string) predicate.User

UserPwLT applies the LT predicate on the "user_pw" field.

func UserPwLTE

func UserPwLTE(v string) predicate.User

UserPwLTE applies the LTE predicate on the "user_pw" field.

func UserPwNEQ

func UserPwNEQ(v string) predicate.User

UserPwNEQ applies the NEQ predicate on the "user_pw" field.

func UserPwNotIn

func UserPwNotIn(vs ...string) predicate.User

UserPwNotIn applies the NotIn predicate on the "user_pw" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

This section is empty.

Jump to

Keyboard shortcuts

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