149 lines
4.9 KiB
Go
149 lines
4.9 KiB
Go
|
// Code generated by ent, DO NOT EDIT.
|
||
|
|
||
|
package machine
|
||
|
|
||
|
import (
|
||
|
"entgo.io/ent/dialect/sql"
|
||
|
"git.rgst.io/homelab/klefki/internal/db/ent/predicate"
|
||
|
)
|
||
|
|
||
|
// ID filters vertices based on their ID field.
|
||
|
func ID(id string) predicate.Machine {
|
||
|
return predicate.Machine(sql.FieldEQ(FieldID, id))
|
||
|
}
|
||
|
|
||
|
// IDEQ applies the EQ predicate on the ID field.
|
||
|
func IDEQ(id string) predicate.Machine {
|
||
|
return predicate.Machine(sql.FieldEQ(FieldID, id))
|
||
|
}
|
||
|
|
||
|
// IDNEQ applies the NEQ predicate on the ID field.
|
||
|
func IDNEQ(id string) predicate.Machine {
|
||
|
return predicate.Machine(sql.FieldNEQ(FieldID, id))
|
||
|
}
|
||
|
|
||
|
// IDIn applies the In predicate on the ID field.
|
||
|
func IDIn(ids ...string) predicate.Machine {
|
||
|
return predicate.Machine(sql.FieldIn(FieldID, ids...))
|
||
|
}
|
||
|
|
||
|
// IDNotIn applies the NotIn predicate on the ID field.
|
||
|
func IDNotIn(ids ...string) predicate.Machine {
|
||
|
return predicate.Machine(sql.FieldNotIn(FieldID, ids...))
|
||
|
}
|
||
|
|
||
|
// IDGT applies the GT predicate on the ID field.
|
||
|
func IDGT(id string) predicate.Machine {
|
||
|
return predicate.Machine(sql.FieldGT(FieldID, id))
|
||
|
}
|
||
|
|
||
|
// IDGTE applies the GTE predicate on the ID field.
|
||
|
func IDGTE(id string) predicate.Machine {
|
||
|
return predicate.Machine(sql.FieldGTE(FieldID, id))
|
||
|
}
|
||
|
|
||
|
// IDLT applies the LT predicate on the ID field.
|
||
|
func IDLT(id string) predicate.Machine {
|
||
|
return predicate.Machine(sql.FieldLT(FieldID, id))
|
||
|
}
|
||
|
|
||
|
// IDLTE applies the LTE predicate on the ID field.
|
||
|
func IDLTE(id string) predicate.Machine {
|
||
|
return predicate.Machine(sql.FieldLTE(FieldID, id))
|
||
|
}
|
||
|
|
||
|
// IDEqualFold applies the EqualFold predicate on the ID field.
|
||
|
func IDEqualFold(id string) predicate.Machine {
|
||
|
return predicate.Machine(sql.FieldEqualFold(FieldID, id))
|
||
|
}
|
||
|
|
||
|
// IDContainsFold applies the ContainsFold predicate on the ID field.
|
||
|
func IDContainsFold(id string) predicate.Machine {
|
||
|
return predicate.Machine(sql.FieldContainsFold(FieldID, id))
|
||
|
}
|
||
|
|
||
|
// PublicKey applies equality check predicate on the "public_key" field. It's identical to PublicKeyEQ.
|
||
|
func PublicKey(v string) predicate.Machine {
|
||
|
return predicate.Machine(sql.FieldEQ(FieldPublicKey, v))
|
||
|
}
|
||
|
|
||
|
// PublicKeyEQ applies the EQ predicate on the "public_key" field.
|
||
|
func PublicKeyEQ(v string) predicate.Machine {
|
||
|
return predicate.Machine(sql.FieldEQ(FieldPublicKey, v))
|
||
|
}
|
||
|
|
||
|
// PublicKeyNEQ applies the NEQ predicate on the "public_key" field.
|
||
|
func PublicKeyNEQ(v string) predicate.Machine {
|
||
|
return predicate.Machine(sql.FieldNEQ(FieldPublicKey, v))
|
||
|
}
|
||
|
|
||
|
// PublicKeyIn applies the In predicate on the "public_key" field.
|
||
|
func PublicKeyIn(vs ...string) predicate.Machine {
|
||
|
return predicate.Machine(sql.FieldIn(FieldPublicKey, vs...))
|
||
|
}
|
||
|
|
||
|
// PublicKeyNotIn applies the NotIn predicate on the "public_key" field.
|
||
|
func PublicKeyNotIn(vs ...string) predicate.Machine {
|
||
|
return predicate.Machine(sql.FieldNotIn(FieldPublicKey, vs...))
|
||
|
}
|
||
|
|
||
|
// PublicKeyGT applies the GT predicate on the "public_key" field.
|
||
|
func PublicKeyGT(v string) predicate.Machine {
|
||
|
return predicate.Machine(sql.FieldGT(FieldPublicKey, v))
|
||
|
}
|
||
|
|
||
|
// PublicKeyGTE applies the GTE predicate on the "public_key" field.
|
||
|
func PublicKeyGTE(v string) predicate.Machine {
|
||
|
return predicate.Machine(sql.FieldGTE(FieldPublicKey, v))
|
||
|
}
|
||
|
|
||
|
// PublicKeyLT applies the LT predicate on the "public_key" field.
|
||
|
func PublicKeyLT(v string) predicate.Machine {
|
||
|
return predicate.Machine(sql.FieldLT(FieldPublicKey, v))
|
||
|
}
|
||
|
|
||
|
// PublicKeyLTE applies the LTE predicate on the "public_key" field.
|
||
|
func PublicKeyLTE(v string) predicate.Machine {
|
||
|
return predicate.Machine(sql.FieldLTE(FieldPublicKey, v))
|
||
|
}
|
||
|
|
||
|
// PublicKeyContains applies the Contains predicate on the "public_key" field.
|
||
|
func PublicKeyContains(v string) predicate.Machine {
|
||
|
return predicate.Machine(sql.FieldContains(FieldPublicKey, v))
|
||
|
}
|
||
|
|
||
|
// PublicKeyHasPrefix applies the HasPrefix predicate on the "public_key" field.
|
||
|
func PublicKeyHasPrefix(v string) predicate.Machine {
|
||
|
return predicate.Machine(sql.FieldHasPrefix(FieldPublicKey, v))
|
||
|
}
|
||
|
|
||
|
// PublicKeyHasSuffix applies the HasSuffix predicate on the "public_key" field.
|
||
|
func PublicKeyHasSuffix(v string) predicate.Machine {
|
||
|
return predicate.Machine(sql.FieldHasSuffix(FieldPublicKey, v))
|
||
|
}
|
||
|
|
||
|
// PublicKeyEqualFold applies the EqualFold predicate on the "public_key" field.
|
||
|
func PublicKeyEqualFold(v string) predicate.Machine {
|
||
|
return predicate.Machine(sql.FieldEqualFold(FieldPublicKey, v))
|
||
|
}
|
||
|
|
||
|
// PublicKeyContainsFold applies the ContainsFold predicate on the "public_key" field.
|
||
|
func PublicKeyContainsFold(v string) predicate.Machine {
|
||
|
return predicate.Machine(sql.FieldContainsFold(FieldPublicKey, v))
|
||
|
}
|
||
|
|
||
|
// And groups predicates with the AND operator between them.
|
||
|
func And(predicates ...predicate.Machine) predicate.Machine {
|
||
|
return predicate.Machine(sql.AndPredicates(predicates...))
|
||
|
}
|
||
|
|
||
|
// Or groups predicates with the OR operator between them.
|
||
|
func Or(predicates ...predicate.Machine) predicate.Machine {
|
||
|
return predicate.Machine(sql.OrPredicates(predicates...))
|
||
|
}
|
||
|
|
||
|
// Not applies the not operator on the given predicate.
|
||
|
func Not(p predicate.Machine) predicate.Machine {
|
||
|
return predicate.Machine(sql.NotPredicates(p))
|
||
|
}
|