Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Tenant) predicate.Tenant
- func Created(v time.Time) predicate.Tenant
- func CreatedEQ(v time.Time) predicate.Tenant
- func CreatedGT(v time.Time) predicate.Tenant
- func CreatedGTE(v time.Time) predicate.Tenant
- func CreatedIn(vs ...time.Time) predicate.Tenant
- func CreatedIsNil() predicate.Tenant
- func CreatedLT(v time.Time) predicate.Tenant
- func CreatedLTE(v time.Time) predicate.Tenant
- func CreatedNEQ(v time.Time) predicate.Tenant
- func CreatedNotIn(vs ...time.Time) predicate.Tenant
- func CreatedNotNil() predicate.Tenant
- func Description(v string) predicate.Tenant
- func DescriptionContains(v string) predicate.Tenant
- func DescriptionContainsFold(v string) predicate.Tenant
- func DescriptionEQ(v string) predicate.Tenant
- func DescriptionEqualFold(v string) predicate.Tenant
- func DescriptionGT(v string) predicate.Tenant
- func DescriptionGTE(v string) predicate.Tenant
- func DescriptionHasPrefix(v string) predicate.Tenant
- func DescriptionHasSuffix(v string) predicate.Tenant
- func DescriptionIn(vs ...string) predicate.Tenant
- func DescriptionIsNil() predicate.Tenant
- func DescriptionLT(v string) predicate.Tenant
- func DescriptionLTE(v string) predicate.Tenant
- func DescriptionNEQ(v string) predicate.Tenant
- func DescriptionNotIn(vs ...string) predicate.Tenant
- func DescriptionNotNil() predicate.Tenant
- func HasEnrollmentTokens() predicate.Tenant
- func HasEnrollmentTokensWith(preds ...predicate.EnrollmentToken) predicate.Tenant
- func HasMetadata() predicate.Tenant
- func HasMetadataWith(preds ...predicate.OrgMetadata) predicate.Tenant
- func HasNetbird() predicate.Tenant
- func HasNetbirdWith(preds ...predicate.NetbirdSettings) predicate.Tenant
- func HasRustdesk() predicate.Tenant
- func HasRustdeskWith(preds ...predicate.Rustdesk) predicate.Tenant
- func HasSettings() predicate.Tenant
- func HasSettingsWith(preds ...predicate.Settings) predicate.Tenant
- func HasSites() predicate.Tenant
- func HasSitesWith(preds ...predicate.Site) predicate.Tenant
- func HasSoftwareAssignments() predicate.Tenant
- func HasSoftwareAssignmentsWith(preds ...predicate.SoftwareAssignment) predicate.Tenant
- func HasSoftwareCatalogs() predicate.Tenant
- func HasSoftwareCatalogsWith(preds ...predicate.SoftwareCatalog) predicate.Tenant
- func HasSoftwarePackages() predicate.Tenant
- func HasSoftwarePackagesWith(preds ...predicate.ManagedPackage) predicate.Tenant
- func HasSoftwareRepos() predicate.Tenant
- func HasSoftwareReposWith(preds ...predicate.SoftwareRepo) predicate.Tenant
- func HasTags() predicate.Tenant
- func HasTagsWith(preds ...predicate.Tag) predicate.Tenant
- func HasUserTenants() predicate.Tenant
- func HasUserTenantsWith(preds ...predicate.UserTenant) predicate.Tenant
- func ID(id int) predicate.Tenant
- func IDEQ(id int) predicate.Tenant
- func IDGT(id int) predicate.Tenant
- func IDGTE(id int) predicate.Tenant
- func IDIn(ids ...int) predicate.Tenant
- func IDLT(id int) predicate.Tenant
- func IDLTE(id int) predicate.Tenant
- func IDNEQ(id int) predicate.Tenant
- func IDNotIn(ids ...int) predicate.Tenant
- func IsDefault(v bool) predicate.Tenant
- func IsDefaultEQ(v bool) predicate.Tenant
- func IsDefaultIsNil() predicate.Tenant
- func IsDefaultNEQ(v bool) predicate.Tenant
- func IsDefaultNotNil() predicate.Tenant
- func Modified(v time.Time) predicate.Tenant
- func ModifiedEQ(v time.Time) predicate.Tenant
- func ModifiedGT(v time.Time) predicate.Tenant
- func ModifiedGTE(v time.Time) predicate.Tenant
- func ModifiedIn(vs ...time.Time) predicate.Tenant
- func ModifiedIsNil() predicate.Tenant
- func ModifiedLT(v time.Time) predicate.Tenant
- func ModifiedLTE(v time.Time) predicate.Tenant
- func ModifiedNEQ(v time.Time) predicate.Tenant
- func ModifiedNotIn(vs ...time.Time) predicate.Tenant
- func ModifiedNotNil() predicate.Tenant
- func Not(p predicate.Tenant) predicate.Tenant
- func OidcDefaultRoleEQ(v OidcDefaultRole) predicate.Tenant
- func OidcDefaultRoleIn(vs ...OidcDefaultRole) predicate.Tenant
- func OidcDefaultRoleIsNil() predicate.Tenant
- func OidcDefaultRoleNEQ(v OidcDefaultRole) predicate.Tenant
- func OidcDefaultRoleNotIn(vs ...OidcDefaultRole) predicate.Tenant
- func OidcDefaultRoleNotNil() predicate.Tenant
- func OidcDefaultRoleValidator(odr OidcDefaultRole) error
- func OidcOrgID(v string) predicate.Tenant
- func OidcOrgIDContains(v string) predicate.Tenant
- func OidcOrgIDContainsFold(v string) predicate.Tenant
- func OidcOrgIDEQ(v string) predicate.Tenant
- func OidcOrgIDEqualFold(v string) predicate.Tenant
- func OidcOrgIDGT(v string) predicate.Tenant
- func OidcOrgIDGTE(v string) predicate.Tenant
- func OidcOrgIDHasPrefix(v string) predicate.Tenant
- func OidcOrgIDHasSuffix(v string) predicate.Tenant
- func OidcOrgIDIn(vs ...string) predicate.Tenant
- func OidcOrgIDIsNil() predicate.Tenant
- func OidcOrgIDLT(v string) predicate.Tenant
- func OidcOrgIDLTE(v string) predicate.Tenant
- func OidcOrgIDNEQ(v string) predicate.Tenant
- func OidcOrgIDNotIn(vs ...string) predicate.Tenant
- func OidcOrgIDNotNil() predicate.Tenant
- func Or(predicates ...predicate.Tenant) predicate.Tenant
- func ValidColumn(column string) bool
- type OidcDefaultRole
- type OrderOption
- func ByCreated(opts ...sql.OrderTermOption) OrderOption
- func ByDescription(opts ...sql.OrderTermOption) OrderOption
- func ByEnrollmentTokens(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByEnrollmentTokensCount(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByIsDefault(opts ...sql.OrderTermOption) OrderOption
- func ByMetadata(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByMetadataCount(opts ...sql.OrderTermOption) OrderOption
- func ByModified(opts ...sql.OrderTermOption) OrderOption
- func ByNetbirdField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByOidcDefaultRole(opts ...sql.OrderTermOption) OrderOption
- func ByOidcOrgID(opts ...sql.OrderTermOption) OrderOption
- func ByRustdesk(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByRustdeskCount(opts ...sql.OrderTermOption) OrderOption
- func BySettingsField(field string, opts ...sql.OrderTermOption) OrderOption
- func BySites(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func BySitesCount(opts ...sql.OrderTermOption) OrderOption
- func BySoftwareAssignments(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func BySoftwareAssignmentsCount(opts ...sql.OrderTermOption) OrderOption
- func BySoftwareCatalogs(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func BySoftwareCatalogsCount(opts ...sql.OrderTermOption) OrderOption
- func BySoftwarePackages(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func BySoftwarePackagesCount(opts ...sql.OrderTermOption) OrderOption
- func BySoftwareRepos(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func BySoftwareReposCount(opts ...sql.OrderTermOption) OrderOption
- func ByTags(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByTagsCount(opts ...sql.OrderTermOption) OrderOption
- func ByUserTenants(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByUserTenantsCount(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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" )
const DefaultOidcDefaultRole = OidcDefaultRoleUser
OidcDefaultRoleUser is the default value of the OidcDefaultRole enum.
Variables ¶
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 )
var Columns = []string{ FieldID, FieldDescription, FieldIsDefault, FieldOidcOrgID, FieldOidcDefaultRole, FieldCreated, FieldModified, }
Columns holds all SQL columns for tenant fields.
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.
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 Created ¶
Created applies equality check predicate on the "created" field. It's identical to CreatedEQ.
func CreatedGTE ¶
CreatedGTE applies the GTE predicate on the "created" field.
func CreatedIsNil ¶
CreatedIsNil applies the IsNil predicate on the "created" field.
func CreatedLTE ¶
CreatedLTE applies the LTE predicate on the "created" field.
func CreatedNEQ ¶
CreatedNEQ applies the NEQ predicate on the "created" field.
func CreatedNotIn ¶
CreatedNotIn applies the NotIn predicate on the "created" field.
func CreatedNotNil ¶
CreatedNotNil applies the NotNil predicate on the "created" 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 HasEnrollmentTokens ¶
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 ¶
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 ¶
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 ¶
HasRustdesk applies the HasEdge predicate on the "rustdesk" edge.
func HasRustdeskWith ¶
HasRustdeskWith applies the HasEdge predicate on the "rustdesk" edge with a given conditions (other predicates).
func HasSettings ¶
HasSettings applies the HasEdge predicate on the "settings" edge.
func HasSettingsWith ¶
HasSettingsWith applies the HasEdge predicate on the "settings" edge with a given conditions (other predicates).
func HasSitesWith ¶
HasSitesWith applies the HasEdge predicate on the "sites" edge with a given conditions (other predicates).
func HasSoftwareAssignments ¶
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 ¶
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 ¶
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 ¶
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 HasTagsWith ¶
HasTagsWith applies the HasEdge predicate on the "tags" edge with a given conditions (other predicates).
func HasUserTenants ¶
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 IsDefault ¶
IsDefault applies equality check predicate on the "is_default" field. It's identical to IsDefaultEQ.
func IsDefaultEQ ¶
IsDefaultEQ applies the EQ predicate on the "is_default" field.
func IsDefaultIsNil ¶
IsDefaultIsNil applies the IsNil predicate on the "is_default" field.
func IsDefaultNEQ ¶
IsDefaultNEQ applies the NEQ predicate on the "is_default" field.
func IsDefaultNotNil ¶
IsDefaultNotNil applies the NotNil predicate on the "is_default" field.
func Modified ¶
Modified applies equality check predicate on the "modified" field. It's identical to ModifiedEQ.
func ModifiedEQ ¶
ModifiedEQ applies the EQ predicate on the "modified" field.
func ModifiedGT ¶
ModifiedGT applies the GT predicate on the "modified" field.
func ModifiedGTE ¶
ModifiedGTE applies the GTE predicate on the "modified" field.
func ModifiedIn ¶
ModifiedIn applies the In predicate on the "modified" field.
func ModifiedIsNil ¶
ModifiedIsNil applies the IsNil predicate on the "modified" field.
func ModifiedLT ¶
ModifiedLT applies the LT predicate on the "modified" field.
func ModifiedLTE ¶
ModifiedLTE applies the LTE predicate on the "modified" field.
func ModifiedNEQ ¶
ModifiedNEQ applies the NEQ predicate on the "modified" field.
func ModifiedNotIn ¶
ModifiedNotIn applies the NotIn predicate on the "modified" field.
func ModifiedNotNil ¶
ModifiedNotNil applies the NotNil predicate on the "modified" field.
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 ¶
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 ¶
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 ¶
OidcOrgID applies equality check predicate on the "oidc_org_id" field. It's identical to OidcOrgIDEQ.
func OidcOrgIDContains ¶
OidcOrgIDContains applies the Contains predicate on the "oidc_org_id" field.
func OidcOrgIDContainsFold ¶
OidcOrgIDContainsFold applies the ContainsFold predicate on the "oidc_org_id" field.
func OidcOrgIDEQ ¶
OidcOrgIDEQ applies the EQ predicate on the "oidc_org_id" field.
func OidcOrgIDEqualFold ¶
OidcOrgIDEqualFold applies the EqualFold predicate on the "oidc_org_id" field.
func OidcOrgIDGT ¶
OidcOrgIDGT applies the GT predicate on the "oidc_org_id" field.
func OidcOrgIDGTE ¶
OidcOrgIDGTE applies the GTE predicate on the "oidc_org_id" field.
func OidcOrgIDHasPrefix ¶
OidcOrgIDHasPrefix applies the HasPrefix predicate on the "oidc_org_id" field.
func OidcOrgIDHasSuffix ¶
OidcOrgIDHasSuffix applies the HasSuffix predicate on the "oidc_org_id" field.
func OidcOrgIDIn ¶
OidcOrgIDIn applies the In predicate on the "oidc_org_id" field.
func OidcOrgIDIsNil ¶
OidcOrgIDIsNil applies the IsNil predicate on the "oidc_org_id" field.
func OidcOrgIDLT ¶
OidcOrgIDLT applies the LT predicate on the "oidc_org_id" field.
func OidcOrgIDLTE ¶
OidcOrgIDLTE applies the LTE predicate on the "oidc_org_id" field.
func OidcOrgIDNEQ ¶
OidcOrgIDNEQ applies the NEQ predicate on the "oidc_org_id" field.
func OidcOrgIDNotIn ¶
OidcOrgIDNotIn applies the NotIn predicate on the "oidc_org_id" field.
func OidcOrgIDNotNil ¶
OidcOrgIDNotNil applies the NotNil predicate on the "oidc_org_id" field.
func ValidColumn ¶
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 ¶
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.