logicaldisk

package
v0.0.0-...-d46c51b Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the logicaldisk type in the database.
	Label = "logical_disk"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldLabel holds the string denoting the label field in the database.
	FieldLabel = "label"
	// FieldFilesystem holds the string denoting the filesystem field in the database.
	FieldFilesystem = "filesystem"
	// FieldUsage holds the string denoting the usage field in the database.
	FieldUsage = "usage"
	// FieldSizeInUnits holds the string denoting the size_in_units field in the database.
	FieldSizeInUnits = "size_in_units"
	// FieldRemainingSpaceInUnits holds the string denoting the remaining_space_in_units field in the database.
	FieldRemainingSpaceInUnits = "remaining_space_in_units"
	// FieldVolumeName holds the string denoting the volume_name field in the database.
	FieldVolumeName = "volume_name"
	// FieldBitlockerStatus holds the string denoting the bitlocker_status field in the database.
	FieldBitlockerStatus = "bitlocker_status"
	// 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 logicaldisk in the database.
	Table = "logical_disks"
	// OwnerTable is the table that holds the owner relation/edge.
	OwnerTable = "logical_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_logicaldisks"
)

Variables

Columns holds all SQL columns for logicaldisk fields.

View Source
var (
	// DefaultUsage holds the default value on creation for the "usage" field.
	DefaultUsage int8
)
View Source
var ForeignKeys = []string{
	"agent_logicaldisks",
}

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

Functions

func And

func And(predicates ...predicate.LogicalDisk) predicate.LogicalDisk

And groups predicates with the AND operator between them.

func BitlockerStatus

func BitlockerStatus(v string) predicate.LogicalDisk

BitlockerStatus applies equality check predicate on the "bitlocker_status" field. It's identical to BitlockerStatusEQ.

func BitlockerStatusContains

func BitlockerStatusContains(v string) predicate.LogicalDisk

BitlockerStatusContains applies the Contains predicate on the "bitlocker_status" field.

func BitlockerStatusContainsFold

func BitlockerStatusContainsFold(v string) predicate.LogicalDisk

BitlockerStatusContainsFold applies the ContainsFold predicate on the "bitlocker_status" field.

func BitlockerStatusEQ

func BitlockerStatusEQ(v string) predicate.LogicalDisk

BitlockerStatusEQ applies the EQ predicate on the "bitlocker_status" field.

func BitlockerStatusEqualFold

func BitlockerStatusEqualFold(v string) predicate.LogicalDisk

BitlockerStatusEqualFold applies the EqualFold predicate on the "bitlocker_status" field.

func BitlockerStatusGT

func BitlockerStatusGT(v string) predicate.LogicalDisk

BitlockerStatusGT applies the GT predicate on the "bitlocker_status" field.

func BitlockerStatusGTE

func BitlockerStatusGTE(v string) predicate.LogicalDisk

BitlockerStatusGTE applies the GTE predicate on the "bitlocker_status" field.

func BitlockerStatusHasPrefix

func BitlockerStatusHasPrefix(v string) predicate.LogicalDisk

BitlockerStatusHasPrefix applies the HasPrefix predicate on the "bitlocker_status" field.

func BitlockerStatusHasSuffix

func BitlockerStatusHasSuffix(v string) predicate.LogicalDisk

BitlockerStatusHasSuffix applies the HasSuffix predicate on the "bitlocker_status" field.

func BitlockerStatusIn

func BitlockerStatusIn(vs ...string) predicate.LogicalDisk

BitlockerStatusIn applies the In predicate on the "bitlocker_status" field.

func BitlockerStatusIsNil

func BitlockerStatusIsNil() predicate.LogicalDisk

BitlockerStatusIsNil applies the IsNil predicate on the "bitlocker_status" field.

func BitlockerStatusLT

func BitlockerStatusLT(v string) predicate.LogicalDisk

BitlockerStatusLT applies the LT predicate on the "bitlocker_status" field.

func BitlockerStatusLTE

func BitlockerStatusLTE(v string) predicate.LogicalDisk

BitlockerStatusLTE applies the LTE predicate on the "bitlocker_status" field.

func BitlockerStatusNEQ

func BitlockerStatusNEQ(v string) predicate.LogicalDisk

BitlockerStatusNEQ applies the NEQ predicate on the "bitlocker_status" field.

func BitlockerStatusNotIn

func BitlockerStatusNotIn(vs ...string) predicate.LogicalDisk

BitlockerStatusNotIn applies the NotIn predicate on the "bitlocker_status" field.

func BitlockerStatusNotNil

func BitlockerStatusNotNil() predicate.LogicalDisk

BitlockerStatusNotNil applies the NotNil predicate on the "bitlocker_status" field.

func Filesystem

func Filesystem(v string) predicate.LogicalDisk

Filesystem applies equality check predicate on the "filesystem" field. It's identical to FilesystemEQ.

func FilesystemContains

func FilesystemContains(v string) predicate.LogicalDisk

FilesystemContains applies the Contains predicate on the "filesystem" field.

func FilesystemContainsFold

func FilesystemContainsFold(v string) predicate.LogicalDisk

FilesystemContainsFold applies the ContainsFold predicate on the "filesystem" field.

func FilesystemEQ

func FilesystemEQ(v string) predicate.LogicalDisk

FilesystemEQ applies the EQ predicate on the "filesystem" field.

func FilesystemEqualFold

func FilesystemEqualFold(v string) predicate.LogicalDisk

FilesystemEqualFold applies the EqualFold predicate on the "filesystem" field.

func FilesystemGT

func FilesystemGT(v string) predicate.LogicalDisk

FilesystemGT applies the GT predicate on the "filesystem" field.

func FilesystemGTE

func FilesystemGTE(v string) predicate.LogicalDisk

FilesystemGTE applies the GTE predicate on the "filesystem" field.

func FilesystemHasPrefix

func FilesystemHasPrefix(v string) predicate.LogicalDisk

FilesystemHasPrefix applies the HasPrefix predicate on the "filesystem" field.

func FilesystemHasSuffix

func FilesystemHasSuffix(v string) predicate.LogicalDisk

FilesystemHasSuffix applies the HasSuffix predicate on the "filesystem" field.

func FilesystemIn

func FilesystemIn(vs ...string) predicate.LogicalDisk

FilesystemIn applies the In predicate on the "filesystem" field.

func FilesystemIsNil

func FilesystemIsNil() predicate.LogicalDisk

FilesystemIsNil applies the IsNil predicate on the "filesystem" field.

func FilesystemLT

func FilesystemLT(v string) predicate.LogicalDisk

FilesystemLT applies the LT predicate on the "filesystem" field.

func FilesystemLTE

func FilesystemLTE(v string) predicate.LogicalDisk

FilesystemLTE applies the LTE predicate on the "filesystem" field.

func FilesystemNEQ

func FilesystemNEQ(v string) predicate.LogicalDisk

FilesystemNEQ applies the NEQ predicate on the "filesystem" field.

func FilesystemNotIn

func FilesystemNotIn(vs ...string) predicate.LogicalDisk

FilesystemNotIn applies the NotIn predicate on the "filesystem" field.

func FilesystemNotNil

func FilesystemNotNil() predicate.LogicalDisk

FilesystemNotNil applies the NotNil predicate on the "filesystem" field.

func HasOwner

func HasOwner() predicate.LogicalDisk

HasOwner applies the HasEdge predicate on the "owner" edge.

func HasOwnerWith

func HasOwnerWith(preds ...predicate.Agent) predicate.LogicalDisk

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

func ID

func ID(id int) predicate.LogicalDisk

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.LogicalDisk

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.LogicalDisk

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.LogicalDisk

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.LogicalDisk

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.LogicalDisk

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.LogicalDisk

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func LabelContains

func LabelContains(v string) predicate.LogicalDisk

LabelContains applies the Contains predicate on the "label" field.

func LabelContainsFold

func LabelContainsFold(v string) predicate.LogicalDisk

LabelContainsFold applies the ContainsFold predicate on the "label" field.

func LabelEQ

func LabelEQ(v string) predicate.LogicalDisk

LabelEQ applies the EQ predicate on the "label" field.

func LabelEqualFold

func LabelEqualFold(v string) predicate.LogicalDisk

LabelEqualFold applies the EqualFold predicate on the "label" field.

func LabelGT

func LabelGT(v string) predicate.LogicalDisk

LabelGT applies the GT predicate on the "label" field.

func LabelGTE

func LabelGTE(v string) predicate.LogicalDisk

LabelGTE applies the GTE predicate on the "label" field.

func LabelHasPrefix

func LabelHasPrefix(v string) predicate.LogicalDisk

LabelHasPrefix applies the HasPrefix predicate on the "label" field.

func LabelHasSuffix

func LabelHasSuffix(v string) predicate.LogicalDisk

LabelHasSuffix applies the HasSuffix predicate on the "label" field.

func LabelIn

func LabelIn(vs ...string) predicate.LogicalDisk

LabelIn applies the In predicate on the "label" field.

func LabelLT

func LabelLT(v string) predicate.LogicalDisk

LabelLT applies the LT predicate on the "label" field.

func LabelLTE

func LabelLTE(v string) predicate.LogicalDisk

LabelLTE applies the LTE predicate on the "label" field.

func LabelNEQ

func LabelNEQ(v string) predicate.LogicalDisk

LabelNEQ applies the NEQ predicate on the "label" field.

func LabelNotIn

func LabelNotIn(vs ...string) predicate.LogicalDisk

LabelNotIn applies the NotIn predicate on the "label" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.LogicalDisk) predicate.LogicalDisk

Or groups predicates with the OR operator between them.

func RemainingSpaceInUnits

func RemainingSpaceInUnits(v string) predicate.LogicalDisk

RemainingSpaceInUnits applies equality check predicate on the "remaining_space_in_units" field. It's identical to RemainingSpaceInUnitsEQ.

func RemainingSpaceInUnitsContains

func RemainingSpaceInUnitsContains(v string) predicate.LogicalDisk

RemainingSpaceInUnitsContains applies the Contains predicate on the "remaining_space_in_units" field.

func RemainingSpaceInUnitsContainsFold

func RemainingSpaceInUnitsContainsFold(v string) predicate.LogicalDisk

RemainingSpaceInUnitsContainsFold applies the ContainsFold predicate on the "remaining_space_in_units" field.

func RemainingSpaceInUnitsEQ

func RemainingSpaceInUnitsEQ(v string) predicate.LogicalDisk

RemainingSpaceInUnitsEQ applies the EQ predicate on the "remaining_space_in_units" field.

func RemainingSpaceInUnitsEqualFold

func RemainingSpaceInUnitsEqualFold(v string) predicate.LogicalDisk

RemainingSpaceInUnitsEqualFold applies the EqualFold predicate on the "remaining_space_in_units" field.

func RemainingSpaceInUnitsGT

func RemainingSpaceInUnitsGT(v string) predicate.LogicalDisk

RemainingSpaceInUnitsGT applies the GT predicate on the "remaining_space_in_units" field.

func RemainingSpaceInUnitsGTE

func RemainingSpaceInUnitsGTE(v string) predicate.LogicalDisk

RemainingSpaceInUnitsGTE applies the GTE predicate on the "remaining_space_in_units" field.

func RemainingSpaceInUnitsHasPrefix

func RemainingSpaceInUnitsHasPrefix(v string) predicate.LogicalDisk

RemainingSpaceInUnitsHasPrefix applies the HasPrefix predicate on the "remaining_space_in_units" field.

func RemainingSpaceInUnitsHasSuffix

func RemainingSpaceInUnitsHasSuffix(v string) predicate.LogicalDisk

RemainingSpaceInUnitsHasSuffix applies the HasSuffix predicate on the "remaining_space_in_units" field.

func RemainingSpaceInUnitsIn

func RemainingSpaceInUnitsIn(vs ...string) predicate.LogicalDisk

RemainingSpaceInUnitsIn applies the In predicate on the "remaining_space_in_units" field.

func RemainingSpaceInUnitsIsNil

func RemainingSpaceInUnitsIsNil() predicate.LogicalDisk

RemainingSpaceInUnitsIsNil applies the IsNil predicate on the "remaining_space_in_units" field.

func RemainingSpaceInUnitsLT

func RemainingSpaceInUnitsLT(v string) predicate.LogicalDisk

RemainingSpaceInUnitsLT applies the LT predicate on the "remaining_space_in_units" field.

func RemainingSpaceInUnitsLTE

func RemainingSpaceInUnitsLTE(v string) predicate.LogicalDisk

RemainingSpaceInUnitsLTE applies the LTE predicate on the "remaining_space_in_units" field.

func RemainingSpaceInUnitsNEQ

func RemainingSpaceInUnitsNEQ(v string) predicate.LogicalDisk

RemainingSpaceInUnitsNEQ applies the NEQ predicate on the "remaining_space_in_units" field.

func RemainingSpaceInUnitsNotIn

func RemainingSpaceInUnitsNotIn(vs ...string) predicate.LogicalDisk

RemainingSpaceInUnitsNotIn applies the NotIn predicate on the "remaining_space_in_units" field.

func RemainingSpaceInUnitsNotNil

func RemainingSpaceInUnitsNotNil() predicate.LogicalDisk

RemainingSpaceInUnitsNotNil applies the NotNil predicate on the "remaining_space_in_units" field.

func SizeInUnits

func SizeInUnits(v string) predicate.LogicalDisk

SizeInUnits applies equality check predicate on the "size_in_units" field. It's identical to SizeInUnitsEQ.

func SizeInUnitsContains

func SizeInUnitsContains(v string) predicate.LogicalDisk

SizeInUnitsContains applies the Contains predicate on the "size_in_units" field.

func SizeInUnitsContainsFold

func SizeInUnitsContainsFold(v string) predicate.LogicalDisk

SizeInUnitsContainsFold applies the ContainsFold predicate on the "size_in_units" field.

func SizeInUnitsEQ

func SizeInUnitsEQ(v string) predicate.LogicalDisk

SizeInUnitsEQ applies the EQ predicate on the "size_in_units" field.

func SizeInUnitsEqualFold

func SizeInUnitsEqualFold(v string) predicate.LogicalDisk

SizeInUnitsEqualFold applies the EqualFold predicate on the "size_in_units" field.

func SizeInUnitsGT

func SizeInUnitsGT(v string) predicate.LogicalDisk

SizeInUnitsGT applies the GT predicate on the "size_in_units" field.

func SizeInUnitsGTE

func SizeInUnitsGTE(v string) predicate.LogicalDisk

SizeInUnitsGTE applies the GTE predicate on the "size_in_units" field.

func SizeInUnitsHasPrefix

func SizeInUnitsHasPrefix(v string) predicate.LogicalDisk

SizeInUnitsHasPrefix applies the HasPrefix predicate on the "size_in_units" field.

func SizeInUnitsHasSuffix

func SizeInUnitsHasSuffix(v string) predicate.LogicalDisk

SizeInUnitsHasSuffix applies the HasSuffix predicate on the "size_in_units" field.

func SizeInUnitsIn

func SizeInUnitsIn(vs ...string) predicate.LogicalDisk

SizeInUnitsIn applies the In predicate on the "size_in_units" field.

func SizeInUnitsIsNil

func SizeInUnitsIsNil() predicate.LogicalDisk

SizeInUnitsIsNil applies the IsNil predicate on the "size_in_units" field.

func SizeInUnitsLT

func SizeInUnitsLT(v string) predicate.LogicalDisk

SizeInUnitsLT applies the LT predicate on the "size_in_units" field.

func SizeInUnitsLTE

func SizeInUnitsLTE(v string) predicate.LogicalDisk

SizeInUnitsLTE applies the LTE predicate on the "size_in_units" field.

func SizeInUnitsNEQ

func SizeInUnitsNEQ(v string) predicate.LogicalDisk

SizeInUnitsNEQ applies the NEQ predicate on the "size_in_units" field.

func SizeInUnitsNotIn

func SizeInUnitsNotIn(vs ...string) predicate.LogicalDisk

SizeInUnitsNotIn applies the NotIn predicate on the "size_in_units" field.

func SizeInUnitsNotNil

func SizeInUnitsNotNil() predicate.LogicalDisk

SizeInUnitsNotNil applies the NotNil predicate on the "size_in_units" field.

func Usage

func Usage(v int8) predicate.LogicalDisk

Usage applies equality check predicate on the "usage" field. It's identical to UsageEQ.

func UsageEQ

func UsageEQ(v int8) predicate.LogicalDisk

UsageEQ applies the EQ predicate on the "usage" field.

func UsageGT

func UsageGT(v int8) predicate.LogicalDisk

UsageGT applies the GT predicate on the "usage" field.

func UsageGTE

func UsageGTE(v int8) predicate.LogicalDisk

UsageGTE applies the GTE predicate on the "usage" field.

func UsageIn

func UsageIn(vs ...int8) predicate.LogicalDisk

UsageIn applies the In predicate on the "usage" field.

func UsageLT

func UsageLT(v int8) predicate.LogicalDisk

UsageLT applies the LT predicate on the "usage" field.

func UsageLTE

func UsageLTE(v int8) predicate.LogicalDisk

UsageLTE applies the LTE predicate on the "usage" field.

func UsageNEQ

func UsageNEQ(v int8) predicate.LogicalDisk

UsageNEQ applies the NEQ predicate on the "usage" field.

func UsageNotIn

func UsageNotIn(vs ...int8) predicate.LogicalDisk

UsageNotIn applies the NotIn predicate on the "usage" field.

func ValidColumn

func ValidColumn(column string) bool

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

func VolumeName

func VolumeName(v string) predicate.LogicalDisk

VolumeName applies equality check predicate on the "volume_name" field. It's identical to VolumeNameEQ.

func VolumeNameContains

func VolumeNameContains(v string) predicate.LogicalDisk

VolumeNameContains applies the Contains predicate on the "volume_name" field.

func VolumeNameContainsFold

func VolumeNameContainsFold(v string) predicate.LogicalDisk

VolumeNameContainsFold applies the ContainsFold predicate on the "volume_name" field.

func VolumeNameEQ

func VolumeNameEQ(v string) predicate.LogicalDisk

VolumeNameEQ applies the EQ predicate on the "volume_name" field.

func VolumeNameEqualFold

func VolumeNameEqualFold(v string) predicate.LogicalDisk

VolumeNameEqualFold applies the EqualFold predicate on the "volume_name" field.

func VolumeNameGT

func VolumeNameGT(v string) predicate.LogicalDisk

VolumeNameGT applies the GT predicate on the "volume_name" field.

func VolumeNameGTE

func VolumeNameGTE(v string) predicate.LogicalDisk

VolumeNameGTE applies the GTE predicate on the "volume_name" field.

func VolumeNameHasPrefix

func VolumeNameHasPrefix(v string) predicate.LogicalDisk

VolumeNameHasPrefix applies the HasPrefix predicate on the "volume_name" field.

func VolumeNameHasSuffix

func VolumeNameHasSuffix(v string) predicate.LogicalDisk

VolumeNameHasSuffix applies the HasSuffix predicate on the "volume_name" field.

func VolumeNameIn

func VolumeNameIn(vs ...string) predicate.LogicalDisk

VolumeNameIn applies the In predicate on the "volume_name" field.

func VolumeNameIsNil

func VolumeNameIsNil() predicate.LogicalDisk

VolumeNameIsNil applies the IsNil predicate on the "volume_name" field.

func VolumeNameLT

func VolumeNameLT(v string) predicate.LogicalDisk

VolumeNameLT applies the LT predicate on the "volume_name" field.

func VolumeNameLTE

func VolumeNameLTE(v string) predicate.LogicalDisk

VolumeNameLTE applies the LTE predicate on the "volume_name" field.

func VolumeNameNEQ

func VolumeNameNEQ(v string) predicate.LogicalDisk

VolumeNameNEQ applies the NEQ predicate on the "volume_name" field.

func VolumeNameNotIn

func VolumeNameNotIn(vs ...string) predicate.LogicalDisk

VolumeNameNotIn applies the NotIn predicate on the "volume_name" field.

func VolumeNameNotNil

func VolumeNameNotNil() predicate.LogicalDisk

VolumeNameNotNil applies the NotNil predicate on the "volume_name" field.

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the LogicalDisk queries.

func ByBitlockerStatus

func ByBitlockerStatus(opts ...sql.OrderTermOption) OrderOption

ByBitlockerStatus orders the results by the bitlocker_status field.

func ByFilesystem

func ByFilesystem(opts ...sql.OrderTermOption) OrderOption

ByFilesystem orders the results by the filesystem field.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByLabel

func ByLabel(opts ...sql.OrderTermOption) OrderOption

ByLabel orders the results by the label field.

func ByOwnerField

func ByOwnerField(field string, opts ...sql.OrderTermOption) OrderOption

ByOwnerField orders the results by owner field.

func ByRemainingSpaceInUnits

func ByRemainingSpaceInUnits(opts ...sql.OrderTermOption) OrderOption

ByRemainingSpaceInUnits orders the results by the remaining_space_in_units field.

func BySizeInUnits

func BySizeInUnits(opts ...sql.OrderTermOption) OrderOption

BySizeInUnits orders the results by the size_in_units field.

func ByUsage

func ByUsage(opts ...sql.OrderTermOption) OrderOption

ByUsage orders the results by the usage field.

func ByVolumeName

func ByVolumeName(opts ...sql.OrderTermOption) OrderOption

ByVolumeName orders the results by the volume_name field.

Jump to

Keyboard shortcuts

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