server

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

View Source
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"}
)

Columns holds all SQL columns for server fields.

View Source
var (
	// DefaultCreatedAt holds the default value on creation for the created_at field.
	DefaultCreatedAt func() time.Time
)

Functions

func And

func And(predicates ...predicate.Server) predicate.Server

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

func CPU

func CPU(v int) predicate.Server

CPU applies equality check predicate on the "cpu" field. It's identical to CPUEQ.

func CPUEQ

func CPUEQ(v int) predicate.Server

CPUEQ applies the EQ predicate on the "cpu" field.

func CPUGT

func CPUGT(v int) predicate.Server

CPUGT applies the GT predicate on the "cpu" field.

func CPUGTE

func CPUGTE(v int) predicate.Server

CPUGTE applies the GTE predicate on the "cpu" field.

func CPUIn

func CPUIn(vs ...int) predicate.Server

CPUIn applies the In predicate on the "cpu" field.

func CPULT

func CPULT(v int) predicate.Server

CPULT applies the LT predicate on the "cpu" field.

func CPULTE

func CPULTE(v int) predicate.Server

CPULTE applies the LTE predicate on the "cpu" field.

func CPUNEQ

func CPUNEQ(v int) predicate.Server

CPUNEQ applies the NEQ predicate on the "cpu" field.

func CPUNotIn

func CPUNotIn(vs ...int) predicate.Server

CPUNotIn applies the NotIn predicate on the "cpu" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Server

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Server

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Server

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Server

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Server

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Server

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Server

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

func CreatedAtNotIn

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

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

func DeletedAt

func DeletedAt(v time.Time) predicate.Server

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

func DeletedAtEQ

func DeletedAtEQ(v time.Time) predicate.Server

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

func DeletedAtGT

func DeletedAtGT(v time.Time) predicate.Server

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

func DeletedAtGTE

func DeletedAtGTE(v time.Time) predicate.Server

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

func DeletedAtIn

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

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

func DeletedAtIsNil

func DeletedAtIsNil() predicate.Server

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

func DeletedAtLT

func DeletedAtLT(v time.Time) predicate.Server

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

func DeletedAtLTE

func DeletedAtLTE(v time.Time) predicate.Server

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

func DeletedAtNEQ

func DeletedAtNEQ(v time.Time) predicate.Server

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

func DeletedAtNotIn

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

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

func DeletedAtNotNil

func DeletedAtNotNil() predicate.Server

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

func Description

func Description(v string) predicate.Server

Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.

func DescriptionContains

func DescriptionContains(v string) predicate.Server

DescriptionContains applies the Contains predicate on the "description" field.

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.Server

DescriptionContainsFold applies the ContainsFold predicate on the "description" field.

func DescriptionEQ

func DescriptionEQ(v string) predicate.Server

DescriptionEQ applies the EQ predicate on the "description" field.

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.Server

DescriptionEqualFold applies the EqualFold predicate on the "description" field.

func DescriptionGT

func DescriptionGT(v string) predicate.Server

DescriptionGT applies the GT predicate on the "description" field.

func DescriptionGTE

func DescriptionGTE(v string) predicate.Server

DescriptionGTE applies the GTE predicate on the "description" field.

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.Server

DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.Server

DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.

func DescriptionIn

func DescriptionIn(vs ...string) predicate.Server

DescriptionIn applies the In predicate on the "description" field.

func DescriptionLT

func DescriptionLT(v string) predicate.Server

DescriptionLT applies the LT predicate on the "description" field.

func DescriptionLTE

func DescriptionLTE(v string) predicate.Server

DescriptionLTE applies the LTE predicate on the "description" field.

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.Server

DescriptionNEQ applies the NEQ predicate on the "description" field.

func DescriptionNotIn

func DescriptionNotIn(vs ...string) predicate.Server

DescriptionNotIn applies the NotIn predicate on the "description" field.

func HasEvent

func HasEvent() predicate.Server

HasEvent applies the HasEdge predicate on the "event" edge.

func HasEventWith

func HasEventWith(preds ...predicate.Event) predicate.Server

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

func HasOwners

func HasOwners() predicate.Server

HasOwners applies the HasEdge predicate on the "owners" edge.

func HasOwnersWith

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

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

func HasTemplateFrom

func HasTemplateFrom() predicate.Server

HasTemplateFrom applies the HasEdge predicate on the "template_from" edge.

func HasTemplateFromWith

func HasTemplateFromWith(preds ...predicate.Template) predicate.Server

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

func ID

func ID(id int) predicate.Server

ID filters vertices based on their identifier.

func IDEQ

func IDEQ(id int) predicate.Server

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Server

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Server

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Server

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Server

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Server

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func IP

func IP(v string) predicate.Server

IP applies equality check predicate on the "ip" field. It's identical to IPEQ.

func IPContains

func IPContains(v string) predicate.Server

IPContains applies the Contains predicate on the "ip" field.

func IPContainsFold

func IPContainsFold(v string) predicate.Server

IPContainsFold applies the ContainsFold predicate on the "ip" field.

func IPEQ

func IPEQ(v string) predicate.Server

IPEQ applies the EQ predicate on the "ip" field.

func IPEqualFold

func IPEqualFold(v string) predicate.Server

IPEqualFold applies the EqualFold predicate on the "ip" field.

func IPGT

func IPGT(v string) predicate.Server

IPGT applies the GT predicate on the "ip" field.

func IPGTE

func IPGTE(v string) predicate.Server

IPGTE applies the GTE predicate on the "ip" field.

func IPHasPrefix

func IPHasPrefix(v string) predicate.Server

IPHasPrefix applies the HasPrefix predicate on the "ip" field.

func IPHasSuffix

func IPHasSuffix(v string) predicate.Server

IPHasSuffix applies the HasSuffix predicate on the "ip" field.

func IPIn

func IPIn(vs ...string) predicate.Server

IPIn applies the In predicate on the "ip" field.

func IPLT

func IPLT(v string) predicate.Server

IPLT applies the LT predicate on the "ip" field.

func IPLTE

func IPLTE(v string) predicate.Server

IPLTE applies the LTE predicate on the "ip" field.

func IPNEQ

func IPNEQ(v string) predicate.Server

IPNEQ applies the NEQ predicate on the "ip" field.

func IPNotIn

func IPNotIn(vs ...string) predicate.Server

IPNotIn applies the NotIn predicate on the "ip" field.

func Memory

func Memory(v int) predicate.Server

Memory applies equality check predicate on the "memory" field. It's identical to MemoryEQ.

func MemoryEQ

func MemoryEQ(v int) predicate.Server

MemoryEQ applies the EQ predicate on the "memory" field.

func MemoryGT

func MemoryGT(v int) predicate.Server

MemoryGT applies the GT predicate on the "memory" field.

func MemoryGTE

func MemoryGTE(v int) predicate.Server

MemoryGTE applies the GTE predicate on the "memory" field.

func MemoryIn

func MemoryIn(vs ...int) predicate.Server

MemoryIn applies the In predicate on the "memory" field.

func MemoryLT

func MemoryLT(v int) predicate.Server

MemoryLT applies the LT predicate on the "memory" field.

func MemoryLTE

func MemoryLTE(v int) predicate.Server

MemoryLTE applies the LTE predicate on the "memory" field.

func MemoryNEQ

func MemoryNEQ(v int) predicate.Server

MemoryNEQ applies the NEQ predicate on the "memory" field.

func MemoryNotIn

func MemoryNotIn(vs ...int) predicate.Server

MemoryNotIn applies the NotIn predicate on the "memory" field.

func Name

func Name(v string) predicate.Server

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.Server

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.Server

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.Server

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.Server

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.Server

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.Server

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.Server

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.Server

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.Server

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.Server

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.Server

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.Server

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.Server

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func NvidiaGpu

func NvidiaGpu(v int) predicate.Server

NvidiaGpu applies equality check predicate on the "nvidia_gpu" field. It's identical to NvidiaGpuEQ.

func NvidiaGpuEQ

func NvidiaGpuEQ(v int) predicate.Server

NvidiaGpuEQ applies the EQ predicate on the "nvidia_gpu" field.

func NvidiaGpuGT

func NvidiaGpuGT(v int) predicate.Server

NvidiaGpuGT applies the GT predicate on the "nvidia_gpu" field.

func NvidiaGpuGTE

func NvidiaGpuGTE(v int) predicate.Server

NvidiaGpuGTE applies the GTE predicate on the "nvidia_gpu" field.

func NvidiaGpuIn

func NvidiaGpuIn(vs ...int) predicate.Server

NvidiaGpuIn applies the In predicate on the "nvidia_gpu" field.

func NvidiaGpuLT

func NvidiaGpuLT(v int) predicate.Server

NvidiaGpuLT applies the LT predicate on the "nvidia_gpu" field.

func NvidiaGpuLTE

func NvidiaGpuLTE(v int) predicate.Server

NvidiaGpuLTE applies the LTE predicate on the "nvidia_gpu" field.

func NvidiaGpuNEQ

func NvidiaGpuNEQ(v int) predicate.Server

NvidiaGpuNEQ applies the NEQ predicate on the "nvidia_gpu" field.

func NvidiaGpuNotIn

func NvidiaGpuNotIn(vs ...int) predicate.Server

NvidiaGpuNotIn applies the NotIn predicate on the "nvidia_gpu" field.

func Or

func Or(predicates ...predicate.Server) predicate.Server

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

func Template

func Template(v string) predicate.Server

Template applies equality check predicate on the "template" field. It's identical to TemplateEQ.

func TemplateContains

func TemplateContains(v string) predicate.Server

TemplateContains applies the Contains predicate on the "template" field.

func TemplateContainsFold

func TemplateContainsFold(v string) predicate.Server

TemplateContainsFold applies the ContainsFold predicate on the "template" field.

func TemplateEQ

func TemplateEQ(v string) predicate.Server

TemplateEQ applies the EQ predicate on the "template" field.

func TemplateEqualFold

func TemplateEqualFold(v string) predicate.Server

TemplateEqualFold applies the EqualFold predicate on the "template" field.

func TemplateGT

func TemplateGT(v string) predicate.Server

TemplateGT applies the GT predicate on the "template" field.

func TemplateGTE

func TemplateGTE(v string) predicate.Server

TemplateGTE applies the GTE predicate on the "template" field.

func TemplateHasPrefix

func TemplateHasPrefix(v string) predicate.Server

TemplateHasPrefix applies the HasPrefix predicate on the "template" field.

func TemplateHasSuffix

func TemplateHasSuffix(v string) predicate.Server

TemplateHasSuffix applies the HasSuffix predicate on the "template" field.

func TemplateIn

func TemplateIn(vs ...string) predicate.Server

TemplateIn applies the In predicate on the "template" field.

func TemplateLT

func TemplateLT(v string) predicate.Server

TemplateLT applies the LT predicate on the "template" field.

func TemplateLTE

func TemplateLTE(v string) predicate.Server

TemplateLTE applies the LTE predicate on the "template" field.

func TemplateNEQ

func TemplateNEQ(v string) predicate.Server

TemplateNEQ applies the NEQ predicate on the "template" field.

func TemplateNotIn

func TemplateNotIn(vs ...string) predicate.Server

TemplateNotIn applies the NotIn predicate on the "template" 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