Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.PhysicalDisk) predicate.PhysicalDisk
- func DeviceID(v string) predicate.PhysicalDisk
- func DeviceIDContains(v string) predicate.PhysicalDisk
- func DeviceIDContainsFold(v string) predicate.PhysicalDisk
- func DeviceIDEQ(v string) predicate.PhysicalDisk
- func DeviceIDEqualFold(v string) predicate.PhysicalDisk
- func DeviceIDGT(v string) predicate.PhysicalDisk
- func DeviceIDGTE(v string) predicate.PhysicalDisk
- func DeviceIDHasPrefix(v string) predicate.PhysicalDisk
- func DeviceIDHasSuffix(v string) predicate.PhysicalDisk
- func DeviceIDIn(vs ...string) predicate.PhysicalDisk
- func DeviceIDLT(v string) predicate.PhysicalDisk
- func DeviceIDLTE(v string) predicate.PhysicalDisk
- func DeviceIDNEQ(v string) predicate.PhysicalDisk
- func DeviceIDNotIn(vs ...string) predicate.PhysicalDisk
- func HasOwner() predicate.PhysicalDisk
- func HasOwnerWith(preds ...predicate.Agent) predicate.PhysicalDisk
- func ID(id int) predicate.PhysicalDisk
- func IDEQ(id int) predicate.PhysicalDisk
- func IDGT(id int) predicate.PhysicalDisk
- func IDGTE(id int) predicate.PhysicalDisk
- func IDIn(ids ...int) predicate.PhysicalDisk
- func IDLT(id int) predicate.PhysicalDisk
- func IDLTE(id int) predicate.PhysicalDisk
- func IDNEQ(id int) predicate.PhysicalDisk
- func IDNotIn(ids ...int) predicate.PhysicalDisk
- func Model(v string) predicate.PhysicalDisk
- func ModelContains(v string) predicate.PhysicalDisk
- func ModelContainsFold(v string) predicate.PhysicalDisk
- func ModelEQ(v string) predicate.PhysicalDisk
- func ModelEqualFold(v string) predicate.PhysicalDisk
- func ModelGT(v string) predicate.PhysicalDisk
- func ModelGTE(v string) predicate.PhysicalDisk
- func ModelHasPrefix(v string) predicate.PhysicalDisk
- func ModelHasSuffix(v string) predicate.PhysicalDisk
- func ModelIn(vs ...string) predicate.PhysicalDisk
- func ModelIsNil() predicate.PhysicalDisk
- func ModelLT(v string) predicate.PhysicalDisk
- func ModelLTE(v string) predicate.PhysicalDisk
- func ModelNEQ(v string) predicate.PhysicalDisk
- func ModelNotIn(vs ...string) predicate.PhysicalDisk
- func ModelNotNil() predicate.PhysicalDisk
- func Not(p predicate.PhysicalDisk) predicate.PhysicalDisk
- func Or(predicates ...predicate.PhysicalDisk) predicate.PhysicalDisk
- func SerialNumber(v string) predicate.PhysicalDisk
- func SerialNumberContains(v string) predicate.PhysicalDisk
- func SerialNumberContainsFold(v string) predicate.PhysicalDisk
- func SerialNumberEQ(v string) predicate.PhysicalDisk
- func SerialNumberEqualFold(v string) predicate.PhysicalDisk
- func SerialNumberGT(v string) predicate.PhysicalDisk
- func SerialNumberGTE(v string) predicate.PhysicalDisk
- func SerialNumberHasPrefix(v string) predicate.PhysicalDisk
- func SerialNumberHasSuffix(v string) predicate.PhysicalDisk
- func SerialNumberIn(vs ...string) predicate.PhysicalDisk
- func SerialNumberIsNil() predicate.PhysicalDisk
- func SerialNumberLT(v string) predicate.PhysicalDisk
- func SerialNumberLTE(v string) predicate.PhysicalDisk
- func SerialNumberNEQ(v string) predicate.PhysicalDisk
- func SerialNumberNotIn(vs ...string) predicate.PhysicalDisk
- func SerialNumberNotNil() predicate.PhysicalDisk
- func SizeInUnits(v string) predicate.PhysicalDisk
- func SizeInUnitsContains(v string) predicate.PhysicalDisk
- func SizeInUnitsContainsFold(v string) predicate.PhysicalDisk
- func SizeInUnitsEQ(v string) predicate.PhysicalDisk
- func SizeInUnitsEqualFold(v string) predicate.PhysicalDisk
- func SizeInUnitsGT(v string) predicate.PhysicalDisk
- func SizeInUnitsGTE(v string) predicate.PhysicalDisk
- func SizeInUnitsHasPrefix(v string) predicate.PhysicalDisk
- func SizeInUnitsHasSuffix(v string) predicate.PhysicalDisk
- func SizeInUnitsIn(vs ...string) predicate.PhysicalDisk
- func SizeInUnitsIsNil() predicate.PhysicalDisk
- func SizeInUnitsLT(v string) predicate.PhysicalDisk
- func SizeInUnitsLTE(v string) predicate.PhysicalDisk
- func SizeInUnitsNEQ(v string) predicate.PhysicalDisk
- func SizeInUnitsNotIn(vs ...string) predicate.PhysicalDisk
- func SizeInUnitsNotNil() predicate.PhysicalDisk
- func ValidColumn(column string) bool
- type OrderOption
- func ByDeviceID(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByModel(opts ...sql.OrderTermOption) OrderOption
- func ByOwnerField(field string, opts ...sql.OrderTermOption) OrderOption
- func BySerialNumber(opts ...sql.OrderTermOption) OrderOption
- func BySizeInUnits(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the physicaldisk type in the database. Label = "physical_disk" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldDeviceID holds the string denoting the device_id field in the database. FieldDeviceID = "device_id" // FieldModel holds the string denoting the model field in the database. FieldModel = "model" // FieldSerialNumber holds the string denoting the serial_number field in the database. FieldSerialNumber = "serial_number" // FieldSizeInUnits holds the string denoting the size_in_units field in the database. FieldSizeInUnits = "size_in_units" // 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 physicaldisk in the database. Table = "physical_disks" // OwnerTable is the table that holds the owner relation/edge. OwnerTable = "physical_disks" // 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_physicaldisks" )
Variables ¶
var Columns = []string{ FieldID, FieldDeviceID, FieldModel, FieldSerialNumber, FieldSizeInUnits, }
Columns holds all SQL columns for physicaldisk fields.
var ForeignKeys = []string{
"agent_physicaldisks",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "physical_disks" table and are not defined as standalone fields in the schema.
Functions ¶
func And ¶
func And(predicates ...predicate.PhysicalDisk) predicate.PhysicalDisk
And groups predicates with the AND operator between them.
func DeviceID ¶
func DeviceID(v string) predicate.PhysicalDisk
DeviceID applies equality check predicate on the "device_id" field. It's identical to DeviceIDEQ.
func DeviceIDContains ¶
func DeviceIDContains(v string) predicate.PhysicalDisk
DeviceIDContains applies the Contains predicate on the "device_id" field.
func DeviceIDContainsFold ¶
func DeviceIDContainsFold(v string) predicate.PhysicalDisk
DeviceIDContainsFold applies the ContainsFold predicate on the "device_id" field.
func DeviceIDEQ ¶
func DeviceIDEQ(v string) predicate.PhysicalDisk
DeviceIDEQ applies the EQ predicate on the "device_id" field.
func DeviceIDEqualFold ¶
func DeviceIDEqualFold(v string) predicate.PhysicalDisk
DeviceIDEqualFold applies the EqualFold predicate on the "device_id" field.
func DeviceIDGT ¶
func DeviceIDGT(v string) predicate.PhysicalDisk
DeviceIDGT applies the GT predicate on the "device_id" field.
func DeviceIDGTE ¶
func DeviceIDGTE(v string) predicate.PhysicalDisk
DeviceIDGTE applies the GTE predicate on the "device_id" field.
func DeviceIDHasPrefix ¶
func DeviceIDHasPrefix(v string) predicate.PhysicalDisk
DeviceIDHasPrefix applies the HasPrefix predicate on the "device_id" field.
func DeviceIDHasSuffix ¶
func DeviceIDHasSuffix(v string) predicate.PhysicalDisk
DeviceIDHasSuffix applies the HasSuffix predicate on the "device_id" field.
func DeviceIDIn ¶
func DeviceIDIn(vs ...string) predicate.PhysicalDisk
DeviceIDIn applies the In predicate on the "device_id" field.
func DeviceIDLT ¶
func DeviceIDLT(v string) predicate.PhysicalDisk
DeviceIDLT applies the LT predicate on the "device_id" field.
func DeviceIDLTE ¶
func DeviceIDLTE(v string) predicate.PhysicalDisk
DeviceIDLTE applies the LTE predicate on the "device_id" field.
func DeviceIDNEQ ¶
func DeviceIDNEQ(v string) predicate.PhysicalDisk
DeviceIDNEQ applies the NEQ predicate on the "device_id" field.
func DeviceIDNotIn ¶
func DeviceIDNotIn(vs ...string) predicate.PhysicalDisk
DeviceIDNotIn applies the NotIn predicate on the "device_id" field.
func HasOwner ¶
func HasOwner() predicate.PhysicalDisk
HasOwner applies the HasEdge predicate on the "owner" edge.
func HasOwnerWith ¶
func HasOwnerWith(preds ...predicate.Agent) predicate.PhysicalDisk
HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).
func IDGTE ¶
func IDGTE(id int) predicate.PhysicalDisk
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.PhysicalDisk
IDIn applies the In predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.PhysicalDisk
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.PhysicalDisk
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.PhysicalDisk
IDNotIn applies the NotIn predicate on the ID field.
func Model ¶
func Model(v string) predicate.PhysicalDisk
Model applies equality check predicate on the "model" field. It's identical to ModelEQ.
func ModelContains ¶
func ModelContains(v string) predicate.PhysicalDisk
ModelContains applies the Contains predicate on the "model" field.
func ModelContainsFold ¶
func ModelContainsFold(v string) predicate.PhysicalDisk
ModelContainsFold applies the ContainsFold predicate on the "model" field.
func ModelEQ ¶
func ModelEQ(v string) predicate.PhysicalDisk
ModelEQ applies the EQ predicate on the "model" field.
func ModelEqualFold ¶
func ModelEqualFold(v string) predicate.PhysicalDisk
ModelEqualFold applies the EqualFold predicate on the "model" field.
func ModelGT ¶
func ModelGT(v string) predicate.PhysicalDisk
ModelGT applies the GT predicate on the "model" field.
func ModelGTE ¶
func ModelGTE(v string) predicate.PhysicalDisk
ModelGTE applies the GTE predicate on the "model" field.
func ModelHasPrefix ¶
func ModelHasPrefix(v string) predicate.PhysicalDisk
ModelHasPrefix applies the HasPrefix predicate on the "model" field.
func ModelHasSuffix ¶
func ModelHasSuffix(v string) predicate.PhysicalDisk
ModelHasSuffix applies the HasSuffix predicate on the "model" field.
func ModelIn ¶
func ModelIn(vs ...string) predicate.PhysicalDisk
ModelIn applies the In predicate on the "model" field.
func ModelIsNil ¶
func ModelIsNil() predicate.PhysicalDisk
ModelIsNil applies the IsNil predicate on the "model" field.
func ModelLT ¶
func ModelLT(v string) predicate.PhysicalDisk
ModelLT applies the LT predicate on the "model" field.
func ModelLTE ¶
func ModelLTE(v string) predicate.PhysicalDisk
ModelLTE applies the LTE predicate on the "model" field.
func ModelNEQ ¶
func ModelNEQ(v string) predicate.PhysicalDisk
ModelNEQ applies the NEQ predicate on the "model" field.
func ModelNotIn ¶
func ModelNotIn(vs ...string) predicate.PhysicalDisk
ModelNotIn applies the NotIn predicate on the "model" field.
func ModelNotNil ¶
func ModelNotNil() predicate.PhysicalDisk
ModelNotNil applies the NotNil predicate on the "model" field.
func Not ¶
func Not(p predicate.PhysicalDisk) predicate.PhysicalDisk
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.PhysicalDisk) predicate.PhysicalDisk
Or groups predicates with the OR operator between them.
func SerialNumber ¶
func SerialNumber(v string) predicate.PhysicalDisk
SerialNumber applies equality check predicate on the "serial_number" field. It's identical to SerialNumberEQ.
func SerialNumberContains ¶
func SerialNumberContains(v string) predicate.PhysicalDisk
SerialNumberContains applies the Contains predicate on the "serial_number" field.
func SerialNumberContainsFold ¶
func SerialNumberContainsFold(v string) predicate.PhysicalDisk
SerialNumberContainsFold applies the ContainsFold predicate on the "serial_number" field.
func SerialNumberEQ ¶
func SerialNumberEQ(v string) predicate.PhysicalDisk
SerialNumberEQ applies the EQ predicate on the "serial_number" field.
func SerialNumberEqualFold ¶
func SerialNumberEqualFold(v string) predicate.PhysicalDisk
SerialNumberEqualFold applies the EqualFold predicate on the "serial_number" field.
func SerialNumberGT ¶
func SerialNumberGT(v string) predicate.PhysicalDisk
SerialNumberGT applies the GT predicate on the "serial_number" field.
func SerialNumberGTE ¶
func SerialNumberGTE(v string) predicate.PhysicalDisk
SerialNumberGTE applies the GTE predicate on the "serial_number" field.
func SerialNumberHasPrefix ¶
func SerialNumberHasPrefix(v string) predicate.PhysicalDisk
SerialNumberHasPrefix applies the HasPrefix predicate on the "serial_number" field.
func SerialNumberHasSuffix ¶
func SerialNumberHasSuffix(v string) predicate.PhysicalDisk
SerialNumberHasSuffix applies the HasSuffix predicate on the "serial_number" field.
func SerialNumberIn ¶
func SerialNumberIn(vs ...string) predicate.PhysicalDisk
SerialNumberIn applies the In predicate on the "serial_number" field.
func SerialNumberIsNil ¶
func SerialNumberIsNil() predicate.PhysicalDisk
SerialNumberIsNil applies the IsNil predicate on the "serial_number" field.
func SerialNumberLT ¶
func SerialNumberLT(v string) predicate.PhysicalDisk
SerialNumberLT applies the LT predicate on the "serial_number" field.
func SerialNumberLTE ¶
func SerialNumberLTE(v string) predicate.PhysicalDisk
SerialNumberLTE applies the LTE predicate on the "serial_number" field.
func SerialNumberNEQ ¶
func SerialNumberNEQ(v string) predicate.PhysicalDisk
SerialNumberNEQ applies the NEQ predicate on the "serial_number" field.
func SerialNumberNotIn ¶
func SerialNumberNotIn(vs ...string) predicate.PhysicalDisk
SerialNumberNotIn applies the NotIn predicate on the "serial_number" field.
func SerialNumberNotNil ¶
func SerialNumberNotNil() predicate.PhysicalDisk
SerialNumberNotNil applies the NotNil predicate on the "serial_number" field.
func SizeInUnits ¶
func SizeInUnits(v string) predicate.PhysicalDisk
SizeInUnits applies equality check predicate on the "size_in_units" field. It's identical to SizeInUnitsEQ.
func SizeInUnitsContains ¶
func SizeInUnitsContains(v string) predicate.PhysicalDisk
SizeInUnitsContains applies the Contains predicate on the "size_in_units" field.
func SizeInUnitsContainsFold ¶
func SizeInUnitsContainsFold(v string) predicate.PhysicalDisk
SizeInUnitsContainsFold applies the ContainsFold predicate on the "size_in_units" field.
func SizeInUnitsEQ ¶
func SizeInUnitsEQ(v string) predicate.PhysicalDisk
SizeInUnitsEQ applies the EQ predicate on the "size_in_units" field.
func SizeInUnitsEqualFold ¶
func SizeInUnitsEqualFold(v string) predicate.PhysicalDisk
SizeInUnitsEqualFold applies the EqualFold predicate on the "size_in_units" field.
func SizeInUnitsGT ¶
func SizeInUnitsGT(v string) predicate.PhysicalDisk
SizeInUnitsGT applies the GT predicate on the "size_in_units" field.
func SizeInUnitsGTE ¶
func SizeInUnitsGTE(v string) predicate.PhysicalDisk
SizeInUnitsGTE applies the GTE predicate on the "size_in_units" field.
func SizeInUnitsHasPrefix ¶
func SizeInUnitsHasPrefix(v string) predicate.PhysicalDisk
SizeInUnitsHasPrefix applies the HasPrefix predicate on the "size_in_units" field.
func SizeInUnitsHasSuffix ¶
func SizeInUnitsHasSuffix(v string) predicate.PhysicalDisk
SizeInUnitsHasSuffix applies the HasSuffix predicate on the "size_in_units" field.
func SizeInUnitsIn ¶
func SizeInUnitsIn(vs ...string) predicate.PhysicalDisk
SizeInUnitsIn applies the In predicate on the "size_in_units" field.
func SizeInUnitsIsNil ¶
func SizeInUnitsIsNil() predicate.PhysicalDisk
SizeInUnitsIsNil applies the IsNil predicate on the "size_in_units" field.
func SizeInUnitsLT ¶
func SizeInUnitsLT(v string) predicate.PhysicalDisk
SizeInUnitsLT applies the LT predicate on the "size_in_units" field.
func SizeInUnitsLTE ¶
func SizeInUnitsLTE(v string) predicate.PhysicalDisk
SizeInUnitsLTE applies the LTE predicate on the "size_in_units" field.
func SizeInUnitsNEQ ¶
func SizeInUnitsNEQ(v string) predicate.PhysicalDisk
SizeInUnitsNEQ applies the NEQ predicate on the "size_in_units" field.
func SizeInUnitsNotIn ¶
func SizeInUnitsNotIn(vs ...string) predicate.PhysicalDisk
SizeInUnitsNotIn applies the NotIn predicate on the "size_in_units" field.
func SizeInUnitsNotNil ¶
func SizeInUnitsNotNil() predicate.PhysicalDisk
SizeInUnitsNotNil applies the NotNil predicate on the "size_in_units" 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 PhysicalDisk queries.
func ByDeviceID ¶
func ByDeviceID(opts ...sql.OrderTermOption) OrderOption
ByDeviceID orders the results by the device_id field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id 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 BySerialNumber ¶
func BySerialNumber(opts ...sql.OrderTermOption) OrderOption
BySerialNumber orders the results by the serial_number field.
func BySizeInUnits ¶
func BySizeInUnits(opts ...sql.OrderTermOption) OrderOption
BySizeInUnits orders the results by the size_in_units field.