Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Team) predicate.Team
- func BlockedReason(v string) predicate.Team
- func BlockedReasonContains(v string) predicate.Team
- func BlockedReasonContainsFold(v string) predicate.Team
- func BlockedReasonEQ(v string) predicate.Team
- func BlockedReasonEqualFold(v string) predicate.Team
- func BlockedReasonGT(v string) predicate.Team
- func BlockedReasonGTE(v string) predicate.Team
- func BlockedReasonHasPrefix(v string) predicate.Team
- func BlockedReasonHasSuffix(v string) predicate.Team
- func BlockedReasonIn(vs ...string) predicate.Team
- func BlockedReasonIsNil() predicate.Team
- func BlockedReasonLT(v string) predicate.Team
- func BlockedReasonLTE(v string) predicate.Team
- func BlockedReasonNEQ(v string) predicate.Team
- func BlockedReasonNotIn(vs ...string) predicate.Team
- func BlockedReasonNotNil() predicate.Team
- func ClusterID(v uuid.UUID) predicate.Team
- func ClusterIDEQ(v uuid.UUID) predicate.Team
- func ClusterIDGT(v uuid.UUID) predicate.Team
- func ClusterIDGTE(v uuid.UUID) predicate.Team
- func ClusterIDIn(vs ...uuid.UUID) predicate.Team
- func ClusterIDIsNil() predicate.Team
- func ClusterIDLT(v uuid.UUID) predicate.Team
- func ClusterIDLTE(v uuid.UUID) predicate.Team
- func ClusterIDNEQ(v uuid.UUID) predicate.Team
- func ClusterIDNotIn(vs ...uuid.UUID) predicate.Team
- func ClusterIDNotNil() predicate.Team
- func CreatedAt(v time.Time) predicate.Team
- func CreatedAtEQ(v time.Time) predicate.Team
- func CreatedAtGT(v time.Time) predicate.Team
- func CreatedAtGTE(v time.Time) predicate.Team
- func CreatedAtIn(vs ...time.Time) predicate.Team
- func CreatedAtLT(v time.Time) predicate.Team
- func CreatedAtLTE(v time.Time) predicate.Team
- func CreatedAtNEQ(v time.Time) predicate.Team
- func CreatedAtNotIn(vs ...time.Time) predicate.Team
- func Email(v string) predicate.Team
- func EmailContains(v string) predicate.Team
- func EmailContainsFold(v string) predicate.Team
- func EmailEQ(v string) predicate.Team
- func EmailEqualFold(v string) predicate.Team
- func EmailGT(v string) predicate.Team
- func EmailGTE(v string) predicate.Team
- func EmailHasPrefix(v string) predicate.Team
- func EmailHasSuffix(v string) predicate.Team
- func EmailIn(vs ...string) predicate.Team
- func EmailLT(v string) predicate.Team
- func EmailLTE(v string) predicate.Team
- func EmailNEQ(v string) predicate.Team
- func EmailNotIn(vs ...string) predicate.Team
- func HasEnvs() predicate.Team
- func HasEnvsWith(preds ...predicate.Env) predicate.Team
- func HasTeamAPIKeys() predicate.Team
- func HasTeamAPIKeysWith(preds ...predicate.TeamAPIKey) predicate.Team
- func HasTeamTier() predicate.Team
- func HasTeamTierWith(preds ...predicate.Tier) predicate.Team
- func HasUsers() predicate.Team
- func HasUsersTeams() predicate.Team
- func HasUsersTeamsWith(preds ...predicate.UsersTeams) predicate.Team
- func HasUsersWith(preds ...predicate.User) predicate.Team
- func ID(id uuid.UUID) predicate.Team
- func IDEQ(id uuid.UUID) predicate.Team
- func IDGT(id uuid.UUID) predicate.Team
- func IDGTE(id uuid.UUID) predicate.Team
- func IDIn(ids ...uuid.UUID) predicate.Team
- func IDLT(id uuid.UUID) predicate.Team
- func IDLTE(id uuid.UUID) predicate.Team
- func IDNEQ(id uuid.UUID) predicate.Team
- func IDNotIn(ids ...uuid.UUID) predicate.Team
- func IsBanned(v bool) predicate.Team
- func IsBannedEQ(v bool) predicate.Team
- func IsBannedIsNil() predicate.Team
- func IsBannedNEQ(v bool) predicate.Team
- func IsBannedNotNil() predicate.Team
- func IsBlocked(v bool) predicate.Team
- func IsBlockedEQ(v bool) predicate.Team
- func IsBlockedIsNil() predicate.Team
- func IsBlockedNEQ(v bool) predicate.Team
- func IsBlockedNotNil() predicate.Team
- func Name(v string) predicate.Team
- func NameContains(v string) predicate.Team
- func NameContainsFold(v string) predicate.Team
- func NameEQ(v string) predicate.Team
- func NameEqualFold(v string) predicate.Team
- func NameGT(v string) predicate.Team
- func NameGTE(v string) predicate.Team
- func NameHasPrefix(v string) predicate.Team
- func NameHasSuffix(v string) predicate.Team
- func NameIn(vs ...string) predicate.Team
- func NameLT(v string) predicate.Team
- func NameLTE(v string) predicate.Team
- func NameNEQ(v string) predicate.Team
- func NameNotIn(vs ...string) predicate.Team
- func Not(p predicate.Team) predicate.Team
- func Or(predicates ...predicate.Team) predicate.Team
- func Tier(v string) predicate.Team
- func TierContains(v string) predicate.Team
- func TierContainsFold(v string) predicate.Team
- func TierEQ(v string) predicate.Team
- func TierEqualFold(v string) predicate.Team
- func TierGT(v string) predicate.Team
- func TierGTE(v string) predicate.Team
- func TierHasPrefix(v string) predicate.Team
- func TierHasSuffix(v string) predicate.Team
- func TierIn(vs ...string) predicate.Team
- func TierLT(v string) predicate.Team
- func TierLTE(v string) predicate.Team
- func TierNEQ(v string) predicate.Team
- func TierNotIn(vs ...string) predicate.Team
- func ValidColumn(column string) bool
- type OrderOption
- func ByBlockedReason(opts ...sql.OrderTermOption) OrderOption
- func ByClusterID(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByEmail(opts ...sql.OrderTermOption) OrderOption
- func ByEnvs(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByEnvsCount(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByIsBanned(opts ...sql.OrderTermOption) OrderOption
- func ByIsBlocked(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByTeamAPIKeys(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByTeamAPIKeysCount(opts ...sql.OrderTermOption) OrderOption
- func ByTeamTierField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByTier(opts ...sql.OrderTermOption) OrderOption
- func ByUsers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByUsersCount(opts ...sql.OrderTermOption) OrderOption
- func ByUsersTeams(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByUsersTeamsCount(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the team type in the database. Label = "team" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldIsBanned holds the string denoting the is_banned field in the database. FieldIsBanned = "is_banned" // FieldIsBlocked holds the string denoting the is_blocked field in the database. FieldIsBlocked = "is_blocked" // FieldBlockedReason holds the string denoting the blocked_reason field in the database. FieldBlockedReason = "blocked_reason" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldTier holds the string denoting the tier field in the database. FieldTier = "tier" // FieldEmail holds the string denoting the email field in the database. FieldEmail = "email" // FieldClusterID holds the string denoting the cluster_id field in the database. FieldClusterID = "cluster_id" // EdgeUsers holds the string denoting the users edge name in mutations. EdgeUsers = "users" // EdgeTeamAPIKeys holds the string denoting the team_api_keys edge name in mutations. EdgeTeamAPIKeys = "team_api_keys" // EdgeTeamTier holds the string denoting the team_tier edge name in mutations. EdgeTeamTier = "team_tier" // EdgeEnvs holds the string denoting the envs edge name in mutations. EdgeEnvs = "envs" // EdgeUsersTeams holds the string denoting the users_teams edge name in mutations. EdgeUsersTeams = "users_teams" // Table holds the table name of the team in the database. Table = "teams" // UsersTable is the table that holds the users relation/edge. The primary key declared below. UsersTable = "users_teams" // UsersInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. UsersInverseTable = "users" // TeamAPIKeysTable is the table that holds the team_api_keys relation/edge. TeamAPIKeysTable = "team_api_keys" // TeamAPIKeysInverseTable is the table name for the TeamAPIKey entity. // It exists in this package in order to avoid circular dependency with the "teamapikey" package. TeamAPIKeysInverseTable = "team_api_keys" // TeamAPIKeysColumn is the table column denoting the team_api_keys relation/edge. TeamAPIKeysColumn = "team_id" // TeamTierTable is the table that holds the team_tier relation/edge. TeamTierTable = "teams" // TeamTierInverseTable is the table name for the Tier entity. // It exists in this package in order to avoid circular dependency with the "tier" package. TeamTierInverseTable = "tiers" // TeamTierColumn is the table column denoting the team_tier relation/edge. TeamTierColumn = "tier" // EnvsTable is the table that holds the envs relation/edge. EnvsTable = "envs" // EnvsInverseTable is the table name for the Env entity. // It exists in this package in order to avoid circular dependency with the "env" package. EnvsInverseTable = "envs" // EnvsColumn is the table column denoting the envs relation/edge. EnvsColumn = "team_id" // UsersTeamsTable is the table that holds the users_teams relation/edge. UsersTeamsTable = "users_teams" // UsersTeamsInverseTable is the table name for the UsersTeams entity. // It exists in this package in order to avoid circular dependency with the "usersteams" package. UsersTeamsInverseTable = "users_teams" // UsersTeamsColumn is the table column denoting the users_teams relation/edge. UsersTeamsColumn = "team_id" )
Variables ¶
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // EmailValidator is a validator for the "email" field. It is called by the builders before save. EmailValidator func(string) error )
var Columns = []string{ FieldID, FieldCreatedAt, FieldIsBanned, FieldIsBlocked, FieldBlockedReason, FieldName, FieldTier, FieldEmail, FieldClusterID, }
Columns holds all SQL columns for team fields.
var ( // UsersPrimaryKey and UsersColumn2 are the table columns denoting the // primary key for the users relation (M2M). UsersPrimaryKey = []string{"team_id", "user_id"} )
Functions ¶
func BlockedReason ¶
BlockedReason applies equality check predicate on the "blocked_reason" field. It's identical to BlockedReasonEQ.
func BlockedReasonContains ¶
BlockedReasonContains applies the Contains predicate on the "blocked_reason" field.
func BlockedReasonContainsFold ¶
BlockedReasonContainsFold applies the ContainsFold predicate on the "blocked_reason" field.
func BlockedReasonEQ ¶
BlockedReasonEQ applies the EQ predicate on the "blocked_reason" field.
func BlockedReasonEqualFold ¶
BlockedReasonEqualFold applies the EqualFold predicate on the "blocked_reason" field.
func BlockedReasonGT ¶
BlockedReasonGT applies the GT predicate on the "blocked_reason" field.
func BlockedReasonGTE ¶
BlockedReasonGTE applies the GTE predicate on the "blocked_reason" field.
func BlockedReasonHasPrefix ¶
BlockedReasonHasPrefix applies the HasPrefix predicate on the "blocked_reason" field.
func BlockedReasonHasSuffix ¶
BlockedReasonHasSuffix applies the HasSuffix predicate on the "blocked_reason" field.
func BlockedReasonIn ¶
BlockedReasonIn applies the In predicate on the "blocked_reason" field.
func BlockedReasonIsNil ¶
BlockedReasonIsNil applies the IsNil predicate on the "blocked_reason" field.
func BlockedReasonLT ¶
BlockedReasonLT applies the LT predicate on the "blocked_reason" field.
func BlockedReasonLTE ¶
BlockedReasonLTE applies the LTE predicate on the "blocked_reason" field.
func BlockedReasonNEQ ¶
BlockedReasonNEQ applies the NEQ predicate on the "blocked_reason" field.
func BlockedReasonNotIn ¶
BlockedReasonNotIn applies the NotIn predicate on the "blocked_reason" field.
func BlockedReasonNotNil ¶
BlockedReasonNotNil applies the NotNil predicate on the "blocked_reason" field.
func ClusterID ¶
ClusterID applies equality check predicate on the "cluster_id" field. It's identical to ClusterIDEQ.
func ClusterIDEQ ¶
ClusterIDEQ applies the EQ predicate on the "cluster_id" field.
func ClusterIDGT ¶
ClusterIDGT applies the GT predicate on the "cluster_id" field.
func ClusterIDGTE ¶
ClusterIDGTE applies the GTE predicate on the "cluster_id" field.
func ClusterIDIn ¶
ClusterIDIn applies the In predicate on the "cluster_id" field.
func ClusterIDIsNil ¶
ClusterIDIsNil applies the IsNil predicate on the "cluster_id" field.
func ClusterIDLT ¶
ClusterIDLT applies the LT predicate on the "cluster_id" field.
func ClusterIDLTE ¶
ClusterIDLTE applies the LTE predicate on the "cluster_id" field.
func ClusterIDNEQ ¶
ClusterIDNEQ applies the NEQ predicate on the "cluster_id" field.
func ClusterIDNotIn ¶
ClusterIDNotIn applies the NotIn predicate on the "cluster_id" field.
func ClusterIDNotNil ¶
ClusterIDNotNil applies the NotNil predicate on the "cluster_id" field.
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func Email ¶
Email applies equality check predicate on the "email" field. It's identical to EmailEQ.
func EmailContains ¶
EmailContains applies the Contains predicate on the "email" field.
func EmailContainsFold ¶
EmailContainsFold applies the ContainsFold predicate on the "email" field.
func EmailEqualFold ¶
EmailEqualFold applies the EqualFold predicate on the "email" field.
func EmailHasPrefix ¶
EmailHasPrefix applies the HasPrefix predicate on the "email" field.
func EmailHasSuffix ¶
EmailHasSuffix applies the HasSuffix predicate on the "email" field.
func EmailNotIn ¶
EmailNotIn applies the NotIn predicate on the "email" field.
func HasEnvsWith ¶
HasEnvsWith applies the HasEdge predicate on the "envs" edge with a given conditions (other predicates).
func HasTeamAPIKeys ¶
HasTeamAPIKeys applies the HasEdge predicate on the "team_api_keys" edge.
func HasTeamAPIKeysWith ¶
func HasTeamAPIKeysWith(preds ...predicate.TeamAPIKey) predicate.Team
HasTeamAPIKeysWith applies the HasEdge predicate on the "team_api_keys" edge with a given conditions (other predicates).
func HasTeamTier ¶
HasTeamTier applies the HasEdge predicate on the "team_tier" edge.
func HasTeamTierWith ¶
HasTeamTierWith applies the HasEdge predicate on the "team_tier" edge with a given conditions (other predicates).
func HasUsersTeams ¶
HasUsersTeams applies the HasEdge predicate on the "users_teams" edge.
func HasUsersTeamsWith ¶
func HasUsersTeamsWith(preds ...predicate.UsersTeams) predicate.Team
HasUsersTeamsWith applies the HasEdge predicate on the "users_teams" edge with a given conditions (other predicates).
func HasUsersWith ¶
HasUsersWith applies the HasEdge predicate on the "users" edge with a given conditions (other predicates).
func IsBanned ¶
IsBanned applies equality check predicate on the "is_banned" field. It's identical to IsBannedEQ.
func IsBannedEQ ¶
IsBannedEQ applies the EQ predicate on the "is_banned" field.
func IsBannedIsNil ¶
IsBannedIsNil applies the IsNil predicate on the "is_banned" field.
func IsBannedNEQ ¶
IsBannedNEQ applies the NEQ predicate on the "is_banned" field.
func IsBannedNotNil ¶
IsBannedNotNil applies the NotNil predicate on the "is_banned" field.
func IsBlocked ¶
IsBlocked applies equality check predicate on the "is_blocked" field. It's identical to IsBlockedEQ.
func IsBlockedEQ ¶
IsBlockedEQ applies the EQ predicate on the "is_blocked" field.
func IsBlockedIsNil ¶
IsBlockedIsNil applies the IsNil predicate on the "is_blocked" field.
func IsBlockedNEQ ¶
IsBlockedNEQ applies the NEQ predicate on the "is_blocked" field.
func IsBlockedNotNil ¶
IsBlockedNotNil applies the NotNil predicate on the "is_blocked" 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 TierContains ¶
TierContains applies the Contains predicate on the "tier" field.
func TierContainsFold ¶
TierContainsFold applies the ContainsFold predicate on the "tier" field.
func TierEqualFold ¶
TierEqualFold applies the EqualFold predicate on the "tier" field.
func TierHasPrefix ¶
TierHasPrefix applies the HasPrefix predicate on the "tier" field.
func TierHasSuffix ¶
TierHasSuffix applies the HasSuffix predicate on the "tier" 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 Team queries.
func ByBlockedReason ¶
func ByBlockedReason(opts ...sql.OrderTermOption) OrderOption
ByBlockedReason orders the results by the blocked_reason field.
func ByClusterID ¶
func ByClusterID(opts ...sql.OrderTermOption) OrderOption
ByClusterID orders the results by the cluster_id field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByEmail ¶
func ByEmail(opts ...sql.OrderTermOption) OrderOption
ByEmail orders the results by the email field.
func ByEnvs ¶
func ByEnvs(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByEnvs orders the results by envs terms.
func ByEnvsCount ¶
func ByEnvsCount(opts ...sql.OrderTermOption) OrderOption
ByEnvsCount orders the results by envs count.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByIsBanned ¶
func ByIsBanned(opts ...sql.OrderTermOption) OrderOption
ByIsBanned orders the results by the is_banned field.
func ByIsBlocked ¶
func ByIsBlocked(opts ...sql.OrderTermOption) OrderOption
ByIsBlocked orders the results by the is_blocked field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByTeamAPIKeys ¶
func ByTeamAPIKeys(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByTeamAPIKeys orders the results by team_api_keys terms.
func ByTeamAPIKeysCount ¶
func ByTeamAPIKeysCount(opts ...sql.OrderTermOption) OrderOption
ByTeamAPIKeysCount orders the results by team_api_keys count.
func ByTeamTierField ¶
func ByTeamTierField(field string, opts ...sql.OrderTermOption) OrderOption
ByTeamTierField orders the results by team_tier field.
func ByTier ¶
func ByTier(opts ...sql.OrderTermOption) OrderOption
ByTier orders the results by the tier field.
func ByUsers ¶
func ByUsers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByUsers orders the results by users terms.
func ByUsersCount ¶
func ByUsersCount(opts ...sql.OrderTermOption) OrderOption
ByUsersCount orders the results by users count.
func ByUsersTeams ¶
func ByUsersTeams(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByUsersTeams orders the results by users_teams terms.
func ByUsersTeamsCount ¶
func ByUsersTeamsCount(opts ...sql.OrderTermOption) OrderOption
ByUsersTeamsCount orders the results by users_teams count.