computer

package
v0.0.0-...-33a8a84 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the computer type in the database.
	Label = "computer"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldManufacturer holds the string denoting the manufacturer field in the database.
	FieldManufacturer = "manufacturer"
	// FieldModel holds the string denoting the model field in the database.
	FieldModel = "model"
	// FieldSerial holds the string denoting the serial field in the database.
	FieldSerial = "serial"
	// FieldMemory holds the string denoting the memory field in the database.
	FieldMemory = "memory"
	// FieldProcessor holds the string denoting the processor field in the database.
	FieldProcessor = "processor"
	// FieldProcessorCores holds the string denoting the processor_cores field in the database.
	FieldProcessorCores = "processor_cores"
	// FieldProcessorArch holds the string denoting the processor_arch field in the database.
	FieldProcessorArch = "processor_arch"
	// EdgeOwner holds the string denoting the owner edge name in mutations.
	EdgeOwner = "owner"
	// AgentFieldID holds the string denoting the ID field of the Agent.
	AgentFieldID = "oid"
	// Table holds the table name of the computer in the database.
	Table = "computers"
	// OwnerTable is the table that holds the owner relation/edge.
	OwnerTable = "computers"
	// OwnerInverseTable is the table name for the Agent entity.
	// It exists in this package in order to avoid circular dependency with the "agent" package.
	OwnerInverseTable = "agents"
	// OwnerColumn is the table column denoting the owner relation/edge.
	OwnerColumn = "agent_computer"
)

Variables

Columns holds all SQL columns for computer fields.

View Source
var ForeignKeys = []string{
	"agent_computer",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "computers" table and are not defined as standalone fields in the schema.

Functions

func And

func And(predicates ...predicate.Computer) predicate.Computer

And groups predicates with the AND operator between them.

func HasOwner

func HasOwner() predicate.Computer

HasOwner applies the HasEdge predicate on the "owner" edge.

func HasOwnerWith

func HasOwnerWith(preds ...predicate.Agent) predicate.Computer

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

func ID

func ID(id int) predicate.Computer

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Computer

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Computer

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Computer

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Computer

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Computer

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Computer

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Manufacturer

func Manufacturer(v string) predicate.Computer

Manufacturer applies equality check predicate on the "manufacturer" field. It's identical to ManufacturerEQ.

func ManufacturerContains

func ManufacturerContains(v string) predicate.Computer

ManufacturerContains applies the Contains predicate on the "manufacturer" field.

func ManufacturerContainsFold

func ManufacturerContainsFold(v string) predicate.Computer

ManufacturerContainsFold applies the ContainsFold predicate on the "manufacturer" field.

func ManufacturerEQ

func ManufacturerEQ(v string) predicate.Computer

ManufacturerEQ applies the EQ predicate on the "manufacturer" field.

func ManufacturerEqualFold

func ManufacturerEqualFold(v string) predicate.Computer

ManufacturerEqualFold applies the EqualFold predicate on the "manufacturer" field.

func ManufacturerGT

func ManufacturerGT(v string) predicate.Computer

ManufacturerGT applies the GT predicate on the "manufacturer" field.

func ManufacturerGTE

func ManufacturerGTE(v string) predicate.Computer

ManufacturerGTE applies the GTE predicate on the "manufacturer" field.

func ManufacturerHasPrefix

func ManufacturerHasPrefix(v string) predicate.Computer

ManufacturerHasPrefix applies the HasPrefix predicate on the "manufacturer" field.

func ManufacturerHasSuffix

func ManufacturerHasSuffix(v string) predicate.Computer

ManufacturerHasSuffix applies the HasSuffix predicate on the "manufacturer" field.

func ManufacturerIn

func ManufacturerIn(vs ...string) predicate.Computer

ManufacturerIn applies the In predicate on the "manufacturer" field.

func ManufacturerIsNil

func ManufacturerIsNil() predicate.Computer

ManufacturerIsNil applies the IsNil predicate on the "manufacturer" field.

func ManufacturerLT

func ManufacturerLT(v string) predicate.Computer

ManufacturerLT applies the LT predicate on the "manufacturer" field.

func ManufacturerLTE

func ManufacturerLTE(v string) predicate.Computer

ManufacturerLTE applies the LTE predicate on the "manufacturer" field.

func ManufacturerNEQ

func ManufacturerNEQ(v string) predicate.Computer

ManufacturerNEQ applies the NEQ predicate on the "manufacturer" field.

func ManufacturerNotIn

func ManufacturerNotIn(vs ...string) predicate.Computer

ManufacturerNotIn applies the NotIn predicate on the "manufacturer" field.

func ManufacturerNotNil

func ManufacturerNotNil() predicate.Computer

ManufacturerNotNil applies the NotNil predicate on the "manufacturer" field.

func Memory

func Memory(v uint64) predicate.Computer

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

func MemoryEQ

func MemoryEQ(v uint64) predicate.Computer

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

func MemoryGT

func MemoryGT(v uint64) predicate.Computer

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

func MemoryGTE

func MemoryGTE(v uint64) predicate.Computer

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

func MemoryIn

func MemoryIn(vs ...uint64) predicate.Computer

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

func MemoryIsNil

func MemoryIsNil() predicate.Computer

MemoryIsNil applies the IsNil predicate on the "memory" field.

func MemoryLT

func MemoryLT(v uint64) predicate.Computer

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

func MemoryLTE

func MemoryLTE(v uint64) predicate.Computer

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

func MemoryNEQ

func MemoryNEQ(v uint64) predicate.Computer

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

func MemoryNotIn

func MemoryNotIn(vs ...uint64) predicate.Computer

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

func MemoryNotNil

func MemoryNotNil() predicate.Computer

MemoryNotNil applies the NotNil predicate on the "memory" field.

func Model

func Model(v string) predicate.Computer

Model applies equality check predicate on the "model" field. It's identical to ModelEQ.

func ModelContains

func ModelContains(v string) predicate.Computer

ModelContains applies the Contains predicate on the "model" field.

func ModelContainsFold

func ModelContainsFold(v string) predicate.Computer

ModelContainsFold applies the ContainsFold predicate on the "model" field.

func ModelEQ

func ModelEQ(v string) predicate.Computer

ModelEQ applies the EQ predicate on the "model" field.

func ModelEqualFold

func ModelEqualFold(v string) predicate.Computer

ModelEqualFold applies the EqualFold predicate on the "model" field.

func ModelGT

func ModelGT(v string) predicate.Computer

ModelGT applies the GT predicate on the "model" field.

func ModelGTE

func ModelGTE(v string) predicate.Computer

ModelGTE applies the GTE predicate on the "model" field.

func ModelHasPrefix

func ModelHasPrefix(v string) predicate.Computer

ModelHasPrefix applies the HasPrefix predicate on the "model" field.

func ModelHasSuffix

func ModelHasSuffix(v string) predicate.Computer

ModelHasSuffix applies the HasSuffix predicate on the "model" field.

func ModelIn

func ModelIn(vs ...string) predicate.Computer

ModelIn applies the In predicate on the "model" field.

func ModelIsNil

func ModelIsNil() predicate.Computer

ModelIsNil applies the IsNil predicate on the "model" field.

func ModelLT

func ModelLT(v string) predicate.Computer

ModelLT applies the LT predicate on the "model" field.

func ModelLTE

func ModelLTE(v string) predicate.Computer

ModelLTE applies the LTE predicate on the "model" field.

func ModelNEQ

func ModelNEQ(v string) predicate.Computer

ModelNEQ applies the NEQ predicate on the "model" field.

func ModelNotIn

func ModelNotIn(vs ...string) predicate.Computer

ModelNotIn applies the NotIn predicate on the "model" field.

func ModelNotNil

func ModelNotNil() predicate.Computer

ModelNotNil applies the NotNil predicate on the "model" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Computer) predicate.Computer

Or groups predicates with the OR operator between them.

func Processor

func Processor(v string) predicate.Computer

Processor applies equality check predicate on the "processor" field. It's identical to ProcessorEQ.

func ProcessorArch

func ProcessorArch(v string) predicate.Computer

ProcessorArch applies equality check predicate on the "processor_arch" field. It's identical to ProcessorArchEQ.

func ProcessorArchContains

func ProcessorArchContains(v string) predicate.Computer

ProcessorArchContains applies the Contains predicate on the "processor_arch" field.

func ProcessorArchContainsFold

func ProcessorArchContainsFold(v string) predicate.Computer

ProcessorArchContainsFold applies the ContainsFold predicate on the "processor_arch" field.

func ProcessorArchEQ

func ProcessorArchEQ(v string) predicate.Computer

ProcessorArchEQ applies the EQ predicate on the "processor_arch" field.

func ProcessorArchEqualFold

func ProcessorArchEqualFold(v string) predicate.Computer

ProcessorArchEqualFold applies the EqualFold predicate on the "processor_arch" field.

func ProcessorArchGT

func ProcessorArchGT(v string) predicate.Computer

ProcessorArchGT applies the GT predicate on the "processor_arch" field.

func ProcessorArchGTE

func ProcessorArchGTE(v string) predicate.Computer

ProcessorArchGTE applies the GTE predicate on the "processor_arch" field.

func ProcessorArchHasPrefix

func ProcessorArchHasPrefix(v string) predicate.Computer

ProcessorArchHasPrefix applies the HasPrefix predicate on the "processor_arch" field.

func ProcessorArchHasSuffix

func ProcessorArchHasSuffix(v string) predicate.Computer

ProcessorArchHasSuffix applies the HasSuffix predicate on the "processor_arch" field.

func ProcessorArchIn

func ProcessorArchIn(vs ...string) predicate.Computer

ProcessorArchIn applies the In predicate on the "processor_arch" field.

func ProcessorArchIsNil

func ProcessorArchIsNil() predicate.Computer

ProcessorArchIsNil applies the IsNil predicate on the "processor_arch" field.

func ProcessorArchLT

func ProcessorArchLT(v string) predicate.Computer

ProcessorArchLT applies the LT predicate on the "processor_arch" field.

func ProcessorArchLTE

func ProcessorArchLTE(v string) predicate.Computer

ProcessorArchLTE applies the LTE predicate on the "processor_arch" field.

func ProcessorArchNEQ

func ProcessorArchNEQ(v string) predicate.Computer

ProcessorArchNEQ applies the NEQ predicate on the "processor_arch" field.

func ProcessorArchNotIn

func ProcessorArchNotIn(vs ...string) predicate.Computer

ProcessorArchNotIn applies the NotIn predicate on the "processor_arch" field.

func ProcessorArchNotNil

func ProcessorArchNotNil() predicate.Computer

ProcessorArchNotNil applies the NotNil predicate on the "processor_arch" field.

func ProcessorContains

func ProcessorContains(v string) predicate.Computer

ProcessorContains applies the Contains predicate on the "processor" field.

func ProcessorContainsFold

func ProcessorContainsFold(v string) predicate.Computer

ProcessorContainsFold applies the ContainsFold predicate on the "processor" field.

func ProcessorCores

func ProcessorCores(v int64) predicate.Computer

ProcessorCores applies equality check predicate on the "processor_cores" field. It's identical to ProcessorCoresEQ.

func ProcessorCoresEQ

func ProcessorCoresEQ(v int64) predicate.Computer

ProcessorCoresEQ applies the EQ predicate on the "processor_cores" field.

func ProcessorCoresGT

func ProcessorCoresGT(v int64) predicate.Computer

ProcessorCoresGT applies the GT predicate on the "processor_cores" field.

func ProcessorCoresGTE

func ProcessorCoresGTE(v int64) predicate.Computer

ProcessorCoresGTE applies the GTE predicate on the "processor_cores" field.

func ProcessorCoresIn

func ProcessorCoresIn(vs ...int64) predicate.Computer

ProcessorCoresIn applies the In predicate on the "processor_cores" field.

func ProcessorCoresIsNil

func ProcessorCoresIsNil() predicate.Computer

ProcessorCoresIsNil applies the IsNil predicate on the "processor_cores" field.

func ProcessorCoresLT

func ProcessorCoresLT(v int64) predicate.Computer

ProcessorCoresLT applies the LT predicate on the "processor_cores" field.

func ProcessorCoresLTE

func ProcessorCoresLTE(v int64) predicate.Computer

ProcessorCoresLTE applies the LTE predicate on the "processor_cores" field.

func ProcessorCoresNEQ

func ProcessorCoresNEQ(v int64) predicate.Computer

ProcessorCoresNEQ applies the NEQ predicate on the "processor_cores" field.

func ProcessorCoresNotIn

func ProcessorCoresNotIn(vs ...int64) predicate.Computer

ProcessorCoresNotIn applies the NotIn predicate on the "processor_cores" field.

func ProcessorCoresNotNil

func ProcessorCoresNotNil() predicate.Computer

ProcessorCoresNotNil applies the NotNil predicate on the "processor_cores" field.

func ProcessorEQ

func ProcessorEQ(v string) predicate.Computer

ProcessorEQ applies the EQ predicate on the "processor" field.

func ProcessorEqualFold

func ProcessorEqualFold(v string) predicate.Computer

ProcessorEqualFold applies the EqualFold predicate on the "processor" field.

func ProcessorGT

func ProcessorGT(v string) predicate.Computer

ProcessorGT applies the GT predicate on the "processor" field.

func ProcessorGTE

func ProcessorGTE(v string) predicate.Computer

ProcessorGTE applies the GTE predicate on the "processor" field.

func ProcessorHasPrefix

func ProcessorHasPrefix(v string) predicate.Computer

ProcessorHasPrefix applies the HasPrefix predicate on the "processor" field.

func ProcessorHasSuffix

func ProcessorHasSuffix(v string) predicate.Computer

ProcessorHasSuffix applies the HasSuffix predicate on the "processor" field.

func ProcessorIn

func ProcessorIn(vs ...string) predicate.Computer

ProcessorIn applies the In predicate on the "processor" field.

func ProcessorIsNil

func ProcessorIsNil() predicate.Computer

ProcessorIsNil applies the IsNil predicate on the "processor" field.

func ProcessorLT

func ProcessorLT(v string) predicate.Computer

ProcessorLT applies the LT predicate on the "processor" field.

func ProcessorLTE

func ProcessorLTE(v string) predicate.Computer

ProcessorLTE applies the LTE predicate on the "processor" field.

func ProcessorNEQ

func ProcessorNEQ(v string) predicate.Computer

ProcessorNEQ applies the NEQ predicate on the "processor" field.

func ProcessorNotIn

func ProcessorNotIn(vs ...string) predicate.Computer

ProcessorNotIn applies the NotIn predicate on the "processor" field.

func ProcessorNotNil

func ProcessorNotNil() predicate.Computer

ProcessorNotNil applies the NotNil predicate on the "processor" field.

func Serial

func Serial(v string) predicate.Computer

Serial applies equality check predicate on the "serial" field. It's identical to SerialEQ.

func SerialContains

func SerialContains(v string) predicate.Computer

SerialContains applies the Contains predicate on the "serial" field.

func SerialContainsFold

func SerialContainsFold(v string) predicate.Computer

SerialContainsFold applies the ContainsFold predicate on the "serial" field.

func SerialEQ

func SerialEQ(v string) predicate.Computer

SerialEQ applies the EQ predicate on the "serial" field.

func SerialEqualFold

func SerialEqualFold(v string) predicate.Computer

SerialEqualFold applies the EqualFold predicate on the "serial" field.

func SerialGT

func SerialGT(v string) predicate.Computer

SerialGT applies the GT predicate on the "serial" field.

func SerialGTE

func SerialGTE(v string) predicate.Computer

SerialGTE applies the GTE predicate on the "serial" field.

func SerialHasPrefix

func SerialHasPrefix(v string) predicate.Computer

SerialHasPrefix applies the HasPrefix predicate on the "serial" field.

func SerialHasSuffix

func SerialHasSuffix(v string) predicate.Computer

SerialHasSuffix applies the HasSuffix predicate on the "serial" field.

func SerialIn

func SerialIn(vs ...string) predicate.Computer

SerialIn applies the In predicate on the "serial" field.

func SerialIsNil

func SerialIsNil() predicate.Computer

SerialIsNil applies the IsNil predicate on the "serial" field.

func SerialLT

func SerialLT(v string) predicate.Computer

SerialLT applies the LT predicate on the "serial" field.

func SerialLTE

func SerialLTE(v string) predicate.Computer

SerialLTE applies the LTE predicate on the "serial" field.

func SerialNEQ

func SerialNEQ(v string) predicate.Computer

SerialNEQ applies the NEQ predicate on the "serial" field.

func SerialNotIn

func SerialNotIn(vs ...string) predicate.Computer

SerialNotIn applies the NotIn predicate on the "serial" field.

func SerialNotNil

func SerialNotNil() predicate.Computer

SerialNotNil applies the NotNil predicate on the "serial" 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 Computer queries.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByManufacturer

func ByManufacturer(opts ...sql.OrderTermOption) OrderOption

ByManufacturer orders the results by the manufacturer field.

func ByMemory

func ByMemory(opts ...sql.OrderTermOption) OrderOption

ByMemory orders the results by the memory field.

func ByModel

func ByModel(opts ...sql.OrderTermOption) OrderOption

ByModel orders the results by the model field.

func ByOwnerField

func ByOwnerField(field string, opts ...sql.OrderTermOption) OrderOption

ByOwnerField orders the results by owner field.

func ByProcessor

func ByProcessor(opts ...sql.OrderTermOption) OrderOption

ByProcessor orders the results by the processor field.

func ByProcessorArch

func ByProcessorArch(opts ...sql.OrderTermOption) OrderOption

ByProcessorArch orders the results by the processor_arch field.

func ByProcessorCores

func ByProcessorCores(opts ...sql.OrderTermOption) OrderOption

ByProcessorCores orders the results by the processor_cores field.

func BySerial

func BySerial(opts ...sql.OrderTermOption) OrderOption

BySerial orders the results by the serial field.

Jump to

Keyboard shortcuts

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