vmobject

package
v0.0.0-...-42c0c98 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the vmobject type in the database.
	Label = "vm_object"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "oid"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldIdentifier holds the string denoting the identifier field in the database.
	FieldIdentifier = "identifier"
	// FieldIPAddresses holds the string denoting the ip_addresses field in the database.
	FieldIPAddresses = "ip_addresses"
	// FieldLocked holds the string denoting the locked field in the database.
	FieldLocked = "locked"
	// EdgeVmObjectToTeam holds the string denoting the vmobjecttoteam edge name in mutations.
	EdgeVmObjectToTeam = "VmObjectToTeam"
	// Table holds the table name of the vmobject in the database.
	Table = "vm_objects"
	// VmObjectToTeamTable is the table that holds the VmObjectToTeam relation/edge.
	VmObjectToTeamTable = "vm_objects"
	// VmObjectToTeamInverseTable is the table name for the Team entity.
	// It exists in this package in order to avoid circular dependency with the "team" package.
	VmObjectToTeamInverseTable = "teams"
	// VmObjectToTeamColumn is the table column denoting the VmObjectToTeam relation/edge.
	VmObjectToTeamColumn = "team_team_to_vm_objects"
)

Variables

View Source
var (
	// DefaultLocked holds the default value on creation for the "locked" field.
	DefaultLocked bool
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for vmobject fields.

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

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

Functions

func And

func And(predicates ...predicate.VmObject) predicate.VmObject

And groups predicates with the AND operator between them.

func HasVmObjectToTeam

func HasVmObjectToTeam() predicate.VmObject

HasVmObjectToTeam applies the HasEdge predicate on the "VmObjectToTeam" edge.

func HasVmObjectToTeamWith

func HasVmObjectToTeamWith(preds ...predicate.Team) predicate.VmObject

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

func ID

func ID(id uuid.UUID) predicate.VmObject

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.VmObject

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.VmObject

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.VmObject

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.VmObject

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.VmObject

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.VmObject

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.VmObject

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.VmObject

IDNotIn applies the NotIn predicate on the ID field.

func IPAddressesIsNil

func IPAddressesIsNil() predicate.VmObject

IPAddressesIsNil applies the IsNil predicate on the "ip_addresses" field.

func IPAddressesNotNil

func IPAddressesNotNil() predicate.VmObject

IPAddressesNotNil applies the NotNil predicate on the "ip_addresses" field.

func Identifier

func Identifier(v string) predicate.VmObject

Identifier applies equality check predicate on the "identifier" field. It's identical to IdentifierEQ.

func IdentifierContains

func IdentifierContains(v string) predicate.VmObject

IdentifierContains applies the Contains predicate on the "identifier" field.

func IdentifierContainsFold

func IdentifierContainsFold(v string) predicate.VmObject

IdentifierContainsFold applies the ContainsFold predicate on the "identifier" field.

func IdentifierEQ

func IdentifierEQ(v string) predicate.VmObject

IdentifierEQ applies the EQ predicate on the "identifier" field.

func IdentifierEqualFold

func IdentifierEqualFold(v string) predicate.VmObject

IdentifierEqualFold applies the EqualFold predicate on the "identifier" field.

func IdentifierGT

func IdentifierGT(v string) predicate.VmObject

IdentifierGT applies the GT predicate on the "identifier" field.

func IdentifierGTE

func IdentifierGTE(v string) predicate.VmObject

IdentifierGTE applies the GTE predicate on the "identifier" field.

func IdentifierHasPrefix

func IdentifierHasPrefix(v string) predicate.VmObject

IdentifierHasPrefix applies the HasPrefix predicate on the "identifier" field.

func IdentifierHasSuffix

func IdentifierHasSuffix(v string) predicate.VmObject

IdentifierHasSuffix applies the HasSuffix predicate on the "identifier" field.

func IdentifierIn

func IdentifierIn(vs ...string) predicate.VmObject

IdentifierIn applies the In predicate on the "identifier" field.

func IdentifierLT

func IdentifierLT(v string) predicate.VmObject

IdentifierLT applies the LT predicate on the "identifier" field.

func IdentifierLTE

func IdentifierLTE(v string) predicate.VmObject

IdentifierLTE applies the LTE predicate on the "identifier" field.

func IdentifierNEQ

func IdentifierNEQ(v string) predicate.VmObject

IdentifierNEQ applies the NEQ predicate on the "identifier" field.

func IdentifierNotIn

func IdentifierNotIn(vs ...string) predicate.VmObject

IdentifierNotIn applies the NotIn predicate on the "identifier" field.

func Locked

func Locked(v bool) predicate.VmObject

Locked applies equality check predicate on the "locked" field. It's identical to LockedEQ.

func LockedEQ

func LockedEQ(v bool) predicate.VmObject

LockedEQ applies the EQ predicate on the "locked" field.

func LockedNEQ

func LockedNEQ(v bool) predicate.VmObject

LockedNEQ applies the NEQ predicate on the "locked" field.

func Name

func Name(v string) predicate.VmObject

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.VmObject

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.VmObject

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.VmObject

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.VmObject

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.VmObject

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.VmObject

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.VmObject

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.VmObject

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.VmObject

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.VmObject

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.VmObject

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.VmObject

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.VmObject

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.VmObject) predicate.VmObject

Or groups predicates with the OR operator between them.

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