Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Computer) predicate.Computer
- func HasOwner() predicate.Computer
- func HasOwnerWith(preds ...predicate.Agent) predicate.Computer
- func ID(id int) predicate.Computer
- func IDEQ(id int) predicate.Computer
- func IDGT(id int) predicate.Computer
- func IDGTE(id int) predicate.Computer
- func IDIn(ids ...int) predicate.Computer
- func IDLT(id int) predicate.Computer
- func IDLTE(id int) predicate.Computer
- func IDNEQ(id int) predicate.Computer
- func IDNotIn(ids ...int) predicate.Computer
- func Manufacturer(v string) predicate.Computer
- func ManufacturerContains(v string) predicate.Computer
- func ManufacturerContainsFold(v string) predicate.Computer
- func ManufacturerEQ(v string) predicate.Computer
- func ManufacturerEqualFold(v string) predicate.Computer
- func ManufacturerGT(v string) predicate.Computer
- func ManufacturerGTE(v string) predicate.Computer
- func ManufacturerHasPrefix(v string) predicate.Computer
- func ManufacturerHasSuffix(v string) predicate.Computer
- func ManufacturerIn(vs ...string) predicate.Computer
- func ManufacturerIsNil() predicate.Computer
- func ManufacturerLT(v string) predicate.Computer
- func ManufacturerLTE(v string) predicate.Computer
- func ManufacturerNEQ(v string) predicate.Computer
- func ManufacturerNotIn(vs ...string) predicate.Computer
- func ManufacturerNotNil() predicate.Computer
- func Memory(v uint64) predicate.Computer
- func MemoryEQ(v uint64) predicate.Computer
- func MemoryGT(v uint64) predicate.Computer
- func MemoryGTE(v uint64) predicate.Computer
- func MemoryIn(vs ...uint64) predicate.Computer
- func MemoryIsNil() predicate.Computer
- func MemoryLT(v uint64) predicate.Computer
- func MemoryLTE(v uint64) predicate.Computer
- func MemoryNEQ(v uint64) predicate.Computer
- func MemoryNotIn(vs ...uint64) predicate.Computer
- func MemoryNotNil() predicate.Computer
- func Model(v string) predicate.Computer
- func ModelContains(v string) predicate.Computer
- func ModelContainsFold(v string) predicate.Computer
- func ModelEQ(v string) predicate.Computer
- func ModelEqualFold(v string) predicate.Computer
- func ModelGT(v string) predicate.Computer
- func ModelGTE(v string) predicate.Computer
- func ModelHasPrefix(v string) predicate.Computer
- func ModelHasSuffix(v string) predicate.Computer
- func ModelIn(vs ...string) predicate.Computer
- func ModelIsNil() predicate.Computer
- func ModelLT(v string) predicate.Computer
- func ModelLTE(v string) predicate.Computer
- func ModelNEQ(v string) predicate.Computer
- func ModelNotIn(vs ...string) predicate.Computer
- func ModelNotNil() predicate.Computer
- func Not(p predicate.Computer) predicate.Computer
- func Or(predicates ...predicate.Computer) predicate.Computer
- func Processor(v string) predicate.Computer
- func ProcessorArch(v string) predicate.Computer
- func ProcessorArchContains(v string) predicate.Computer
- func ProcessorArchContainsFold(v string) predicate.Computer
- func ProcessorArchEQ(v string) predicate.Computer
- func ProcessorArchEqualFold(v string) predicate.Computer
- func ProcessorArchGT(v string) predicate.Computer
- func ProcessorArchGTE(v string) predicate.Computer
- func ProcessorArchHasPrefix(v string) predicate.Computer
- func ProcessorArchHasSuffix(v string) predicate.Computer
- func ProcessorArchIn(vs ...string) predicate.Computer
- func ProcessorArchIsNil() predicate.Computer
- func ProcessorArchLT(v string) predicate.Computer
- func ProcessorArchLTE(v string) predicate.Computer
- func ProcessorArchNEQ(v string) predicate.Computer
- func ProcessorArchNotIn(vs ...string) predicate.Computer
- func ProcessorArchNotNil() predicate.Computer
- func ProcessorContains(v string) predicate.Computer
- func ProcessorContainsFold(v string) predicate.Computer
- func ProcessorCores(v int64) predicate.Computer
- func ProcessorCoresEQ(v int64) predicate.Computer
- func ProcessorCoresGT(v int64) predicate.Computer
- func ProcessorCoresGTE(v int64) predicate.Computer
- func ProcessorCoresIn(vs ...int64) predicate.Computer
- func ProcessorCoresIsNil() predicate.Computer
- func ProcessorCoresLT(v int64) predicate.Computer
- func ProcessorCoresLTE(v int64) predicate.Computer
- func ProcessorCoresNEQ(v int64) predicate.Computer
- func ProcessorCoresNotIn(vs ...int64) predicate.Computer
- func ProcessorCoresNotNil() predicate.Computer
- func ProcessorEQ(v string) predicate.Computer
- func ProcessorEqualFold(v string) predicate.Computer
- func ProcessorGT(v string) predicate.Computer
- func ProcessorGTE(v string) predicate.Computer
- func ProcessorHasPrefix(v string) predicate.Computer
- func ProcessorHasSuffix(v string) predicate.Computer
- func ProcessorIn(vs ...string) predicate.Computer
- func ProcessorIsNil() predicate.Computer
- func ProcessorLT(v string) predicate.Computer
- func ProcessorLTE(v string) predicate.Computer
- func ProcessorNEQ(v string) predicate.Computer
- func ProcessorNotIn(vs ...string) predicate.Computer
- func ProcessorNotNil() predicate.Computer
- func Serial(v string) predicate.Computer
- func SerialContains(v string) predicate.Computer
- func SerialContainsFold(v string) predicate.Computer
- func SerialEQ(v string) predicate.Computer
- func SerialEqualFold(v string) predicate.Computer
- func SerialGT(v string) predicate.Computer
- func SerialGTE(v string) predicate.Computer
- func SerialHasPrefix(v string) predicate.Computer
- func SerialHasSuffix(v string) predicate.Computer
- func SerialIn(vs ...string) predicate.Computer
- func SerialIsNil() predicate.Computer
- func SerialLT(v string) predicate.Computer
- func SerialLTE(v string) predicate.Computer
- func SerialNEQ(v string) predicate.Computer
- func SerialNotIn(vs ...string) predicate.Computer
- func SerialNotNil() predicate.Computer
- func ValidColumn(column string) bool
- type OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByManufacturer(opts ...sql.OrderTermOption) OrderOption
- func ByMemory(opts ...sql.OrderTermOption) OrderOption
- func ByModel(opts ...sql.OrderTermOption) OrderOption
- func ByOwnerField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByProcessor(opts ...sql.OrderTermOption) OrderOption
- func ByProcessorArch(opts ...sql.OrderTermOption) OrderOption
- func ByProcessorCores(opts ...sql.OrderTermOption) OrderOption
- func BySerial(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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 ¶
var Columns = []string{ FieldID, FieldManufacturer, FieldModel, FieldSerial, FieldMemory, FieldProcessor, FieldProcessorCores, FieldProcessorArch, }
Columns holds all SQL columns for computer fields.
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 HasOwnerWith ¶
HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).
func Manufacturer ¶
Manufacturer applies equality check predicate on the "manufacturer" field. It's identical to ManufacturerEQ.
func ManufacturerContains ¶
ManufacturerContains applies the Contains predicate on the "manufacturer" field.
func ManufacturerContainsFold ¶
ManufacturerContainsFold applies the ContainsFold predicate on the "manufacturer" field.
func ManufacturerEQ ¶
ManufacturerEQ applies the EQ predicate on the "manufacturer" field.
func ManufacturerEqualFold ¶
ManufacturerEqualFold applies the EqualFold predicate on the "manufacturer" field.
func ManufacturerGT ¶
ManufacturerGT applies the GT predicate on the "manufacturer" field.
func ManufacturerGTE ¶
ManufacturerGTE applies the GTE predicate on the "manufacturer" field.
func ManufacturerHasPrefix ¶
ManufacturerHasPrefix applies the HasPrefix predicate on the "manufacturer" field.
func ManufacturerHasSuffix ¶
ManufacturerHasSuffix applies the HasSuffix predicate on the "manufacturer" field.
func ManufacturerIn ¶
ManufacturerIn applies the In predicate on the "manufacturer" field.
func ManufacturerIsNil ¶
ManufacturerIsNil applies the IsNil predicate on the "manufacturer" field.
func ManufacturerLT ¶
ManufacturerLT applies the LT predicate on the "manufacturer" field.
func ManufacturerLTE ¶
ManufacturerLTE applies the LTE predicate on the "manufacturer" field.
func ManufacturerNEQ ¶
ManufacturerNEQ applies the NEQ predicate on the "manufacturer" field.
func ManufacturerNotIn ¶
ManufacturerNotIn applies the NotIn predicate on the "manufacturer" field.
func ManufacturerNotNil ¶
ManufacturerNotNil applies the NotNil predicate on the "manufacturer" field.
func Memory ¶
Memory applies equality check predicate on the "memory" field. It's identical to MemoryEQ.
func MemoryIsNil ¶
MemoryIsNil applies the IsNil predicate on the "memory" field.
func MemoryNotIn ¶
MemoryNotIn applies the NotIn predicate on the "memory" field.
func MemoryNotNil ¶
MemoryNotNil applies the NotNil predicate on the "memory" field.
func Model ¶
Model applies equality check predicate on the "model" field. It's identical to ModelEQ.
func ModelContains ¶
ModelContains applies the Contains predicate on the "model" field.
func ModelContainsFold ¶
ModelContainsFold applies the ContainsFold predicate on the "model" field.
func ModelEqualFold ¶
ModelEqualFold applies the EqualFold predicate on the "model" field.
func ModelHasPrefix ¶
ModelHasPrefix applies the HasPrefix predicate on the "model" field.
func ModelHasSuffix ¶
ModelHasSuffix applies the HasSuffix predicate on the "model" field.
func ModelIsNil ¶
ModelIsNil applies the IsNil predicate on the "model" field.
func ModelNotIn ¶
ModelNotIn applies the NotIn predicate on the "model" field.
func ModelNotNil ¶
ModelNotNil applies the NotNil predicate on the "model" field.
func Processor ¶
Processor applies equality check predicate on the "processor" field. It's identical to ProcessorEQ.
func ProcessorArch ¶
ProcessorArch applies equality check predicate on the "processor_arch" field. It's identical to ProcessorArchEQ.
func ProcessorArchContains ¶
ProcessorArchContains applies the Contains predicate on the "processor_arch" field.
func ProcessorArchContainsFold ¶
ProcessorArchContainsFold applies the ContainsFold predicate on the "processor_arch" field.
func ProcessorArchEQ ¶
ProcessorArchEQ applies the EQ predicate on the "processor_arch" field.
func ProcessorArchEqualFold ¶
ProcessorArchEqualFold applies the EqualFold predicate on the "processor_arch" field.
func ProcessorArchGT ¶
ProcessorArchGT applies the GT predicate on the "processor_arch" field.
func ProcessorArchGTE ¶
ProcessorArchGTE applies the GTE predicate on the "processor_arch" field.
func ProcessorArchHasPrefix ¶
ProcessorArchHasPrefix applies the HasPrefix predicate on the "processor_arch" field.
func ProcessorArchHasSuffix ¶
ProcessorArchHasSuffix applies the HasSuffix predicate on the "processor_arch" field.
func ProcessorArchIn ¶
ProcessorArchIn applies the In predicate on the "processor_arch" field.
func ProcessorArchIsNil ¶
ProcessorArchIsNil applies the IsNil predicate on the "processor_arch" field.
func ProcessorArchLT ¶
ProcessorArchLT applies the LT predicate on the "processor_arch" field.
func ProcessorArchLTE ¶
ProcessorArchLTE applies the LTE predicate on the "processor_arch" field.
func ProcessorArchNEQ ¶
ProcessorArchNEQ applies the NEQ predicate on the "processor_arch" field.
func ProcessorArchNotIn ¶
ProcessorArchNotIn applies the NotIn predicate on the "processor_arch" field.
func ProcessorArchNotNil ¶
ProcessorArchNotNil applies the NotNil predicate on the "processor_arch" field.
func ProcessorContains ¶
ProcessorContains applies the Contains predicate on the "processor" field.
func ProcessorContainsFold ¶
ProcessorContainsFold applies the ContainsFold predicate on the "processor" field.
func ProcessorCores ¶
ProcessorCores applies equality check predicate on the "processor_cores" field. It's identical to ProcessorCoresEQ.
func ProcessorCoresEQ ¶
ProcessorCoresEQ applies the EQ predicate on the "processor_cores" field.
func ProcessorCoresGT ¶
ProcessorCoresGT applies the GT predicate on the "processor_cores" field.
func ProcessorCoresGTE ¶
ProcessorCoresGTE applies the GTE predicate on the "processor_cores" field.
func ProcessorCoresIn ¶
ProcessorCoresIn applies the In predicate on the "processor_cores" field.
func ProcessorCoresIsNil ¶
ProcessorCoresIsNil applies the IsNil predicate on the "processor_cores" field.
func ProcessorCoresLT ¶
ProcessorCoresLT applies the LT predicate on the "processor_cores" field.
func ProcessorCoresLTE ¶
ProcessorCoresLTE applies the LTE predicate on the "processor_cores" field.
func ProcessorCoresNEQ ¶
ProcessorCoresNEQ applies the NEQ predicate on the "processor_cores" field.
func ProcessorCoresNotIn ¶
ProcessorCoresNotIn applies the NotIn predicate on the "processor_cores" field.
func ProcessorCoresNotNil ¶
ProcessorCoresNotNil applies the NotNil predicate on the "processor_cores" field.
func ProcessorEQ ¶
ProcessorEQ applies the EQ predicate on the "processor" field.
func ProcessorEqualFold ¶
ProcessorEqualFold applies the EqualFold predicate on the "processor" field.
func ProcessorGT ¶
ProcessorGT applies the GT predicate on the "processor" field.
func ProcessorGTE ¶
ProcessorGTE applies the GTE predicate on the "processor" field.
func ProcessorHasPrefix ¶
ProcessorHasPrefix applies the HasPrefix predicate on the "processor" field.
func ProcessorHasSuffix ¶
ProcessorHasSuffix applies the HasSuffix predicate on the "processor" field.
func ProcessorIn ¶
ProcessorIn applies the In predicate on the "processor" field.
func ProcessorIsNil ¶
ProcessorIsNil applies the IsNil predicate on the "processor" field.
func ProcessorLT ¶
ProcessorLT applies the LT predicate on the "processor" field.
func ProcessorLTE ¶
ProcessorLTE applies the LTE predicate on the "processor" field.
func ProcessorNEQ ¶
ProcessorNEQ applies the NEQ predicate on the "processor" field.
func ProcessorNotIn ¶
ProcessorNotIn applies the NotIn predicate on the "processor" field.
func ProcessorNotNil ¶
ProcessorNotNil applies the NotNil predicate on the "processor" field.
func Serial ¶
Serial applies equality check predicate on the "serial" field. It's identical to SerialEQ.
func SerialContains ¶
SerialContains applies the Contains predicate on the "serial" field.
func SerialContainsFold ¶
SerialContainsFold applies the ContainsFold predicate on the "serial" field.
func SerialEqualFold ¶
SerialEqualFold applies the EqualFold predicate on the "serial" field.
func SerialHasPrefix ¶
SerialHasPrefix applies the HasPrefix predicate on the "serial" field.
func SerialHasSuffix ¶
SerialHasSuffix applies the HasSuffix predicate on the "serial" field.
func SerialIsNil ¶
SerialIsNil applies the IsNil predicate on the "serial" field.
func SerialNotIn ¶
SerialNotIn applies the NotIn predicate on the "serial" field.
func SerialNotNil ¶
SerialNotNil applies the NotNil predicate on the "serial" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
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.