cluster

package
v0.0.0-...-908e76c Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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
)

Columns holds all SQL columns for cluster fields.

Functions

func And

func And(predicates ...predicate.Cluster) predicate.Cluster

And groups predicates with the AND operator between them.

func DisplayName

func DisplayName(v string) predicate.Cluster

DisplayName applies equality check predicate on the "display_name" field. It's identical to DisplayNameEQ.

func DisplayNameContains

func DisplayNameContains(v string) predicate.Cluster

DisplayNameContains applies the Contains predicate on the "display_name" field.

func DisplayNameContainsFold

func DisplayNameContainsFold(v string) predicate.Cluster

DisplayNameContainsFold applies the ContainsFold predicate on the "display_name" field.

func DisplayNameEQ

func DisplayNameEQ(v string) predicate.Cluster

DisplayNameEQ applies the EQ predicate on the "display_name" field.

func DisplayNameEqualFold

func DisplayNameEqualFold(v string) predicate.Cluster

DisplayNameEqualFold applies the EqualFold predicate on the "display_name" field.

func DisplayNameGT

func DisplayNameGT(v string) predicate.Cluster

DisplayNameGT applies the GT predicate on the "display_name" field.

func DisplayNameGTE

func DisplayNameGTE(v string) predicate.Cluster

DisplayNameGTE applies the GTE predicate on the "display_name" field.

func DisplayNameHasPrefix

func DisplayNameHasPrefix(v string) predicate.Cluster

DisplayNameHasPrefix applies the HasPrefix predicate on the "display_name" field.

func DisplayNameHasSuffix

func DisplayNameHasSuffix(v string) predicate.Cluster

DisplayNameHasSuffix applies the HasSuffix predicate on the "display_name" field.

func DisplayNameIn

func DisplayNameIn(vs ...string) predicate.Cluster

DisplayNameIn applies the In predicate on the "display_name" field.

func DisplayNameLT

func DisplayNameLT(v string) predicate.Cluster

DisplayNameLT applies the LT predicate on the "display_name" field.

func DisplayNameLTE

func DisplayNameLTE(v string) predicate.Cluster

DisplayNameLTE applies the LTE predicate on the "display_name" field.

func DisplayNameNEQ

func DisplayNameNEQ(v string) predicate.Cluster

DisplayNameNEQ applies the NEQ predicate on the "display_name" field.

func DisplayNameNotIn

func DisplayNameNotIn(vs ...string) predicate.Cluster

DisplayNameNotIn applies the NotIn predicate on the "display_name" field.

func ID

func ID(id int64) predicate.Cluster

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int64) predicate.Cluster

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int64) predicate.Cluster

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int64) predicate.Cluster

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int64) predicate.Cluster

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int64) predicate.Cluster

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int64) predicate.Cluster

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int64) predicate.Cluster

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int64) predicate.Cluster

IDNotIn applies the NotIn predicate on the ID field.

func MachineType

func MachineType(v int32) predicate.Cluster

MachineType applies equality check predicate on the "machine_type" field. It's identical to MachineTypeEQ.

func MachineTypeEQ

func MachineTypeEQ(v int32) predicate.Cluster

MachineTypeEQ applies the EQ predicate on the "machine_type" field.

func MachineTypeGT

func MachineTypeGT(v int32) predicate.Cluster

MachineTypeGT applies the GT predicate on the "machine_type" field.

func MachineTypeGTE

func MachineTypeGTE(v int32) predicate.Cluster

MachineTypeGTE applies the GTE predicate on the "machine_type" field.

func MachineTypeIn

func MachineTypeIn(vs ...int32) predicate.Cluster

MachineTypeIn applies the In predicate on the "machine_type" field.

func MachineTypeLT

func MachineTypeLT(v int32) predicate.Cluster

MachineTypeLT applies the LT predicate on the "machine_type" field.

func MachineTypeLTE

func MachineTypeLTE(v int32) predicate.Cluster

MachineTypeLTE applies the LTE predicate on the "machine_type" field.

func MachineTypeNEQ

func MachineTypeNEQ(v int32) predicate.Cluster

MachineTypeNEQ applies the NEQ predicate on the "machine_type" field.

func MachineTypeNotIn

func MachineTypeNotIn(vs ...int32) predicate.Cluster

MachineTypeNotIn applies the NotIn predicate on the "machine_type" field.

func Name

func Name(v string) predicate.Cluster

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

func NameContains

func NameContains(v string) predicate.Cluster

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

func NameContainsFold

func NameContainsFold(v string) predicate.Cluster

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

func NameEQ

func NameEQ(v string) predicate.Cluster

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

func NameEqualFold

func NameEqualFold(v string) predicate.Cluster

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

func NameGT

func NameGT(v string) predicate.Cluster

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

func NameGTE

func NameGTE(v string) predicate.Cluster

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.Cluster

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.Cluster

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.Cluster

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

func NameLTE

func NameLTE(v string) predicate.Cluster

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

func NameNEQ

func NameNEQ(v string) predicate.Cluster

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

func NameNotIn

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

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

func Not

Not applies the not operator on the given predicate.

func NumNodes

func NumNodes(v int32) predicate.Cluster

NumNodes applies equality check predicate on the "num_nodes" field. It's identical to NumNodesEQ.

func NumNodesEQ

func NumNodesEQ(v int32) predicate.Cluster

NumNodesEQ applies the EQ predicate on the "num_nodes" field.

func NumNodesGT

func NumNodesGT(v int32) predicate.Cluster

NumNodesGT applies the GT predicate on the "num_nodes" field.

func NumNodesGTE

func NumNodesGTE(v int32) predicate.Cluster

NumNodesGTE applies the GTE predicate on the "num_nodes" field.

func NumNodesIn

func NumNodesIn(vs ...int32) predicate.Cluster

NumNodesIn applies the In predicate on the "num_nodes" field.

func NumNodesLT

func NumNodesLT(v int32) predicate.Cluster

NumNodesLT applies the LT predicate on the "num_nodes" field.

func NumNodesLTE

func NumNodesLTE(v int32) predicate.Cluster

NumNodesLTE applies the LTE predicate on the "num_nodes" field.

func NumNodesNEQ

func NumNodesNEQ(v int32) predicate.Cluster

NumNodesNEQ applies the NEQ predicate on the "num_nodes" field.

func NumNodesNotIn

func NumNodesNotIn(vs ...int32) predicate.Cluster

NumNodesNotIn applies the NotIn predicate on the "num_nodes" field.

func Or

func Or(predicates ...predicate.Cluster) predicate.Cluster

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

type OrderOption

type OrderOption func(*sql.Selector)

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.

Jump to

Keyboard shortcuts

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