tier

package
v0.0.0-...-414a8a2 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the tier type in the database.
	Label = "tier"
	// 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"
	// FieldDiskMB holds the string denoting the disk_mb field in the database.
	FieldDiskMB = "disk_mb"
	// FieldConcurrentInstances holds the string denoting the concurrent_instances field in the database.
	FieldConcurrentInstances = "concurrent_instances"
	// FieldMaxLengthHours holds the string denoting the max_length_hours field in the database.
	FieldMaxLengthHours = "max_length_hours"
	// EdgeTeams holds the string denoting the teams edge name in mutations.
	EdgeTeams = "teams"
	// Table holds the table name of the tier in the database.
	Table = "tiers"
	// TeamsTable is the table that holds the teams relation/edge.
	TeamsTable = "teams"
	// TeamsInverseTable is the table name for the Team entity.
	// It exists in this package in order to avoid circular dependency with the "team" package.
	TeamsInverseTable = "teams"
	// TeamsColumn is the table column denoting the teams relation/edge.
	TeamsColumn = "tier"
)

Variables

Columns holds all SQL columns for tier fields.

Functions

func And

func And(predicates ...predicate.Tier) predicate.Tier

And groups predicates with the AND operator between them.

func ConcurrentInstances

func ConcurrentInstances(v int64) predicate.Tier

ConcurrentInstances applies equality check predicate on the "concurrent_instances" field. It's identical to ConcurrentInstancesEQ.

func ConcurrentInstancesEQ

func ConcurrentInstancesEQ(v int64) predicate.Tier

ConcurrentInstancesEQ applies the EQ predicate on the "concurrent_instances" field.

func ConcurrentInstancesGT

func ConcurrentInstancesGT(v int64) predicate.Tier

ConcurrentInstancesGT applies the GT predicate on the "concurrent_instances" field.

func ConcurrentInstancesGTE

func ConcurrentInstancesGTE(v int64) predicate.Tier

ConcurrentInstancesGTE applies the GTE predicate on the "concurrent_instances" field.

func ConcurrentInstancesIn

func ConcurrentInstancesIn(vs ...int64) predicate.Tier

ConcurrentInstancesIn applies the In predicate on the "concurrent_instances" field.

func ConcurrentInstancesLT

func ConcurrentInstancesLT(v int64) predicate.Tier

ConcurrentInstancesLT applies the LT predicate on the "concurrent_instances" field.

func ConcurrentInstancesLTE

func ConcurrentInstancesLTE(v int64) predicate.Tier

ConcurrentInstancesLTE applies the LTE predicate on the "concurrent_instances" field.

func ConcurrentInstancesNEQ

func ConcurrentInstancesNEQ(v int64) predicate.Tier

ConcurrentInstancesNEQ applies the NEQ predicate on the "concurrent_instances" field.

func ConcurrentInstancesNotIn

func ConcurrentInstancesNotIn(vs ...int64) predicate.Tier

ConcurrentInstancesNotIn applies the NotIn predicate on the "concurrent_instances" field.

func DiskMB

func DiskMB(v int64) predicate.Tier

DiskMB applies equality check predicate on the "disk_mb" field. It's identical to DiskMBEQ.

func DiskMBEQ

func DiskMBEQ(v int64) predicate.Tier

DiskMBEQ applies the EQ predicate on the "disk_mb" field.

func DiskMBGT

func DiskMBGT(v int64) predicate.Tier

DiskMBGT applies the GT predicate on the "disk_mb" field.

func DiskMBGTE

func DiskMBGTE(v int64) predicate.Tier

DiskMBGTE applies the GTE predicate on the "disk_mb" field.

func DiskMBIn

func DiskMBIn(vs ...int64) predicate.Tier

DiskMBIn applies the In predicate on the "disk_mb" field.

func DiskMBLT

func DiskMBLT(v int64) predicate.Tier

DiskMBLT applies the LT predicate on the "disk_mb" field.

func DiskMBLTE

func DiskMBLTE(v int64) predicate.Tier

DiskMBLTE applies the LTE predicate on the "disk_mb" field.

func DiskMBNEQ

func DiskMBNEQ(v int64) predicate.Tier

DiskMBNEQ applies the NEQ predicate on the "disk_mb" field.

func DiskMBNotIn

func DiskMBNotIn(vs ...int64) predicate.Tier

DiskMBNotIn applies the NotIn predicate on the "disk_mb" field.

func HasTeams

func HasTeams() predicate.Tier

HasTeams applies the HasEdge predicate on the "teams" edge.

func HasTeamsWith

func HasTeamsWith(preds ...predicate.Team) predicate.Tier

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

func ID

func ID(id string) predicate.Tier

ID filters vertices based on their ID field.

func IDContainsFold

func IDContainsFold(id string) predicate.Tier

IDContainsFold applies the ContainsFold predicate on the ID field.

func IDEQ

func IDEQ(id string) predicate.Tier

IDEQ applies the EQ predicate on the ID field.

func IDEqualFold

func IDEqualFold(id string) predicate.Tier

IDEqualFold applies the EqualFold predicate on the ID field.

func IDGT

func IDGT(id string) predicate.Tier

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.Tier

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...string) predicate.Tier

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.Tier

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.Tier

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.Tier

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...string) predicate.Tier

IDNotIn applies the NotIn predicate on the ID field.

func MaxLengthHours

func MaxLengthHours(v int64) predicate.Tier

MaxLengthHours applies equality check predicate on the "max_length_hours" field. It's identical to MaxLengthHoursEQ.

func MaxLengthHoursEQ

func MaxLengthHoursEQ(v int64) predicate.Tier

MaxLengthHoursEQ applies the EQ predicate on the "max_length_hours" field.

func MaxLengthHoursGT

func MaxLengthHoursGT(v int64) predicate.Tier

MaxLengthHoursGT applies the GT predicate on the "max_length_hours" field.

func MaxLengthHoursGTE

func MaxLengthHoursGTE(v int64) predicate.Tier

MaxLengthHoursGTE applies the GTE predicate on the "max_length_hours" field.

func MaxLengthHoursIn

func MaxLengthHoursIn(vs ...int64) predicate.Tier

MaxLengthHoursIn applies the In predicate on the "max_length_hours" field.

func MaxLengthHoursLT

func MaxLengthHoursLT(v int64) predicate.Tier

MaxLengthHoursLT applies the LT predicate on the "max_length_hours" field.

func MaxLengthHoursLTE

func MaxLengthHoursLTE(v int64) predicate.Tier

MaxLengthHoursLTE applies the LTE predicate on the "max_length_hours" field.

func MaxLengthHoursNEQ

func MaxLengthHoursNEQ(v int64) predicate.Tier

MaxLengthHoursNEQ applies the NEQ predicate on the "max_length_hours" field.

func MaxLengthHoursNotIn

func MaxLengthHoursNotIn(vs ...int64) predicate.Tier

MaxLengthHoursNotIn applies the NotIn predicate on the "max_length_hours" field.

func Name

func Name(v string) predicate.Tier

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

func NameContains

func NameContains(v string) predicate.Tier

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

func NameContainsFold

func NameContainsFold(v string) predicate.Tier

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

func NameEQ

func NameEQ(v string) predicate.Tier

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

func NameEqualFold

func NameEqualFold(v string) predicate.Tier

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

func NameGT

func NameGT(v string) predicate.Tier

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

func NameGTE

func NameGTE(v string) predicate.Tier

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.Tier

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.Tier

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.Tier

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

func NameLTE

func NameLTE(v string) predicate.Tier

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

func NameNEQ

func NameNEQ(v string) predicate.Tier

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

func NameNotIn

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

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

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Tier) predicate.Tier

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 Tier queries.

func ByConcurrentInstances

func ByConcurrentInstances(opts ...sql.OrderTermOption) OrderOption

ByConcurrentInstances orders the results by the concurrent_instances field.

func ByDiskMB

func ByDiskMB(opts ...sql.OrderTermOption) OrderOption

ByDiskMB orders the results by the disk_mb field.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByMaxLengthHours

func ByMaxLengthHours(opts ...sql.OrderTermOption) OrderOption

ByMaxLengthHours orders the results by the max_length_hours field.

func ByName

func ByName(opts ...sql.OrderTermOption) OrderOption

ByName orders the results by the name field.

func ByTeams

func ByTeams(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByTeams orders the results by teams terms.

func ByTeamsCount

func ByTeamsCount(opts ...sql.OrderTermOption) OrderOption

ByTeamsCount orders the results by teams count.

Jump to

Keyboard shortcuts

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