Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Server) predicate.Server
- func CPU(v int) predicate.Server
- func CPUEQ(v int) predicate.Server
- func CPUGT(v int) predicate.Server
- func CPUGTE(v int) predicate.Server
- func CPUIn(vs ...int) predicate.Server
- func CPULT(v int) predicate.Server
- func CPULTE(v int) predicate.Server
- func CPUNEQ(v int) predicate.Server
- func CPUNotIn(vs ...int) predicate.Server
- func CreatedAt(v time.Time) predicate.Server
- func CreatedAtEQ(v time.Time) predicate.Server
- func CreatedAtGT(v time.Time) predicate.Server
- func CreatedAtGTE(v time.Time) predicate.Server
- func CreatedAtIn(vs ...time.Time) predicate.Server
- func CreatedAtLT(v time.Time) predicate.Server
- func CreatedAtLTE(v time.Time) predicate.Server
- func CreatedAtNEQ(v time.Time) predicate.Server
- func CreatedAtNotIn(vs ...time.Time) predicate.Server
- func DeletedAt(v time.Time) predicate.Server
- func DeletedAtEQ(v time.Time) predicate.Server
- func DeletedAtGT(v time.Time) predicate.Server
- func DeletedAtGTE(v time.Time) predicate.Server
- func DeletedAtIn(vs ...time.Time) predicate.Server
- func DeletedAtIsNil() predicate.Server
- func DeletedAtLT(v time.Time) predicate.Server
- func DeletedAtLTE(v time.Time) predicate.Server
- func DeletedAtNEQ(v time.Time) predicate.Server
- func DeletedAtNotIn(vs ...time.Time) predicate.Server
- func DeletedAtNotNil() predicate.Server
- func Description(v string) predicate.Server
- func DescriptionContains(v string) predicate.Server
- func DescriptionContainsFold(v string) predicate.Server
- func DescriptionEQ(v string) predicate.Server
- func DescriptionEqualFold(v string) predicate.Server
- func DescriptionGT(v string) predicate.Server
- func DescriptionGTE(v string) predicate.Server
- func DescriptionHasPrefix(v string) predicate.Server
- func DescriptionHasSuffix(v string) predicate.Server
- func DescriptionIn(vs ...string) predicate.Server
- func DescriptionLT(v string) predicate.Server
- func DescriptionLTE(v string) predicate.Server
- func DescriptionNEQ(v string) predicate.Server
- func DescriptionNotIn(vs ...string) predicate.Server
- func HasEvent() predicate.Server
- func HasEventWith(preds ...predicate.Event) predicate.Server
- func HasOwners() predicate.Server
- func HasOwnersWith(preds ...predicate.User) predicate.Server
- func HasTemplateFrom() predicate.Server
- func HasTemplateFromWith(preds ...predicate.Template) predicate.Server
- func ID(id int) predicate.Server
- func IDEQ(id int) predicate.Server
- func IDGT(id int) predicate.Server
- func IDGTE(id int) predicate.Server
- func IDIn(ids ...int) predicate.Server
- func IDLT(id int) predicate.Server
- func IDLTE(id int) predicate.Server
- func IDNEQ(id int) predicate.Server
- func IDNotIn(ids ...int) predicate.Server
- func IP(v string) predicate.Server
- func IPContains(v string) predicate.Server
- func IPContainsFold(v string) predicate.Server
- func IPEQ(v string) predicate.Server
- func IPEqualFold(v string) predicate.Server
- func IPGT(v string) predicate.Server
- func IPGTE(v string) predicate.Server
- func IPHasPrefix(v string) predicate.Server
- func IPHasSuffix(v string) predicate.Server
- func IPIn(vs ...string) predicate.Server
- func IPLT(v string) predicate.Server
- func IPLTE(v string) predicate.Server
- func IPNEQ(v string) predicate.Server
- func IPNotIn(vs ...string) predicate.Server
- func Memory(v int) predicate.Server
- func MemoryEQ(v int) predicate.Server
- func MemoryGT(v int) predicate.Server
- func MemoryGTE(v int) predicate.Server
- func MemoryIn(vs ...int) predicate.Server
- func MemoryLT(v int) predicate.Server
- func MemoryLTE(v int) predicate.Server
- func MemoryNEQ(v int) predicate.Server
- func MemoryNotIn(vs ...int) predicate.Server
- func Name(v string) predicate.Server
- func NameContains(v string) predicate.Server
- func NameContainsFold(v string) predicate.Server
- func NameEQ(v string) predicate.Server
- func NameEqualFold(v string) predicate.Server
- func NameGT(v string) predicate.Server
- func NameGTE(v string) predicate.Server
- func NameHasPrefix(v string) predicate.Server
- func NameHasSuffix(v string) predicate.Server
- func NameIn(vs ...string) predicate.Server
- func NameLT(v string) predicate.Server
- func NameLTE(v string) predicate.Server
- func NameNEQ(v string) predicate.Server
- func NameNotIn(vs ...string) predicate.Server
- func Not(p predicate.Server) predicate.Server
- func NvidiaGpu(v int) predicate.Server
- func NvidiaGpuEQ(v int) predicate.Server
- func NvidiaGpuGT(v int) predicate.Server
- func NvidiaGpuGTE(v int) predicate.Server
- func NvidiaGpuIn(vs ...int) predicate.Server
- func NvidiaGpuLT(v int) predicate.Server
- func NvidiaGpuLTE(v int) predicate.Server
- func NvidiaGpuNEQ(v int) predicate.Server
- func NvidiaGpuNotIn(vs ...int) predicate.Server
- func Or(predicates ...predicate.Server) predicate.Server
- func Template(v string) predicate.Server
- func TemplateContains(v string) predicate.Server
- func TemplateContainsFold(v string) predicate.Server
- func TemplateEQ(v string) predicate.Server
- func TemplateEqualFold(v string) predicate.Server
- func TemplateGT(v string) predicate.Server
- func TemplateGTE(v string) predicate.Server
- func TemplateHasPrefix(v string) predicate.Server
- func TemplateHasSuffix(v string) predicate.Server
- func TemplateIn(vs ...string) predicate.Server
- func TemplateLT(v string) predicate.Server
- func TemplateLTE(v string) predicate.Server
- func TemplateNEQ(v string) predicate.Server
- func TemplateNotIn(vs ...string) predicate.Server
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the server type in the database. Label = "server" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldTemplate holds the string denoting the template field in the database. FieldTemplate = "template" // FieldVariables holds the string denoting the variables field in the database. FieldVariables = "variables" // FieldIP holds the string denoting the ip field in the database. FieldIP = "ip" // FieldDescription holds the string denoting the description field in the database. FieldDescription = "description" // FieldCPU holds the string denoting the cpu field in the database. FieldCPU = "cpu" // FieldMemory holds the string denoting the memory field in the database. FieldMemory = "memory" // FieldNvidiaGpu holds the string denoting the nvidia_gpu field in the database. FieldNvidiaGpu = "nvidia_gpu" // 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" // EdgeOwners holds the string denoting the owners edge name in mutations. EdgeOwners = "owners" // EdgeEvent holds the string denoting the event edge name in mutations. EdgeEvent = "event" // EdgeTemplateFrom holds the string denoting the template_from edge name in mutations. EdgeTemplateFrom = "template_from" // Table holds the table name of the server in the database. Table = "servers" // OwnersTable is the table the holds the owners relation/edge. The primary key declared below. OwnersTable = "user_servers" // OwnersInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. OwnersInverseTable = "users" // EventTable is the table the holds the event relation/edge. The primary key declared below. EventTable = "event_server" // EventInverseTable is the table name for the Event entity. // It exists in this package in order to avoid circular dependency with the "event" package. EventInverseTable = "events" // TemplateFromTable is the table the holds the template_from relation/edge. The primary key declared below. TemplateFromTable = "server_template_from" // TemplateFromInverseTable is the table name for the Template entity. // It exists in this package in order to avoid circular dependency with the "template" package. TemplateFromInverseTable = "templates" )
Variables ¶
var ( // OwnersPrimaryKey and OwnersColumn2 are the table columns denoting the // primary key for the owners relation (M2M). OwnersPrimaryKey = []string{"user_id", "server_id"} // EventPrimaryKey and EventColumn2 are the table columns denoting the // primary key for the event relation (M2M). EventPrimaryKey = []string{"event_id", "server_id"} // TemplateFromPrimaryKey and TemplateFromColumn2 are the table columns denoting the // primary key for the template_from relation (M2M). TemplateFromPrimaryKey = []string{"server_id", "template_id"} )
var Columns = []string{ FieldID, FieldName, FieldTemplate, FieldVariables, FieldIP, FieldDescription, FieldCPU, FieldMemory, FieldNvidiaGpu, FieldCreatedAt, FieldDeletedAt, }
Columns holds all SQL columns for server fields.
var ( // DefaultCreatedAt holds the default value on creation for the created_at field. DefaultCreatedAt func() time.Time )
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 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 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 HasEventWith ¶
HasEventWith applies the HasEdge predicate on the "event" edge with a given conditions (other predicates).
func HasOwnersWith ¶
HasOwnersWith applies the HasEdge predicate on the "owners" edge with a given conditions (other predicates).
func HasTemplateFrom ¶
HasTemplateFrom applies the HasEdge predicate on the "template_from" edge.
func HasTemplateFromWith ¶
HasTemplateFromWith applies the HasEdge predicate on the "template_from" edge with a given conditions (other predicates).
func IPContains ¶
IPContains applies the Contains predicate on the "ip" field.
func IPContainsFold ¶
IPContainsFold applies the ContainsFold predicate on the "ip" field.
func IPEqualFold ¶
IPEqualFold applies the EqualFold predicate on the "ip" field.
func IPHasPrefix ¶
IPHasPrefix applies the HasPrefix predicate on the "ip" field.
func IPHasSuffix ¶
IPHasSuffix applies the HasSuffix predicate on the "ip" field.
func Memory ¶
Memory applies equality check predicate on the "memory" field. It's identical to MemoryEQ.
func MemoryNotIn ¶
MemoryNotIn applies the NotIn predicate on the "memory" 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 NvidiaGpu ¶
NvidiaGpu applies equality check predicate on the "nvidia_gpu" field. It's identical to NvidiaGpuEQ.
func NvidiaGpuEQ ¶
NvidiaGpuEQ applies the EQ predicate on the "nvidia_gpu" field.
func NvidiaGpuGT ¶
NvidiaGpuGT applies the GT predicate on the "nvidia_gpu" field.
func NvidiaGpuGTE ¶
NvidiaGpuGTE applies the GTE predicate on the "nvidia_gpu" field.
func NvidiaGpuIn ¶
NvidiaGpuIn applies the In predicate on the "nvidia_gpu" field.
func NvidiaGpuLT ¶
NvidiaGpuLT applies the LT predicate on the "nvidia_gpu" field.
func NvidiaGpuLTE ¶
NvidiaGpuLTE applies the LTE predicate on the "nvidia_gpu" field.
func NvidiaGpuNEQ ¶
NvidiaGpuNEQ applies the NEQ predicate on the "nvidia_gpu" field.
func NvidiaGpuNotIn ¶
NvidiaGpuNotIn applies the NotIn predicate on the "nvidia_gpu" field.
func Template ¶
Template applies equality check predicate on the "template" field. It's identical to TemplateEQ.
func TemplateContains ¶
TemplateContains applies the Contains predicate on the "template" field.
func TemplateContainsFold ¶
TemplateContainsFold applies the ContainsFold predicate on the "template" field.
func TemplateEQ ¶
TemplateEQ applies the EQ predicate on the "template" field.
func TemplateEqualFold ¶
TemplateEqualFold applies the EqualFold predicate on the "template" field.
func TemplateGT ¶
TemplateGT applies the GT predicate on the "template" field.
func TemplateGTE ¶
TemplateGTE applies the GTE predicate on the "template" field.
func TemplateHasPrefix ¶
TemplateHasPrefix applies the HasPrefix predicate on the "template" field.
func TemplateHasSuffix ¶
TemplateHasSuffix applies the HasSuffix predicate on the "template" field.
func TemplateIn ¶
TemplateIn applies the In predicate on the "template" field.
func TemplateLT ¶
TemplateLT applies the LT predicate on the "template" field.
func TemplateLTE ¶
TemplateLTE applies the LTE predicate on the "template" field.
func TemplateNEQ ¶
TemplateNEQ applies the NEQ predicate on the "template" field.
func TemplateNotIn ¶
TemplateNotIn applies the NotIn predicate on the "template" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.