Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Tier) predicate.Tier
- func ConcurrentInstances(v int64) predicate.Tier
- func ConcurrentInstancesEQ(v int64) predicate.Tier
- func ConcurrentInstancesGT(v int64) predicate.Tier
- func ConcurrentInstancesGTE(v int64) predicate.Tier
- func ConcurrentInstancesIn(vs ...int64) predicate.Tier
- func ConcurrentInstancesLT(v int64) predicate.Tier
- func ConcurrentInstancesLTE(v int64) predicate.Tier
- func ConcurrentInstancesNEQ(v int64) predicate.Tier
- func ConcurrentInstancesNotIn(vs ...int64) predicate.Tier
- func DiskMB(v int64) predicate.Tier
- func DiskMBEQ(v int64) predicate.Tier
- func DiskMBGT(v int64) predicate.Tier
- func DiskMBGTE(v int64) predicate.Tier
- func DiskMBIn(vs ...int64) predicate.Tier
- func DiskMBLT(v int64) predicate.Tier
- func DiskMBLTE(v int64) predicate.Tier
- func DiskMBNEQ(v int64) predicate.Tier
- func DiskMBNotIn(vs ...int64) predicate.Tier
- func HasTeams() predicate.Tier
- func HasTeamsWith(preds ...predicate.Team) predicate.Tier
- func ID(id string) predicate.Tier
- func IDContainsFold(id string) predicate.Tier
- func IDEQ(id string) predicate.Tier
- func IDEqualFold(id string) predicate.Tier
- func IDGT(id string) predicate.Tier
- func IDGTE(id string) predicate.Tier
- func IDIn(ids ...string) predicate.Tier
- func IDLT(id string) predicate.Tier
- func IDLTE(id string) predicate.Tier
- func IDNEQ(id string) predicate.Tier
- func IDNotIn(ids ...string) predicate.Tier
- func MaxLengthHours(v int64) predicate.Tier
- func MaxLengthHoursEQ(v int64) predicate.Tier
- func MaxLengthHoursGT(v int64) predicate.Tier
- func MaxLengthHoursGTE(v int64) predicate.Tier
- func MaxLengthHoursIn(vs ...int64) predicate.Tier
- func MaxLengthHoursLT(v int64) predicate.Tier
- func MaxLengthHoursLTE(v int64) predicate.Tier
- func MaxLengthHoursNEQ(v int64) predicate.Tier
- func MaxLengthHoursNotIn(vs ...int64) predicate.Tier
- func Name(v string) predicate.Tier
- func NameContains(v string) predicate.Tier
- func NameContainsFold(v string) predicate.Tier
- func NameEQ(v string) predicate.Tier
- func NameEqualFold(v string) predicate.Tier
- func NameGT(v string) predicate.Tier
- func NameGTE(v string) predicate.Tier
- func NameHasPrefix(v string) predicate.Tier
- func NameHasSuffix(v string) predicate.Tier
- func NameIn(vs ...string) predicate.Tier
- func NameLT(v string) predicate.Tier
- func NameLTE(v string) predicate.Tier
- func NameNEQ(v string) predicate.Tier
- func NameNotIn(vs ...string) predicate.Tier
- func Not(p predicate.Tier) predicate.Tier
- func Or(predicates ...predicate.Tier) predicate.Tier
- func ValidColumn(column string) bool
- type OrderOption
- func ByConcurrentInstances(opts ...sql.OrderTermOption) OrderOption
- func ByDiskMB(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByMaxLengthHours(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByTeams(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByTeamsCount(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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 ¶
var Columns = []string{ FieldID, FieldName, FieldDiskMB, FieldConcurrentInstances, FieldMaxLengthHours, }
Columns holds all SQL columns for tier fields.
Functions ¶
func ConcurrentInstances ¶
ConcurrentInstances applies equality check predicate on the "concurrent_instances" field. It's identical to ConcurrentInstancesEQ.
func ConcurrentInstancesEQ ¶
ConcurrentInstancesEQ applies the EQ predicate on the "concurrent_instances" field.
func ConcurrentInstancesGT ¶
ConcurrentInstancesGT applies the GT predicate on the "concurrent_instances" field.
func ConcurrentInstancesGTE ¶
ConcurrentInstancesGTE applies the GTE predicate on the "concurrent_instances" field.
func ConcurrentInstancesIn ¶
ConcurrentInstancesIn applies the In predicate on the "concurrent_instances" field.
func ConcurrentInstancesLT ¶
ConcurrentInstancesLT applies the LT predicate on the "concurrent_instances" field.
func ConcurrentInstancesLTE ¶
ConcurrentInstancesLTE applies the LTE predicate on the "concurrent_instances" field.
func ConcurrentInstancesNEQ ¶
ConcurrentInstancesNEQ applies the NEQ predicate on the "concurrent_instances" field.
func ConcurrentInstancesNotIn ¶
ConcurrentInstancesNotIn applies the NotIn predicate on the "concurrent_instances" field.
func DiskMB ¶
DiskMB applies equality check predicate on the "disk_mb" field. It's identical to DiskMBEQ.
func DiskMBNotIn ¶
DiskMBNotIn applies the NotIn predicate on the "disk_mb" field.
func HasTeamsWith ¶
HasTeamsWith applies the HasEdge predicate on the "teams" edge with a given conditions (other predicates).
func IDContainsFold ¶
IDContainsFold applies the ContainsFold predicate on the ID field.
func IDEqualFold ¶
IDEqualFold applies the EqualFold predicate on the ID field.
func MaxLengthHours ¶
MaxLengthHours applies equality check predicate on the "max_length_hours" field. It's identical to MaxLengthHoursEQ.
func MaxLengthHoursEQ ¶
MaxLengthHoursEQ applies the EQ predicate on the "max_length_hours" field.
func MaxLengthHoursGT ¶
MaxLengthHoursGT applies the GT predicate on the "max_length_hours" field.
func MaxLengthHoursGTE ¶
MaxLengthHoursGTE applies the GTE predicate on the "max_length_hours" field.
func MaxLengthHoursIn ¶
MaxLengthHoursIn applies the In predicate on the "max_length_hours" field.
func MaxLengthHoursLT ¶
MaxLengthHoursLT applies the LT predicate on the "max_length_hours" field.
func MaxLengthHoursLTE ¶
MaxLengthHoursLTE applies the LTE predicate on the "max_length_hours" field.
func MaxLengthHoursNEQ ¶
MaxLengthHoursNEQ applies the NEQ predicate on the "max_length_hours" field.
func MaxLengthHoursNotIn ¶
MaxLengthHoursNotIn applies the NotIn predicate on the "max_length_hours" 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 ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
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.