mirror of
https://github.com/chaitin/MonkeyCode.git
synced 2026-11-22 19:39:31 +08:00
1734 lines
65 KiB
Go
1734 lines
65 KiB
Go
// Code generated by ent, DO NOT EDIT.
|
|
|
|
package virtualmachine
|
|
|
|
import (
|
|
"time"
|
|
|
|
"entgo.io/ent/dialect/sql"
|
|
"entgo.io/ent/dialect/sql/sqlgraph"
|
|
"github.com/chaitin/MonkeyCode/backend/consts"
|
|
"github.com/chaitin/MonkeyCode/backend/db/predicate"
|
|
"github.com/google/uuid"
|
|
)
|
|
|
|
// ID filters vertices based on their ID field.
|
|
func ID(id string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldEQ(FieldID, id))
|
|
}
|
|
|
|
// IDEQ applies the EQ predicate on the ID field.
|
|
func IDEQ(id string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldEQ(FieldID, id))
|
|
}
|
|
|
|
// IDNEQ applies the NEQ predicate on the ID field.
|
|
func IDNEQ(id string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldNEQ(FieldID, id))
|
|
}
|
|
|
|
// IDIn applies the In predicate on the ID field.
|
|
func IDIn(ids ...string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldIn(FieldID, ids...))
|
|
}
|
|
|
|
// IDNotIn applies the NotIn predicate on the ID field.
|
|
func IDNotIn(ids ...string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldNotIn(FieldID, ids...))
|
|
}
|
|
|
|
// IDGT applies the GT predicate on the ID field.
|
|
func IDGT(id string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldGT(FieldID, id))
|
|
}
|
|
|
|
// IDGTE applies the GTE predicate on the ID field.
|
|
func IDGTE(id string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldGTE(FieldID, id))
|
|
}
|
|
|
|
// IDLT applies the LT predicate on the ID field.
|
|
func IDLT(id string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldLT(FieldID, id))
|
|
}
|
|
|
|
// IDLTE applies the LTE predicate on the ID field.
|
|
func IDLTE(id string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldLTE(FieldID, id))
|
|
}
|
|
|
|
// IDEqualFold applies the EqualFold predicate on the ID field.
|
|
func IDEqualFold(id string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldEqualFold(FieldID, id))
|
|
}
|
|
|
|
// IDContainsFold applies the ContainsFold predicate on the ID field.
|
|
func IDContainsFold(id string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldContainsFold(FieldID, id))
|
|
}
|
|
|
|
// DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
|
|
func DeletedAt(v time.Time) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldEQ(FieldDeletedAt, v))
|
|
}
|
|
|
|
// HostID applies equality check predicate on the "host_id" field. It's identical to HostIDEQ.
|
|
func HostID(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldEQ(FieldHostID, v))
|
|
}
|
|
|
|
// UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
|
|
func UserID(v uuid.UUID) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldEQ(FieldUserID, v))
|
|
}
|
|
|
|
// ModelID applies equality check predicate on the "model_id" field. It's identical to ModelIDEQ.
|
|
func ModelID(v uuid.UUID) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldEQ(FieldModelID, v))
|
|
}
|
|
|
|
// EnvironmentID applies equality check predicate on the "environment_id" field. It's identical to EnvironmentIDEQ.
|
|
func EnvironmentID(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldEQ(FieldEnvironmentID, v))
|
|
}
|
|
|
|
// Name applies equality check predicate on the "name" field. It's identical to NameEQ.
|
|
func Name(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldEQ(FieldName, v))
|
|
}
|
|
|
|
// Hostname applies equality check predicate on the "hostname" field. It's identical to HostnameEQ.
|
|
func Hostname(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldEQ(FieldHostname, v))
|
|
}
|
|
|
|
// Arch applies equality check predicate on the "arch" field. It's identical to ArchEQ.
|
|
func Arch(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldEQ(FieldArch, v))
|
|
}
|
|
|
|
// Cores applies equality check predicate on the "cores" field. It's identical to CoresEQ.
|
|
func Cores(v int) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldEQ(FieldCores, v))
|
|
}
|
|
|
|
// Memory applies equality check predicate on the "memory" field. It's identical to MemoryEQ.
|
|
func Memory(v int64) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldEQ(FieldMemory, v))
|
|
}
|
|
|
|
// Os applies equality check predicate on the "os" field. It's identical to OsEQ.
|
|
func Os(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldEQ(FieldOs, v))
|
|
}
|
|
|
|
// ExternalIP applies equality check predicate on the "external_ip" field. It's identical to ExternalIPEQ.
|
|
func ExternalIP(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldEQ(FieldExternalIP, v))
|
|
}
|
|
|
|
// InternalIP applies equality check predicate on the "internal_ip" field. It's identical to InternalIPEQ.
|
|
func InternalIP(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldEQ(FieldInternalIP, v))
|
|
}
|
|
|
|
// TTLKind applies equality check predicate on the "ttl_kind" field. It's identical to TTLKindEQ.
|
|
func TTLKind(v consts.VirtualmachineTTLKind) predicate.VirtualMachine {
|
|
vc := string(v)
|
|
return predicate.VirtualMachine(sql.FieldEQ(FieldTTLKind, vc))
|
|
}
|
|
|
|
// TTL applies equality check predicate on the "ttl" field. It's identical to TTLEQ.
|
|
func TTL(v int64) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldEQ(FieldTTL, v))
|
|
}
|
|
|
|
// Version applies equality check predicate on the "version" field. It's identical to VersionEQ.
|
|
func Version(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldEQ(FieldVersion, v))
|
|
}
|
|
|
|
// MachineID applies equality check predicate on the "machine_id" field. It's identical to MachineIDEQ.
|
|
func MachineID(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldEQ(FieldMachineID, v))
|
|
}
|
|
|
|
// RepoURL applies equality check predicate on the "repo_url" field. It's identical to RepoURLEQ.
|
|
func RepoURL(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldEQ(FieldRepoURL, v))
|
|
}
|
|
|
|
// RepoFilename applies equality check predicate on the "repo_filename" field. It's identical to RepoFilenameEQ.
|
|
func RepoFilename(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldEQ(FieldRepoFilename, v))
|
|
}
|
|
|
|
// Branch applies equality check predicate on the "branch" field. It's identical to BranchEQ.
|
|
func Branch(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldEQ(FieldBranch, v))
|
|
}
|
|
|
|
// IsRecycled applies equality check predicate on the "is_recycled" field. It's identical to IsRecycledEQ.
|
|
func IsRecycled(v bool) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldEQ(FieldIsRecycled, v))
|
|
}
|
|
|
|
// CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
|
|
func CreatedAt(v time.Time) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldEQ(FieldCreatedAt, v))
|
|
}
|
|
|
|
// UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
|
|
func UpdatedAt(v time.Time) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldEQ(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
|
|
func DeletedAtEQ(v time.Time) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldEQ(FieldDeletedAt, v))
|
|
}
|
|
|
|
// DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
|
|
func DeletedAtNEQ(v time.Time) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldNEQ(FieldDeletedAt, v))
|
|
}
|
|
|
|
// DeletedAtIn applies the In predicate on the "deleted_at" field.
|
|
func DeletedAtIn(vs ...time.Time) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldIn(FieldDeletedAt, vs...))
|
|
}
|
|
|
|
// DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
|
|
func DeletedAtNotIn(vs ...time.Time) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldNotIn(FieldDeletedAt, vs...))
|
|
}
|
|
|
|
// DeletedAtGT applies the GT predicate on the "deleted_at" field.
|
|
func DeletedAtGT(v time.Time) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldGT(FieldDeletedAt, v))
|
|
}
|
|
|
|
// DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
|
|
func DeletedAtGTE(v time.Time) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldGTE(FieldDeletedAt, v))
|
|
}
|
|
|
|
// DeletedAtLT applies the LT predicate on the "deleted_at" field.
|
|
func DeletedAtLT(v time.Time) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldLT(FieldDeletedAt, v))
|
|
}
|
|
|
|
// DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
|
|
func DeletedAtLTE(v time.Time) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldLTE(FieldDeletedAt, v))
|
|
}
|
|
|
|
// DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
|
|
func DeletedAtIsNil() predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldIsNull(FieldDeletedAt))
|
|
}
|
|
|
|
// DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
|
|
func DeletedAtNotNil() predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldNotNull(FieldDeletedAt))
|
|
}
|
|
|
|
// HostIDEQ applies the EQ predicate on the "host_id" field.
|
|
func HostIDEQ(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldEQ(FieldHostID, v))
|
|
}
|
|
|
|
// HostIDNEQ applies the NEQ predicate on the "host_id" field.
|
|
func HostIDNEQ(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldNEQ(FieldHostID, v))
|
|
}
|
|
|
|
// HostIDIn applies the In predicate on the "host_id" field.
|
|
func HostIDIn(vs ...string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldIn(FieldHostID, vs...))
|
|
}
|
|
|
|
// HostIDNotIn applies the NotIn predicate on the "host_id" field.
|
|
func HostIDNotIn(vs ...string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldNotIn(FieldHostID, vs...))
|
|
}
|
|
|
|
// HostIDGT applies the GT predicate on the "host_id" field.
|
|
func HostIDGT(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldGT(FieldHostID, v))
|
|
}
|
|
|
|
// HostIDGTE applies the GTE predicate on the "host_id" field.
|
|
func HostIDGTE(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldGTE(FieldHostID, v))
|
|
}
|
|
|
|
// HostIDLT applies the LT predicate on the "host_id" field.
|
|
func HostIDLT(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldLT(FieldHostID, v))
|
|
}
|
|
|
|
// HostIDLTE applies the LTE predicate on the "host_id" field.
|
|
func HostIDLTE(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldLTE(FieldHostID, v))
|
|
}
|
|
|
|
// HostIDContains applies the Contains predicate on the "host_id" field.
|
|
func HostIDContains(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldContains(FieldHostID, v))
|
|
}
|
|
|
|
// HostIDHasPrefix applies the HasPrefix predicate on the "host_id" field.
|
|
func HostIDHasPrefix(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldHasPrefix(FieldHostID, v))
|
|
}
|
|
|
|
// HostIDHasSuffix applies the HasSuffix predicate on the "host_id" field.
|
|
func HostIDHasSuffix(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldHasSuffix(FieldHostID, v))
|
|
}
|
|
|
|
// HostIDEqualFold applies the EqualFold predicate on the "host_id" field.
|
|
func HostIDEqualFold(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldEqualFold(FieldHostID, v))
|
|
}
|
|
|
|
// HostIDContainsFold applies the ContainsFold predicate on the "host_id" field.
|
|
func HostIDContainsFold(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldContainsFold(FieldHostID, v))
|
|
}
|
|
|
|
// UserIDEQ applies the EQ predicate on the "user_id" field.
|
|
func UserIDEQ(v uuid.UUID) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldEQ(FieldUserID, v))
|
|
}
|
|
|
|
// UserIDNEQ applies the NEQ predicate on the "user_id" field.
|
|
func UserIDNEQ(v uuid.UUID) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldNEQ(FieldUserID, v))
|
|
}
|
|
|
|
// UserIDIn applies the In predicate on the "user_id" field.
|
|
func UserIDIn(vs ...uuid.UUID) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldIn(FieldUserID, vs...))
|
|
}
|
|
|
|
// UserIDNotIn applies the NotIn predicate on the "user_id" field.
|
|
func UserIDNotIn(vs ...uuid.UUID) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldNotIn(FieldUserID, vs...))
|
|
}
|
|
|
|
// UserIDIsNil applies the IsNil predicate on the "user_id" field.
|
|
func UserIDIsNil() predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldIsNull(FieldUserID))
|
|
}
|
|
|
|
// UserIDNotNil applies the NotNil predicate on the "user_id" field.
|
|
func UserIDNotNil() predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldNotNull(FieldUserID))
|
|
}
|
|
|
|
// ModelIDEQ applies the EQ predicate on the "model_id" field.
|
|
func ModelIDEQ(v uuid.UUID) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldEQ(FieldModelID, v))
|
|
}
|
|
|
|
// ModelIDNEQ applies the NEQ predicate on the "model_id" field.
|
|
func ModelIDNEQ(v uuid.UUID) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldNEQ(FieldModelID, v))
|
|
}
|
|
|
|
// ModelIDIn applies the In predicate on the "model_id" field.
|
|
func ModelIDIn(vs ...uuid.UUID) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldIn(FieldModelID, vs...))
|
|
}
|
|
|
|
// ModelIDNotIn applies the NotIn predicate on the "model_id" field.
|
|
func ModelIDNotIn(vs ...uuid.UUID) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldNotIn(FieldModelID, vs...))
|
|
}
|
|
|
|
// ModelIDIsNil applies the IsNil predicate on the "model_id" field.
|
|
func ModelIDIsNil() predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldIsNull(FieldModelID))
|
|
}
|
|
|
|
// ModelIDNotNil applies the NotNil predicate on the "model_id" field.
|
|
func ModelIDNotNil() predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldNotNull(FieldModelID))
|
|
}
|
|
|
|
// EnvironmentIDEQ applies the EQ predicate on the "environment_id" field.
|
|
func EnvironmentIDEQ(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldEQ(FieldEnvironmentID, v))
|
|
}
|
|
|
|
// EnvironmentIDNEQ applies the NEQ predicate on the "environment_id" field.
|
|
func EnvironmentIDNEQ(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldNEQ(FieldEnvironmentID, v))
|
|
}
|
|
|
|
// EnvironmentIDIn applies the In predicate on the "environment_id" field.
|
|
func EnvironmentIDIn(vs ...string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldIn(FieldEnvironmentID, vs...))
|
|
}
|
|
|
|
// EnvironmentIDNotIn applies the NotIn predicate on the "environment_id" field.
|
|
func EnvironmentIDNotIn(vs ...string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldNotIn(FieldEnvironmentID, vs...))
|
|
}
|
|
|
|
// EnvironmentIDGT applies the GT predicate on the "environment_id" field.
|
|
func EnvironmentIDGT(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldGT(FieldEnvironmentID, v))
|
|
}
|
|
|
|
// EnvironmentIDGTE applies the GTE predicate on the "environment_id" field.
|
|
func EnvironmentIDGTE(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldGTE(FieldEnvironmentID, v))
|
|
}
|
|
|
|
// EnvironmentIDLT applies the LT predicate on the "environment_id" field.
|
|
func EnvironmentIDLT(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldLT(FieldEnvironmentID, v))
|
|
}
|
|
|
|
// EnvironmentIDLTE applies the LTE predicate on the "environment_id" field.
|
|
func EnvironmentIDLTE(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldLTE(FieldEnvironmentID, v))
|
|
}
|
|
|
|
// EnvironmentIDContains applies the Contains predicate on the "environment_id" field.
|
|
func EnvironmentIDContains(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldContains(FieldEnvironmentID, v))
|
|
}
|
|
|
|
// EnvironmentIDHasPrefix applies the HasPrefix predicate on the "environment_id" field.
|
|
func EnvironmentIDHasPrefix(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldHasPrefix(FieldEnvironmentID, v))
|
|
}
|
|
|
|
// EnvironmentIDHasSuffix applies the HasSuffix predicate on the "environment_id" field.
|
|
func EnvironmentIDHasSuffix(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldHasSuffix(FieldEnvironmentID, v))
|
|
}
|
|
|
|
// EnvironmentIDIsNil applies the IsNil predicate on the "environment_id" field.
|
|
func EnvironmentIDIsNil() predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldIsNull(FieldEnvironmentID))
|
|
}
|
|
|
|
// EnvironmentIDNotNil applies the NotNil predicate on the "environment_id" field.
|
|
func EnvironmentIDNotNil() predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldNotNull(FieldEnvironmentID))
|
|
}
|
|
|
|
// EnvironmentIDEqualFold applies the EqualFold predicate on the "environment_id" field.
|
|
func EnvironmentIDEqualFold(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldEqualFold(FieldEnvironmentID, v))
|
|
}
|
|
|
|
// EnvironmentIDContainsFold applies the ContainsFold predicate on the "environment_id" field.
|
|
func EnvironmentIDContainsFold(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldContainsFold(FieldEnvironmentID, v))
|
|
}
|
|
|
|
// NameEQ applies the EQ predicate on the "name" field.
|
|
func NameEQ(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldEQ(FieldName, v))
|
|
}
|
|
|
|
// NameNEQ applies the NEQ predicate on the "name" field.
|
|
func NameNEQ(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldNEQ(FieldName, v))
|
|
}
|
|
|
|
// NameIn applies the In predicate on the "name" field.
|
|
func NameIn(vs ...string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldIn(FieldName, vs...))
|
|
}
|
|
|
|
// NameNotIn applies the NotIn predicate on the "name" field.
|
|
func NameNotIn(vs ...string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldNotIn(FieldName, vs...))
|
|
}
|
|
|
|
// NameGT applies the GT predicate on the "name" field.
|
|
func NameGT(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldGT(FieldName, v))
|
|
}
|
|
|
|
// NameGTE applies the GTE predicate on the "name" field.
|
|
func NameGTE(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldGTE(FieldName, v))
|
|
}
|
|
|
|
// NameLT applies the LT predicate on the "name" field.
|
|
func NameLT(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldLT(FieldName, v))
|
|
}
|
|
|
|
// NameLTE applies the LTE predicate on the "name" field.
|
|
func NameLTE(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldLTE(FieldName, v))
|
|
}
|
|
|
|
// NameContains applies the Contains predicate on the "name" field.
|
|
func NameContains(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldContains(FieldName, v))
|
|
}
|
|
|
|
// NameHasPrefix applies the HasPrefix predicate on the "name" field.
|
|
func NameHasPrefix(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldHasPrefix(FieldName, v))
|
|
}
|
|
|
|
// NameHasSuffix applies the HasSuffix predicate on the "name" field.
|
|
func NameHasSuffix(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldHasSuffix(FieldName, v))
|
|
}
|
|
|
|
// NameEqualFold applies the EqualFold predicate on the "name" field.
|
|
func NameEqualFold(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldEqualFold(FieldName, v))
|
|
}
|
|
|
|
// NameContainsFold applies the ContainsFold predicate on the "name" field.
|
|
func NameContainsFold(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldContainsFold(FieldName, v))
|
|
}
|
|
|
|
// HostnameEQ applies the EQ predicate on the "hostname" field.
|
|
func HostnameEQ(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldEQ(FieldHostname, v))
|
|
}
|
|
|
|
// HostnameNEQ applies the NEQ predicate on the "hostname" field.
|
|
func HostnameNEQ(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldNEQ(FieldHostname, v))
|
|
}
|
|
|
|
// HostnameIn applies the In predicate on the "hostname" field.
|
|
func HostnameIn(vs ...string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldIn(FieldHostname, vs...))
|
|
}
|
|
|
|
// HostnameNotIn applies the NotIn predicate on the "hostname" field.
|
|
func HostnameNotIn(vs ...string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldNotIn(FieldHostname, vs...))
|
|
}
|
|
|
|
// HostnameGT applies the GT predicate on the "hostname" field.
|
|
func HostnameGT(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldGT(FieldHostname, v))
|
|
}
|
|
|
|
// HostnameGTE applies the GTE predicate on the "hostname" field.
|
|
func HostnameGTE(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldGTE(FieldHostname, v))
|
|
}
|
|
|
|
// HostnameLT applies the LT predicate on the "hostname" field.
|
|
func HostnameLT(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldLT(FieldHostname, v))
|
|
}
|
|
|
|
// HostnameLTE applies the LTE predicate on the "hostname" field.
|
|
func HostnameLTE(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldLTE(FieldHostname, v))
|
|
}
|
|
|
|
// HostnameContains applies the Contains predicate on the "hostname" field.
|
|
func HostnameContains(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldContains(FieldHostname, v))
|
|
}
|
|
|
|
// HostnameHasPrefix applies the HasPrefix predicate on the "hostname" field.
|
|
func HostnameHasPrefix(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldHasPrefix(FieldHostname, v))
|
|
}
|
|
|
|
// HostnameHasSuffix applies the HasSuffix predicate on the "hostname" field.
|
|
func HostnameHasSuffix(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldHasSuffix(FieldHostname, v))
|
|
}
|
|
|
|
// HostnameIsNil applies the IsNil predicate on the "hostname" field.
|
|
func HostnameIsNil() predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldIsNull(FieldHostname))
|
|
}
|
|
|
|
// HostnameNotNil applies the NotNil predicate on the "hostname" field.
|
|
func HostnameNotNil() predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldNotNull(FieldHostname))
|
|
}
|
|
|
|
// HostnameEqualFold applies the EqualFold predicate on the "hostname" field.
|
|
func HostnameEqualFold(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldEqualFold(FieldHostname, v))
|
|
}
|
|
|
|
// HostnameContainsFold applies the ContainsFold predicate on the "hostname" field.
|
|
func HostnameContainsFold(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldContainsFold(FieldHostname, v))
|
|
}
|
|
|
|
// ArchEQ applies the EQ predicate on the "arch" field.
|
|
func ArchEQ(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldEQ(FieldArch, v))
|
|
}
|
|
|
|
// ArchNEQ applies the NEQ predicate on the "arch" field.
|
|
func ArchNEQ(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldNEQ(FieldArch, v))
|
|
}
|
|
|
|
// ArchIn applies the In predicate on the "arch" field.
|
|
func ArchIn(vs ...string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldIn(FieldArch, vs...))
|
|
}
|
|
|
|
// ArchNotIn applies the NotIn predicate on the "arch" field.
|
|
func ArchNotIn(vs ...string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldNotIn(FieldArch, vs...))
|
|
}
|
|
|
|
// ArchGT applies the GT predicate on the "arch" field.
|
|
func ArchGT(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldGT(FieldArch, v))
|
|
}
|
|
|
|
// ArchGTE applies the GTE predicate on the "arch" field.
|
|
func ArchGTE(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldGTE(FieldArch, v))
|
|
}
|
|
|
|
// ArchLT applies the LT predicate on the "arch" field.
|
|
func ArchLT(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldLT(FieldArch, v))
|
|
}
|
|
|
|
// ArchLTE applies the LTE predicate on the "arch" field.
|
|
func ArchLTE(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldLTE(FieldArch, v))
|
|
}
|
|
|
|
// ArchContains applies the Contains predicate on the "arch" field.
|
|
func ArchContains(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldContains(FieldArch, v))
|
|
}
|
|
|
|
// ArchHasPrefix applies the HasPrefix predicate on the "arch" field.
|
|
func ArchHasPrefix(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldHasPrefix(FieldArch, v))
|
|
}
|
|
|
|
// ArchHasSuffix applies the HasSuffix predicate on the "arch" field.
|
|
func ArchHasSuffix(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldHasSuffix(FieldArch, v))
|
|
}
|
|
|
|
// ArchIsNil applies the IsNil predicate on the "arch" field.
|
|
func ArchIsNil() predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldIsNull(FieldArch))
|
|
}
|
|
|
|
// ArchNotNil applies the NotNil predicate on the "arch" field.
|
|
func ArchNotNil() predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldNotNull(FieldArch))
|
|
}
|
|
|
|
// ArchEqualFold applies the EqualFold predicate on the "arch" field.
|
|
func ArchEqualFold(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldEqualFold(FieldArch, v))
|
|
}
|
|
|
|
// ArchContainsFold applies the ContainsFold predicate on the "arch" field.
|
|
func ArchContainsFold(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldContainsFold(FieldArch, v))
|
|
}
|
|
|
|
// CoresEQ applies the EQ predicate on the "cores" field.
|
|
func CoresEQ(v int) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldEQ(FieldCores, v))
|
|
}
|
|
|
|
// CoresNEQ applies the NEQ predicate on the "cores" field.
|
|
func CoresNEQ(v int) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldNEQ(FieldCores, v))
|
|
}
|
|
|
|
// CoresIn applies the In predicate on the "cores" field.
|
|
func CoresIn(vs ...int) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldIn(FieldCores, vs...))
|
|
}
|
|
|
|
// CoresNotIn applies the NotIn predicate on the "cores" field.
|
|
func CoresNotIn(vs ...int) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldNotIn(FieldCores, vs...))
|
|
}
|
|
|
|
// CoresGT applies the GT predicate on the "cores" field.
|
|
func CoresGT(v int) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldGT(FieldCores, v))
|
|
}
|
|
|
|
// CoresGTE applies the GTE predicate on the "cores" field.
|
|
func CoresGTE(v int) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldGTE(FieldCores, v))
|
|
}
|
|
|
|
// CoresLT applies the LT predicate on the "cores" field.
|
|
func CoresLT(v int) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldLT(FieldCores, v))
|
|
}
|
|
|
|
// CoresLTE applies the LTE predicate on the "cores" field.
|
|
func CoresLTE(v int) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldLTE(FieldCores, v))
|
|
}
|
|
|
|
// CoresIsNil applies the IsNil predicate on the "cores" field.
|
|
func CoresIsNil() predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldIsNull(FieldCores))
|
|
}
|
|
|
|
// CoresNotNil applies the NotNil predicate on the "cores" field.
|
|
func CoresNotNil() predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldNotNull(FieldCores))
|
|
}
|
|
|
|
// MemoryEQ applies the EQ predicate on the "memory" field.
|
|
func MemoryEQ(v int64) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldEQ(FieldMemory, v))
|
|
}
|
|
|
|
// MemoryNEQ applies the NEQ predicate on the "memory" field.
|
|
func MemoryNEQ(v int64) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldNEQ(FieldMemory, v))
|
|
}
|
|
|
|
// MemoryIn applies the In predicate on the "memory" field.
|
|
func MemoryIn(vs ...int64) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldIn(FieldMemory, vs...))
|
|
}
|
|
|
|
// MemoryNotIn applies the NotIn predicate on the "memory" field.
|
|
func MemoryNotIn(vs ...int64) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldNotIn(FieldMemory, vs...))
|
|
}
|
|
|
|
// MemoryGT applies the GT predicate on the "memory" field.
|
|
func MemoryGT(v int64) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldGT(FieldMemory, v))
|
|
}
|
|
|
|
// MemoryGTE applies the GTE predicate on the "memory" field.
|
|
func MemoryGTE(v int64) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldGTE(FieldMemory, v))
|
|
}
|
|
|
|
// MemoryLT applies the LT predicate on the "memory" field.
|
|
func MemoryLT(v int64) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldLT(FieldMemory, v))
|
|
}
|
|
|
|
// MemoryLTE applies the LTE predicate on the "memory" field.
|
|
func MemoryLTE(v int64) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldLTE(FieldMemory, v))
|
|
}
|
|
|
|
// MemoryIsNil applies the IsNil predicate on the "memory" field.
|
|
func MemoryIsNil() predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldIsNull(FieldMemory))
|
|
}
|
|
|
|
// MemoryNotNil applies the NotNil predicate on the "memory" field.
|
|
func MemoryNotNil() predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldNotNull(FieldMemory))
|
|
}
|
|
|
|
// OsEQ applies the EQ predicate on the "os" field.
|
|
func OsEQ(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldEQ(FieldOs, v))
|
|
}
|
|
|
|
// OsNEQ applies the NEQ predicate on the "os" field.
|
|
func OsNEQ(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldNEQ(FieldOs, v))
|
|
}
|
|
|
|
// OsIn applies the In predicate on the "os" field.
|
|
func OsIn(vs ...string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldIn(FieldOs, vs...))
|
|
}
|
|
|
|
// OsNotIn applies the NotIn predicate on the "os" field.
|
|
func OsNotIn(vs ...string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldNotIn(FieldOs, vs...))
|
|
}
|
|
|
|
// OsGT applies the GT predicate on the "os" field.
|
|
func OsGT(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldGT(FieldOs, v))
|
|
}
|
|
|
|
// OsGTE applies the GTE predicate on the "os" field.
|
|
func OsGTE(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldGTE(FieldOs, v))
|
|
}
|
|
|
|
// OsLT applies the LT predicate on the "os" field.
|
|
func OsLT(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldLT(FieldOs, v))
|
|
}
|
|
|
|
// OsLTE applies the LTE predicate on the "os" field.
|
|
func OsLTE(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldLTE(FieldOs, v))
|
|
}
|
|
|
|
// OsContains applies the Contains predicate on the "os" field.
|
|
func OsContains(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldContains(FieldOs, v))
|
|
}
|
|
|
|
// OsHasPrefix applies the HasPrefix predicate on the "os" field.
|
|
func OsHasPrefix(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldHasPrefix(FieldOs, v))
|
|
}
|
|
|
|
// OsHasSuffix applies the HasSuffix predicate on the "os" field.
|
|
func OsHasSuffix(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldHasSuffix(FieldOs, v))
|
|
}
|
|
|
|
// OsIsNil applies the IsNil predicate on the "os" field.
|
|
func OsIsNil() predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldIsNull(FieldOs))
|
|
}
|
|
|
|
// OsNotNil applies the NotNil predicate on the "os" field.
|
|
func OsNotNil() predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldNotNull(FieldOs))
|
|
}
|
|
|
|
// OsEqualFold applies the EqualFold predicate on the "os" field.
|
|
func OsEqualFold(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldEqualFold(FieldOs, v))
|
|
}
|
|
|
|
// OsContainsFold applies the ContainsFold predicate on the "os" field.
|
|
func OsContainsFold(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldContainsFold(FieldOs, v))
|
|
}
|
|
|
|
// ExternalIPEQ applies the EQ predicate on the "external_ip" field.
|
|
func ExternalIPEQ(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldEQ(FieldExternalIP, v))
|
|
}
|
|
|
|
// ExternalIPNEQ applies the NEQ predicate on the "external_ip" field.
|
|
func ExternalIPNEQ(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldNEQ(FieldExternalIP, v))
|
|
}
|
|
|
|
// ExternalIPIn applies the In predicate on the "external_ip" field.
|
|
func ExternalIPIn(vs ...string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldIn(FieldExternalIP, vs...))
|
|
}
|
|
|
|
// ExternalIPNotIn applies the NotIn predicate on the "external_ip" field.
|
|
func ExternalIPNotIn(vs ...string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldNotIn(FieldExternalIP, vs...))
|
|
}
|
|
|
|
// ExternalIPGT applies the GT predicate on the "external_ip" field.
|
|
func ExternalIPGT(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldGT(FieldExternalIP, v))
|
|
}
|
|
|
|
// ExternalIPGTE applies the GTE predicate on the "external_ip" field.
|
|
func ExternalIPGTE(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldGTE(FieldExternalIP, v))
|
|
}
|
|
|
|
// ExternalIPLT applies the LT predicate on the "external_ip" field.
|
|
func ExternalIPLT(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldLT(FieldExternalIP, v))
|
|
}
|
|
|
|
// ExternalIPLTE applies the LTE predicate on the "external_ip" field.
|
|
func ExternalIPLTE(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldLTE(FieldExternalIP, v))
|
|
}
|
|
|
|
// ExternalIPContains applies the Contains predicate on the "external_ip" field.
|
|
func ExternalIPContains(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldContains(FieldExternalIP, v))
|
|
}
|
|
|
|
// ExternalIPHasPrefix applies the HasPrefix predicate on the "external_ip" field.
|
|
func ExternalIPHasPrefix(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldHasPrefix(FieldExternalIP, v))
|
|
}
|
|
|
|
// ExternalIPHasSuffix applies the HasSuffix predicate on the "external_ip" field.
|
|
func ExternalIPHasSuffix(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldHasSuffix(FieldExternalIP, v))
|
|
}
|
|
|
|
// ExternalIPIsNil applies the IsNil predicate on the "external_ip" field.
|
|
func ExternalIPIsNil() predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldIsNull(FieldExternalIP))
|
|
}
|
|
|
|
// ExternalIPNotNil applies the NotNil predicate on the "external_ip" field.
|
|
func ExternalIPNotNil() predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldNotNull(FieldExternalIP))
|
|
}
|
|
|
|
// ExternalIPEqualFold applies the EqualFold predicate on the "external_ip" field.
|
|
func ExternalIPEqualFold(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldEqualFold(FieldExternalIP, v))
|
|
}
|
|
|
|
// ExternalIPContainsFold applies the ContainsFold predicate on the "external_ip" field.
|
|
func ExternalIPContainsFold(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldContainsFold(FieldExternalIP, v))
|
|
}
|
|
|
|
// InternalIPEQ applies the EQ predicate on the "internal_ip" field.
|
|
func InternalIPEQ(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldEQ(FieldInternalIP, v))
|
|
}
|
|
|
|
// InternalIPNEQ applies the NEQ predicate on the "internal_ip" field.
|
|
func InternalIPNEQ(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldNEQ(FieldInternalIP, v))
|
|
}
|
|
|
|
// InternalIPIn applies the In predicate on the "internal_ip" field.
|
|
func InternalIPIn(vs ...string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldIn(FieldInternalIP, vs...))
|
|
}
|
|
|
|
// InternalIPNotIn applies the NotIn predicate on the "internal_ip" field.
|
|
func InternalIPNotIn(vs ...string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldNotIn(FieldInternalIP, vs...))
|
|
}
|
|
|
|
// InternalIPGT applies the GT predicate on the "internal_ip" field.
|
|
func InternalIPGT(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldGT(FieldInternalIP, v))
|
|
}
|
|
|
|
// InternalIPGTE applies the GTE predicate on the "internal_ip" field.
|
|
func InternalIPGTE(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldGTE(FieldInternalIP, v))
|
|
}
|
|
|
|
// InternalIPLT applies the LT predicate on the "internal_ip" field.
|
|
func InternalIPLT(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldLT(FieldInternalIP, v))
|
|
}
|
|
|
|
// InternalIPLTE applies the LTE predicate on the "internal_ip" field.
|
|
func InternalIPLTE(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldLTE(FieldInternalIP, v))
|
|
}
|
|
|
|
// InternalIPContains applies the Contains predicate on the "internal_ip" field.
|
|
func InternalIPContains(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldContains(FieldInternalIP, v))
|
|
}
|
|
|
|
// InternalIPHasPrefix applies the HasPrefix predicate on the "internal_ip" field.
|
|
func InternalIPHasPrefix(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldHasPrefix(FieldInternalIP, v))
|
|
}
|
|
|
|
// InternalIPHasSuffix applies the HasSuffix predicate on the "internal_ip" field.
|
|
func InternalIPHasSuffix(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldHasSuffix(FieldInternalIP, v))
|
|
}
|
|
|
|
// InternalIPIsNil applies the IsNil predicate on the "internal_ip" field.
|
|
func InternalIPIsNil() predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldIsNull(FieldInternalIP))
|
|
}
|
|
|
|
// InternalIPNotNil applies the NotNil predicate on the "internal_ip" field.
|
|
func InternalIPNotNil() predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldNotNull(FieldInternalIP))
|
|
}
|
|
|
|
// InternalIPEqualFold applies the EqualFold predicate on the "internal_ip" field.
|
|
func InternalIPEqualFold(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldEqualFold(FieldInternalIP, v))
|
|
}
|
|
|
|
// InternalIPContainsFold applies the ContainsFold predicate on the "internal_ip" field.
|
|
func InternalIPContainsFold(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldContainsFold(FieldInternalIP, v))
|
|
}
|
|
|
|
// TTLKindEQ applies the EQ predicate on the "ttl_kind" field.
|
|
func TTLKindEQ(v consts.VirtualmachineTTLKind) predicate.VirtualMachine {
|
|
vc := string(v)
|
|
return predicate.VirtualMachine(sql.FieldEQ(FieldTTLKind, vc))
|
|
}
|
|
|
|
// TTLKindNEQ applies the NEQ predicate on the "ttl_kind" field.
|
|
func TTLKindNEQ(v consts.VirtualmachineTTLKind) predicate.VirtualMachine {
|
|
vc := string(v)
|
|
return predicate.VirtualMachine(sql.FieldNEQ(FieldTTLKind, vc))
|
|
}
|
|
|
|
// TTLKindIn applies the In predicate on the "ttl_kind" field.
|
|
func TTLKindIn(vs ...consts.VirtualmachineTTLKind) predicate.VirtualMachine {
|
|
v := make([]any, len(vs))
|
|
for i := range v {
|
|
v[i] = string(vs[i])
|
|
}
|
|
return predicate.VirtualMachine(sql.FieldIn(FieldTTLKind, v...))
|
|
}
|
|
|
|
// TTLKindNotIn applies the NotIn predicate on the "ttl_kind" field.
|
|
func TTLKindNotIn(vs ...consts.VirtualmachineTTLKind) predicate.VirtualMachine {
|
|
v := make([]any, len(vs))
|
|
for i := range v {
|
|
v[i] = string(vs[i])
|
|
}
|
|
return predicate.VirtualMachine(sql.FieldNotIn(FieldTTLKind, v...))
|
|
}
|
|
|
|
// TTLKindGT applies the GT predicate on the "ttl_kind" field.
|
|
func TTLKindGT(v consts.VirtualmachineTTLKind) predicate.VirtualMachine {
|
|
vc := string(v)
|
|
return predicate.VirtualMachine(sql.FieldGT(FieldTTLKind, vc))
|
|
}
|
|
|
|
// TTLKindGTE applies the GTE predicate on the "ttl_kind" field.
|
|
func TTLKindGTE(v consts.VirtualmachineTTLKind) predicate.VirtualMachine {
|
|
vc := string(v)
|
|
return predicate.VirtualMachine(sql.FieldGTE(FieldTTLKind, vc))
|
|
}
|
|
|
|
// TTLKindLT applies the LT predicate on the "ttl_kind" field.
|
|
func TTLKindLT(v consts.VirtualmachineTTLKind) predicate.VirtualMachine {
|
|
vc := string(v)
|
|
return predicate.VirtualMachine(sql.FieldLT(FieldTTLKind, vc))
|
|
}
|
|
|
|
// TTLKindLTE applies the LTE predicate on the "ttl_kind" field.
|
|
func TTLKindLTE(v consts.VirtualmachineTTLKind) predicate.VirtualMachine {
|
|
vc := string(v)
|
|
return predicate.VirtualMachine(sql.FieldLTE(FieldTTLKind, vc))
|
|
}
|
|
|
|
// TTLKindContains applies the Contains predicate on the "ttl_kind" field.
|
|
func TTLKindContains(v consts.VirtualmachineTTLKind) predicate.VirtualMachine {
|
|
vc := string(v)
|
|
return predicate.VirtualMachine(sql.FieldContains(FieldTTLKind, vc))
|
|
}
|
|
|
|
// TTLKindHasPrefix applies the HasPrefix predicate on the "ttl_kind" field.
|
|
func TTLKindHasPrefix(v consts.VirtualmachineTTLKind) predicate.VirtualMachine {
|
|
vc := string(v)
|
|
return predicate.VirtualMachine(sql.FieldHasPrefix(FieldTTLKind, vc))
|
|
}
|
|
|
|
// TTLKindHasSuffix applies the HasSuffix predicate on the "ttl_kind" field.
|
|
func TTLKindHasSuffix(v consts.VirtualmachineTTLKind) predicate.VirtualMachine {
|
|
vc := string(v)
|
|
return predicate.VirtualMachine(sql.FieldHasSuffix(FieldTTLKind, vc))
|
|
}
|
|
|
|
// TTLKindIsNil applies the IsNil predicate on the "ttl_kind" field.
|
|
func TTLKindIsNil() predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldIsNull(FieldTTLKind))
|
|
}
|
|
|
|
// TTLKindNotNil applies the NotNil predicate on the "ttl_kind" field.
|
|
func TTLKindNotNil() predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldNotNull(FieldTTLKind))
|
|
}
|
|
|
|
// TTLKindEqualFold applies the EqualFold predicate on the "ttl_kind" field.
|
|
func TTLKindEqualFold(v consts.VirtualmachineTTLKind) predicate.VirtualMachine {
|
|
vc := string(v)
|
|
return predicate.VirtualMachine(sql.FieldEqualFold(FieldTTLKind, vc))
|
|
}
|
|
|
|
// TTLKindContainsFold applies the ContainsFold predicate on the "ttl_kind" field.
|
|
func TTLKindContainsFold(v consts.VirtualmachineTTLKind) predicate.VirtualMachine {
|
|
vc := string(v)
|
|
return predicate.VirtualMachine(sql.FieldContainsFold(FieldTTLKind, vc))
|
|
}
|
|
|
|
// TTLEQ applies the EQ predicate on the "ttl" field.
|
|
func TTLEQ(v int64) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldEQ(FieldTTL, v))
|
|
}
|
|
|
|
// TTLNEQ applies the NEQ predicate on the "ttl" field.
|
|
func TTLNEQ(v int64) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldNEQ(FieldTTL, v))
|
|
}
|
|
|
|
// TTLIn applies the In predicate on the "ttl" field.
|
|
func TTLIn(vs ...int64) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldIn(FieldTTL, vs...))
|
|
}
|
|
|
|
// TTLNotIn applies the NotIn predicate on the "ttl" field.
|
|
func TTLNotIn(vs ...int64) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldNotIn(FieldTTL, vs...))
|
|
}
|
|
|
|
// TTLGT applies the GT predicate on the "ttl" field.
|
|
func TTLGT(v int64) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldGT(FieldTTL, v))
|
|
}
|
|
|
|
// TTLGTE applies the GTE predicate on the "ttl" field.
|
|
func TTLGTE(v int64) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldGTE(FieldTTL, v))
|
|
}
|
|
|
|
// TTLLT applies the LT predicate on the "ttl" field.
|
|
func TTLLT(v int64) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldLT(FieldTTL, v))
|
|
}
|
|
|
|
// TTLLTE applies the LTE predicate on the "ttl" field.
|
|
func TTLLTE(v int64) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldLTE(FieldTTL, v))
|
|
}
|
|
|
|
// TTLIsNil applies the IsNil predicate on the "ttl" field.
|
|
func TTLIsNil() predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldIsNull(FieldTTL))
|
|
}
|
|
|
|
// TTLNotNil applies the NotNil predicate on the "ttl" field.
|
|
func TTLNotNil() predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldNotNull(FieldTTL))
|
|
}
|
|
|
|
// VersionEQ applies the EQ predicate on the "version" field.
|
|
func VersionEQ(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldEQ(FieldVersion, v))
|
|
}
|
|
|
|
// VersionNEQ applies the NEQ predicate on the "version" field.
|
|
func VersionNEQ(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldNEQ(FieldVersion, v))
|
|
}
|
|
|
|
// VersionIn applies the In predicate on the "version" field.
|
|
func VersionIn(vs ...string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldIn(FieldVersion, vs...))
|
|
}
|
|
|
|
// VersionNotIn applies the NotIn predicate on the "version" field.
|
|
func VersionNotIn(vs ...string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldNotIn(FieldVersion, vs...))
|
|
}
|
|
|
|
// VersionGT applies the GT predicate on the "version" field.
|
|
func VersionGT(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldGT(FieldVersion, v))
|
|
}
|
|
|
|
// VersionGTE applies the GTE predicate on the "version" field.
|
|
func VersionGTE(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldGTE(FieldVersion, v))
|
|
}
|
|
|
|
// VersionLT applies the LT predicate on the "version" field.
|
|
func VersionLT(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldLT(FieldVersion, v))
|
|
}
|
|
|
|
// VersionLTE applies the LTE predicate on the "version" field.
|
|
func VersionLTE(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldLTE(FieldVersion, v))
|
|
}
|
|
|
|
// VersionContains applies the Contains predicate on the "version" field.
|
|
func VersionContains(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldContains(FieldVersion, v))
|
|
}
|
|
|
|
// VersionHasPrefix applies the HasPrefix predicate on the "version" field.
|
|
func VersionHasPrefix(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldHasPrefix(FieldVersion, v))
|
|
}
|
|
|
|
// VersionHasSuffix applies the HasSuffix predicate on the "version" field.
|
|
func VersionHasSuffix(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldHasSuffix(FieldVersion, v))
|
|
}
|
|
|
|
// VersionIsNil applies the IsNil predicate on the "version" field.
|
|
func VersionIsNil() predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldIsNull(FieldVersion))
|
|
}
|
|
|
|
// VersionNotNil applies the NotNil predicate on the "version" field.
|
|
func VersionNotNil() predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldNotNull(FieldVersion))
|
|
}
|
|
|
|
// VersionEqualFold applies the EqualFold predicate on the "version" field.
|
|
func VersionEqualFold(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldEqualFold(FieldVersion, v))
|
|
}
|
|
|
|
// VersionContainsFold applies the ContainsFold predicate on the "version" field.
|
|
func VersionContainsFold(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldContainsFold(FieldVersion, v))
|
|
}
|
|
|
|
// MachineIDEQ applies the EQ predicate on the "machine_id" field.
|
|
func MachineIDEQ(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldEQ(FieldMachineID, v))
|
|
}
|
|
|
|
// MachineIDNEQ applies the NEQ predicate on the "machine_id" field.
|
|
func MachineIDNEQ(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldNEQ(FieldMachineID, v))
|
|
}
|
|
|
|
// MachineIDIn applies the In predicate on the "machine_id" field.
|
|
func MachineIDIn(vs ...string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldIn(FieldMachineID, vs...))
|
|
}
|
|
|
|
// MachineIDNotIn applies the NotIn predicate on the "machine_id" field.
|
|
func MachineIDNotIn(vs ...string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldNotIn(FieldMachineID, vs...))
|
|
}
|
|
|
|
// MachineIDGT applies the GT predicate on the "machine_id" field.
|
|
func MachineIDGT(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldGT(FieldMachineID, v))
|
|
}
|
|
|
|
// MachineIDGTE applies the GTE predicate on the "machine_id" field.
|
|
func MachineIDGTE(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldGTE(FieldMachineID, v))
|
|
}
|
|
|
|
// MachineIDLT applies the LT predicate on the "machine_id" field.
|
|
func MachineIDLT(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldLT(FieldMachineID, v))
|
|
}
|
|
|
|
// MachineIDLTE applies the LTE predicate on the "machine_id" field.
|
|
func MachineIDLTE(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldLTE(FieldMachineID, v))
|
|
}
|
|
|
|
// MachineIDContains applies the Contains predicate on the "machine_id" field.
|
|
func MachineIDContains(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldContains(FieldMachineID, v))
|
|
}
|
|
|
|
// MachineIDHasPrefix applies the HasPrefix predicate on the "machine_id" field.
|
|
func MachineIDHasPrefix(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldHasPrefix(FieldMachineID, v))
|
|
}
|
|
|
|
// MachineIDHasSuffix applies the HasSuffix predicate on the "machine_id" field.
|
|
func MachineIDHasSuffix(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldHasSuffix(FieldMachineID, v))
|
|
}
|
|
|
|
// MachineIDIsNil applies the IsNil predicate on the "machine_id" field.
|
|
func MachineIDIsNil() predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldIsNull(FieldMachineID))
|
|
}
|
|
|
|
// MachineIDNotNil applies the NotNil predicate on the "machine_id" field.
|
|
func MachineIDNotNil() predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldNotNull(FieldMachineID))
|
|
}
|
|
|
|
// MachineIDEqualFold applies the EqualFold predicate on the "machine_id" field.
|
|
func MachineIDEqualFold(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldEqualFold(FieldMachineID, v))
|
|
}
|
|
|
|
// MachineIDContainsFold applies the ContainsFold predicate on the "machine_id" field.
|
|
func MachineIDContainsFold(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldContainsFold(FieldMachineID, v))
|
|
}
|
|
|
|
// RepoURLEQ applies the EQ predicate on the "repo_url" field.
|
|
func RepoURLEQ(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldEQ(FieldRepoURL, v))
|
|
}
|
|
|
|
// RepoURLNEQ applies the NEQ predicate on the "repo_url" field.
|
|
func RepoURLNEQ(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldNEQ(FieldRepoURL, v))
|
|
}
|
|
|
|
// RepoURLIn applies the In predicate on the "repo_url" field.
|
|
func RepoURLIn(vs ...string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldIn(FieldRepoURL, vs...))
|
|
}
|
|
|
|
// RepoURLNotIn applies the NotIn predicate on the "repo_url" field.
|
|
func RepoURLNotIn(vs ...string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldNotIn(FieldRepoURL, vs...))
|
|
}
|
|
|
|
// RepoURLGT applies the GT predicate on the "repo_url" field.
|
|
func RepoURLGT(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldGT(FieldRepoURL, v))
|
|
}
|
|
|
|
// RepoURLGTE applies the GTE predicate on the "repo_url" field.
|
|
func RepoURLGTE(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldGTE(FieldRepoURL, v))
|
|
}
|
|
|
|
// RepoURLLT applies the LT predicate on the "repo_url" field.
|
|
func RepoURLLT(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldLT(FieldRepoURL, v))
|
|
}
|
|
|
|
// RepoURLLTE applies the LTE predicate on the "repo_url" field.
|
|
func RepoURLLTE(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldLTE(FieldRepoURL, v))
|
|
}
|
|
|
|
// RepoURLContains applies the Contains predicate on the "repo_url" field.
|
|
func RepoURLContains(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldContains(FieldRepoURL, v))
|
|
}
|
|
|
|
// RepoURLHasPrefix applies the HasPrefix predicate on the "repo_url" field.
|
|
func RepoURLHasPrefix(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldHasPrefix(FieldRepoURL, v))
|
|
}
|
|
|
|
// RepoURLHasSuffix applies the HasSuffix predicate on the "repo_url" field.
|
|
func RepoURLHasSuffix(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldHasSuffix(FieldRepoURL, v))
|
|
}
|
|
|
|
// RepoURLIsNil applies the IsNil predicate on the "repo_url" field.
|
|
func RepoURLIsNil() predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldIsNull(FieldRepoURL))
|
|
}
|
|
|
|
// RepoURLNotNil applies the NotNil predicate on the "repo_url" field.
|
|
func RepoURLNotNil() predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldNotNull(FieldRepoURL))
|
|
}
|
|
|
|
// RepoURLEqualFold applies the EqualFold predicate on the "repo_url" field.
|
|
func RepoURLEqualFold(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldEqualFold(FieldRepoURL, v))
|
|
}
|
|
|
|
// RepoURLContainsFold applies the ContainsFold predicate on the "repo_url" field.
|
|
func RepoURLContainsFold(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldContainsFold(FieldRepoURL, v))
|
|
}
|
|
|
|
// RepoFilenameEQ applies the EQ predicate on the "repo_filename" field.
|
|
func RepoFilenameEQ(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldEQ(FieldRepoFilename, v))
|
|
}
|
|
|
|
// RepoFilenameNEQ applies the NEQ predicate on the "repo_filename" field.
|
|
func RepoFilenameNEQ(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldNEQ(FieldRepoFilename, v))
|
|
}
|
|
|
|
// RepoFilenameIn applies the In predicate on the "repo_filename" field.
|
|
func RepoFilenameIn(vs ...string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldIn(FieldRepoFilename, vs...))
|
|
}
|
|
|
|
// RepoFilenameNotIn applies the NotIn predicate on the "repo_filename" field.
|
|
func RepoFilenameNotIn(vs ...string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldNotIn(FieldRepoFilename, vs...))
|
|
}
|
|
|
|
// RepoFilenameGT applies the GT predicate on the "repo_filename" field.
|
|
func RepoFilenameGT(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldGT(FieldRepoFilename, v))
|
|
}
|
|
|
|
// RepoFilenameGTE applies the GTE predicate on the "repo_filename" field.
|
|
func RepoFilenameGTE(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldGTE(FieldRepoFilename, v))
|
|
}
|
|
|
|
// RepoFilenameLT applies the LT predicate on the "repo_filename" field.
|
|
func RepoFilenameLT(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldLT(FieldRepoFilename, v))
|
|
}
|
|
|
|
// RepoFilenameLTE applies the LTE predicate on the "repo_filename" field.
|
|
func RepoFilenameLTE(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldLTE(FieldRepoFilename, v))
|
|
}
|
|
|
|
// RepoFilenameContains applies the Contains predicate on the "repo_filename" field.
|
|
func RepoFilenameContains(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldContains(FieldRepoFilename, v))
|
|
}
|
|
|
|
// RepoFilenameHasPrefix applies the HasPrefix predicate on the "repo_filename" field.
|
|
func RepoFilenameHasPrefix(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldHasPrefix(FieldRepoFilename, v))
|
|
}
|
|
|
|
// RepoFilenameHasSuffix applies the HasSuffix predicate on the "repo_filename" field.
|
|
func RepoFilenameHasSuffix(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldHasSuffix(FieldRepoFilename, v))
|
|
}
|
|
|
|
// RepoFilenameIsNil applies the IsNil predicate on the "repo_filename" field.
|
|
func RepoFilenameIsNil() predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldIsNull(FieldRepoFilename))
|
|
}
|
|
|
|
// RepoFilenameNotNil applies the NotNil predicate on the "repo_filename" field.
|
|
func RepoFilenameNotNil() predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldNotNull(FieldRepoFilename))
|
|
}
|
|
|
|
// RepoFilenameEqualFold applies the EqualFold predicate on the "repo_filename" field.
|
|
func RepoFilenameEqualFold(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldEqualFold(FieldRepoFilename, v))
|
|
}
|
|
|
|
// RepoFilenameContainsFold applies the ContainsFold predicate on the "repo_filename" field.
|
|
func RepoFilenameContainsFold(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldContainsFold(FieldRepoFilename, v))
|
|
}
|
|
|
|
// BranchEQ applies the EQ predicate on the "branch" field.
|
|
func BranchEQ(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldEQ(FieldBranch, v))
|
|
}
|
|
|
|
// BranchNEQ applies the NEQ predicate on the "branch" field.
|
|
func BranchNEQ(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldNEQ(FieldBranch, v))
|
|
}
|
|
|
|
// BranchIn applies the In predicate on the "branch" field.
|
|
func BranchIn(vs ...string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldIn(FieldBranch, vs...))
|
|
}
|
|
|
|
// BranchNotIn applies the NotIn predicate on the "branch" field.
|
|
func BranchNotIn(vs ...string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldNotIn(FieldBranch, vs...))
|
|
}
|
|
|
|
// BranchGT applies the GT predicate on the "branch" field.
|
|
func BranchGT(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldGT(FieldBranch, v))
|
|
}
|
|
|
|
// BranchGTE applies the GTE predicate on the "branch" field.
|
|
func BranchGTE(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldGTE(FieldBranch, v))
|
|
}
|
|
|
|
// BranchLT applies the LT predicate on the "branch" field.
|
|
func BranchLT(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldLT(FieldBranch, v))
|
|
}
|
|
|
|
// BranchLTE applies the LTE predicate on the "branch" field.
|
|
func BranchLTE(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldLTE(FieldBranch, v))
|
|
}
|
|
|
|
// BranchContains applies the Contains predicate on the "branch" field.
|
|
func BranchContains(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldContains(FieldBranch, v))
|
|
}
|
|
|
|
// BranchHasPrefix applies the HasPrefix predicate on the "branch" field.
|
|
func BranchHasPrefix(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldHasPrefix(FieldBranch, v))
|
|
}
|
|
|
|
// BranchHasSuffix applies the HasSuffix predicate on the "branch" field.
|
|
func BranchHasSuffix(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldHasSuffix(FieldBranch, v))
|
|
}
|
|
|
|
// BranchIsNil applies the IsNil predicate on the "branch" field.
|
|
func BranchIsNil() predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldIsNull(FieldBranch))
|
|
}
|
|
|
|
// BranchNotNil applies the NotNil predicate on the "branch" field.
|
|
func BranchNotNil() predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldNotNull(FieldBranch))
|
|
}
|
|
|
|
// BranchEqualFold applies the EqualFold predicate on the "branch" field.
|
|
func BranchEqualFold(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldEqualFold(FieldBranch, v))
|
|
}
|
|
|
|
// BranchContainsFold applies the ContainsFold predicate on the "branch" field.
|
|
func BranchContainsFold(v string) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldContainsFold(FieldBranch, v))
|
|
}
|
|
|
|
// IsRecycledEQ applies the EQ predicate on the "is_recycled" field.
|
|
func IsRecycledEQ(v bool) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldEQ(FieldIsRecycled, v))
|
|
}
|
|
|
|
// IsRecycledNEQ applies the NEQ predicate on the "is_recycled" field.
|
|
func IsRecycledNEQ(v bool) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldNEQ(FieldIsRecycled, v))
|
|
}
|
|
|
|
// IsRecycledIsNil applies the IsNil predicate on the "is_recycled" field.
|
|
func IsRecycledIsNil() predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldIsNull(FieldIsRecycled))
|
|
}
|
|
|
|
// IsRecycledNotNil applies the NotNil predicate on the "is_recycled" field.
|
|
func IsRecycledNotNil() predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldNotNull(FieldIsRecycled))
|
|
}
|
|
|
|
// ConditionsIsNil applies the IsNil predicate on the "conditions" field.
|
|
func ConditionsIsNil() predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldIsNull(FieldConditions))
|
|
}
|
|
|
|
// ConditionsNotNil applies the NotNil predicate on the "conditions" field.
|
|
func ConditionsNotNil() predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldNotNull(FieldConditions))
|
|
}
|
|
|
|
// CreatedAtEQ applies the EQ predicate on the "created_at" field.
|
|
func CreatedAtEQ(v time.Time) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldEQ(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
|
|
func CreatedAtNEQ(v time.Time) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldNEQ(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtIn applies the In predicate on the "created_at" field.
|
|
func CreatedAtIn(vs ...time.Time) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldIn(FieldCreatedAt, vs...))
|
|
}
|
|
|
|
// CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
|
|
func CreatedAtNotIn(vs ...time.Time) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldNotIn(FieldCreatedAt, vs...))
|
|
}
|
|
|
|
// CreatedAtGT applies the GT predicate on the "created_at" field.
|
|
func CreatedAtGT(v time.Time) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldGT(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtGTE applies the GTE predicate on the "created_at" field.
|
|
func CreatedAtGTE(v time.Time) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldGTE(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtLT applies the LT predicate on the "created_at" field.
|
|
func CreatedAtLT(v time.Time) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldLT(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtLTE applies the LTE predicate on the "created_at" field.
|
|
func CreatedAtLTE(v time.Time) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldLTE(FieldCreatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
|
|
func UpdatedAtEQ(v time.Time) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldEQ(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
|
|
func UpdatedAtNEQ(v time.Time) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldNEQ(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtIn applies the In predicate on the "updated_at" field.
|
|
func UpdatedAtIn(vs ...time.Time) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldIn(FieldUpdatedAt, vs...))
|
|
}
|
|
|
|
// UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
|
|
func UpdatedAtNotIn(vs ...time.Time) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldNotIn(FieldUpdatedAt, vs...))
|
|
}
|
|
|
|
// UpdatedAtGT applies the GT predicate on the "updated_at" field.
|
|
func UpdatedAtGT(v time.Time) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldGT(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
|
|
func UpdatedAtGTE(v time.Time) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldGTE(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtLT applies the LT predicate on the "updated_at" field.
|
|
func UpdatedAtLT(v time.Time) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldLT(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
|
|
func UpdatedAtLTE(v time.Time) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.FieldLTE(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// HasHost applies the HasEdge predicate on the "host" edge.
|
|
func HasHost() predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(func(s *sql.Selector) {
|
|
step := sqlgraph.NewStep(
|
|
sqlgraph.From(Table, FieldID),
|
|
sqlgraph.Edge(sqlgraph.M2O, true, HostTable, HostColumn),
|
|
)
|
|
sqlgraph.HasNeighbors(s, step)
|
|
})
|
|
}
|
|
|
|
// HasHostWith applies the HasEdge predicate on the "host" edge with a given conditions (other predicates).
|
|
func HasHostWith(preds ...predicate.Host) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(func(s *sql.Selector) {
|
|
step := newHostStep()
|
|
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
|
|
for _, p := range preds {
|
|
p(s)
|
|
}
|
|
})
|
|
})
|
|
}
|
|
|
|
// HasModel applies the HasEdge predicate on the "model" edge.
|
|
func HasModel() predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(func(s *sql.Selector) {
|
|
step := sqlgraph.NewStep(
|
|
sqlgraph.From(Table, FieldID),
|
|
sqlgraph.Edge(sqlgraph.M2O, true, ModelTable, ModelColumn),
|
|
)
|
|
sqlgraph.HasNeighbors(s, step)
|
|
})
|
|
}
|
|
|
|
// HasModelWith applies the HasEdge predicate on the "model" edge with a given conditions (other predicates).
|
|
func HasModelWith(preds ...predicate.Model) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(func(s *sql.Selector) {
|
|
step := newModelStep()
|
|
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
|
|
for _, p := range preds {
|
|
p(s)
|
|
}
|
|
})
|
|
})
|
|
}
|
|
|
|
// HasUser applies the HasEdge predicate on the "user" edge.
|
|
func HasUser() predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(func(s *sql.Selector) {
|
|
step := sqlgraph.NewStep(
|
|
sqlgraph.From(Table, FieldID),
|
|
sqlgraph.Edge(sqlgraph.M2O, true, UserTable, UserColumn),
|
|
)
|
|
sqlgraph.HasNeighbors(s, step)
|
|
})
|
|
}
|
|
|
|
// HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
|
|
func HasUserWith(preds ...predicate.User) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(func(s *sql.Selector) {
|
|
step := newUserStep()
|
|
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
|
|
for _, p := range preds {
|
|
p(s)
|
|
}
|
|
})
|
|
})
|
|
}
|
|
|
|
// HasTasks applies the HasEdge predicate on the "tasks" edge.
|
|
func HasTasks() predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(func(s *sql.Selector) {
|
|
step := sqlgraph.NewStep(
|
|
sqlgraph.From(Table, FieldID),
|
|
sqlgraph.Edge(sqlgraph.M2M, false, TasksTable, TasksPrimaryKey...),
|
|
)
|
|
sqlgraph.HasNeighbors(s, step)
|
|
})
|
|
}
|
|
|
|
// HasTasksWith applies the HasEdge predicate on the "tasks" edge with a given conditions (other predicates).
|
|
func HasTasksWith(preds ...predicate.Task) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(func(s *sql.Selector) {
|
|
step := newTasksStep()
|
|
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
|
|
for _, p := range preds {
|
|
p(s)
|
|
}
|
|
})
|
|
})
|
|
}
|
|
|
|
// HasTaskVms applies the HasEdge predicate on the "task_vms" edge.
|
|
func HasTaskVms() predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(func(s *sql.Selector) {
|
|
step := sqlgraph.NewStep(
|
|
sqlgraph.From(Table, FieldID),
|
|
sqlgraph.Edge(sqlgraph.O2M, true, TaskVmsTable, TaskVmsColumn),
|
|
)
|
|
sqlgraph.HasNeighbors(s, step)
|
|
})
|
|
}
|
|
|
|
// HasTaskVmsWith applies the HasEdge predicate on the "task_vms" edge with a given conditions (other predicates).
|
|
func HasTaskVmsWith(preds ...predicate.TaskVirtualMachine) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(func(s *sql.Selector) {
|
|
step := newTaskVmsStep()
|
|
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
|
|
for _, p := range preds {
|
|
p(s)
|
|
}
|
|
})
|
|
})
|
|
}
|
|
|
|
// And groups predicates with the AND operator between them.
|
|
func And(predicates ...predicate.VirtualMachine) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.AndPredicates(predicates...))
|
|
}
|
|
|
|
// Or groups predicates with the OR operator between them.
|
|
func Or(predicates ...predicate.VirtualMachine) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.OrPredicates(predicates...))
|
|
}
|
|
|
|
// Not applies the not operator on the given predicate.
|
|
func Not(p predicate.VirtualMachine) predicate.VirtualMachine {
|
|
return predicate.VirtualMachine(sql.NotPredicates(p))
|
|
}
|