team

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

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

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

Columns holds all SQL columns for team fields.

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

func And(predicates ...predicate.Team) predicate.Team

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Team

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Team

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Team

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Team

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.Team

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Team

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Team

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Team

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.Team

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func Description

func Description(v string) predicate.Team

Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.

func DescriptionContains

func DescriptionContains(v string) predicate.Team

DescriptionContains applies the Contains predicate on the "description" field.

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.Team

DescriptionContainsFold applies the ContainsFold predicate on the "description" field.

func DescriptionEQ

func DescriptionEQ(v string) predicate.Team

DescriptionEQ applies the EQ predicate on the "description" field.

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.Team

DescriptionEqualFold applies the EqualFold predicate on the "description" field.

func DescriptionGT

func DescriptionGT(v string) predicate.Team

DescriptionGT applies the GT predicate on the "description" field.

func DescriptionGTE

func DescriptionGTE(v string) predicate.Team

DescriptionGTE applies the GTE predicate on the "description" field.

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.Team

DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.Team

DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.

func DescriptionIn

func DescriptionIn(vs ...string) predicate.Team

DescriptionIn applies the In predicate on the "description" field.

func DescriptionIsNil

func DescriptionIsNil() predicate.Team

DescriptionIsNil applies the IsNil predicate on the "description" field.

func DescriptionLT

func DescriptionLT(v string) predicate.Team

DescriptionLT applies the LT predicate on the "description" field.

func DescriptionLTE

func DescriptionLTE(v string) predicate.Team

DescriptionLTE applies the LTE predicate on the "description" field.

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.Team

DescriptionNEQ applies the NEQ predicate on the "description" field.

func DescriptionNotIn

func DescriptionNotIn(vs ...string) predicate.Team

DescriptionNotIn applies the NotIn predicate on the "description" field.

func DescriptionNotNil

func DescriptionNotNil() predicate.Team

DescriptionNotNil applies the NotNil predicate on the "description" field.

func HasMembers

func HasMembers() predicate.Team

HasMembers applies the HasEdge predicate on the "members" edge.

func HasMembersWith

func HasMembersWith(preds ...predicate.User) predicate.Team

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

func HasProjects

func HasProjects() predicate.Team

HasProjects applies the HasEdge predicate on the "projects" edge.

func HasProjectsWith

func HasProjectsWith(preds ...predicate.Project) predicate.Team

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

func HasS3Sources

func HasS3Sources() predicate.Team

HasS3Sources applies the HasEdge predicate on the "s3_sources" edge.

func HasS3SourcesWith

func HasS3SourcesWith(preds ...predicate.S3) predicate.Team

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

func HasTeamWebhooks

func HasTeamWebhooks() predicate.Team

HasTeamWebhooks applies the HasEdge predicate on the "team_webhooks" edge.

func HasTeamWebhooksWith

func HasTeamWebhooksWith(preds ...predicate.Webhook) predicate.Team

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

func ID

func ID(id uuid.UUID) predicate.Team

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Team

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Team

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Team

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.Team

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Team

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Team

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Team

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.Team

IDNotIn applies the NotIn predicate on the ID field.

func KubernetesName

func KubernetesName(v string) predicate.Team

KubernetesName applies equality check predicate on the "kubernetes_name" field. It's identical to KubernetesNameEQ.

func KubernetesNameContains

func KubernetesNameContains(v string) predicate.Team

KubernetesNameContains applies the Contains predicate on the "kubernetes_name" field.

func KubernetesNameContainsFold

func KubernetesNameContainsFold(v string) predicate.Team

KubernetesNameContainsFold applies the ContainsFold predicate on the "kubernetes_name" field.

func KubernetesNameEQ

func KubernetesNameEQ(v string) predicate.Team

KubernetesNameEQ applies the EQ predicate on the "kubernetes_name" field.

func KubernetesNameEqualFold

func KubernetesNameEqualFold(v string) predicate.Team

KubernetesNameEqualFold applies the EqualFold predicate on the "kubernetes_name" field.

func KubernetesNameGT

func KubernetesNameGT(v string) predicate.Team

KubernetesNameGT applies the GT predicate on the "kubernetes_name" field.

func KubernetesNameGTE

func KubernetesNameGTE(v string) predicate.Team

KubernetesNameGTE applies the GTE predicate on the "kubernetes_name" field.

func KubernetesNameHasPrefix

func KubernetesNameHasPrefix(v string) predicate.Team

KubernetesNameHasPrefix applies the HasPrefix predicate on the "kubernetes_name" field.

func KubernetesNameHasSuffix

func KubernetesNameHasSuffix(v string) predicate.Team

KubernetesNameHasSuffix applies the HasSuffix predicate on the "kubernetes_name" field.

func KubernetesNameIn

func KubernetesNameIn(vs ...string) predicate.Team

KubernetesNameIn applies the In predicate on the "kubernetes_name" field.

func KubernetesNameLT

func KubernetesNameLT(v string) predicate.Team

KubernetesNameLT applies the LT predicate on the "kubernetes_name" field.

func KubernetesNameLTE

func KubernetesNameLTE(v string) predicate.Team

KubernetesNameLTE applies the LTE predicate on the "kubernetes_name" field.

func KubernetesNameNEQ

func KubernetesNameNEQ(v string) predicate.Team

KubernetesNameNEQ applies the NEQ predicate on the "kubernetes_name" field.

func KubernetesNameNotIn

func KubernetesNameNotIn(vs ...string) predicate.Team

KubernetesNameNotIn applies the NotIn predicate on the "kubernetes_name" field.

func KubernetesSecret

func KubernetesSecret(v string) predicate.Team

KubernetesSecret applies equality check predicate on the "kubernetes_secret" field. It's identical to KubernetesSecretEQ.

func KubernetesSecretContains

func KubernetesSecretContains(v string) predicate.Team

KubernetesSecretContains applies the Contains predicate on the "kubernetes_secret" field.

func KubernetesSecretContainsFold

func KubernetesSecretContainsFold(v string) predicate.Team

KubernetesSecretContainsFold applies the ContainsFold predicate on the "kubernetes_secret" field.

func KubernetesSecretEQ

func KubernetesSecretEQ(v string) predicate.Team

KubernetesSecretEQ applies the EQ predicate on the "kubernetes_secret" field.

func KubernetesSecretEqualFold

func KubernetesSecretEqualFold(v string) predicate.Team

KubernetesSecretEqualFold applies the EqualFold predicate on the "kubernetes_secret" field.

func KubernetesSecretGT

func KubernetesSecretGT(v string) predicate.Team

KubernetesSecretGT applies the GT predicate on the "kubernetes_secret" field.

func KubernetesSecretGTE

func KubernetesSecretGTE(v string) predicate.Team

KubernetesSecretGTE applies the GTE predicate on the "kubernetes_secret" field.

func KubernetesSecretHasPrefix

func KubernetesSecretHasPrefix(v string) predicate.Team

KubernetesSecretHasPrefix applies the HasPrefix predicate on the "kubernetes_secret" field.

func KubernetesSecretHasSuffix

func KubernetesSecretHasSuffix(v string) predicate.Team

KubernetesSecretHasSuffix applies the HasSuffix predicate on the "kubernetes_secret" field.

func KubernetesSecretIn

func KubernetesSecretIn(vs ...string) predicate.Team

KubernetesSecretIn applies the In predicate on the "kubernetes_secret" field.

func KubernetesSecretLT

func KubernetesSecretLT(v string) predicate.Team

KubernetesSecretLT applies the LT predicate on the "kubernetes_secret" field.

func KubernetesSecretLTE

func KubernetesSecretLTE(v string) predicate.Team

KubernetesSecretLTE applies the LTE predicate on the "kubernetes_secret" field.

func KubernetesSecretNEQ

func KubernetesSecretNEQ(v string) predicate.Team

KubernetesSecretNEQ applies the NEQ predicate on the "kubernetes_secret" field.

func KubernetesSecretNotIn

func KubernetesSecretNotIn(vs ...string) predicate.Team

KubernetesSecretNotIn applies the NotIn predicate on the "kubernetes_secret" field.

func Name

func Name(v string) predicate.Team

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

func NameContains

func NameContains(v string) predicate.Team

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

func NameContainsFold

func NameContainsFold(v string) predicate.Team

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

func NameEQ

func NameEQ(v string) predicate.Team

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

func NameEqualFold

func NameEqualFold(v string) predicate.Team

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

func NameGT

func NameGT(v string) predicate.Team

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

func NameGTE

func NameGTE(v string) predicate.Team

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.Team

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.Team

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.Team

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

func NameLTE

func NameLTE(v string) predicate.Team

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

func NameNEQ

func NameNEQ(v string) predicate.Team

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

func NameNotIn

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

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

func Namespace

func Namespace(v string) predicate.Team

Namespace applies equality check predicate on the "namespace" field. It's identical to NamespaceEQ.

func NamespaceContains

func NamespaceContains(v string) predicate.Team

NamespaceContains applies the Contains predicate on the "namespace" field.

func NamespaceContainsFold

func NamespaceContainsFold(v string) predicate.Team

NamespaceContainsFold applies the ContainsFold predicate on the "namespace" field.

func NamespaceEQ

func NamespaceEQ(v string) predicate.Team

NamespaceEQ applies the EQ predicate on the "namespace" field.

func NamespaceEqualFold

func NamespaceEqualFold(v string) predicate.Team

NamespaceEqualFold applies the EqualFold predicate on the "namespace" field.

func NamespaceGT

func NamespaceGT(v string) predicate.Team

NamespaceGT applies the GT predicate on the "namespace" field.

func NamespaceGTE

func NamespaceGTE(v string) predicate.Team

NamespaceGTE applies the GTE predicate on the "namespace" field.

func NamespaceHasPrefix

func NamespaceHasPrefix(v string) predicate.Team

NamespaceHasPrefix applies the HasPrefix predicate on the "namespace" field.

func NamespaceHasSuffix

func NamespaceHasSuffix(v string) predicate.Team

NamespaceHasSuffix applies the HasSuffix predicate on the "namespace" field.

func NamespaceIn

func NamespaceIn(vs ...string) predicate.Team

NamespaceIn applies the In predicate on the "namespace" field.

func NamespaceLT

func NamespaceLT(v string) predicate.Team

NamespaceLT applies the LT predicate on the "namespace" field.

func NamespaceLTE

func NamespaceLTE(v string) predicate.Team

NamespaceLTE applies the LTE predicate on the "namespace" field.

func NamespaceNEQ

func NamespaceNEQ(v string) predicate.Team

NamespaceNEQ applies the NEQ predicate on the "namespace" field.

func NamespaceNotIn

func NamespaceNotIn(vs ...string) predicate.Team

NamespaceNotIn applies the NotIn predicate on the "namespace" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Team) predicate.Team

Or groups predicates with the OR operator between them.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Team

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Team

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Team

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Team

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.Team

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Team

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Team

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Team

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.Team

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

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

Jump to

Keyboard shortcuts

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