tenant

package
v0.0.0-...-d4cf3a4 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the tenant type in the database.
	Label = "tenant"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldDescription holds the string denoting the description field in the database.
	FieldDescription = "description"
	// FieldIsDefault holds the string denoting the is_default field in the database.
	FieldIsDefault = "is_default"
	// FieldOidcOrgID holds the string denoting the oidc_org_id field in the database.
	FieldOidcOrgID = "oidc_org_id"
	// FieldOidcDefaultRole holds the string denoting the oidc_default_role field in the database.
	FieldOidcDefaultRole = "oidc_default_role"
	// FieldCreated holds the string denoting the created field in the database.
	FieldCreated = "created"
	// FieldModified holds the string denoting the modified field in the database.
	FieldModified = "modified"
	// EdgeSites holds the string denoting the sites edge name in mutations.
	EdgeSites = "sites"
	// EdgeSettings holds the string denoting the settings edge name in mutations.
	EdgeSettings = "settings"
	// EdgeTags holds the string denoting the tags edge name in mutations.
	EdgeTags = "tags"
	// EdgeMetadata holds the string denoting the metadata edge name in mutations.
	EdgeMetadata = "metadata"
	// EdgeRustdesk holds the string denoting the rustdesk edge name in mutations.
	EdgeRustdesk = "rustdesk"
	// EdgeNetbird holds the string denoting the netbird edge name in mutations.
	EdgeNetbird = "netbird"
	// EdgeUserTenants holds the string denoting the user_tenants edge name in mutations.
	EdgeUserTenants = "user_tenants"
	// EdgeEnrollmentTokens holds the string denoting the enrollment_tokens edge name in mutations.
	EdgeEnrollmentTokens = "enrollment_tokens"
	// EdgeSoftwareRepos holds the string denoting the software_repos edge name in mutations.
	EdgeSoftwareRepos = "software_repos"
	// EdgeSoftwarePackages holds the string denoting the software_packages edge name in mutations.
	EdgeSoftwarePackages = "software_packages"
	// EdgeSoftwareCatalogs holds the string denoting the software_catalogs edge name in mutations.
	EdgeSoftwareCatalogs = "software_catalogs"
	// EdgeSoftwareAssignments holds the string denoting the software_assignments edge name in mutations.
	EdgeSoftwareAssignments = "software_assignments"
	// Table holds the table name of the tenant in the database.
	Table = "tenants"
	// SitesTable is the table that holds the sites relation/edge.
	SitesTable = "sites"
	// SitesInverseTable is the table name for the Site entity.
	// It exists in this package in order to avoid circular dependency with the "site" package.
	SitesInverseTable = "sites"
	// SitesColumn is the table column denoting the sites relation/edge.
	SitesColumn = "tenant_sites"
	// SettingsTable is the table that holds the settings relation/edge.
	SettingsTable = "settings"
	// SettingsInverseTable is the table name for the Settings entity.
	// It exists in this package in order to avoid circular dependency with the "settings" package.
	SettingsInverseTable = "settings"
	// SettingsColumn is the table column denoting the settings relation/edge.
	SettingsColumn = "tenant_settings"
	// TagsTable is the table that holds the tags relation/edge.
	TagsTable = "tags"
	// TagsInverseTable is the table name for the Tag entity.
	// It exists in this package in order to avoid circular dependency with the "tag" package.
	TagsInverseTable = "tags"
	// TagsColumn is the table column denoting the tags relation/edge.
	TagsColumn = "tenant_tags"
	// MetadataTable is the table that holds the metadata relation/edge.
	MetadataTable = "org_metadata"
	// MetadataInverseTable is the table name for the OrgMetadata entity.
	// It exists in this package in order to avoid circular dependency with the "orgmetadata" package.
	MetadataInverseTable = "org_metadata"
	// MetadataColumn is the table column denoting the metadata relation/edge.
	MetadataColumn = "tenant_metadata"
	// RustdeskTable is the table that holds the rustdesk relation/edge. The primary key declared below.
	RustdeskTable = "tenant_rustdesk"
	// RustdeskInverseTable is the table name for the Rustdesk entity.
	// It exists in this package in order to avoid circular dependency with the "rustdesk" package.
	RustdeskInverseTable = "rustdesks"
	// NetbirdTable is the table that holds the netbird relation/edge.
	NetbirdTable = "tenants"
	// NetbirdInverseTable is the table name for the NetbirdSettings entity.
	// It exists in this package in order to avoid circular dependency with the "netbirdsettings" package.
	NetbirdInverseTable = "netbird_settings"
	// NetbirdColumn is the table column denoting the netbird relation/edge.
	NetbirdColumn = "tenant_netbird"
	// UserTenantsTable is the table that holds the user_tenants relation/edge.
	UserTenantsTable = "user_tenants"
	// UserTenantsInverseTable is the table name for the UserTenant entity.
	// It exists in this package in order to avoid circular dependency with the "usertenant" package.
	UserTenantsInverseTable = "user_tenants"
	// UserTenantsColumn is the table column denoting the user_tenants relation/edge.
	UserTenantsColumn = "tenant_id"
	// EnrollmentTokensTable is the table that holds the enrollment_tokens relation/edge.
	EnrollmentTokensTable = "enrollment_tokens"
	// EnrollmentTokensInverseTable is the table name for the EnrollmentToken entity.
	// It exists in this package in order to avoid circular dependency with the "enrollmenttoken" package.
	EnrollmentTokensInverseTable = "enrollment_tokens"
	// EnrollmentTokensColumn is the table column denoting the enrollment_tokens relation/edge.
	EnrollmentTokensColumn = "tenant_enrollment_tokens"
	// SoftwareReposTable is the table that holds the software_repos relation/edge.
	SoftwareReposTable = "software_repos"
	// SoftwareReposInverseTable is the table name for the SoftwareRepo entity.
	// It exists in this package in order to avoid circular dependency with the "softwarerepo" package.
	SoftwareReposInverseTable = "software_repos"
	// SoftwareReposColumn is the table column denoting the software_repos relation/edge.
	SoftwareReposColumn = "tenant_software_repos"
	// SoftwarePackagesTable is the table that holds the software_packages relation/edge.
	SoftwarePackagesTable = "managed_packages"
	// SoftwarePackagesInverseTable is the table name for the ManagedPackage entity.
	// It exists in this package in order to avoid circular dependency with the "managedpackage" package.
	SoftwarePackagesInverseTable = "managed_packages"
	// SoftwarePackagesColumn is the table column denoting the software_packages relation/edge.
	SoftwarePackagesColumn = "tenant_software_packages"
	// SoftwareCatalogsTable is the table that holds the software_catalogs relation/edge.
	SoftwareCatalogsTable = "software_catalogs"
	// SoftwareCatalogsInverseTable is the table name for the SoftwareCatalog entity.
	// It exists in this package in order to avoid circular dependency with the "softwarecatalog" package.
	SoftwareCatalogsInverseTable = "software_catalogs"
	// SoftwareCatalogsColumn is the table column denoting the software_catalogs relation/edge.
	SoftwareCatalogsColumn = "tenant_software_catalogs"
	// SoftwareAssignmentsTable is the table that holds the software_assignments relation/edge.
	SoftwareAssignmentsTable = "software_assignments"
	// SoftwareAssignmentsInverseTable is the table name for the SoftwareAssignment entity.
	// It exists in this package in order to avoid circular dependency with the "softwareassignment" package.
	SoftwareAssignmentsInverseTable = "software_assignments"
	// SoftwareAssignmentsColumn is the table column denoting the software_assignments relation/edge.
	SoftwareAssignmentsColumn = "tenant_software_assignments"
)
View Source
const DefaultOidcDefaultRole = OidcDefaultRoleUser

OidcDefaultRoleUser is the default value of the OidcDefaultRole enum.

Variables

View Source
var (
	// DefaultCreated holds the default value on creation for the "created" field.
	DefaultCreated func() time.Time
	// DefaultModified holds the default value on creation for the "modified" field.
	DefaultModified func() time.Time
	// UpdateDefaultModified holds the default value on update for the "modified" field.
	UpdateDefaultModified func() time.Time
)

Columns holds all SQL columns for tenant fields.

View Source
var ForeignKeys = []string{
	"tenant_netbird",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "tenants" table and are not defined as standalone fields in the schema.

View Source
var (
	// RustdeskPrimaryKey and RustdeskColumn2 are the table columns denoting the
	// primary key for the rustdesk relation (M2M).
	RustdeskPrimaryKey = []string{"tenant_id", "rustdesk_id"}
)

Functions

func And

func And(predicates ...predicate.Tenant) predicate.Tenant

And groups predicates with the AND operator between them.

func Created

func Created(v time.Time) predicate.Tenant

Created applies equality check predicate on the "created" field. It's identical to CreatedEQ.

func CreatedEQ

func CreatedEQ(v time.Time) predicate.Tenant

CreatedEQ applies the EQ predicate on the "created" field.

func CreatedGT

func CreatedGT(v time.Time) predicate.Tenant

CreatedGT applies the GT predicate on the "created" field.

func CreatedGTE

func CreatedGTE(v time.Time) predicate.Tenant

CreatedGTE applies the GTE predicate on the "created" field.

func CreatedIn

func CreatedIn(vs ...time.Time) predicate.Tenant

CreatedIn applies the In predicate on the "created" field.

func CreatedIsNil

func CreatedIsNil() predicate.Tenant

CreatedIsNil applies the IsNil predicate on the "created" field.

func CreatedLT

func CreatedLT(v time.Time) predicate.Tenant

CreatedLT applies the LT predicate on the "created" field.

func CreatedLTE

func CreatedLTE(v time.Time) predicate.Tenant

CreatedLTE applies the LTE predicate on the "created" field.

func CreatedNEQ

func CreatedNEQ(v time.Time) predicate.Tenant

CreatedNEQ applies the NEQ predicate on the "created" field.

func CreatedNotIn

func CreatedNotIn(vs ...time.Time) predicate.Tenant

CreatedNotIn applies the NotIn predicate on the "created" field.

func CreatedNotNil

func CreatedNotNil() predicate.Tenant

CreatedNotNil applies the NotNil predicate on the "created" field.

func Description

func Description(v string) predicate.Tenant

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

func DescriptionContains

func DescriptionContains(v string) predicate.Tenant

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

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.Tenant

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

func DescriptionEQ

func DescriptionEQ(v string) predicate.Tenant

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

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.Tenant

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

func DescriptionGT

func DescriptionGT(v string) predicate.Tenant

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

func DescriptionGTE

func DescriptionGTE(v string) predicate.Tenant

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

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.Tenant

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

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.Tenant

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

func DescriptionIn

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

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

func DescriptionIsNil

func DescriptionIsNil() predicate.Tenant

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

func DescriptionLT

func DescriptionLT(v string) predicate.Tenant

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

func DescriptionLTE

func DescriptionLTE(v string) predicate.Tenant

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

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.Tenant

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

func DescriptionNotIn

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

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

func DescriptionNotNil

func DescriptionNotNil() predicate.Tenant

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

func HasEnrollmentTokens

func HasEnrollmentTokens() predicate.Tenant

HasEnrollmentTokens applies the HasEdge predicate on the "enrollment_tokens" edge.

func HasEnrollmentTokensWith

func HasEnrollmentTokensWith(preds ...predicate.EnrollmentToken) predicate.Tenant

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

func HasMetadata

func HasMetadata() predicate.Tenant

HasMetadata applies the HasEdge predicate on the "metadata" edge.

func HasMetadataWith

func HasMetadataWith(preds ...predicate.OrgMetadata) predicate.Tenant

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

func HasNetbird

func HasNetbird() predicate.Tenant

HasNetbird applies the HasEdge predicate on the "netbird" edge.

func HasNetbirdWith

func HasNetbirdWith(preds ...predicate.NetbirdSettings) predicate.Tenant

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

func HasRustdesk

func HasRustdesk() predicate.Tenant

HasRustdesk applies the HasEdge predicate on the "rustdesk" edge.

func HasRustdeskWith

func HasRustdeskWith(preds ...predicate.Rustdesk) predicate.Tenant

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

func HasSettings

func HasSettings() predicate.Tenant

HasSettings applies the HasEdge predicate on the "settings" edge.

func HasSettingsWith

func HasSettingsWith(preds ...predicate.Settings) predicate.Tenant

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

func HasSites

func HasSites() predicate.Tenant

HasSites applies the HasEdge predicate on the "sites" edge.

func HasSitesWith

func HasSitesWith(preds ...predicate.Site) predicate.Tenant

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

func HasSoftwareAssignments

func HasSoftwareAssignments() predicate.Tenant

HasSoftwareAssignments applies the HasEdge predicate on the "software_assignments" edge.

func HasSoftwareAssignmentsWith

func HasSoftwareAssignmentsWith(preds ...predicate.SoftwareAssignment) predicate.Tenant

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

func HasSoftwareCatalogs

func HasSoftwareCatalogs() predicate.Tenant

HasSoftwareCatalogs applies the HasEdge predicate on the "software_catalogs" edge.

func HasSoftwareCatalogsWith

func HasSoftwareCatalogsWith(preds ...predicate.SoftwareCatalog) predicate.Tenant

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

func HasSoftwarePackages

func HasSoftwarePackages() predicate.Tenant

HasSoftwarePackages applies the HasEdge predicate on the "software_packages" edge.

func HasSoftwarePackagesWith

func HasSoftwarePackagesWith(preds ...predicate.ManagedPackage) predicate.Tenant

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

func HasSoftwareRepos

func HasSoftwareRepos() predicate.Tenant

HasSoftwareRepos applies the HasEdge predicate on the "software_repos" edge.

func HasSoftwareReposWith

func HasSoftwareReposWith(preds ...predicate.SoftwareRepo) predicate.Tenant

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

func HasTags

func HasTags() predicate.Tenant

HasTags applies the HasEdge predicate on the "tags" edge.

func HasTagsWith

func HasTagsWith(preds ...predicate.Tag) predicate.Tenant

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

func HasUserTenants

func HasUserTenants() predicate.Tenant

HasUserTenants applies the HasEdge predicate on the "user_tenants" edge.

func HasUserTenantsWith

func HasUserTenantsWith(preds ...predicate.UserTenant) predicate.Tenant

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

func ID

func ID(id int) predicate.Tenant

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Tenant

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Tenant

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Tenant

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.Tenant

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Tenant

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Tenant

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Tenant

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.Tenant

IDNotIn applies the NotIn predicate on the ID field.

func IsDefault

func IsDefault(v bool) predicate.Tenant

IsDefault applies equality check predicate on the "is_default" field. It's identical to IsDefaultEQ.

func IsDefaultEQ

func IsDefaultEQ(v bool) predicate.Tenant

IsDefaultEQ applies the EQ predicate on the "is_default" field.

func IsDefaultIsNil

func IsDefaultIsNil() predicate.Tenant

IsDefaultIsNil applies the IsNil predicate on the "is_default" field.

func IsDefaultNEQ

func IsDefaultNEQ(v bool) predicate.Tenant

IsDefaultNEQ applies the NEQ predicate on the "is_default" field.

func IsDefaultNotNil

func IsDefaultNotNil() predicate.Tenant

IsDefaultNotNil applies the NotNil predicate on the "is_default" field.

func Modified

func Modified(v time.Time) predicate.Tenant

Modified applies equality check predicate on the "modified" field. It's identical to ModifiedEQ.

func ModifiedEQ

func ModifiedEQ(v time.Time) predicate.Tenant

ModifiedEQ applies the EQ predicate on the "modified" field.

func ModifiedGT

func ModifiedGT(v time.Time) predicate.Tenant

ModifiedGT applies the GT predicate on the "modified" field.

func ModifiedGTE

func ModifiedGTE(v time.Time) predicate.Tenant

ModifiedGTE applies the GTE predicate on the "modified" field.

func ModifiedIn

func ModifiedIn(vs ...time.Time) predicate.Tenant

ModifiedIn applies the In predicate on the "modified" field.

func ModifiedIsNil

func ModifiedIsNil() predicate.Tenant

ModifiedIsNil applies the IsNil predicate on the "modified" field.

func ModifiedLT

func ModifiedLT(v time.Time) predicate.Tenant

ModifiedLT applies the LT predicate on the "modified" field.

func ModifiedLTE

func ModifiedLTE(v time.Time) predicate.Tenant

ModifiedLTE applies the LTE predicate on the "modified" field.

func ModifiedNEQ

func ModifiedNEQ(v time.Time) predicate.Tenant

ModifiedNEQ applies the NEQ predicate on the "modified" field.

func ModifiedNotIn

func ModifiedNotIn(vs ...time.Time) predicate.Tenant

ModifiedNotIn applies the NotIn predicate on the "modified" field.

func ModifiedNotNil

func ModifiedNotNil() predicate.Tenant

ModifiedNotNil applies the NotNil predicate on the "modified" field.

func Not

Not applies the not operator on the given predicate.

func OidcDefaultRoleEQ

func OidcDefaultRoleEQ(v OidcDefaultRole) predicate.Tenant

OidcDefaultRoleEQ applies the EQ predicate on the "oidc_default_role" field.

func OidcDefaultRoleIn

func OidcDefaultRoleIn(vs ...OidcDefaultRole) predicate.Tenant

OidcDefaultRoleIn applies the In predicate on the "oidc_default_role" field.

func OidcDefaultRoleIsNil

func OidcDefaultRoleIsNil() predicate.Tenant

OidcDefaultRoleIsNil applies the IsNil predicate on the "oidc_default_role" field.

func OidcDefaultRoleNEQ

func OidcDefaultRoleNEQ(v OidcDefaultRole) predicate.Tenant

OidcDefaultRoleNEQ applies the NEQ predicate on the "oidc_default_role" field.

func OidcDefaultRoleNotIn

func OidcDefaultRoleNotIn(vs ...OidcDefaultRole) predicate.Tenant

OidcDefaultRoleNotIn applies the NotIn predicate on the "oidc_default_role" field.

func OidcDefaultRoleNotNil

func OidcDefaultRoleNotNil() predicate.Tenant

OidcDefaultRoleNotNil applies the NotNil predicate on the "oidc_default_role" field.

func OidcDefaultRoleValidator

func OidcDefaultRoleValidator(odr OidcDefaultRole) error

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

func OidcOrgID

func OidcOrgID(v string) predicate.Tenant

OidcOrgID applies equality check predicate on the "oidc_org_id" field. It's identical to OidcOrgIDEQ.

func OidcOrgIDContains

func OidcOrgIDContains(v string) predicate.Tenant

OidcOrgIDContains applies the Contains predicate on the "oidc_org_id" field.

func OidcOrgIDContainsFold

func OidcOrgIDContainsFold(v string) predicate.Tenant

OidcOrgIDContainsFold applies the ContainsFold predicate on the "oidc_org_id" field.

func OidcOrgIDEQ

func OidcOrgIDEQ(v string) predicate.Tenant

OidcOrgIDEQ applies the EQ predicate on the "oidc_org_id" field.

func OidcOrgIDEqualFold

func OidcOrgIDEqualFold(v string) predicate.Tenant

OidcOrgIDEqualFold applies the EqualFold predicate on the "oidc_org_id" field.

func OidcOrgIDGT

func OidcOrgIDGT(v string) predicate.Tenant

OidcOrgIDGT applies the GT predicate on the "oidc_org_id" field.

func OidcOrgIDGTE

func OidcOrgIDGTE(v string) predicate.Tenant

OidcOrgIDGTE applies the GTE predicate on the "oidc_org_id" field.

func OidcOrgIDHasPrefix

func OidcOrgIDHasPrefix(v string) predicate.Tenant

OidcOrgIDHasPrefix applies the HasPrefix predicate on the "oidc_org_id" field.

func OidcOrgIDHasSuffix

func OidcOrgIDHasSuffix(v string) predicate.Tenant

OidcOrgIDHasSuffix applies the HasSuffix predicate on the "oidc_org_id" field.

func OidcOrgIDIn

func OidcOrgIDIn(vs ...string) predicate.Tenant

OidcOrgIDIn applies the In predicate on the "oidc_org_id" field.

func OidcOrgIDIsNil

func OidcOrgIDIsNil() predicate.Tenant

OidcOrgIDIsNil applies the IsNil predicate on the "oidc_org_id" field.

func OidcOrgIDLT

func OidcOrgIDLT(v string) predicate.Tenant

OidcOrgIDLT applies the LT predicate on the "oidc_org_id" field.

func OidcOrgIDLTE

func OidcOrgIDLTE(v string) predicate.Tenant

OidcOrgIDLTE applies the LTE predicate on the "oidc_org_id" field.

func OidcOrgIDNEQ

func OidcOrgIDNEQ(v string) predicate.Tenant

OidcOrgIDNEQ applies the NEQ predicate on the "oidc_org_id" field.

func OidcOrgIDNotIn

func OidcOrgIDNotIn(vs ...string) predicate.Tenant

OidcOrgIDNotIn applies the NotIn predicate on the "oidc_org_id" field.

func OidcOrgIDNotNil

func OidcOrgIDNotNil() predicate.Tenant

OidcOrgIDNotNil applies the NotNil predicate on the "oidc_org_id" field.

func Or

func Or(predicates ...predicate.Tenant) predicate.Tenant

Or groups predicates with the OR operator between them.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type OidcDefaultRole

type OidcDefaultRole string

OidcDefaultRole defines the type for the "oidc_default_role" enum field.

const (
	OidcDefaultRoleAdmin    OidcDefaultRole = "admin"
	OidcDefaultRoleOperator OidcDefaultRole = "operator"
	OidcDefaultRoleUser     OidcDefaultRole = "user"
)

OidcDefaultRole values.

func (OidcDefaultRole) String

func (odr OidcDefaultRole) String() string

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Tenant queries.

func ByCreated

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

ByCreated orders the results by the created field.

func ByDescription

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

ByDescription orders the results by the description field.

func ByEnrollmentTokens

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

ByEnrollmentTokens orders the results by enrollment_tokens terms.

func ByEnrollmentTokensCount

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

ByEnrollmentTokensCount orders the results by enrollment_tokens count.

func ByID

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

ByID orders the results by the id field.

func ByIsDefault

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

ByIsDefault orders the results by the is_default field.

func ByMetadata

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

ByMetadata orders the results by metadata terms.

func ByMetadataCount

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

ByMetadataCount orders the results by metadata count.

func ByModified

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

ByModified orders the results by the modified field.

func ByNetbirdField

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

ByNetbirdField orders the results by netbird field.

func ByOidcDefaultRole

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

ByOidcDefaultRole orders the results by the oidc_default_role field.

func ByOidcOrgID

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

ByOidcOrgID orders the results by the oidc_org_id field.

func ByRustdesk

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

ByRustdesk orders the results by rustdesk terms.

func ByRustdeskCount

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

ByRustdeskCount orders the results by rustdesk count.

func BySettingsField

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

BySettingsField orders the results by settings field.

func BySites

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

BySites orders the results by sites terms.

func BySitesCount

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

BySitesCount orders the results by sites count.

func BySoftwareAssignments

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

BySoftwareAssignments orders the results by software_assignments terms.

func BySoftwareAssignmentsCount

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

BySoftwareAssignmentsCount orders the results by software_assignments count.

func BySoftwareCatalogs

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

BySoftwareCatalogs orders the results by software_catalogs terms.

func BySoftwareCatalogsCount

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

BySoftwareCatalogsCount orders the results by software_catalogs count.

func BySoftwarePackages

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

BySoftwarePackages orders the results by software_packages terms.

func BySoftwarePackagesCount

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

BySoftwarePackagesCount orders the results by software_packages count.

func BySoftwareRepos

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

BySoftwareRepos orders the results by software_repos terms.

func BySoftwareReposCount

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

BySoftwareReposCount orders the results by software_repos count.

func ByTags

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

ByTags orders the results by tags terms.

func ByTagsCount

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

ByTagsCount orders the results by tags count.

func ByUserTenants

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

ByUserTenants orders the results by user_tenants terms.

func ByUserTenantsCount

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

ByUserTenantsCount orders the results by user_tenants count.

Jump to

Keyboard shortcuts

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