organization

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the organization type in the database.
	Label = "organization"
	// 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"
	// FieldSlug holds the string denoting the slug field in the database.
	FieldSlug = "slug"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// FieldGithubOutboundCredential holds the string denoting the github_outbound_credential field in the database.
	FieldGithubOutboundCredential = "github_outbound_credential"
	// FieldGithubTokenProbe holds the string denoting the github_token_probe field in the database.
	FieldGithubTokenProbe = "github_token_probe"
	// FieldDefaultAgentProviderID holds the string denoting the default_agent_provider_id field in the database.
	FieldDefaultAgentProviderID = "default_agent_provider_id"
	// EdgeProjects holds the string denoting the projects edge name in mutations.
	EdgeProjects = "projects"
	// EdgeProviders holds the string denoting the providers edge name in mutations.
	EdgeProviders = "providers"
	// EdgeMachines holds the string denoting the machines edge name in mutations.
	EdgeMachines = "machines"
	// EdgeNotificationChannels holds the string denoting the notification_channels edge name in mutations.
	EdgeNotificationChannels = "notification_channels"
	// EdgeDailyTokenUsage holds the string denoting the daily_token_usage edge name in mutations.
	EdgeDailyTokenUsage = "daily_token_usage"
	// EdgeMemberships holds the string denoting the memberships edge name in mutations.
	EdgeMemberships = "memberships"
	// EdgeInvitations holds the string denoting the invitations edge name in mutations.
	EdgeInvitations = "invitations"
	// EdgeDefaultAgentProvider holds the string denoting the default_agent_provider edge name in mutations.
	EdgeDefaultAgentProvider = "default_agent_provider"
	// Table holds the table name of the organization in the database.
	Table = "organizations"
	// 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 = "organization_id"
	// ProvidersTable is the table that holds the providers relation/edge.
	ProvidersTable = "agent_providers"
	// ProvidersInverseTable is the table name for the AgentProvider entity.
	// It exists in this package in order to avoid circular dependency with the "agentprovider" package.
	ProvidersInverseTable = "agent_providers"
	// ProvidersColumn is the table column denoting the providers relation/edge.
	ProvidersColumn = "organization_id"
	// MachinesTable is the table that holds the machines relation/edge.
	MachinesTable = "machines"
	// MachinesInverseTable is the table name for the Machine entity.
	// It exists in this package in order to avoid circular dependency with the "machine" package.
	MachinesInverseTable = "machines"
	// MachinesColumn is the table column denoting the machines relation/edge.
	MachinesColumn = "organization_id"
	// NotificationChannelsTable is the table that holds the notification_channels relation/edge.
	NotificationChannelsTable = "notification_channels"
	// NotificationChannelsInverseTable is the table name for the NotificationChannel entity.
	// It exists in this package in order to avoid circular dependency with the "notificationchannel" package.
	NotificationChannelsInverseTable = "notification_channels"
	// NotificationChannelsColumn is the table column denoting the notification_channels relation/edge.
	NotificationChannelsColumn = "organization_id"
	// DailyTokenUsageTable is the table that holds the daily_token_usage relation/edge.
	DailyTokenUsageTable = "organization_daily_token_usages"
	// DailyTokenUsageInverseTable is the table name for the OrganizationDailyTokenUsage entity.
	// It exists in this package in order to avoid circular dependency with the "organizationdailytokenusage" package.
	DailyTokenUsageInverseTable = "organization_daily_token_usages"
	// DailyTokenUsageColumn is the table column denoting the daily_token_usage relation/edge.
	DailyTokenUsageColumn = "organization_id"
	// MembershipsTable is the table that holds the memberships relation/edge.
	MembershipsTable = "organization_memberships"
	// MembershipsInverseTable is the table name for the OrganizationMembership entity.
	// It exists in this package in order to avoid circular dependency with the "organizationmembership" package.
	MembershipsInverseTable = "organization_memberships"
	// MembershipsColumn is the table column denoting the memberships relation/edge.
	MembershipsColumn = "organization_id"
	// InvitationsTable is the table that holds the invitations relation/edge.
	InvitationsTable = "organization_invitations"
	// InvitationsInverseTable is the table name for the OrganizationInvitation entity.
	// It exists in this package in order to avoid circular dependency with the "organizationinvitation" package.
	InvitationsInverseTable = "organization_invitations"
	// InvitationsColumn is the table column denoting the invitations relation/edge.
	InvitationsColumn = "organization_id"
	// DefaultAgentProviderTable is the table that holds the default_agent_provider relation/edge.
	DefaultAgentProviderTable = "organizations"
	// DefaultAgentProviderInverseTable is the table name for the AgentProvider entity.
	// It exists in this package in order to avoid circular dependency with the "agentprovider" package.
	DefaultAgentProviderInverseTable = "agent_providers"
	// DefaultAgentProviderColumn is the table column denoting the default_agent_provider relation/edge.
	DefaultAgentProviderColumn = "default_agent_provider_id"
)
View Source
const DefaultStatus = StatusActive

StatusActive is the default value of the Status enum.

Variables

View Source
var (
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// SlugValidator is a validator for the "slug" field. It is called by the builders before save.
	SlugValidator func(string) error
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for organization fields.

Functions

func And

func And(predicates ...predicate.Organization) predicate.Organization

And groups predicates with the AND operator between them.

func DefaultAgentProviderID

func DefaultAgentProviderID(v uuid.UUID) predicate.Organization

DefaultAgentProviderID applies equality check predicate on the "default_agent_provider_id" field. It's identical to DefaultAgentProviderIDEQ.

func DefaultAgentProviderIDEQ

func DefaultAgentProviderIDEQ(v uuid.UUID) predicate.Organization

DefaultAgentProviderIDEQ applies the EQ predicate on the "default_agent_provider_id" field.

func DefaultAgentProviderIDIn

func DefaultAgentProviderIDIn(vs ...uuid.UUID) predicate.Organization

DefaultAgentProviderIDIn applies the In predicate on the "default_agent_provider_id" field.

func DefaultAgentProviderIDIsNil

func DefaultAgentProviderIDIsNil() predicate.Organization

DefaultAgentProviderIDIsNil applies the IsNil predicate on the "default_agent_provider_id" field.

func DefaultAgentProviderIDNEQ

func DefaultAgentProviderIDNEQ(v uuid.UUID) predicate.Organization

DefaultAgentProviderIDNEQ applies the NEQ predicate on the "default_agent_provider_id" field.

func DefaultAgentProviderIDNotIn

func DefaultAgentProviderIDNotIn(vs ...uuid.UUID) predicate.Organization

DefaultAgentProviderIDNotIn applies the NotIn predicate on the "default_agent_provider_id" field.

func DefaultAgentProviderIDNotNil

func DefaultAgentProviderIDNotNil() predicate.Organization

DefaultAgentProviderIDNotNil applies the NotNil predicate on the "default_agent_provider_id" field.

func GithubOutboundCredentialIsNil

func GithubOutboundCredentialIsNil() predicate.Organization

GithubOutboundCredentialIsNil applies the IsNil predicate on the "github_outbound_credential" field.

func GithubOutboundCredentialNotNil

func GithubOutboundCredentialNotNil() predicate.Organization

GithubOutboundCredentialNotNil applies the NotNil predicate on the "github_outbound_credential" field.

func GithubTokenProbeIsNil

func GithubTokenProbeIsNil() predicate.Organization

GithubTokenProbeIsNil applies the IsNil predicate on the "github_token_probe" field.

func GithubTokenProbeNotNil

func GithubTokenProbeNotNil() predicate.Organization

GithubTokenProbeNotNil applies the NotNil predicate on the "github_token_probe" field.

func HasDailyTokenUsage

func HasDailyTokenUsage() predicate.Organization

HasDailyTokenUsage applies the HasEdge predicate on the "daily_token_usage" edge.

func HasDailyTokenUsageWith

func HasDailyTokenUsageWith(preds ...predicate.OrganizationDailyTokenUsage) predicate.Organization

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

func HasDefaultAgentProvider

func HasDefaultAgentProvider() predicate.Organization

HasDefaultAgentProvider applies the HasEdge predicate on the "default_agent_provider" edge.

func HasDefaultAgentProviderWith

func HasDefaultAgentProviderWith(preds ...predicate.AgentProvider) predicate.Organization

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

func HasInvitations added in v0.3.0

func HasInvitations() predicate.Organization

HasInvitations applies the HasEdge predicate on the "invitations" edge.

func HasInvitationsWith added in v0.3.0

func HasInvitationsWith(preds ...predicate.OrganizationInvitation) predicate.Organization

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

func HasMachines

func HasMachines() predicate.Organization

HasMachines applies the HasEdge predicate on the "machines" edge.

func HasMachinesWith

func HasMachinesWith(preds ...predicate.Machine) predicate.Organization

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

func HasMemberships added in v0.3.0

func HasMemberships() predicate.Organization

HasMemberships applies the HasEdge predicate on the "memberships" edge.

func HasMembershipsWith added in v0.3.0

func HasMembershipsWith(preds ...predicate.OrganizationMembership) predicate.Organization

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

func HasNotificationChannels

func HasNotificationChannels() predicate.Organization

HasNotificationChannels applies the HasEdge predicate on the "notification_channels" edge.

func HasNotificationChannelsWith

func HasNotificationChannelsWith(preds ...predicate.NotificationChannel) predicate.Organization

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

func HasProjects

func HasProjects() predicate.Organization

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

func HasProjectsWith

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

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

func HasProviders

func HasProviders() predicate.Organization

HasProviders applies the HasEdge predicate on the "providers" edge.

func HasProvidersWith

func HasProvidersWith(preds ...predicate.AgentProvider) predicate.Organization

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

func ID

ID filters vertices based on their ID field.

func IDEQ

IDEQ applies the EQ predicate on the ID field.

func IDGT

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Organization

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Organization

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Organization

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Name

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

func NameContains

func NameContains(v string) predicate.Organization

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

func NameContainsFold

func NameContainsFold(v string) predicate.Organization

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

func NameEQ

func NameEQ(v string) predicate.Organization

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

func NameEqualFold

func NameEqualFold(v string) predicate.Organization

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

func NameGT

func NameGT(v string) predicate.Organization

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

func NameGTE

func NameGTE(v string) predicate.Organization

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.Organization

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.Organization

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.Organization

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

func NameLTE

func NameLTE(v string) predicate.Organization

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

func NameNEQ

func NameNEQ(v string) predicate.Organization

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

func NameNotIn

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

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.Organization) predicate.Organization

Or groups predicates with the OR operator between them.

func Slug

Slug applies equality check predicate on the "slug" field. It's identical to SlugEQ.

func SlugContains

func SlugContains(v string) predicate.Organization

SlugContains applies the Contains predicate on the "slug" field.

func SlugContainsFold

func SlugContainsFold(v string) predicate.Organization

SlugContainsFold applies the ContainsFold predicate on the "slug" field.

func SlugEQ

func SlugEQ(v string) predicate.Organization

SlugEQ applies the EQ predicate on the "slug" field.

func SlugEqualFold

func SlugEqualFold(v string) predicate.Organization

SlugEqualFold applies the EqualFold predicate on the "slug" field.

func SlugGT

func SlugGT(v string) predicate.Organization

SlugGT applies the GT predicate on the "slug" field.

func SlugGTE

func SlugGTE(v string) predicate.Organization

SlugGTE applies the GTE predicate on the "slug" field.

func SlugHasPrefix

func SlugHasPrefix(v string) predicate.Organization

SlugHasPrefix applies the HasPrefix predicate on the "slug" field.

func SlugHasSuffix

func SlugHasSuffix(v string) predicate.Organization

SlugHasSuffix applies the HasSuffix predicate on the "slug" field.

func SlugIn

func SlugIn(vs ...string) predicate.Organization

SlugIn applies the In predicate on the "slug" field.

func SlugLT

func SlugLT(v string) predicate.Organization

SlugLT applies the LT predicate on the "slug" field.

func SlugLTE

func SlugLTE(v string) predicate.Organization

SlugLTE applies the LTE predicate on the "slug" field.

func SlugNEQ

func SlugNEQ(v string) predicate.Organization

SlugNEQ applies the NEQ predicate on the "slug" field.

func SlugNotIn

func SlugNotIn(vs ...string) predicate.Organization

SlugNotIn applies the NotIn predicate on the "slug" field.

func StatusEQ

func StatusEQ(v Status) predicate.Organization

StatusEQ applies the EQ predicate on the "status" field.

func StatusIn

func StatusIn(vs ...Status) predicate.Organization

StatusIn applies the In predicate on the "status" field.

func StatusNEQ

func StatusNEQ(v Status) predicate.Organization

StatusNEQ applies the NEQ predicate on the "status" field.

func StatusNotIn

func StatusNotIn(vs ...Status) predicate.Organization

StatusNotIn applies the NotIn predicate on the "status" field.

func StatusValidator

func StatusValidator(s Status) error

StatusValidator is a validator for the "status" field enum values. It is called by the builders before save.

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

func ByDailyTokenUsage

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

ByDailyTokenUsage orders the results by daily_token_usage terms.

func ByDailyTokenUsageCount

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

ByDailyTokenUsageCount orders the results by daily_token_usage count.

func ByDefaultAgentProviderField

func ByDefaultAgentProviderField(field string, opts ...sql.OrderTermOption) OrderOption

ByDefaultAgentProviderField orders the results by default_agent_provider field.

func ByDefaultAgentProviderID

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

ByDefaultAgentProviderID orders the results by the default_agent_provider_id field.

func ByID

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

ByID orders the results by the id field.

func ByInvitations added in v0.3.0

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

ByInvitations orders the results by invitations terms.

func ByInvitationsCount added in v0.3.0

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

ByInvitationsCount orders the results by invitations count.

func ByMachines

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

ByMachines orders the results by machines terms.

func ByMachinesCount

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

ByMachinesCount orders the results by machines count.

func ByMemberships added in v0.3.0

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

ByMemberships orders the results by memberships terms.

func ByMembershipsCount added in v0.3.0

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

ByMembershipsCount orders the results by memberships count.

func ByName

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

ByName orders the results by the name field.

func ByNotificationChannels

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

ByNotificationChannels orders the results by notification_channels terms.

func ByNotificationChannelsCount

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

ByNotificationChannelsCount orders the results by notification_channels count.

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 ByProviders

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

ByProviders orders the results by providers terms.

func ByProvidersCount

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

ByProvidersCount orders the results by providers count.

func BySlug

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

BySlug orders the results by the slug field.

func ByStatus

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

ByStatus orders the results by the status field.

type Status

type Status string

Status defines the type for the "status" enum field.

const (
	StatusActive   Status = "active"
	StatusArchived Status = "archived"
)

Status values.

func (Status) String

func (s Status) String() string

Jump to

Keyboard shortcuts

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