Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.User) predicate.User
- func CreatedAt(v time.Time) predicate.User
- func CreatedAtEQ(v time.Time) predicate.User
- func CreatedAtGT(v time.Time) predicate.User
- func CreatedAtGTE(v time.Time) predicate.User
- func CreatedAtIn(vs ...time.Time) predicate.User
- func CreatedAtLT(v time.Time) predicate.User
- func CreatedAtLTE(v time.Time) predicate.User
- func CreatedAtNEQ(v time.Time) predicate.User
- func CreatedAtNotIn(vs ...time.Time) predicate.User
- func DeletedAt(v time.Time) predicate.User
- func DeletedAtEQ(v time.Time) predicate.User
- func DeletedAtGT(v time.Time) predicate.User
- func DeletedAtGTE(v time.Time) predicate.User
- func DeletedAtIn(vs ...time.Time) predicate.User
- func DeletedAtIsNil() predicate.User
- func DeletedAtLT(v time.Time) predicate.User
- func DeletedAtLTE(v time.Time) predicate.User
- func DeletedAtNEQ(v time.Time) predicate.User
- func DeletedAtNotIn(vs ...time.Time) predicate.User
- func DeletedAtNotNil() predicate.User
- func HasEvents() predicate.User
- func HasEventsWith(preds ...predicate.Event) predicate.User
- func HasServers() predicate.User
- func HasServersWith(preds ...predicate.Server) predicate.User
- func HasTemplates() predicate.User
- func HasTemplatesWith(preds ...predicate.Template) predicate.User
- func ID(id int) predicate.User
- func IDEQ(id int) predicate.User
- func IDGT(id int) predicate.User
- func IDGTE(id int) predicate.User
- func IDIn(ids ...int) predicate.User
- func IDLT(id int) predicate.User
- func IDLTE(id int) predicate.User
- func IDNEQ(id int) predicate.User
- func IDNotIn(ids ...int) predicate.User
- func Not(p predicate.User) predicate.User
- func Or(predicates ...predicate.User) predicate.User
- func QuotaCPU(v int) predicate.User
- func QuotaCPUEQ(v int) predicate.User
- func QuotaCPUGT(v int) predicate.User
- func QuotaCPUGTE(v int) predicate.User
- func QuotaCPUIn(vs ...int) predicate.User
- func QuotaCPULT(v int) predicate.User
- func QuotaCPULTE(v int) predicate.User
- func QuotaCPUNEQ(v int) predicate.User
- func QuotaCPUNotIn(vs ...int) predicate.User
- func QuotaInstance(v int) predicate.User
- func QuotaInstanceEQ(v int) predicate.User
- func QuotaInstanceGT(v int) predicate.User
- func QuotaInstanceGTE(v int) predicate.User
- func QuotaInstanceIn(vs ...int) predicate.User
- func QuotaInstanceLT(v int) predicate.User
- func QuotaInstanceLTE(v int) predicate.User
- func QuotaInstanceNEQ(v int) predicate.User
- func QuotaInstanceNotIn(vs ...int) predicate.User
- func QuotaMemory(v int) predicate.User
- func QuotaMemoryEQ(v int) predicate.User
- func QuotaMemoryGT(v int) predicate.User
- func QuotaMemoryGTE(v int) predicate.User
- func QuotaMemoryIn(vs ...int) predicate.User
- func QuotaMemoryLT(v int) predicate.User
- func QuotaMemoryLTE(v int) predicate.User
- func QuotaMemoryNEQ(v int) predicate.User
- func QuotaMemoryNotIn(vs ...int) predicate.User
- func QuotaNvidiaGpu(v int) predicate.User
- func QuotaNvidiaGpuEQ(v int) predicate.User
- func QuotaNvidiaGpuGT(v int) predicate.User
- func QuotaNvidiaGpuGTE(v int) predicate.User
- func QuotaNvidiaGpuIn(vs ...int) predicate.User
- func QuotaNvidiaGpuLT(v int) predicate.User
- func QuotaNvidiaGpuLTE(v int) predicate.User
- func QuotaNvidiaGpuNEQ(v int) predicate.User
- func QuotaNvidiaGpuNotIn(vs ...int) predicate.User
- func QuotaStorage(v int) predicate.User
- func QuotaStorageEQ(v int) predicate.User
- func QuotaStorageGT(v int) predicate.User
- func QuotaStorageGTE(v int) predicate.User
- func QuotaStorageIn(vs ...int) predicate.User
- func QuotaStorageLT(v int) predicate.User
- func QuotaStorageLTE(v int) predicate.User
- func QuotaStorageNEQ(v int) predicate.User
- func QuotaStorageNotIn(vs ...int) predicate.User
- func UserID(v string) predicate.User
- func UserIDContains(v string) predicate.User
- func UserIDContainsFold(v string) predicate.User
- func UserIDEQ(v string) predicate.User
- func UserIDEqualFold(v string) predicate.User
- func UserIDGT(v string) predicate.User
- func UserIDGTE(v string) predicate.User
- func UserIDHasPrefix(v string) predicate.User
- func UserIDHasSuffix(v string) predicate.User
- func UserIDIn(vs ...string) predicate.User
- func UserIDLT(v string) predicate.User
- func UserIDLTE(v string) predicate.User
- func UserIDNEQ(v string) predicate.User
- func UserIDNotIn(vs ...string) predicate.User
- func UserPw(v string) predicate.User
- func UserPwContains(v string) predicate.User
- func UserPwContainsFold(v string) predicate.User
- func UserPwEQ(v string) predicate.User
- func UserPwEqualFold(v string) predicate.User
- func UserPwGT(v string) predicate.User
- func UserPwGTE(v string) predicate.User
- func UserPwHasPrefix(v string) predicate.User
- func UserPwHasSuffix(v string) predicate.User
- func UserPwIn(vs ...string) predicate.User
- func UserPwLT(v string) predicate.User
- func UserPwLTE(v string) predicate.User
- func UserPwNEQ(v string) predicate.User
- func UserPwNotIn(vs ...string) predicate.User
- func ValidColumn(column string) bool
Constants ¶
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 ¶
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"} )
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 )
var Columns = []string{ FieldID, FieldUserID, FieldUserPw, FieldQuotaInstance, FieldQuotaCPU, FieldQuotaMemory, FieldQuotaNvidiaGpu, FieldQuotaStorage, FieldCreatedAt, FieldDeletedAt, }
Columns holds all SQL columns for user fields.
Functions ¶
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 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 HasEventsWith ¶
HasEventsWith applies the HasEdge predicate on the "events" edge with a given conditions (other predicates).
func HasServers ¶
HasServers applies the HasEdge predicate on the "servers" edge.
func HasServersWith ¶
HasServersWith applies the HasEdge predicate on the "servers" edge with a given conditions (other predicates).
func HasTemplates ¶
HasTemplates applies the HasEdge predicate on the "templates" edge.
func HasTemplatesWith ¶
HasTemplatesWith applies the HasEdge predicate on the "templates" edge with a given conditions (other predicates).
func QuotaCPU ¶
QuotaCPU applies equality check predicate on the "quota_cpu" field. It's identical to QuotaCPUEQ.
func QuotaCPUEQ ¶
QuotaCPUEQ applies the EQ predicate on the "quota_cpu" field.
func QuotaCPUGT ¶
QuotaCPUGT applies the GT predicate on the "quota_cpu" field.
func QuotaCPUGTE ¶
QuotaCPUGTE applies the GTE predicate on the "quota_cpu" field.
func QuotaCPUIn ¶
QuotaCPUIn applies the In predicate on the "quota_cpu" field.
func QuotaCPULT ¶
QuotaCPULT applies the LT predicate on the "quota_cpu" field.
func QuotaCPULTE ¶
QuotaCPULTE applies the LTE predicate on the "quota_cpu" field.
func QuotaCPUNEQ ¶
QuotaCPUNEQ applies the NEQ predicate on the "quota_cpu" field.
func QuotaCPUNotIn ¶
QuotaCPUNotIn applies the NotIn predicate on the "quota_cpu" field.
func QuotaInstance ¶
QuotaInstance applies equality check predicate on the "quota_instance" field. It's identical to QuotaInstanceEQ.
func QuotaInstanceEQ ¶
QuotaInstanceEQ applies the EQ predicate on the "quota_instance" field.
func QuotaInstanceGT ¶
QuotaInstanceGT applies the GT predicate on the "quota_instance" field.
func QuotaInstanceGTE ¶
QuotaInstanceGTE applies the GTE predicate on the "quota_instance" field.
func QuotaInstanceIn ¶
QuotaInstanceIn applies the In predicate on the "quota_instance" field.
func QuotaInstanceLT ¶
QuotaInstanceLT applies the LT predicate on the "quota_instance" field.
func QuotaInstanceLTE ¶
QuotaInstanceLTE applies the LTE predicate on the "quota_instance" field.
func QuotaInstanceNEQ ¶
QuotaInstanceNEQ applies the NEQ predicate on the "quota_instance" field.
func QuotaInstanceNotIn ¶
QuotaInstanceNotIn applies the NotIn predicate on the "quota_instance" field.
func QuotaMemory ¶
QuotaMemory applies equality check predicate on the "quota_memory" field. It's identical to QuotaMemoryEQ.
func QuotaMemoryEQ ¶
QuotaMemoryEQ applies the EQ predicate on the "quota_memory" field.
func QuotaMemoryGT ¶
QuotaMemoryGT applies the GT predicate on the "quota_memory" field.
func QuotaMemoryGTE ¶
QuotaMemoryGTE applies the GTE predicate on the "quota_memory" field.
func QuotaMemoryIn ¶
QuotaMemoryIn applies the In predicate on the "quota_memory" field.
func QuotaMemoryLT ¶
QuotaMemoryLT applies the LT predicate on the "quota_memory" field.
func QuotaMemoryLTE ¶
QuotaMemoryLTE applies the LTE predicate on the "quota_memory" field.
func QuotaMemoryNEQ ¶
QuotaMemoryNEQ applies the NEQ predicate on the "quota_memory" field.
func QuotaMemoryNotIn ¶
QuotaMemoryNotIn applies the NotIn predicate on the "quota_memory" field.
func QuotaNvidiaGpu ¶
QuotaNvidiaGpu applies equality check predicate on the "quota_nvidia_gpu" field. It's identical to QuotaNvidiaGpuEQ.
func QuotaNvidiaGpuEQ ¶
QuotaNvidiaGpuEQ applies the EQ predicate on the "quota_nvidia_gpu" field.
func QuotaNvidiaGpuGT ¶
QuotaNvidiaGpuGT applies the GT predicate on the "quota_nvidia_gpu" field.
func QuotaNvidiaGpuGTE ¶
QuotaNvidiaGpuGTE applies the GTE predicate on the "quota_nvidia_gpu" field.
func QuotaNvidiaGpuIn ¶
QuotaNvidiaGpuIn applies the In predicate on the "quota_nvidia_gpu" field.
func QuotaNvidiaGpuLT ¶
QuotaNvidiaGpuLT applies the LT predicate on the "quota_nvidia_gpu" field.
func QuotaNvidiaGpuLTE ¶
QuotaNvidiaGpuLTE applies the LTE predicate on the "quota_nvidia_gpu" field.
func QuotaNvidiaGpuNEQ ¶
QuotaNvidiaGpuNEQ applies the NEQ predicate on the "quota_nvidia_gpu" field.
func QuotaNvidiaGpuNotIn ¶
QuotaNvidiaGpuNotIn applies the NotIn predicate on the "quota_nvidia_gpu" field.
func QuotaStorage ¶
QuotaStorage applies equality check predicate on the "quota_storage" field. It's identical to QuotaStorageEQ.
func QuotaStorageEQ ¶
QuotaStorageEQ applies the EQ predicate on the "quota_storage" field.
func QuotaStorageGT ¶
QuotaStorageGT applies the GT predicate on the "quota_storage" field.
func QuotaStorageGTE ¶
QuotaStorageGTE applies the GTE predicate on the "quota_storage" field.
func QuotaStorageIn ¶
QuotaStorageIn applies the In predicate on the "quota_storage" field.
func QuotaStorageLT ¶
QuotaStorageLT applies the LT predicate on the "quota_storage" field.
func QuotaStorageLTE ¶
QuotaStorageLTE applies the LTE predicate on the "quota_storage" field.
func QuotaStorageNEQ ¶
QuotaStorageNEQ applies the NEQ predicate on the "quota_storage" field.
func QuotaStorageNotIn ¶
QuotaStorageNotIn applies the NotIn predicate on the "quota_storage" field.
func UserID ¶
UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
func UserIDContains ¶
UserIDContains applies the Contains predicate on the "user_id" field.
func UserIDContainsFold ¶
UserIDContainsFold applies the ContainsFold predicate on the "user_id" field.
func UserIDEqualFold ¶
UserIDEqualFold applies the EqualFold predicate on the "user_id" field.
func UserIDHasPrefix ¶
UserIDHasPrefix applies the HasPrefix predicate on the "user_id" field.
func UserIDHasSuffix ¶
UserIDHasSuffix applies the HasSuffix predicate on the "user_id" field.
func UserIDNotIn ¶
UserIDNotIn applies the NotIn predicate on the "user_id" field.
func UserPw ¶
UserPw applies equality check predicate on the "user_pw" field. It's identical to UserPwEQ.
func UserPwContains ¶
UserPwContains applies the Contains predicate on the "user_pw" field.
func UserPwContainsFold ¶
UserPwContainsFold applies the ContainsFold predicate on the "user_pw" field.
func UserPwEqualFold ¶
UserPwEqualFold applies the EqualFold predicate on the "user_pw" field.
func UserPwHasPrefix ¶
UserPwHasPrefix applies the HasPrefix predicate on the "user_pw" field.
func UserPwHasSuffix ¶
UserPwHasSuffix applies the HasSuffix predicate on the "user_pw" field.
func UserPwNotIn ¶
UserPwNotIn applies the NotIn predicate on the "user_pw" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.