Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Team) 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 Description(v string) predicate.Team
- func DescriptionContains(v string) predicate.Team
- func DescriptionContainsFold(v string) predicate.Team
- func DescriptionEQ(v string) predicate.Team
- func DescriptionEqualFold(v string) predicate.Team
- func DescriptionGT(v string) predicate.Team
- func DescriptionGTE(v string) predicate.Team
- func DescriptionHasPrefix(v string) predicate.Team
- func DescriptionHasSuffix(v string) predicate.Team
- func DescriptionIn(vs ...string) predicate.Team
- func DescriptionIsNil() predicate.Team
- func DescriptionLT(v string) predicate.Team
- func DescriptionLTE(v string) predicate.Team
- func DescriptionNEQ(v string) predicate.Team
- func DescriptionNotIn(vs ...string) predicate.Team
- func DescriptionNotNil() predicate.Team
- func HasMembers() predicate.Team
- func HasMembersWith(preds ...predicate.User) predicate.Team
- func HasProjects() predicate.Team
- func HasProjectsWith(preds ...predicate.Project) predicate.Team
- func HasS3Sources() predicate.Team
- func HasS3SourcesWith(preds ...predicate.S3) predicate.Team
- func HasTeamWebhooks() predicate.Team
- func HasTeamWebhooksWith(preds ...predicate.Webhook) 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 KubernetesName(v string) predicate.Team
- func KubernetesNameContains(v string) predicate.Team
- func KubernetesNameContainsFold(v string) predicate.Team
- func KubernetesNameEQ(v string) predicate.Team
- func KubernetesNameEqualFold(v string) predicate.Team
- func KubernetesNameGT(v string) predicate.Team
- func KubernetesNameGTE(v string) predicate.Team
- func KubernetesNameHasPrefix(v string) predicate.Team
- func KubernetesNameHasSuffix(v string) predicate.Team
- func KubernetesNameIn(vs ...string) predicate.Team
- func KubernetesNameLT(v string) predicate.Team
- func KubernetesNameLTE(v string) predicate.Team
- func KubernetesNameNEQ(v string) predicate.Team
- func KubernetesNameNotIn(vs ...string) predicate.Team
- func KubernetesSecret(v string) predicate.Team
- func KubernetesSecretContains(v string) predicate.Team
- func KubernetesSecretContainsFold(v string) predicate.Team
- func KubernetesSecretEQ(v string) predicate.Team
- func KubernetesSecretEqualFold(v string) predicate.Team
- func KubernetesSecretGT(v string) predicate.Team
- func KubernetesSecretGTE(v string) predicate.Team
- func KubernetesSecretHasPrefix(v string) predicate.Team
- func KubernetesSecretHasSuffix(v string) predicate.Team
- func KubernetesSecretIn(vs ...string) predicate.Team
- func KubernetesSecretLT(v string) predicate.Team
- func KubernetesSecretLTE(v string) predicate.Team
- func KubernetesSecretNEQ(v string) predicate.Team
- func KubernetesSecretNotIn(vs ...string) 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 Namespace(v string) predicate.Team
- func NamespaceContains(v string) predicate.Team
- func NamespaceContainsFold(v string) predicate.Team
- func NamespaceEQ(v string) predicate.Team
- func NamespaceEqualFold(v string) predicate.Team
- func NamespaceGT(v string) predicate.Team
- func NamespaceGTE(v string) predicate.Team
- func NamespaceHasPrefix(v string) predicate.Team
- func NamespaceHasSuffix(v string) predicate.Team
- func NamespaceIn(vs ...string) predicate.Team
- func NamespaceLT(v string) predicate.Team
- func NamespaceLTE(v string) predicate.Team
- func NamespaceNEQ(v string) predicate.Team
- func NamespaceNotIn(vs ...string) predicate.Team
- func Not(p predicate.Team) predicate.Team
- func Or(predicates ...predicate.Team) predicate.Team
- func UpdatedAt(v time.Time) predicate.Team
- func UpdatedAtEQ(v time.Time) predicate.Team
- func UpdatedAtGT(v time.Time) predicate.Team
- func UpdatedAtGTE(v time.Time) predicate.Team
- func UpdatedAtIn(vs ...time.Time) predicate.Team
- func UpdatedAtLT(v time.Time) predicate.Team
- func UpdatedAtLTE(v time.Time) predicate.Team
- func UpdatedAtNEQ(v time.Time) predicate.Team
- func UpdatedAtNotIn(vs ...time.Time) predicate.Team
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDescription(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByKubernetesName(opts ...sql.OrderTermOption) OrderOption
- func ByKubernetesSecret(opts ...sql.OrderTermOption) OrderOption
- func ByMembers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByMembersCount(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByNamespace(opts ...sql.OrderTermOption) OrderOption
- func ByProjects(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByProjectsCount(opts ...sql.OrderTermOption) OrderOption
- func ByS3Sources(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByS3SourcesCount(opts ...sql.OrderTermOption) OrderOption
- func ByTeamWebhooks(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByTeamWebhooksCount(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(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" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // FieldKubernetesName holds the string denoting the kubernetes_name field in the database. FieldKubernetesName = "kubernetes_name" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldNamespace holds the string denoting the namespace field in the database. FieldNamespace = "namespace" // FieldKubernetesSecret holds the string denoting the kubernetes_secret field in the database. FieldKubernetesSecret = "kubernetes_secret" // FieldDescription holds the string denoting the description field in the database. FieldDescription = "description" // EdgeProjects holds the string denoting the projects edge name in mutations. EdgeProjects = "projects" // EdgeS3Sources holds the string denoting the s3_sources edge name in mutations. EdgeS3Sources = "s3_sources" // EdgeMembers holds the string denoting the members edge name in mutations. EdgeMembers = "members" // EdgeTeamWebhooks holds the string denoting the team_webhooks edge name in mutations. EdgeTeamWebhooks = "team_webhooks" // Table holds the table name of the team in the database. Table = "teams" // ProjectsTable is the table that holds the projects relation/edge. ProjectsTable = "projects" // ProjectsInverseTable is the table name for the Project entity. // It exists in this package in order to avoid circular dependency with the "project" package. ProjectsInverseTable = "projects" // ProjectsColumn is the table column denoting the projects relation/edge. ProjectsColumn = "team_id" // S3SourcesTable is the table that holds the s3_sources relation/edge. S3SourcesTable = "s3_sources" // S3SourcesInverseTable is the table name for the S3 entity. // It exists in this package in order to avoid circular dependency with the "s3" package. S3SourcesInverseTable = "s3_sources" // S3SourcesColumn is the table column denoting the s3_sources relation/edge. S3SourcesColumn = "team_id" // MembersTable is the table that holds the members relation/edge. The primary key declared below. MembersTable = "user_teams" // MembersInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. MembersInverseTable = "users" // TeamWebhooksTable is the table that holds the team_webhooks relation/edge. TeamWebhooksTable = "webhooks" // TeamWebhooksInverseTable is the table name for the Webhook entity. // It exists in this package in order to avoid circular dependency with the "webhook" package. TeamWebhooksInverseTable = "webhooks" // TeamWebhooksColumn is the table column denoting the team_webhooks relation/edge. TeamWebhooksColumn = "team_id" )
Variables ¶
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultUpdatedAt holds the default value on creation for the "updated_at" field. DefaultUpdatedAt func() time.Time // UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field. UpdateDefaultUpdatedAt func() time.Time // KubernetesNameValidator is a validator for the "kubernetes_name" field. It is called by the builders before save. KubernetesNameValidator func(string) error // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldKubernetesName, FieldName, FieldNamespace, FieldKubernetesSecret, FieldDescription, }
Columns holds all SQL columns for team fields.
var ( // MembersPrimaryKey and MembersColumn2 are the table columns denoting the // primary key for the members relation (M2M). MembersPrimaryKey = []string{"user_id", "team_id"} )
Functions ¶
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 Description ¶
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶
DescriptionIn applies the In predicate on the "description" field.
func DescriptionIsNil ¶
DescriptionIsNil applies the IsNil predicate on the "description" field.
func DescriptionLT ¶
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶
DescriptionNotIn applies the NotIn predicate on the "description" field.
func DescriptionNotNil ¶
DescriptionNotNil applies the NotNil predicate on the "description" field.
func HasMembers ¶
HasMembers applies the HasEdge predicate on the "members" edge.
func HasMembersWith ¶
HasMembersWith applies the HasEdge predicate on the "members" edge with a given conditions (other predicates).
func HasProjects ¶
HasProjects applies the HasEdge predicate on the "projects" edge.
func HasProjectsWith ¶
HasProjectsWith applies the HasEdge predicate on the "projects" edge with a given conditions (other predicates).
func HasS3Sources ¶
HasS3Sources applies the HasEdge predicate on the "s3_sources" edge.
func HasS3SourcesWith ¶
HasS3SourcesWith applies the HasEdge predicate on the "s3_sources" edge with a given conditions (other predicates).
func HasTeamWebhooks ¶
HasTeamWebhooks applies the HasEdge predicate on the "team_webhooks" edge.
func HasTeamWebhooksWith ¶
HasTeamWebhooksWith applies the HasEdge predicate on the "team_webhooks" edge with a given conditions (other predicates).
func KubernetesName ¶
KubernetesName applies equality check predicate on the "kubernetes_name" field. It's identical to KubernetesNameEQ.
func KubernetesNameContains ¶
KubernetesNameContains applies the Contains predicate on the "kubernetes_name" field.
func KubernetesNameContainsFold ¶
KubernetesNameContainsFold applies the ContainsFold predicate on the "kubernetes_name" field.
func KubernetesNameEQ ¶
KubernetesNameEQ applies the EQ predicate on the "kubernetes_name" field.
func KubernetesNameEqualFold ¶
KubernetesNameEqualFold applies the EqualFold predicate on the "kubernetes_name" field.
func KubernetesNameGT ¶
KubernetesNameGT applies the GT predicate on the "kubernetes_name" field.
func KubernetesNameGTE ¶
KubernetesNameGTE applies the GTE predicate on the "kubernetes_name" field.
func KubernetesNameHasPrefix ¶
KubernetesNameHasPrefix applies the HasPrefix predicate on the "kubernetes_name" field.
func KubernetesNameHasSuffix ¶
KubernetesNameHasSuffix applies the HasSuffix predicate on the "kubernetes_name" field.
func KubernetesNameIn ¶
KubernetesNameIn applies the In predicate on the "kubernetes_name" field.
func KubernetesNameLT ¶
KubernetesNameLT applies the LT predicate on the "kubernetes_name" field.
func KubernetesNameLTE ¶
KubernetesNameLTE applies the LTE predicate on the "kubernetes_name" field.
func KubernetesNameNEQ ¶
KubernetesNameNEQ applies the NEQ predicate on the "kubernetes_name" field.
func KubernetesNameNotIn ¶
KubernetesNameNotIn applies the NotIn predicate on the "kubernetes_name" field.
func KubernetesSecret ¶
KubernetesSecret applies equality check predicate on the "kubernetes_secret" field. It's identical to KubernetesSecretEQ.
func KubernetesSecretContains ¶
KubernetesSecretContains applies the Contains predicate on the "kubernetes_secret" field.
func KubernetesSecretContainsFold ¶
KubernetesSecretContainsFold applies the ContainsFold predicate on the "kubernetes_secret" field.
func KubernetesSecretEQ ¶
KubernetesSecretEQ applies the EQ predicate on the "kubernetes_secret" field.
func KubernetesSecretEqualFold ¶
KubernetesSecretEqualFold applies the EqualFold predicate on the "kubernetes_secret" field.
func KubernetesSecretGT ¶
KubernetesSecretGT applies the GT predicate on the "kubernetes_secret" field.
func KubernetesSecretGTE ¶
KubernetesSecretGTE applies the GTE predicate on the "kubernetes_secret" field.
func KubernetesSecretHasPrefix ¶
KubernetesSecretHasPrefix applies the HasPrefix predicate on the "kubernetes_secret" field.
func KubernetesSecretHasSuffix ¶
KubernetesSecretHasSuffix applies the HasSuffix predicate on the "kubernetes_secret" field.
func KubernetesSecretIn ¶
KubernetesSecretIn applies the In predicate on the "kubernetes_secret" field.
func KubernetesSecretLT ¶
KubernetesSecretLT applies the LT predicate on the "kubernetes_secret" field.
func KubernetesSecretLTE ¶
KubernetesSecretLTE applies the LTE predicate on the "kubernetes_secret" field.
func KubernetesSecretNEQ ¶
KubernetesSecretNEQ applies the NEQ predicate on the "kubernetes_secret" field.
func KubernetesSecretNotIn ¶
KubernetesSecretNotIn applies the NotIn predicate on the "kubernetes_secret" 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 Namespace ¶
Namespace applies equality check predicate on the "namespace" field. It's identical to NamespaceEQ.
func NamespaceContains ¶
NamespaceContains applies the Contains predicate on the "namespace" field.
func NamespaceContainsFold ¶
NamespaceContainsFold applies the ContainsFold predicate on the "namespace" field.
func NamespaceEQ ¶
NamespaceEQ applies the EQ predicate on the "namespace" field.
func NamespaceEqualFold ¶
NamespaceEqualFold applies the EqualFold predicate on the "namespace" field.
func NamespaceGT ¶
NamespaceGT applies the GT predicate on the "namespace" field.
func NamespaceGTE ¶
NamespaceGTE applies the GTE predicate on the "namespace" field.
func NamespaceHasPrefix ¶
NamespaceHasPrefix applies the HasPrefix predicate on the "namespace" field.
func NamespaceHasSuffix ¶
NamespaceHasSuffix applies the HasSuffix predicate on the "namespace" field.
func NamespaceIn ¶
NamespaceIn applies the In predicate on the "namespace" field.
func NamespaceLT ¶
NamespaceLT applies the LT predicate on the "namespace" field.
func NamespaceLTE ¶
NamespaceLTE applies the LTE predicate on the "namespace" field.
func NamespaceNEQ ¶
NamespaceNEQ applies the NEQ predicate on the "namespace" field.
func NamespaceNotIn ¶
NamespaceNotIn applies the NotIn predicate on the "namespace" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" 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 ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByDescription ¶
func ByDescription(opts ...sql.OrderTermOption) OrderOption
ByDescription orders the results by the description field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByKubernetesName ¶
func ByKubernetesName(opts ...sql.OrderTermOption) OrderOption
ByKubernetesName orders the results by the kubernetes_name field.
func ByKubernetesSecret ¶
func ByKubernetesSecret(opts ...sql.OrderTermOption) OrderOption
ByKubernetesSecret orders the results by the kubernetes_secret field.
func ByMembers ¶
func ByMembers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByMembers orders the results by members terms.
func ByMembersCount ¶
func ByMembersCount(opts ...sql.OrderTermOption) OrderOption
ByMembersCount orders the results by members count.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByNamespace ¶
func ByNamespace(opts ...sql.OrderTermOption) OrderOption
ByNamespace orders the results by the namespace field.
func ByProjects ¶
func ByProjects(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByProjects orders the results by projects terms.
func ByProjectsCount ¶
func ByProjectsCount(opts ...sql.OrderTermOption) OrderOption
ByProjectsCount orders the results by projects count.
func ByS3Sources ¶
func ByS3Sources(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByS3Sources orders the results by s3_sources terms.
func ByS3SourcesCount ¶
func ByS3SourcesCount(opts ...sql.OrderTermOption) OrderOption
ByS3SourcesCount orders the results by s3_sources count.
func ByTeamWebhooks ¶
func ByTeamWebhooks(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByTeamWebhooks orders the results by team_webhooks terms.
func ByTeamWebhooksCount ¶
func ByTeamWebhooksCount(opts ...sql.OrderTermOption) OrderOption
ByTeamWebhooksCount orders the results by team_webhooks count.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.