cpu

package
v0.0.0-...-e544f65 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the cpu type in the database.
	Label = "cpu"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldCPU holds the string denoting the cpu field in the database.
	FieldCPU = "idx"
	// FieldVendorID holds the string denoting the vendor_id field in the database.
	FieldVendorID = "vendor_id"
	// FieldFamily holds the string denoting the family field in the database.
	FieldFamily = "family"
	// FieldModel holds the string denoting the model field in the database.
	FieldModel = "model"
	// FieldModelName holds the string denoting the model_name field in the database.
	FieldModelName = "model_name"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// EdgeHostID holds the string denoting the host_id edge name in mutations.
	EdgeHostID = "host_id"
	// Table holds the table name of the cpu in the database.
	Table = "cpus"
	// HostIDTable is the table that holds the host_id relation/edge.
	HostIDTable = "cpus"
	// HostIDInverseTable is the table name for the Host entity.
	// It exists in this package in order to avoid circular dependency with the "host" package.
	HostIDInverseTable = "hosts"
	// HostIDColumn is the table column denoting the host_id relation/edge.
	HostIDColumn = "host_cpu"
)

Variables

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

Columns holds all SQL columns for cpu fields.

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

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

Functions

func And

func And(predicates ...predicate.Cpu) predicate.Cpu

And groups predicates with the AND operator between them.

func CPU

func CPU(v int) predicate.Cpu

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

func CPUEQ

func CPUEQ(v int) predicate.Cpu

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

func CPUGT

func CPUGT(v int) predicate.Cpu

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

func CPUGTE

func CPUGTE(v int) predicate.Cpu

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

func CPUIn

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

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

func CPULT

func CPULT(v int) predicate.Cpu

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

func CPULTE

func CPULTE(v int) predicate.Cpu

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

func CPUNEQ

func CPUNEQ(v int) predicate.Cpu

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

func CPUNotIn

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

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

func CreatedAt

func CreatedAt(v time.Time) predicate.Cpu

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Cpu

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Cpu

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Cpu

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Cpu

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Cpu

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Cpu

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

func CreatedAtNotIn

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

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

func Family

func Family(v string) predicate.Cpu

Family applies equality check predicate on the "family" field. It's identical to FamilyEQ.

func FamilyContains

func FamilyContains(v string) predicate.Cpu

FamilyContains applies the Contains predicate on the "family" field.

func FamilyContainsFold

func FamilyContainsFold(v string) predicate.Cpu

FamilyContainsFold applies the ContainsFold predicate on the "family" field.

func FamilyEQ

func FamilyEQ(v string) predicate.Cpu

FamilyEQ applies the EQ predicate on the "family" field.

func FamilyEqualFold

func FamilyEqualFold(v string) predicate.Cpu

FamilyEqualFold applies the EqualFold predicate on the "family" field.

func FamilyGT

func FamilyGT(v string) predicate.Cpu

FamilyGT applies the GT predicate on the "family" field.

func FamilyGTE

func FamilyGTE(v string) predicate.Cpu

FamilyGTE applies the GTE predicate on the "family" field.

func FamilyHasPrefix

func FamilyHasPrefix(v string) predicate.Cpu

FamilyHasPrefix applies the HasPrefix predicate on the "family" field.

func FamilyHasSuffix

func FamilyHasSuffix(v string) predicate.Cpu

FamilyHasSuffix applies the HasSuffix predicate on the "family" field.

func FamilyIn

func FamilyIn(vs ...string) predicate.Cpu

FamilyIn applies the In predicate on the "family" field.

func FamilyLT

func FamilyLT(v string) predicate.Cpu

FamilyLT applies the LT predicate on the "family" field.

func FamilyLTE

func FamilyLTE(v string) predicate.Cpu

FamilyLTE applies the LTE predicate on the "family" field.

func FamilyNEQ

func FamilyNEQ(v string) predicate.Cpu

FamilyNEQ applies the NEQ predicate on the "family" field.

func FamilyNotIn

func FamilyNotIn(vs ...string) predicate.Cpu

FamilyNotIn applies the NotIn predicate on the "family" field.

func HasHostID

func HasHostID() predicate.Cpu

HasHostID applies the HasEdge predicate on the "host_id" edge.

func HasHostIDWith

func HasHostIDWith(preds ...predicate.Host) predicate.Cpu

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

func ID

func ID(id int) predicate.Cpu

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Cpu

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Cpu

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Cpu

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Cpu

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Cpu

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Cpu

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Model

func Model(v string) predicate.Cpu

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

func ModelContains

func ModelContains(v string) predicate.Cpu

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

func ModelContainsFold

func ModelContainsFold(v string) predicate.Cpu

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

func ModelEQ

func ModelEQ(v string) predicate.Cpu

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

func ModelEqualFold

func ModelEqualFold(v string) predicate.Cpu

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

func ModelGT

func ModelGT(v string) predicate.Cpu

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

func ModelGTE

func ModelGTE(v string) predicate.Cpu

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

func ModelHasPrefix

func ModelHasPrefix(v string) predicate.Cpu

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

func ModelHasSuffix

func ModelHasSuffix(v string) predicate.Cpu

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

func ModelIn

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

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

func ModelLT

func ModelLT(v string) predicate.Cpu

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

func ModelLTE

func ModelLTE(v string) predicate.Cpu

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

func ModelNEQ

func ModelNEQ(v string) predicate.Cpu

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

func ModelName

func ModelName(v string) predicate.Cpu

ModelName applies equality check predicate on the "model_name" field. It's identical to ModelNameEQ.

func ModelNameContains

func ModelNameContains(v string) predicate.Cpu

ModelNameContains applies the Contains predicate on the "model_name" field.

func ModelNameContainsFold

func ModelNameContainsFold(v string) predicate.Cpu

ModelNameContainsFold applies the ContainsFold predicate on the "model_name" field.

func ModelNameEQ

func ModelNameEQ(v string) predicate.Cpu

ModelNameEQ applies the EQ predicate on the "model_name" field.

func ModelNameEqualFold

func ModelNameEqualFold(v string) predicate.Cpu

ModelNameEqualFold applies the EqualFold predicate on the "model_name" field.

func ModelNameGT

func ModelNameGT(v string) predicate.Cpu

ModelNameGT applies the GT predicate on the "model_name" field.

func ModelNameGTE

func ModelNameGTE(v string) predicate.Cpu

ModelNameGTE applies the GTE predicate on the "model_name" field.

func ModelNameHasPrefix

func ModelNameHasPrefix(v string) predicate.Cpu

ModelNameHasPrefix applies the HasPrefix predicate on the "model_name" field.

func ModelNameHasSuffix

func ModelNameHasSuffix(v string) predicate.Cpu

ModelNameHasSuffix applies the HasSuffix predicate on the "model_name" field.

func ModelNameIn

func ModelNameIn(vs ...string) predicate.Cpu

ModelNameIn applies the In predicate on the "model_name" field.

func ModelNameLT

func ModelNameLT(v string) predicate.Cpu

ModelNameLT applies the LT predicate on the "model_name" field.

func ModelNameLTE

func ModelNameLTE(v string) predicate.Cpu

ModelNameLTE applies the LTE predicate on the "model_name" field.

func ModelNameNEQ

func ModelNameNEQ(v string) predicate.Cpu

ModelNameNEQ applies the NEQ predicate on the "model_name" field.

func ModelNameNotIn

func ModelNameNotIn(vs ...string) predicate.Cpu

ModelNameNotIn applies the NotIn predicate on the "model_name" field.

func ModelNotIn

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

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

func Not

func Not(p predicate.Cpu) predicate.Cpu

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Cpu) predicate.Cpu

Or groups predicates with the OR operator between them.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Cpu

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Cpu

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Cpu

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Cpu

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.Cpu

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Cpu

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Cpu

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Cpu

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.Cpu

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

func VendorID

func VendorID(v string) predicate.Cpu

VendorID applies equality check predicate on the "vendor_id" field. It's identical to VendorIDEQ.

func VendorIDContains

func VendorIDContains(v string) predicate.Cpu

VendorIDContains applies the Contains predicate on the "vendor_id" field.

func VendorIDContainsFold

func VendorIDContainsFold(v string) predicate.Cpu

VendorIDContainsFold applies the ContainsFold predicate on the "vendor_id" field.

func VendorIDEQ

func VendorIDEQ(v string) predicate.Cpu

VendorIDEQ applies the EQ predicate on the "vendor_id" field.

func VendorIDEqualFold

func VendorIDEqualFold(v string) predicate.Cpu

VendorIDEqualFold applies the EqualFold predicate on the "vendor_id" field.

func VendorIDGT

func VendorIDGT(v string) predicate.Cpu

VendorIDGT applies the GT predicate on the "vendor_id" field.

func VendorIDGTE

func VendorIDGTE(v string) predicate.Cpu

VendorIDGTE applies the GTE predicate on the "vendor_id" field.

func VendorIDHasPrefix

func VendorIDHasPrefix(v string) predicate.Cpu

VendorIDHasPrefix applies the HasPrefix predicate on the "vendor_id" field.

func VendorIDHasSuffix

func VendorIDHasSuffix(v string) predicate.Cpu

VendorIDHasSuffix applies the HasSuffix predicate on the "vendor_id" field.

func VendorIDIn

func VendorIDIn(vs ...string) predicate.Cpu

VendorIDIn applies the In predicate on the "vendor_id" field.

func VendorIDLT

func VendorIDLT(v string) predicate.Cpu

VendorIDLT applies the LT predicate on the "vendor_id" field.

func VendorIDLTE

func VendorIDLTE(v string) predicate.Cpu

VendorIDLTE applies the LTE predicate on the "vendor_id" field.

func VendorIDNEQ

func VendorIDNEQ(v string) predicate.Cpu

VendorIDNEQ applies the NEQ predicate on the "vendor_id" field.

func VendorIDNotIn

func VendorIDNotIn(vs ...string) predicate.Cpu

VendorIDNotIn applies the NotIn predicate on the "vendor_id" field.

Types

This section is empty.

Jump to

Keyboard shortcuts

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