disk

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 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

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 disk fields.

View Source
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 And

func And(predicates ...predicate.Disk) predicate.Disk

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Disk

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Disk

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Disk

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Disk

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Disk

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Disk

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Disk

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

func CreatedAtNotIn

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

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

func Device

func Device(v string) predicate.Disk

Device applies equality check predicate on the "device" field. It's identical to DeviceEQ.

func DeviceContains

func DeviceContains(v string) predicate.Disk

DeviceContains applies the Contains predicate on the "device" field.

func DeviceContainsFold

func DeviceContainsFold(v string) predicate.Disk

DeviceContainsFold applies the ContainsFold predicate on the "device" field.

func DeviceEQ

func DeviceEQ(v string) predicate.Disk

DeviceEQ applies the EQ predicate on the "device" field.

func DeviceEqualFold

func DeviceEqualFold(v string) predicate.Disk

DeviceEqualFold applies the EqualFold predicate on the "device" field.

func DeviceGT

func DeviceGT(v string) predicate.Disk

DeviceGT applies the GT predicate on the "device" field.

func DeviceGTE

func DeviceGTE(v string) predicate.Disk

DeviceGTE applies the GTE predicate on the "device" field.

func DeviceHasPrefix

func DeviceHasPrefix(v string) predicate.Disk

DeviceHasPrefix applies the HasPrefix predicate on the "device" field.

func DeviceHasSuffix

func DeviceHasSuffix(v string) predicate.Disk

DeviceHasSuffix applies the HasSuffix predicate on the "device" field.

func DeviceIn

func DeviceIn(vs ...string) predicate.Disk

DeviceIn applies the In predicate on the "device" field.

func DeviceLT

func DeviceLT(v string) predicate.Disk

DeviceLT applies the LT predicate on the "device" field.

func DeviceLTE

func DeviceLTE(v string) predicate.Disk

DeviceLTE applies the LTE predicate on the "device" field.

func DeviceNEQ

func DeviceNEQ(v string) predicate.Disk

DeviceNEQ applies the NEQ predicate on the "device" field.

func DeviceNotIn

func DeviceNotIn(vs ...string) predicate.Disk

DeviceNotIn applies the NotIn predicate on the "device" field.

func Fstype

func Fstype(v string) predicate.Disk

Fstype applies equality check predicate on the "Fstype" field. It's identical to FstypeEQ.

func FstypeContains

func FstypeContains(v string) predicate.Disk

FstypeContains applies the Contains predicate on the "Fstype" field.

func FstypeContainsFold

func FstypeContainsFold(v string) predicate.Disk

FstypeContainsFold applies the ContainsFold predicate on the "Fstype" field.

func FstypeEQ

func FstypeEQ(v string) predicate.Disk

FstypeEQ applies the EQ predicate on the "Fstype" field.

func FstypeEqualFold

func FstypeEqualFold(v string) predicate.Disk

FstypeEqualFold applies the EqualFold predicate on the "Fstype" field.

func FstypeGT

func FstypeGT(v string) predicate.Disk

FstypeGT applies the GT predicate on the "Fstype" field.

func FstypeGTE

func FstypeGTE(v string) predicate.Disk

FstypeGTE applies the GTE predicate on the "Fstype" field.

func FstypeHasPrefix

func FstypeHasPrefix(v string) predicate.Disk

FstypeHasPrefix applies the HasPrefix predicate on the "Fstype" field.

func FstypeHasSuffix

func FstypeHasSuffix(v string) predicate.Disk

FstypeHasSuffix applies the HasSuffix predicate on the "Fstype" field.

func FstypeIn

func FstypeIn(vs ...string) predicate.Disk

FstypeIn applies the In predicate on the "Fstype" field.

func FstypeLT

func FstypeLT(v string) predicate.Disk

FstypeLT applies the LT predicate on the "Fstype" field.

func FstypeLTE

func FstypeLTE(v string) predicate.Disk

FstypeLTE applies the LTE predicate on the "Fstype" field.

func FstypeNEQ

func FstypeNEQ(v string) predicate.Disk

FstypeNEQ applies the NEQ predicate on the "Fstype" field.

func FstypeNotIn

func FstypeNotIn(vs ...string) predicate.Disk

FstypeNotIn applies the NotIn predicate on the "Fstype" field.

func HasHostID

func HasHostID() predicate.Disk

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

func HasHostIDWith

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

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

func ID

func ID(id int) predicate.Disk

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Disk

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Disk

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Disk

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Disk

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Disk

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Disk

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Mountpoint

func Mountpoint(v string) predicate.Disk

Mountpoint applies equality check predicate on the "Mountpoint" field. It's identical to MountpointEQ.

func MountpointContains

func MountpointContains(v string) predicate.Disk

MountpointContains applies the Contains predicate on the "Mountpoint" field.

func MountpointContainsFold

func MountpointContainsFold(v string) predicate.Disk

MountpointContainsFold applies the ContainsFold predicate on the "Mountpoint" field.

func MountpointEQ

func MountpointEQ(v string) predicate.Disk

MountpointEQ applies the EQ predicate on the "Mountpoint" field.

func MountpointEqualFold

func MountpointEqualFold(v string) predicate.Disk

MountpointEqualFold applies the EqualFold predicate on the "Mountpoint" field.

func MountpointGT

func MountpointGT(v string) predicate.Disk

MountpointGT applies the GT predicate on the "Mountpoint" field.

func MountpointGTE

func MountpointGTE(v string) predicate.Disk

MountpointGTE applies the GTE predicate on the "Mountpoint" field.

func MountpointHasPrefix

func MountpointHasPrefix(v string) predicate.Disk

MountpointHasPrefix applies the HasPrefix predicate on the "Mountpoint" field.

func MountpointHasSuffix

func MountpointHasSuffix(v string) predicate.Disk

MountpointHasSuffix applies the HasSuffix predicate on the "Mountpoint" field.

func MountpointIn

func MountpointIn(vs ...string) predicate.Disk

MountpointIn applies the In predicate on the "Mountpoint" field.

func MountpointLT

func MountpointLT(v string) predicate.Disk

MountpointLT applies the LT predicate on the "Mountpoint" field.

func MountpointLTE

func MountpointLTE(v string) predicate.Disk

MountpointLTE applies the LTE predicate on the "Mountpoint" field.

func MountpointNEQ

func MountpointNEQ(v string) predicate.Disk

MountpointNEQ applies the NEQ predicate on the "Mountpoint" field.

func MountpointNotIn

func MountpointNotIn(vs ...string) predicate.Disk

MountpointNotIn applies the NotIn predicate on the "Mountpoint" field.

func Not

Not applies the not operator on the given predicate.

func OptsIsNil

func OptsIsNil() predicate.Disk

OptsIsNil applies the IsNil predicate on the "opts" field.

func OptsNotNil

func OptsNotNil() predicate.Disk

OptsNotNil applies the NotNil predicate on the "opts" field.

func Or

func Or(predicates ...predicate.Disk) predicate.Disk

Or groups predicates with the OR operator between them.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Disk

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Disk

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Disk

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Disk

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Disk

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Disk

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Disk

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

func UpdatedAtNotIn

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

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).

Types

This section is empty.

Jump to

Keyboard shortcuts

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