Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Disk) predicate.Disk
- func CreatedAt(v time.Time) predicate.Disk
- func CreatedAtEQ(v time.Time) predicate.Disk
- func CreatedAtGT(v time.Time) predicate.Disk
- func CreatedAtGTE(v time.Time) predicate.Disk
- func CreatedAtIn(vs ...time.Time) predicate.Disk
- func CreatedAtLT(v time.Time) predicate.Disk
- func CreatedAtLTE(v time.Time) predicate.Disk
- func CreatedAtNEQ(v time.Time) predicate.Disk
- func CreatedAtNotIn(vs ...time.Time) predicate.Disk
- func Device(v string) predicate.Disk
- func DeviceContains(v string) predicate.Disk
- func DeviceContainsFold(v string) predicate.Disk
- func DeviceEQ(v string) predicate.Disk
- func DeviceEqualFold(v string) predicate.Disk
- func DeviceGT(v string) predicate.Disk
- func DeviceGTE(v string) predicate.Disk
- func DeviceHasPrefix(v string) predicate.Disk
- func DeviceHasSuffix(v string) predicate.Disk
- func DeviceIn(vs ...string) predicate.Disk
- func DeviceLT(v string) predicate.Disk
- func DeviceLTE(v string) predicate.Disk
- func DeviceNEQ(v string) predicate.Disk
- func DeviceNotIn(vs ...string) predicate.Disk
- func Fstype(v string) predicate.Disk
- func FstypeContains(v string) predicate.Disk
- func FstypeContainsFold(v string) predicate.Disk
- func FstypeEQ(v string) predicate.Disk
- func FstypeEqualFold(v string) predicate.Disk
- func FstypeGT(v string) predicate.Disk
- func FstypeGTE(v string) predicate.Disk
- func FstypeHasPrefix(v string) predicate.Disk
- func FstypeHasSuffix(v string) predicate.Disk
- func FstypeIn(vs ...string) predicate.Disk
- func FstypeLT(v string) predicate.Disk
- func FstypeLTE(v string) predicate.Disk
- func FstypeNEQ(v string) predicate.Disk
- func FstypeNotIn(vs ...string) predicate.Disk
- func HasHostID() predicate.Disk
- func HasHostIDWith(preds ...predicate.Host) predicate.Disk
- func ID(id int) predicate.Disk
- func IDEQ(id int) predicate.Disk
- func IDGT(id int) predicate.Disk
- func IDGTE(id int) predicate.Disk
- func IDIn(ids ...int) predicate.Disk
- func IDLT(id int) predicate.Disk
- func IDLTE(id int) predicate.Disk
- func IDNEQ(id int) predicate.Disk
- func IDNotIn(ids ...int) predicate.Disk
- func Mountpoint(v string) predicate.Disk
- func MountpointContains(v string) predicate.Disk
- func MountpointContainsFold(v string) predicate.Disk
- func MountpointEQ(v string) predicate.Disk
- func MountpointEqualFold(v string) predicate.Disk
- func MountpointGT(v string) predicate.Disk
- func MountpointGTE(v string) predicate.Disk
- func MountpointHasPrefix(v string) predicate.Disk
- func MountpointHasSuffix(v string) predicate.Disk
- func MountpointIn(vs ...string) predicate.Disk
- func MountpointLT(v string) predicate.Disk
- func MountpointLTE(v string) predicate.Disk
- func MountpointNEQ(v string) predicate.Disk
- func MountpointNotIn(vs ...string) predicate.Disk
- func Not(p predicate.Disk) predicate.Disk
- func OptsIsNil() predicate.Disk
- func OptsNotNil() predicate.Disk
- func Or(predicates ...predicate.Disk) predicate.Disk
- func UpdatedAt(v time.Time) predicate.Disk
- func UpdatedAtEQ(v time.Time) predicate.Disk
- func UpdatedAtGT(v time.Time) predicate.Disk
- func UpdatedAtGTE(v time.Time) predicate.Disk
- func UpdatedAtIn(vs ...time.Time) predicate.Disk
- func UpdatedAtLT(v time.Time) predicate.Disk
- func UpdatedAtLTE(v time.Time) predicate.Disk
- func UpdatedAtNEQ(v time.Time) predicate.Disk
- func UpdatedAtNotIn(vs ...time.Time) predicate.Disk
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the disk type in the database. Label = "disk" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldDevice holds the string denoting the device field in the database. FieldDevice = "device" // FieldMountpoint holds the string denoting the mountpoint field in the database. FieldMountpoint = "mount" // FieldFstype holds the string denoting the fstype field in the database. FieldFstype = "fs_type" // FieldOpts holds the string denoting the opts field in the database. FieldOpts = "opts" // 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 disk in the database. Table = "disks" // HostIDTable is the table that holds the host_id relation/edge. HostIDTable = "disks" // 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_disk" )
Variables ¶
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 )
var Columns = []string{ FieldID, FieldDevice, FieldMountpoint, FieldFstype, FieldOpts, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for disk fields.
var ForeignKeys = []string{
"host_disk",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "disks" table and are not defined as standalone fields in the schema.
Functions ¶
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func Device ¶
Device applies equality check predicate on the "device" field. It's identical to DeviceEQ.
func DeviceContains ¶
DeviceContains applies the Contains predicate on the "device" field.
func DeviceContainsFold ¶
DeviceContainsFold applies the ContainsFold predicate on the "device" field.
func DeviceEqualFold ¶
DeviceEqualFold applies the EqualFold predicate on the "device" field.
func DeviceHasPrefix ¶
DeviceHasPrefix applies the HasPrefix predicate on the "device" field.
func DeviceHasSuffix ¶
DeviceHasSuffix applies the HasSuffix predicate on the "device" field.
func DeviceNotIn ¶
DeviceNotIn applies the NotIn predicate on the "device" field.
func Fstype ¶
Fstype applies equality check predicate on the "Fstype" field. It's identical to FstypeEQ.
func FstypeContains ¶
FstypeContains applies the Contains predicate on the "Fstype" field.
func FstypeContainsFold ¶
FstypeContainsFold applies the ContainsFold predicate on the "Fstype" field.
func FstypeEqualFold ¶
FstypeEqualFold applies the EqualFold predicate on the "Fstype" field.
func FstypeHasPrefix ¶
FstypeHasPrefix applies the HasPrefix predicate on the "Fstype" field.
func FstypeHasSuffix ¶
FstypeHasSuffix applies the HasSuffix predicate on the "Fstype" field.
func FstypeNotIn ¶
FstypeNotIn applies the NotIn predicate on the "Fstype" field.
func HasHostIDWith ¶
HasHostIDWith applies the HasEdge predicate on the "host_id" edge with a given conditions (other predicates).
func Mountpoint ¶
Mountpoint applies equality check predicate on the "Mountpoint" field. It's identical to MountpointEQ.
func MountpointContains ¶
MountpointContains applies the Contains predicate on the "Mountpoint" field.
func MountpointContainsFold ¶
MountpointContainsFold applies the ContainsFold predicate on the "Mountpoint" field.
func MountpointEQ ¶
MountpointEQ applies the EQ predicate on the "Mountpoint" field.
func MountpointEqualFold ¶
MountpointEqualFold applies the EqualFold predicate on the "Mountpoint" field.
func MountpointGT ¶
MountpointGT applies the GT predicate on the "Mountpoint" field.
func MountpointGTE ¶
MountpointGTE applies the GTE predicate on the "Mountpoint" field.
func MountpointHasPrefix ¶
MountpointHasPrefix applies the HasPrefix predicate on the "Mountpoint" field.
func MountpointHasSuffix ¶
MountpointHasSuffix applies the HasSuffix predicate on the "Mountpoint" field.
func MountpointIn ¶
MountpointIn applies the In predicate on the "Mountpoint" field.
func MountpointLT ¶
MountpointLT applies the LT predicate on the "Mountpoint" field.
func MountpointLTE ¶
MountpointLTE applies the LTE predicate on the "Mountpoint" field.
func MountpointNEQ ¶
MountpointNEQ applies the NEQ predicate on the "Mountpoint" field.
func MountpointNotIn ¶
MountpointNotIn applies the NotIn predicate on the "Mountpoint" field.
func OptsNotNil ¶
OptsNotNil applies the NotNil predicate on the "opts" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.