Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Cluster) predicate.Cluster
- func DisplayName(v string) predicate.Cluster
- func DisplayNameContains(v string) predicate.Cluster
- func DisplayNameContainsFold(v string) predicate.Cluster
- func DisplayNameEQ(v string) predicate.Cluster
- func DisplayNameEqualFold(v string) predicate.Cluster
- func DisplayNameGT(v string) predicate.Cluster
- func DisplayNameGTE(v string) predicate.Cluster
- func DisplayNameHasPrefix(v string) predicate.Cluster
- func DisplayNameHasSuffix(v string) predicate.Cluster
- func DisplayNameIn(vs ...string) predicate.Cluster
- func DisplayNameLT(v string) predicate.Cluster
- func DisplayNameLTE(v string) predicate.Cluster
- func DisplayNameNEQ(v string) predicate.Cluster
- func DisplayNameNotIn(vs ...string) predicate.Cluster
- func ID(id int64) predicate.Cluster
- func IDEQ(id int64) predicate.Cluster
- func IDGT(id int64) predicate.Cluster
- func IDGTE(id int64) predicate.Cluster
- func IDIn(ids ...int64) predicate.Cluster
- func IDLT(id int64) predicate.Cluster
- func IDLTE(id int64) predicate.Cluster
- func IDNEQ(id int64) predicate.Cluster
- func IDNotIn(ids ...int64) predicate.Cluster
- func MachineType(v int32) predicate.Cluster
- func MachineTypeEQ(v int32) predicate.Cluster
- func MachineTypeGT(v int32) predicate.Cluster
- func MachineTypeGTE(v int32) predicate.Cluster
- func MachineTypeIn(vs ...int32) predicate.Cluster
- func MachineTypeLT(v int32) predicate.Cluster
- func MachineTypeLTE(v int32) predicate.Cluster
- func MachineTypeNEQ(v int32) predicate.Cluster
- func MachineTypeNotIn(vs ...int32) predicate.Cluster
- func Name(v string) predicate.Cluster
- func NameContains(v string) predicate.Cluster
- func NameContainsFold(v string) predicate.Cluster
- func NameEQ(v string) predicate.Cluster
- func NameEqualFold(v string) predicate.Cluster
- func NameGT(v string) predicate.Cluster
- func NameGTE(v string) predicate.Cluster
- func NameHasPrefix(v string) predicate.Cluster
- func NameHasSuffix(v string) predicate.Cluster
- func NameIn(vs ...string) predicate.Cluster
- func NameLT(v string) predicate.Cluster
- func NameLTE(v string) predicate.Cluster
- func NameNEQ(v string) predicate.Cluster
- func NameNotIn(vs ...string) predicate.Cluster
- func Not(p predicate.Cluster) predicate.Cluster
- func NumNodes(v int32) predicate.Cluster
- func NumNodesEQ(v int32) predicate.Cluster
- func NumNodesGT(v int32) predicate.Cluster
- func NumNodesGTE(v int32) predicate.Cluster
- func NumNodesIn(vs ...int32) predicate.Cluster
- func NumNodesLT(v int32) predicate.Cluster
- func NumNodesLTE(v int32) predicate.Cluster
- func NumNodesNEQ(v int32) predicate.Cluster
- func NumNodesNotIn(vs ...int32) predicate.Cluster
- func Or(predicates ...predicate.Cluster) predicate.Cluster
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
const ( // Label holds the string label denoting the cluster type in the database. Label = "cluster" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldDisplayName holds the string denoting the display_name field in the database. FieldDisplayName = "display_name" // FieldNumNodes holds the string denoting the num_nodes field in the database. FieldNumNodes = "num_nodes" // FieldMachineType holds the string denoting the machine_type field in the database. FieldMachineType = "machine_type" // Table holds the table name of the cluster in the database. Table = "clusters" )
Variables ¶
var ( // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // NumNodesValidator is a validator for the "num_nodes" field. It is called by the builders before save. NumNodesValidator func(int32) error // MachineTypeValidator is a validator for the "machine_type" field. It is called by the builders before save. MachineTypeValidator func(int32) error )
var Columns = []string{ FieldID, FieldName, FieldDisplayName, FieldNumNodes, FieldMachineType, }
Columns holds all SQL columns for cluster fields.
Functions ¶
func DisplayName ¶
DisplayName applies equality check predicate on the "display_name" field. It's identical to DisplayNameEQ.
func DisplayNameContains ¶
DisplayNameContains applies the Contains predicate on the "display_name" field.
func DisplayNameContainsFold ¶
DisplayNameContainsFold applies the ContainsFold predicate on the "display_name" field.
func DisplayNameEQ ¶
DisplayNameEQ applies the EQ predicate on the "display_name" field.
func DisplayNameEqualFold ¶
DisplayNameEqualFold applies the EqualFold predicate on the "display_name" field.
func DisplayNameGT ¶
DisplayNameGT applies the GT predicate on the "display_name" field.
func DisplayNameGTE ¶
DisplayNameGTE applies the GTE predicate on the "display_name" field.
func DisplayNameHasPrefix ¶
DisplayNameHasPrefix applies the HasPrefix predicate on the "display_name" field.
func DisplayNameHasSuffix ¶
DisplayNameHasSuffix applies the HasSuffix predicate on the "display_name" field.
func DisplayNameIn ¶
DisplayNameIn applies the In predicate on the "display_name" field.
func DisplayNameLT ¶
DisplayNameLT applies the LT predicate on the "display_name" field.
func DisplayNameLTE ¶
DisplayNameLTE applies the LTE predicate on the "display_name" field.
func DisplayNameNEQ ¶
DisplayNameNEQ applies the NEQ predicate on the "display_name" field.
func DisplayNameNotIn ¶
DisplayNameNotIn applies the NotIn predicate on the "display_name" field.
func MachineType ¶
MachineType applies equality check predicate on the "machine_type" field. It's identical to MachineTypeEQ.
func MachineTypeEQ ¶
MachineTypeEQ applies the EQ predicate on the "machine_type" field.
func MachineTypeGT ¶
MachineTypeGT applies the GT predicate on the "machine_type" field.
func MachineTypeGTE ¶
MachineTypeGTE applies the GTE predicate on the "machine_type" field.
func MachineTypeIn ¶
MachineTypeIn applies the In predicate on the "machine_type" field.
func MachineTypeLT ¶
MachineTypeLT applies the LT predicate on the "machine_type" field.
func MachineTypeLTE ¶
MachineTypeLTE applies the LTE predicate on the "machine_type" field.
func MachineTypeNEQ ¶
MachineTypeNEQ applies the NEQ predicate on the "machine_type" field.
func MachineTypeNotIn ¶
MachineTypeNotIn applies the NotIn predicate on the "machine_type" field.
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func NumNodes ¶
NumNodes applies equality check predicate on the "num_nodes" field. It's identical to NumNodesEQ.
func NumNodesEQ ¶
NumNodesEQ applies the EQ predicate on the "num_nodes" field.
func NumNodesGT ¶
NumNodesGT applies the GT predicate on the "num_nodes" field.
func NumNodesGTE ¶
NumNodesGTE applies the GTE predicate on the "num_nodes" field.
func NumNodesIn ¶
NumNodesIn applies the In predicate on the "num_nodes" field.
func NumNodesLT ¶
NumNodesLT applies the LT predicate on the "num_nodes" field.
func NumNodesLTE ¶
NumNodesLTE applies the LTE predicate on the "num_nodes" field.
func NumNodesNEQ ¶
NumNodesNEQ applies the NEQ predicate on the "num_nodes" field.
func NumNodesNotIn ¶
NumNodesNotIn applies the NotIn predicate on the "num_nodes" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Cluster queries.
func ByDisplayName ¶
func ByDisplayName(opts ...sql.OrderTermOption) OrderOption
ByDisplayName orders the results by the display_name field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByMachineType ¶
func ByMachineType(opts ...sql.OrderTermOption) OrderOption
ByMachineType orders the results by the machine_type field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByNumNodes ¶
func ByNumNodes(opts ...sql.OrderTermOption) OrderOption
ByNumNodes orders the results by the num_nodes field.