schema

package
v0.45.13 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2025 License: Apache-2.0 Imports: 53 Imported by: 0

Documentation

Overview

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Package schema contains the ent schema

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Index

Constants

View Source
const SchemaAPIToken = "api_token"

SchemaAPIToken is the name of the APIToken schema.

View Source
const SchemaActionPlan = "action_plan"

SchemaActionPlan is the name of the action plan schema.

View Source
const SchemaAssessment = "assessment"
View Source
const SchemaAssessmentResponse = "assessment_response"
View Source
const SchemaAsset = "asset"
View Source
const SchemaContact = "contact"

SchemaContact is the name of the Contact schema.

View Source
const SchemaControl = "control"

SchemaControl is the name of the control schema.

View Source
const SchemaControlObjective = "control_objective"

SchemaControlObjective is the name of the controlobjective schema.

View Source
const (
	// SchemaCustomDomain is the name of the CustomDomain schema.
	SchemaCustomDomain = "custom_domain"
)
View Source
const SchemaCustomTypeEnum = "custom_type_enum"

SchemaCustomTypeEnum is the name of the schema in snake case

View Source
const (
	// SchemaDNSVerification is the name of the DNSVerification schema.
	SchemaDNSVerification = "dns_verification"
)
View Source
const SchemaDocumentData = "document"

SchemaDocumentData is the name of the DocumentData schema.

View Source
const SchemaEmailVerificationToken = "email_verification_token" // nolint:gosec

SchemaEmailVerificationToken is the name of the EmailVerificationToken schema.

View Source
const SchemaEntity = "entity"

SchemaEntity is the name of the Entity schema.

View Source
const SchemaEntityType = "entity_type"

SchemaEntityType is the name of the EntityType schema.

View Source
const SchemaEvent = "event"

SchemaEvent is the name of the Event schema.

View Source
const SchemaEvidence = "evidence"

SchemaEvidence is the name of the Evidence schema.

View Source
const SchemaExport = "export"
View Source
const SchemaFile = "file"
View Source
const SchemaFileDownloadToken = "file_download_token"

SchemaFileDownloadToken is the name of the FileDownloadToken schema.

View Source
const SchemaFinding = "finding"

SchemaFinding is the name of the finding schema.

View Source
const SchemaFindingControl = "finding_control"

SchemaFindingControl is the name of the finding control schema.

View Source
const SchemaGroup = "group"

SchemaGroup is the name of the Group schema.

View Source
const SchemaGroupMembership = "group_membership"

SchemaGroupMembership is the name of the GroupMembership schema.

View Source
const SchemaGroupSetting = "group_setting"
View Source
const SchemaHush = "secret"

SchemaHush is the name of the Hush schema.

View Source
const SchemaImpersonationEvent = "impersonation_event"

SchemaImpersonationEventis the name of the schema in snake case

View Source
const SchemaImplementation = "control_implementation"

SchemaImplementation is the name of the ControlImplementation schema.

View Source
const SchemaIntegration = "integration"

SchemaIntegration is the name of the Integration schema.

View Source
const SchemaInternalPolicy = "internal_policy"

SchemaInternalPolicy is the name of the internal policy schema.

View Source
const SchemaInvite = "invite"
View Source
const SchemaJobResult = "job_result"

SchemaJobResultis the name of the schema in snake case

View Source
const SchemaJobRunner = "job_runner"

SchemaJobRunneris the name of the schema in snake case

View Source
const SchemaJobRunnerRegistrationToken = "job_runner_registration_token"

SchemaJobRunnerRegistrationTokenis the name of the schema in snake case

View Source
const SchemaJobRunnerToken = "job_runner_token"

SchemaJobRunnerTokenis the name of the schema in snake case

View Source
const SchemaJobTemplate = "job_template"

SchemaJobTemplate is the name of the schema in snake case

View Source
const (
	// SchemaMappableDomain is the name of the MappableDomain schema.
	SchemaMappableDomain = "mappable_domain"
)
View Source
const SchemaMappedControl = "mapped_control"
View Source
const SchemaNarrative = "narrative"
View Source
const SchemaNote = "note"
View Source
const SchemaNotification = "notification"
View Source
const SchemaOnboarding = "onboarding"

SchemaOnboarding is the name of the Onboarding schema.

View Source
const SchemaOrgMembership = "org_membership"
View Source
const SchemaOrgModule = "org_module"
View Source
const SchemaOrgPrice = "org_price"
View Source
const SchemaOrgProduct = "org_product"
View Source
const SchemaOrgSubscription = "org_subscription"

SchemaOrgSubscription is the name of the OrgSubscription schema.

View Source
const SchemaOrganization = "organization"
View Source
const SchemaOrganizationSetting = "organization_setting"

SchemaOrganizationSetting is the name of the OrganizationSetting schema.

View Source
const SchemaPasswordResetToken = "password_reset_token"

SchemaPasswordResetToken is the name of the PasswordResetToken schema.

View Source
const SchemaPersonalAccessToken = "personal_access_token"

SchemaPersonalAccessToken is the name of the PersonalAccessToken schema.

View Source
const SchemaProcedure = "procedure"

SchemaProcedure is the name of the procedure schema.

View Source
const SchemaProgram = "program"

SchemaProgram is the name of the Program schema.

View Source
const SchemaProgramMembership = "program_membership"

SchemaProgramMembership is the name of the ProgramMembership schema.

View Source
const SchemaRemediation = "remediation"

SchemaRemediation is the name of the remediation schema.

View Source
const SchemaReview = "review"

SchemaReview is the name of the review schema.

View Source
const SchemaRisk = "risk"

SchemaRisk is the name of the risk schema.

View Source
const SchemaScan = "scan"
View Source
const SchemaScheduledJob = "scheduled_job"

SchemaScheduledJob is the name of the schema in snake case

View Source
const SchemaScheduledJobRun = "scheduled_job_run"

SchemaScheduledJobRunis the name of the schema in snake case

View Source
const SchemaStandard = "standard"

SchemaStandard is the name of the standard schema.

View Source
const SchemaSubcontrol = "subcontrol"

SchemaSubcontrol is the name of the Subcontrol schema.

View Source
const SchemaSubprocessor = "subprocessor"

SchemaSubprocessor is the name of the Subprocessor schema.

View Source
const SchemaSubscriber = "subscriber"

SchemaSubscriber is the name of the Subscriber schema.

View Source
const SchemaTFASetting = "tfa_setting"

SchemaTFASetting is the name of the TFASetting schema.

View Source
const SchemaTagDefinition = "tag_definition"

SchemaTagDefinitionis the name of the schema in snake case

View Source
const SchemaTask = "task"

SchemaTask is the name of the Task schema.

View Source
const SchemaTemplate = "template"

SchemaTemplate is the name of the Template schema.

View Source
const SchemaTrustCenter = "trust_center"

SchemaTrustCenter is the name of the TrustCenter schema.

View Source
const SchemaTrustCenterCompliance = "trust_center_compliance"

SchemaTrustCenterCompliance is the name of the TrustCenterCompliance schema.

View Source
const SchemaTrustCenterDoc = "trust_center_doc"

SchemaTrustCenterDoc is the name of the TrustCenterDoc schema.

View Source
const SchemaTrustCenterSetting = "trust_center_setting"
View Source
const SchemaTrustCenterSubprocessor = "trust_center_subprocessor"

SchemaTrustCenterSubprocessor is the name of the TrustCenterSubprocessor schema.

View Source
const SchemaTrustCenterWatermarkConfig = "trust_center_watermark_config"

SchemaTrustCenterWatermarkConfig is the name of the TrustCenterWatermarkConfig schema.

View Source
const SchemaUser = "user"

SchemaUser is the name of the User schema.

View Source
const SchemaUserSetting = "user_setting"

SchemaUserSetting is the name of the UserSetting schema.

View Source
const SchemaVulnerability = "vulnerability"

SchemaVulnerability is the name of the vulnerability schema.

View Source
const SchemaWebauthn = "webauthn"

SchemaWebauthn is the name of the Webauthn schema.

Variables

View Source
var (
	// ErrInvalidTokenSize is returned when session token size is invalid
	ErrInvalidTokenSize = errors.New("invalid token size")

	// ErrContainsSpaces is returned when field contains spaces
	ErrContainsSpaces = errors.New("field should not contain spaces")

	// ErrUnexpectedMutationType is returned when an unexpected mutation type is encountered
	ErrUnexpectedMutationType = errors.New("unexpected mutation type")
)

Functions

func AutoHushMixin added in v0.24.1

func AutoHushMixin(schema ent.Interface) ent.Mixin

AutoHushMixin is a convenience function that creates the mixin automatically. This could be called by code generation for any schema with encrypted fields.

Types

type APIToken

type APIToken struct {
	SchemaFuncs

	ent.Schema
}

APIToken holds the schema definition for the APIToken entity.

func (APIToken) Annotations

func (a APIToken) Annotations() []schema.Annotation

Annotations of the APIToken

func (APIToken) Fields

func (APIToken) Fields() []ent.Field

Fields of the APIToken

func (APIToken) GetType added in v0.8.2

func (APIToken) GetType() any

GetType returns the type of the APIToken schema.

func (APIToken) Hooks

func (APIToken) Hooks() []ent.Hook

Hooks of the APIToken

func (APIToken) Indexes

func (APIToken) Indexes() []ent.Index

Indexes of the APIToken

func (APIToken) Interceptors

func (a APIToken) Interceptors() []ent.Interceptor

Interceptors of the APIToken

func (APIToken) Mixin

func (a APIToken) Mixin() []ent.Mixin

Mixin of the APIToken

func (APIToken) Modules added in v0.28.0

func (APIToken) Modules() []models.OrgModule

func (APIToken) Name added in v0.8.2

func (APIToken) Name() string

Name returns the name of the APIToken schema.

func (APIToken) PluralName added in v0.8.2

func (APIToken) PluralName() string

PluralName returns the plural name of the APIToken schema.

func (APIToken) Policy

func (a APIToken) Policy() ent.Policy

Policy of the APIToken

type ActionPlan added in v0.3.3

type ActionPlan struct {
	SchemaFuncs

	ent.Schema
}

ActionPlan defines the action plan schema.

func (ActionPlan) Annotations added in v0.3.3

func (a ActionPlan) Annotations() []schema.Annotation

Annotations of the ActionPlan

func (ActionPlan) Edges added in v0.3.3

func (a ActionPlan) Edges() []ent.Edge

Edges of the ActionPlan

func (ActionPlan) Fields added in v0.3.3

func (ActionPlan) Fields() []ent.Field

Fields returns action plan fields.

func (ActionPlan) GetType added in v0.8.2

func (ActionPlan) GetType() any

GetType returns the type of the action plan schema.

func (ActionPlan) Mixin added in v0.3.3

func (a ActionPlan) Mixin() []ent.Mixin

Mixin of the ActionPlan

func (ActionPlan) Modules added in v0.28.0

func (ActionPlan) Modules() []models.OrgModule

func (ActionPlan) Name added in v0.8.2

func (ActionPlan) Name() string

Name returns the name of the action plan schema.

func (ActionPlan) PluralName added in v0.8.2

func (ActionPlan) PluralName() string

PluralName returns the plural name of the action plan schema.

func (ActionPlan) Policy added in v0.7.5

func (a ActionPlan) Policy() ent.Policy

Policy of the ActionPlan

type ActionPlanHistory added in v0.3.3

type ActionPlanHistory struct {
	ent.Schema
}

ActionPlanHistory holds the schema definition for the ActionPlanHistory entity.

func (ActionPlanHistory) Annotations added in v0.3.3

func (ActionPlanHistory) Annotations() []schema.Annotation

Annotations of the ActionPlanHistory.

func (ActionPlanHistory) Fields added in v0.3.3

func (ActionPlanHistory) Fields() []ent.Field

Fields of the ActionPlanHistory.

func (ActionPlanHistory) Indexes added in v0.3.3

func (ActionPlanHistory) Indexes() []ent.Index

Indexes of the ActionPlanHistory

func (ActionPlanHistory) Interceptors added in v0.7.5

func (ActionPlanHistory) Interceptors() []ent.Interceptor

Interceptors of the ActionPlanHistory

func (ActionPlanHistory) Policy added in v0.23.1

func (ActionPlanHistory) Policy() ent.Policy

Policy of the ActionPlanHistory. ensure history.AllowIfHistoryRequest() is already added to the base policy

type Assessment added in v0.42.6

type Assessment struct {
	SchemaFuncs
	ent.Schema
}

Assessment stores information about an questionnaire filled out

func (Assessment) Annotations added in v0.42.6

func (Assessment) Annotations() []schema.Annotation

Annotations of the Assessment

func (Assessment) Edges added in v0.42.6

func (a Assessment) Edges() []ent.Edge

func (Assessment) Fields added in v0.42.6

func (Assessment) Fields() []ent.Field

func (Assessment) GetType added in v0.42.6

func (Assessment) GetType() any

func (Assessment) Hooks added in v0.42.6

func (Assessment) Hooks() []ent.Hook

func (Assessment) Indexes added in v0.42.6

func (Assessment) Indexes() []ent.Index

Indexes of the Assessment

func (Assessment) Interceptors added in v0.42.6

func (Assessment) Interceptors() []ent.Interceptor

Interceptors of the Assessment

func (Assessment) Mixin added in v0.42.6

func (a Assessment) Mixin() []ent.Mixin

func (Assessment) Modules added in v0.42.6

func (Assessment) Modules() []models.OrgModule

func (Assessment) Name added in v0.42.6

func (Assessment) Name() string

func (Assessment) PluralName added in v0.42.6

func (Assessment) PluralName() string

func (Assessment) Policy added in v0.42.6

func (Assessment) Policy() ent.Policy

type AssessmentHistory added in v0.42.6

type AssessmentHistory struct {
	ent.Schema
}

AssessmentHistory holds the schema definition for the AssessmentHistory entity.

func (AssessmentHistory) Annotations added in v0.42.6

func (AssessmentHistory) Annotations() []schema.Annotation

Annotations of the AssessmentHistory.

func (AssessmentHistory) Fields added in v0.42.6

func (AssessmentHistory) Fields() []ent.Field

Fields of the AssessmentHistory.

func (AssessmentHistory) Indexes added in v0.42.6

func (AssessmentHistory) Indexes() []ent.Index

Indexes of the AssessmentHistory

func (AssessmentHistory) Interceptors added in v0.42.6

func (AssessmentHistory) Interceptors() []ent.Interceptor

Interceptors of the AssessmentHistory

func (AssessmentHistory) Policy added in v0.42.6

func (AssessmentHistory) Policy() ent.Policy

Policy of the AssessmentHistory. ensure history.AllowIfHistoryRequest() is already added to the base policy

type AssessmentResponse added in v0.42.6

type AssessmentResponse struct {
	SchemaFuncs
	ent.Schema
}

AssessmentResponse stores information about a user's response to an assessment including status, completion, and answers

func (AssessmentResponse) Annotations added in v0.42.6

func (AssessmentResponse) Annotations() []schema.Annotation

Annotations of the AssessmentResponse

func (AssessmentResponse) Edges added in v0.42.6

func (ar AssessmentResponse) Edges() []ent.Edge

func (AssessmentResponse) Fields added in v0.42.6

func (AssessmentResponse) Fields() []ent.Field

func (AssessmentResponse) GetType added in v0.42.6

func (AssessmentResponse) GetType() any

func (AssessmentResponse) Indexes added in v0.42.6

func (AssessmentResponse) Indexes() []ent.Index

Indexes of the AssessmentResponse

func (AssessmentResponse) Interceptors added in v0.42.6

func (AssessmentResponse) Interceptors() []ent.Interceptor

Interceptors of the AssessmentResponse

func (AssessmentResponse) Mixin added in v0.42.6

func (ar AssessmentResponse) Mixin() []ent.Mixin

func (AssessmentResponse) Modules added in v0.42.6

func (AssessmentResponse) Modules() []models.OrgModule

func (AssessmentResponse) Name added in v0.42.6

func (AssessmentResponse) Name() string

func (AssessmentResponse) PluralName added in v0.42.6

func (AssessmentResponse) PluralName() string

func (AssessmentResponse) Policy added in v0.42.6

func (AssessmentResponse) Policy() ent.Policy

type AssessmentResponseHistory added in v0.42.6

type AssessmentResponseHistory struct {
	ent.Schema
}

AssessmentResponseHistory holds the schema definition for the AssessmentResponseHistory entity.

func (AssessmentResponseHistory) Annotations added in v0.42.6

Annotations of the AssessmentResponseHistory.

func (AssessmentResponseHistory) Fields added in v0.42.6

func (AssessmentResponseHistory) Fields() []ent.Field

Fields of the AssessmentResponseHistory.

func (AssessmentResponseHistory) Indexes added in v0.42.6

func (AssessmentResponseHistory) Indexes() []ent.Index

Indexes of the AssessmentResponseHistory

func (AssessmentResponseHistory) Interceptors added in v0.42.6

func (AssessmentResponseHistory) Interceptors() []ent.Interceptor

Interceptors of the AssessmentResponseHistory

func (AssessmentResponseHistory) Policy added in v0.42.6

Policy of the AssessmentResponseHistory. ensure history.AllowIfHistoryRequest() is already added to the base policy

type Asset added in v0.19.0

type Asset struct {
	SchemaFuncs
	ent.Schema
}

Asset stores information about a discovered asset such as technology, domain, or device.

func (Asset) Annotations added in v0.19.0

func (a Asset) Annotations() []schema.Annotation

Annotations of the Asset

func (Asset) Edges added in v0.19.0

func (a Asset) Edges() []ent.Edge

func (Asset) Fields added in v0.19.0

func (Asset) Fields() []ent.Field

func (Asset) GetType added in v0.19.0

func (Asset) GetType() any

func (Asset) Indexes added in v0.19.0

func (Asset) Indexes() []ent.Index

Indexes of the Asset

func (Asset) Mixin added in v0.19.0

func (a Asset) Mixin() []ent.Mixin

func (Asset) Modules added in v0.28.0

func (a Asset) Modules() []models.OrgModule

func (Asset) Name added in v0.19.0

func (Asset) Name() string

func (Asset) PluralName added in v0.19.0

func (Asset) PluralName() string

func (Asset) Policy added in v0.19.0

func (a Asset) Policy() ent.Policy

Policy of the Asset

type AssetHistory added in v0.19.0

type AssetHistory struct {
	ent.Schema
}

AssetHistory holds the schema definition for the AssetHistory entity.

func (AssetHistory) Annotations added in v0.19.0

func (AssetHistory) Annotations() []schema.Annotation

Annotations of the AssetHistory.

func (AssetHistory) Fields added in v0.19.0

func (AssetHistory) Fields() []ent.Field

Fields of the AssetHistory.

func (AssetHistory) Indexes added in v0.19.0

func (AssetHistory) Indexes() []ent.Index

Indexes of the AssetHistory

func (AssetHistory) Interceptors added in v0.19.0

func (AssetHistory) Interceptors() []ent.Interceptor

Interceptors of the AssetHistory

func (AssetHistory) Policy added in v0.23.1

func (AssetHistory) Policy() ent.Policy

Policy of the AssetHistory. ensure history.AllowIfHistoryRequest() is already added to the base policy

type AutoHushEncryptionMixin added in v0.24.1

type AutoHushEncryptionMixin struct {
	mixin.Schema
	// contains filtered or unexported fields
}

AutoHushEncryptionMixin automatically detects and applies encryption hooks for fields annotated with hush.EncryptField().

This mixin is included by default in all schemas via getMixins(). It only applies encryption to fields explicitly marked with hush.EncryptField() annotations, providing zero overhead for schemas without encrypted fields.

Usage:

  1. Annotate any field with hush.EncryptField(): field.String("secret_value"). Sensitive(). Annotations(hush.EncryptField())

  2. The mixin automatically detects and encrypts the field

No manual configuration required - encryption is handled transparently.

func NewAutoHushEncryptionMixin added in v0.24.1

func NewAutoHushEncryptionMixin(schema ent.Interface) *AutoHushEncryptionMixin

NewAutoHushEncryptionMixin creates a new auto-encryption mixin for the given schema.

func (AutoHushEncryptionMixin) Fields added in v0.24.1

func (m AutoHushEncryptionMixin) Fields() []ent.Field

Fields returns no additional fields since this mixin only adds behavior.

func (AutoHushEncryptionMixin) Hooks added in v0.24.1

func (m AutoHushEncryptionMixin) Hooks() []ent.Hook

Hooks returns encryption hooks for all fields with hush.EncryptField() annotations. If no fields have the annotation, returns a no-op hook with zero overhead.

func (AutoHushEncryptionMixin) Interceptors added in v0.24.1

func (m AutoHushEncryptionMixin) Interceptors() []ent.Interceptor

Interceptors returns decryption interceptors for all fields with hush.EncryptField() annotations. If no fields have the annotation, returns a no-op interceptor with zero overhead.

type Contact

type Contact struct {
	SchemaFuncs

	ent.Schema
}

Contact holds the schema definition for the Contact entity

func (Contact) Annotations

func (c Contact) Annotations() []schema.Annotation

Annotations of the Contact

func (Contact) Edges

func (c Contact) Edges() []ent.Edge

Edges of the Contact

func (Contact) Fields

func (Contact) Fields() []ent.Field

Fields of the Contact

func (Contact) GetType added in v0.8.2

func (Contact) GetType() any

GetType returns the type of the Contact schema.

func (Contact) Hooks

func (Contact) Hooks() []ent.Hook

Hooks of the Contact

func (Contact) Mixin

func (c Contact) Mixin() []ent.Mixin

Mixin of the Contact

func (Contact) Modules added in v0.28.0

func (Contact) Modules() []models.OrgModule

func (Contact) Name added in v0.8.2

func (Contact) Name() string

Name returns the name of the Contact schema.

func (Contact) PluralName added in v0.8.2

func (Contact) PluralName() string

PluralName returns the plural name of the Contact schema.

func (Contact) Policy

func (c Contact) Policy() ent.Policy

Policy of the Contact

type ContactHistory

type ContactHistory struct {
	ent.Schema
}

ContactHistory holds the schema definition for the ContactHistory entity.

func (ContactHistory) Annotations

func (ContactHistory) Annotations() []schema.Annotation

Annotations of the ContactHistory.

func (ContactHistory) Fields

func (ContactHistory) Fields() []ent.Field

Fields of the ContactHistory.

func (ContactHistory) Indexes

func (ContactHistory) Indexes() []ent.Index

Indexes of the ContactHistory

func (ContactHistory) Interceptors

func (ContactHistory) Interceptors() []ent.Interceptor

Interceptors of the ContactHistory

func (ContactHistory) Policy

func (ContactHistory) Policy() ent.Policy

Policy of the ContactHistory. ensure history.AllowIfHistoryRequest() is already added to the base policy

type Control added in v0.3.3

type Control struct {
	SchemaFuncs

	ent.Schema
}

Control defines the control schema.

func (Control) Annotations added in v0.3.3

func (c Control) Annotations() []schema.Annotation

Annotations of the Control

func (Control) Edges added in v0.3.3

func (c Control) Edges() []ent.Edge

Edges of the Control

func (Control) Fields added in v0.3.3

func (Control) Fields() []ent.Field

Fields returns control fields.

func (Control) GetType added in v0.8.2

func (Control) GetType() any

GetType returns the type of the control schema.

func (Control) Hooks added in v0.18.3

func (Control) Hooks() []ent.Hook

func (Control) Indexes added in v0.7.3

func (Control) Indexes() []ent.Index

func (Control) Mixin added in v0.3.3

func (c Control) Mixin() []ent.Mixin

Mixin of the Control

func (Control) Modules added in v0.28.0

func (Control) Modules() []models.OrgModule

func (Control) Name added in v0.8.2

func (Control) Name() string

Name returns the name of the control schema.

func (Control) PluralName added in v0.8.2

func (Control) PluralName() string

PluralName returns the plural name of the control schema.

func (Control) Policy added in v0.5.0

func (c Control) Policy() ent.Policy

Policy of the Control

type ControlHistory added in v0.3.3

type ControlHistory struct {
	ent.Schema
}

ControlHistory holds the schema definition for the ControlHistory entity.

func (ControlHistory) Annotations added in v0.3.3

func (ControlHistory) Annotations() []schema.Annotation

Annotations of the ControlHistory.

func (ControlHistory) Fields added in v0.3.3

func (ControlHistory) Fields() []ent.Field

Fields of the ControlHistory.

func (ControlHistory) Indexes added in v0.3.3

func (ControlHistory) Indexes() []ent.Index

Indexes of the ControlHistory

func (ControlHistory) Interceptors added in v0.5.0

func (ControlHistory) Interceptors() []ent.Interceptor

Interceptors of the ControlHistory

func (ControlHistory) Policy added in v0.5.0

func (ControlHistory) Policy() ent.Policy

Policy of the ControlHistory. ensure history.AllowIfHistoryRequest() is already added to the base policy

type ControlImplementation added in v0.7.3

type ControlImplementation struct {
	SchemaFuncs

	ent.Schema
}

ControlImplementation holds the schema definition for the ControlImplementation entity

func (ControlImplementation) Annotations added in v0.7.3

func (c ControlImplementation) Annotations() []schema.Annotation

Annotations of the ControlImplementation

func (ControlImplementation) Edges added in v0.7.3

func (c ControlImplementation) Edges() []ent.Edge

Edges of the ControlImplementation

func (ControlImplementation) Fields added in v0.7.3

func (ControlImplementation) Fields() []ent.Field

Fields of the ControlImplementation

func (ControlImplementation) GetType added in v0.8.2

func (ControlImplementation) GetType() any

GetType returns the type of the ControlImplementation schema.

func (ControlImplementation) Hooks added in v0.8.10

func (ControlImplementation) Hooks() []ent.Hook

Hooks of the ControlImplementation

func (ControlImplementation) Mixin added in v0.7.3

func (c ControlImplementation) Mixin() []ent.Mixin

Mixin of the ControlImplementation

func (ControlImplementation) Modules added in v0.28.0

func (ControlImplementation) Name added in v0.8.2

Name returns the name of the ControlImplementation schema.

func (ControlImplementation) PluralName added in v0.8.2

func (ControlImplementation) PluralName() string

PluralName returns the plural name of the ControlImplementation schema.

func (ControlImplementation) Policy added in v0.7.3

func (c ControlImplementation) Policy() ent.Policy

Policy of the ControlImplementation

type ControlImplementationHistory added in v0.7.3

type ControlImplementationHistory struct {
	ent.Schema
}

ControlImplementationHistory holds the schema definition for the ControlImplementationHistory entity.

func (ControlImplementationHistory) Annotations added in v0.7.3

Annotations of the ControlImplementationHistory.

func (ControlImplementationHistory) Fields added in v0.7.3

Fields of the ControlImplementationHistory.

func (ControlImplementationHistory) Indexes added in v0.7.3

Indexes of the ControlImplementationHistory

func (ControlImplementationHistory) Interceptors added in v0.7.3

func (ControlImplementationHistory) Interceptors() []ent.Interceptor

Interceptors of the ControlImplementationHistory

func (ControlImplementationHistory) Policy added in v0.23.1

Policy of the ControlImplementationHistory. ensure history.AllowIfHistoryRequest() is already added to the base policy

type ControlMixin added in v0.8.9

type ControlMixin struct {
	mixin.Schema

	// SchemaType is the schema that implements the SchemaFuncs interface that is using
	// this mixin
	SchemaType any
}

ControlMixin implements the control pattern fields for different schemas.

func (ControlMixin) Annotations added in v0.8.9

func (ControlMixin) Annotations() []schema.Annotation

Annotations of the Control

func (ControlMixin) Edges added in v0.8.9

func (m ControlMixin) Edges() []ent.Edge

Edges of the ControlMixin.

func (ControlMixin) Fields added in v0.8.9

func (ControlMixin) Fields() []ent.Field

Fields of the ControlMixin.

func (ControlMixin) Hooks added in v0.8.9

func (ControlMixin) Hooks() []ent.Hook

Hooks of the ControlMixin

func (ControlMixin) Interceptors added in v0.34.3

func (ControlMixin) Interceptors() []ent.Interceptor

Interceptors of the ControlMixin

type ControlObjective added in v0.3.3

type ControlObjective struct {
	SchemaFuncs

	ent.Schema
}

ControlObjective defines the controlobjective schema.

func (ControlObjective) Annotations added in v0.3.3

func (c ControlObjective) Annotations() []schema.Annotation

Annotations of the ControlObjective

func (ControlObjective) Edges added in v0.3.3

func (c ControlObjective) Edges() []ent.Edge

Edges of the ControlObjective

func (ControlObjective) Fields added in v0.3.3

func (ControlObjective) Fields() []ent.Field

Fields returns controlobjective fields.

func (ControlObjective) GetType added in v0.8.2

func (ControlObjective) GetType() any

GetType returns the type of the controlobjective schema.

func (ControlObjective) Mixin added in v0.3.3

func (c ControlObjective) Mixin() []ent.Mixin

Mixin of the ControlObjective

func (ControlObjective) Modules added in v0.28.0

func (ControlObjective) Modules() []models.OrgModule

func (ControlObjective) Name added in v0.8.2

func (ControlObjective) Name() string

Name returns the name of the controlobjective schema.

func (ControlObjective) PluralName added in v0.8.2

func (ControlObjective) PluralName() string

PluralName returns the plural name of the controlobjective schema.

func (ControlObjective) Policy added in v0.4.4

func (c ControlObjective) Policy() ent.Policy

Policy of the ControlObjective

type ControlObjectiveHistory added in v0.3.3

type ControlObjectiveHistory struct {
	ent.Schema
}

ControlObjectiveHistory holds the schema definition for the ControlObjectiveHistory entity.

func (ControlObjectiveHistory) Annotations added in v0.3.3

func (ControlObjectiveHistory) Annotations() []schema.Annotation

Annotations of the ControlObjectiveHistory.

func (ControlObjectiveHistory) Fields added in v0.3.3

func (ControlObjectiveHistory) Fields() []ent.Field

Fields of the ControlObjectiveHistory.

func (ControlObjectiveHistory) Indexes added in v0.3.3

func (ControlObjectiveHistory) Indexes() []ent.Index

Indexes of the ControlObjectiveHistory

func (ControlObjectiveHistory) Interceptors added in v0.4.4

func (ControlObjectiveHistory) Interceptors() []ent.Interceptor

Interceptors of the ControlObjectiveHistory

func (ControlObjectiveHistory) Policy added in v0.4.4

Policy of the ControlObjectiveHistory. ensure history.AllowIfHistoryRequest() is already added to the base policy

type CustomDomain added in v0.12.1

type CustomDomain struct {
	SchemaFuncs

	ent.Schema
}

CustomDomain holds the schema definition for the CustomDomain

func (CustomDomain) Edges added in v0.12.1

func (e CustomDomain) Edges() []ent.Edge

Edges of the CustomDomain

func (CustomDomain) Fields added in v0.12.1

func (CustomDomain) Fields() []ent.Field

Fields of the CustomDomain

func (CustomDomain) GetType added in v0.12.1

func (CustomDomain) GetType() any

GetType returns the type of the CustomDomain schema.

func (CustomDomain) Hooks added in v0.12.1

func (CustomDomain) Hooks() []ent.Hook

Hooks of the CustomDomain

func (CustomDomain) Indexes added in v0.12.1

func (CustomDomain) Indexes() []ent.Index

Indexes of the CustomDomain

func (CustomDomain) Mixin added in v0.12.1

func (e CustomDomain) Mixin() []ent.Mixin

Mixin of the CustomDomain

func (CustomDomain) Modules added in v0.28.0

func (CustomDomain) Modules() []models.OrgModule

func (CustomDomain) Name added in v0.12.1

func (CustomDomain) Name() string

Name returns the name of the CustomDomain schema.

func (CustomDomain) PluralName added in v0.12.1

func (CustomDomain) PluralName() string

PluralName returns the plural name of the CustomDomain schema.

func (CustomDomain) Policy added in v0.12.1

func (e CustomDomain) Policy() ent.Policy

Policy of the CustomDomain

type CustomDomainHistory added in v0.12.1

type CustomDomainHistory struct {
	ent.Schema
}

CustomDomainHistory holds the schema definition for the CustomDomainHistory entity.

func (CustomDomainHistory) Annotations added in v0.12.1

func (CustomDomainHistory) Annotations() []schema.Annotation

Annotations of the CustomDomainHistory.

func (CustomDomainHistory) Fields added in v0.12.1

func (CustomDomainHistory) Fields() []ent.Field

Fields of the CustomDomainHistory.

func (CustomDomainHistory) Indexes added in v0.12.1

func (CustomDomainHistory) Indexes() []ent.Index

Indexes of the CustomDomainHistory

func (CustomDomainHistory) Interceptors added in v0.12.1

func (CustomDomainHistory) Interceptors() []ent.Interceptor

Interceptors of the CustomDomainHistory

func (CustomDomainHistory) Policy added in v0.23.1

func (CustomDomainHistory) Policy() ent.Policy

Policy of the CustomDomainHistory. ensure history.AllowIfHistoryRequest() is already added to the base policy

type CustomEnumMixin added in v0.43.0

type CustomEnumMixin struct {
	mixin.Schema
	// contains filtered or unexported fields
}

CustomEnumMixin holds the schema definition for the custom enums

func (CustomEnumMixin) Edges added in v0.43.0

func (c CustomEnumMixin) Edges() []ent.Edge

Edges of the CustomEnumMixin

func (CustomEnumMixin) Fields added in v0.43.0

func (c CustomEnumMixin) Fields() []ent.Field

Fields of the CustomEnumMixin.

func (CustomEnumMixin) Hooks added in v0.43.0

func (c CustomEnumMixin) Hooks() []ent.Hook

Hooks of the CustomEnumMixin

type CustomTypeEnum added in v0.43.0

type CustomTypeEnum struct {
	SchemaFuncs

	ent.Schema
}

CustomTypeEnum holds the schema definition for the CustomTypeEnum entity

func (CustomTypeEnum) Annotations added in v0.43.0

func (CustomTypeEnum) Annotations() []schema.Annotation

Annotations of the CustomTypeEnum

func (CustomTypeEnum) Edges added in v0.43.0

func (t CustomTypeEnum) Edges() []ent.Edge

Edges of the CustomTypeEnum

func (CustomTypeEnum) Fields added in v0.43.0

func (CustomTypeEnum) Fields() []ent.Field

Fields of the CustomTypeEnum

func (CustomTypeEnum) GetType added in v0.43.0

func (CustomTypeEnum) GetType() any

GetType returns the type of the schema

func (CustomTypeEnum) Hooks added in v0.43.0

func (CustomTypeEnum) Hooks() []ent.Hook

Hooks of the CustomTypeEnum

func (CustomTypeEnum) Indexes added in v0.43.0

func (CustomTypeEnum) Indexes() []ent.Index

Indexes of the CustomTypeEnum

func (CustomTypeEnum) Interceptors added in v0.43.0

func (CustomTypeEnum) Interceptors() []ent.Interceptor

Interceptors of the CustomTypeEnum

func (CustomTypeEnum) Mixin added in v0.43.0

func (t CustomTypeEnum) Mixin() []ent.Mixin

Mixin of the CustomTypeEnum

func (CustomTypeEnum) Modules added in v0.43.0

func (CustomTypeEnum) Modules() []models.OrgModule

Modules this schema has access to

func (CustomTypeEnum) Name added in v0.43.0

func (CustomTypeEnum) Name() string

Name is the name of the schema in snake case

func (CustomTypeEnum) PluralName added in v0.43.0

func (CustomTypeEnum) PluralName() string

PluralName returns the plural name of the schema

func (CustomTypeEnum) Policy added in v0.43.0

func (CustomTypeEnum) Policy() ent.Policy

Policy of the CustomTypeEnum

type DNSVerification added in v0.15.0

type DNSVerification struct {
	SchemaFuncs

	ent.Schema
}

DNSVerification holds the schema definition for the DNSVerification

func (DNSVerification) Edges added in v0.15.0

func (e DNSVerification) Edges() []ent.Edge

Edges of the DNSVerification

func (DNSVerification) Fields added in v0.15.0

func (DNSVerification) Fields() []ent.Field

Fields of the DNSVerification

func (DNSVerification) GetType added in v0.15.0

func (DNSVerification) GetType() any

GetType returns the type of the DNSVerification schema.

func (DNSVerification) Hooks added in v0.15.0

func (DNSVerification) Hooks() []ent.Hook

func (DNSVerification) Indexes added in v0.15.0

func (DNSVerification) Indexes() []ent.Index

Indexes of the DNSVerification

func (DNSVerification) Mixin added in v0.15.0

func (e DNSVerification) Mixin() []ent.Mixin

Mixin of the DNSVerification

func (DNSVerification) Modules added in v0.28.0

func (DNSVerification) Modules() []models.OrgModule

func (DNSVerification) Name added in v0.15.0

func (DNSVerification) Name() string

Name returns the name of the DNSVerification schema.

func (DNSVerification) PluralName added in v0.15.0

func (DNSVerification) PluralName() string

PluralName returns the plural name of the DNSVerification schema.

func (DNSVerification) Policy added in v0.15.0

func (DNSVerification) Policy() ent.Policy

Policy of the DNSVerification

type DNSVerificationHistory added in v0.15.0

type DNSVerificationHistory struct {
	ent.Schema
}

DNSVerificationHistory holds the schema definition for the DNSVerificationHistory entity.

func (DNSVerificationHistory) Annotations added in v0.15.0

func (DNSVerificationHistory) Annotations() []schema.Annotation

Annotations of the DNSVerificationHistory.

func (DNSVerificationHistory) Fields added in v0.15.0

func (DNSVerificationHistory) Fields() []ent.Field

Fields of the DNSVerificationHistory.

func (DNSVerificationHistory) Indexes added in v0.15.0

func (DNSVerificationHistory) Indexes() []ent.Index

Indexes of the DNSVerificationHistory

func (DNSVerificationHistory) Interceptors added in v0.15.0

func (DNSVerificationHistory) Interceptors() []ent.Interceptor

Interceptors of the DNSVerificationHistory

func (DNSVerificationHistory) Policy added in v0.23.1

Policy of the DNSVerificationHistory. ensure history.AllowIfHistoryRequest() is already added to the base policy

type DocumentData

type DocumentData struct {
	SchemaFuncs

	ent.Schema
}

DocumentData holds the schema definition for the DocumentData entity

func (DocumentData) Annotations

func (d DocumentData) Annotations() []schema.Annotation

Annotations of the DocumentData

func (DocumentData) Edges

func (d DocumentData) Edges() []ent.Edge

Edges of the DocumentData

func (DocumentData) Fields

func (DocumentData) Fields() []ent.Field

Fields of the DocumentData

func (DocumentData) GetType added in v0.8.2

func (DocumentData) GetType() any

GetType returns the type of the DocumentData schema.

func (DocumentData) Hooks added in v0.34.5

func (d DocumentData) Hooks() []ent.Hook

func (DocumentData) Mixin

func (d DocumentData) Mixin() []ent.Mixin

Mixin of the DocumentData

func (DocumentData) Modules added in v0.28.0

func (DocumentData) Modules() []models.OrgModule

func (DocumentData) Name added in v0.8.2

func (DocumentData) Name() string

Name returns the name of the DocumentData schema.

func (DocumentData) PluralName added in v0.8.2

func (DocumentData) PluralName() string

PluralName returns the plural name of the DocumentData schema.

func (DocumentData) Policy

func (d DocumentData) Policy() ent.Policy

Policy of the DocumentData

type DocumentDataHistory

type DocumentDataHistory struct {
	ent.Schema
}

DocumentDataHistory holds the schema definition for the DocumentDataHistory entity.

func (DocumentDataHistory) Annotations

func (DocumentDataHistory) Annotations() []schema.Annotation

Annotations of the DocumentDataHistory.

func (DocumentDataHistory) Fields

func (DocumentDataHistory) Fields() []ent.Field

Fields of the DocumentDataHistory.

func (DocumentDataHistory) Indexes

func (DocumentDataHistory) Indexes() []ent.Index

Indexes of the DocumentDataHistory

func (DocumentDataHistory) Interceptors

func (DocumentDataHistory) Interceptors() []ent.Interceptor

Interceptors of the DocumentDataHistory

func (DocumentDataHistory) Policy

func (DocumentDataHistory) Policy() ent.Policy

Policy of the DocumentDataHistory. ensure history.AllowIfHistoryRequest() is already added to the base policy

type DocumentMixin added in v0.7.5

type DocumentMixin struct {
	mixin.Schema

	DocumentType string
}

DocumentMixin implements the document pattern with approver for schemas.

func NewDocumentMixin added in v0.8.3

func NewDocumentMixin(schema any) DocumentMixin

NewDocumentMixin creates a new DocumentMixin with the given schema the schema must implement the SchemaFuncs interface

func (DocumentMixin) Edges added in v0.7.5

func (d DocumentMixin) Edges() []ent.Edge

Edges of the DocumentMixin.

func (DocumentMixin) Fields added in v0.7.5

func (d DocumentMixin) Fields() []ent.Field

Fields of the DocumentMixin.

func (DocumentMixin) Hooks added in v0.7.5

func (d DocumentMixin) Hooks() []ent.Hook

Hooks of the DocumentMixin.

type EdgeInfo added in v0.5.0

type EdgeInfo struct {
	Schema          any
	ViewPermissions bool
}

EdgeInfo is used to define the edge information for the reverse edges (group schema)

type EmailVerificationToken

type EmailVerificationToken struct {
	SchemaFuncs

	ent.Schema
}

EmailVerificationToken holds the schema definition for the EmailVerificationToken entity

func (EmailVerificationToken) Annotations

func (e EmailVerificationToken) Annotations() []schema.Annotation

Annotations of the EmailVerificationToken

func (EmailVerificationToken) Edges

func (EmailVerificationToken) Edges() []ent.Edge

Edges of the EmailVerificationToken

func (EmailVerificationToken) Fields

func (EmailVerificationToken) Fields() []ent.Field

Fields of the EmailVerificationToken

func (EmailVerificationToken) GetType added in v0.8.2

func (EmailVerificationToken) GetType() any

GetType returns the type of the EmailVerificationToken schema.

func (EmailVerificationToken) Hooks

func (EmailVerificationToken) Hooks() []ent.Hook

Hooks of the EmailVerificationToken

func (EmailVerificationToken) Indexes

func (EmailVerificationToken) Indexes() []ent.Index

Indexes of the EmailVerificationToken

func (EmailVerificationToken) Mixin

func (e EmailVerificationToken) Mixin() []ent.Mixin

Mixin of the EmailVerificationToken

func (EmailVerificationToken) Modules added in v0.28.0

func (EmailVerificationToken) Name added in v0.8.2

Name returns the name of the EmailVerificationToken schema.

func (EmailVerificationToken) PluralName added in v0.8.2

func (EmailVerificationToken) PluralName() string

PluralName returns the plural name of the EmailVerificationToken schema.

func (EmailVerificationToken) Policy

func (e EmailVerificationToken) Policy() ent.Policy

Policy of the EmailVerificationToken

type Entity

type Entity struct {
	SchemaFuncs

	ent.Schema
}

Entity holds the schema definition for the Entity entity

func (Entity) Edges

func (e Entity) Edges() []ent.Edge

Edges of the Entity

func (Entity) Fields

func (Entity) Fields() []ent.Field

Fields of the Entity

func (Entity) GetType added in v0.8.2

func (Entity) GetType() any

GetType returns the type of the Entity schema.

func (Entity) Hooks

func (Entity) Hooks() []ent.Hook

Hooks of the Entity

func (Entity) Indexes

func (Entity) Indexes() []ent.Index

Indexes of the Entity

func (Entity) Mixin

func (e Entity) Mixin() []ent.Mixin

Mixin of the Entity

func (Entity) Modules added in v0.28.0

func (Entity) Modules() []models.OrgModule

func (Entity) Name added in v0.8.2

func (Entity) Name() string

Name returns the name of the Entity schema.

func (Entity) PluralName added in v0.8.2

func (Entity) PluralName() string

PluralName returns the plural name of the Entity schema.

func (Entity) Policy

func (e Entity) Policy() ent.Policy

Policy of the Entity

type EntityHistory

type EntityHistory struct {
	ent.Schema
}

EntityHistory holds the schema definition for the EntityHistory entity.

func (EntityHistory) Annotations

func (EntityHistory) Annotations() []schema.Annotation

Annotations of the EntityHistory.

func (EntityHistory) Fields

func (EntityHistory) Fields() []ent.Field

Fields of the EntityHistory.

func (EntityHistory) Indexes

func (EntityHistory) Indexes() []ent.Index

Indexes of the EntityHistory

func (EntityHistory) Interceptors

func (EntityHistory) Interceptors() []ent.Interceptor

Interceptors of the EntityHistory

func (EntityHistory) Policy

func (EntityHistory) Policy() ent.Policy

Policy of the EntityHistory. ensure history.AllowIfHistoryRequest() is already added to the base policy

type EntityType

type EntityType struct {
	SchemaFuncs

	ent.Schema
}

EntityType holds the schema definition for the EntityType entity

func (EntityType) Edges

func (e EntityType) Edges() []ent.Edge

Edges of the EntityType

func (EntityType) Fields

func (EntityType) Fields() []ent.Field

Fields of the EntityType

func (EntityType) GetType added in v0.8.2

func (EntityType) GetType() any

GetType returns the type of the EntityType schema.

func (EntityType) Indexes

func (EntityType) Indexes() []ent.Index

Indexes of the EntityType

func (EntityType) Mixin

func (e EntityType) Mixin() []ent.Mixin

Mixin of the EntityType

func (EntityType) Modules added in v0.28.0

func (EntityType) Modules() []models.OrgModule

func (EntityType) Name added in v0.8.2

func (EntityType) Name() string

Name returns the name of the EntityType schema.

func (EntityType) PluralName added in v0.8.2

func (EntityType) PluralName() string

PluralName returns the plural name of the EntityType schema.

func (EntityType) Policy

func (e EntityType) Policy() ent.Policy

Policy of the EntityType

type EntityTypeHistory

type EntityTypeHistory struct {
	ent.Schema
}

EntityTypeHistory holds the schema definition for the EntityTypeHistory entity.

func (EntityTypeHistory) Annotations

func (EntityTypeHistory) Annotations() []schema.Annotation

Annotations of the EntityTypeHistory.

func (EntityTypeHistory) Fields

func (EntityTypeHistory) Fields() []ent.Field

Fields of the EntityTypeHistory.

func (EntityTypeHistory) Indexes

func (EntityTypeHistory) Indexes() []ent.Index

Indexes of the EntityTypeHistory

func (EntityTypeHistory) Interceptors

func (EntityTypeHistory) Interceptors() []ent.Interceptor

Interceptors of the EntityTypeHistory

func (EntityTypeHistory) Policy

func (EntityTypeHistory) Policy() ent.Policy

Policy of the EntityTypeHistory. ensure history.AllowIfHistoryRequest() is already added to the base policy

type Event

type Event struct {
	SchemaFuncs

	ent.Schema
}

Event holds the schema definition for the Event entity

func (Event) Annotations

func (e Event) Annotations() []schema.Annotation

Annotations of the Event

func (Event) Edges

func (e Event) Edges() []ent.Edge

Edges of the Event

func (Event) Fields

func (Event) Fields() []ent.Field

Fields of the Event

func (Event) GetType added in v0.8.2

func (Event) GetType() any

GetType returns the type of the Event schema.

func (Event) Mixin

func (Event) Mixin() []ent.Mixin

Mixin of the Event

func (Event) Modules added in v0.28.0

func (Event) Modules() []models.OrgModule

func (Event) Name added in v0.8.2

func (Event) Name() string

Name returns the name of the Event schema.

func (Event) PluralName added in v0.8.2

func (Event) PluralName() string

PluralName returns the plural name of the Event schema.

func (Event) Policy added in v0.23.1

func (e Event) Policy() ent.Policy

Policy of the Event

type Evidence added in v0.6.19

type Evidence struct {
	SchemaFuncs

	ent.Schema
}

Evidence holds the schema definition for the Evidence entity

func (Evidence) Annotations added in v0.6.19

func (e Evidence) Annotations() []schema.Annotation

Annotations of the Evidence

func (Evidence) Edges added in v0.6.19

func (e Evidence) Edges() []ent.Edge

Edges of the Evidence

func (Evidence) Fields added in v0.6.19

func (Evidence) Fields() []ent.Field

Fields of the Evidence

func (Evidence) GetType added in v0.8.2

func (Evidence) GetType() any

GetType returns the type of the Evidence schema.

func (Evidence) Hooks added in v0.6.19

func (Evidence) Hooks() []ent.Hook

Hooks of the Evidence

func (Evidence) Mixin added in v0.6.19

func (e Evidence) Mixin() []ent.Mixin

Mixin of the Evidence

func (Evidence) Modules added in v0.28.0

func (Evidence) Modules() []models.OrgModule

func (Evidence) Name added in v0.8.2

func (Evidence) Name() string

Name returns the name of the Evidence schema.

func (Evidence) PluralName added in v0.8.2

func (Evidence) PluralName() string

PluralName returns the plural name of the Evidence schema.

func (Evidence) Policy added in v0.6.19

func (Evidence) Policy() ent.Policy

Policy of the Evidence

type EvidenceHistory added in v0.6.19

type EvidenceHistory struct {
	ent.Schema
}

EvidenceHistory holds the schema definition for the EvidenceHistory entity.

func (EvidenceHistory) Annotations added in v0.6.19

func (EvidenceHistory) Annotations() []schema.Annotation

Annotations of the EvidenceHistory.

func (EvidenceHistory) Fields added in v0.6.19

func (EvidenceHistory) Fields() []ent.Field

Fields of the EvidenceHistory.

func (EvidenceHistory) Indexes added in v0.6.19

func (EvidenceHistory) Indexes() []ent.Index

Indexes of the EvidenceHistory

func (EvidenceHistory) Interceptors added in v0.6.19

func (EvidenceHistory) Interceptors() []ent.Interceptor

Interceptors of the EvidenceHistory

func (EvidenceHistory) Policy added in v0.23.1

func (EvidenceHistory) Policy() ent.Policy

Policy of the EvidenceHistory. ensure history.AllowIfHistoryRequest() is already added to the base policy

type Export added in v0.22.3

type Export struct {
	SchemaFuncs
	ent.Schema
}

Export holds the schema definition for export records used for exporting various content types.

func (Export) Annotations added in v0.22.3

func (e Export) Annotations() []schema.Annotation

Annotations of the Export

func (Export) Edges added in v0.22.3

func (e Export) Edges() []ent.Edge

Edges of the Export

func (Export) Fields added in v0.22.3

func (Export) Fields() []ent.Field

Fields returns export fields.

func (Export) GetType added in v0.22.3

func (Export) GetType() any

func (Export) Hooks added in v0.22.3

func (Export) Hooks() []ent.Hook

Hooks of the Export

func (Export) Mixin added in v0.22.3

func (e Export) Mixin() []ent.Mixin

Mixin of the Export

func (Export) Modules added in v0.28.0

func (Export) Modules() []models.OrgModule

func (Export) Name added in v0.22.3

func (Export) Name() string

func (Export) PluralName added in v0.22.3

func (Export) PluralName() string

func (Export) Policy added in v0.22.3

func (e Export) Policy() ent.Policy

Policy of the Export

type File

type File struct {
	SchemaFuncs

	ent.Schema
}

File defines the file schema.

func (File) Annotations

func (f File) Annotations() []schema.Annotation

Annotations of the File

func (File) Edges

func (f File) Edges() []ent.Edge

Edges of the File

func (File) Fields

func (File) Fields() []ent.Field

Fields returns file fields.

func (File) GetType added in v0.8.2

func (File) GetType() any

func (File) Hooks added in v0.22.3

func (File) Hooks() []ent.Hook

Hooks of the File

func (File) Interceptors added in v0.6.10

func (f File) Interceptors() []ent.Interceptor

Interceptors of the File

func (File) Mixin

func (f File) Mixin() []ent.Mixin

Mixin of the File

func (File) Modules added in v0.28.0

func (File) Modules() []models.OrgModule

func (File) Name added in v0.8.2

func (File) Name() string

func (File) PluralName added in v0.8.2

func (File) PluralName() string

func (File) Policy added in v0.3.1

func (f File) Policy() ent.Policy

Policy of the File

type FileDownloadToken added in v0.39.2

type FileDownloadToken struct {
	SchemaFuncs

	ent.Schema
}

FileDownloadToken holds the schema definition for the FileDownloadToken entity

func (FileDownloadToken) Annotations added in v0.39.2

func (p FileDownloadToken) Annotations() []schema.Annotation

Annotations of the FileDownloadToken

func (FileDownloadToken) Fields added in v0.39.2

func (FileDownloadToken) Fields() []ent.Field

Fields of the FileDownloadToken

func (FileDownloadToken) GetType added in v0.39.2

func (FileDownloadToken) GetType() any

GetType returns the type of the FileDownloadToken schema.

func (FileDownloadToken) Hooks added in v0.39.2

func (FileDownloadToken) Hooks() []ent.Hook

Hooks of the FileDownloadToken

func (FileDownloadToken) Indexes added in v0.39.2

func (FileDownloadToken) Indexes() []ent.Index

Indexes of the FileDownloadToken

func (FileDownloadToken) Mixin added in v0.39.2

func (p FileDownloadToken) Mixin() []ent.Mixin

Mixin of the FileDownloadToken

func (FileDownloadToken) Name added in v0.39.2

func (FileDownloadToken) Name() string

Name returns the name of the FileDownloadToken schema.

func (FileDownloadToken) PluralName added in v0.39.2

func (FileDownloadToken) PluralName() string

PluralName returns the plural name of the FileDownloadToken schema.

func (FileDownloadToken) Policy added in v0.39.2

func (p FileDownloadToken) Policy() ent.Policy

Policy of the FileDownloadToken

type FileHistory

type FileHistory struct {
	ent.Schema
}

FileHistory holds the schema definition for the FileHistory entity.

func (FileHistory) Annotations

func (FileHistory) Annotations() []schema.Annotation

Annotations of the FileHistory.

func (FileHistory) Fields

func (FileHistory) Fields() []ent.Field

Fields of the FileHistory.

func (FileHistory) Indexes

func (FileHistory) Indexes() []ent.Index

Indexes of the FileHistory

func (FileHistory) Interceptors added in v0.3.1

func (FileHistory) Interceptors() []ent.Interceptor

Interceptors of the FileHistory

func (FileHistory) Policy added in v0.3.1

func (FileHistory) Policy() ent.Policy

Policy of the FileHistory. ensure history.AllowIfHistoryRequest() is already added to the base policy

type Finding added in v0.43.3

type Finding struct {
	SchemaFuncs

	ent.Schema
}

Finding defines the finding schema.

func (Finding) Annotations added in v0.43.3

func (Finding) Annotations() []schema.Annotation

Annotations of the Finding

func (Finding) Edges added in v0.43.3

func (f Finding) Edges() []ent.Edge

Edges of the Finding

func (Finding) Fields added in v0.43.3

func (Finding) Fields() []ent.Field

Fields returns finding fields.

func (Finding) GetType added in v0.43.3

func (Finding) GetType() any

GetType returns the type of the finding schema.

func (Finding) Indexes added in v0.43.3

func (Finding) Indexes() []ent.Index

Indexes of the Finding

func (Finding) Mixin added in v0.43.3

func (f Finding) Mixin() []ent.Mixin

Mixin of the Finding

func (Finding) Modules added in v0.43.3

func (Finding) Modules() []models.OrgModule

func (Finding) Name added in v0.43.3

func (Finding) Name() string

Name returns the name of the finding schema.

func (Finding) PluralName added in v0.43.3

func (Finding) PluralName() string

PluralName returns the plural name of the finding schema.

func (Finding) Policy added in v0.43.3

func (f Finding) Policy() ent.Policy

Policy of the Finding

type FindingControl added in v0.43.3

type FindingControl struct {
	SchemaFuncs

	ent.Schema
}

FindingControl defines the mapping between findings and controls.

func (FindingControl) Annotations added in v0.43.3

func (FindingControl) Annotations() []schema.Annotation

Annotations of the FindingControl

func (FindingControl) Edges added in v0.43.3

func (fc FindingControl) Edges() []ent.Edge

Edges of the FindingControl

func (FindingControl) Fields added in v0.43.3

func (FindingControl) Fields() []ent.Field

Fields returns finding control fields.

func (FindingControl) GetType added in v0.43.3

func (FindingControl) GetType() any

GetType returns the type of the finding control schema.

func (FindingControl) Indexes added in v0.43.3

func (FindingControl) Indexes() []ent.Index

Indexes of the FindingControl

func (FindingControl) Mixin added in v0.43.3

func (FindingControl) Mixin() []ent.Mixin

Mixin of the FindingControl

func (FindingControl) Modules added in v0.43.3

func (FindingControl) Modules() []models.OrgModule

Modules of the FindingControl

func (FindingControl) Name added in v0.43.3

func (FindingControl) Name() string

Name returns the name of the finding control schema.

func (FindingControl) PluralName added in v0.43.3

func (FindingControl) PluralName() string

PluralName returns the plural name of the finding control schema.

func (FindingControl) Policy added in v0.43.3

func (FindingControl) Policy() ent.Policy

Policy of the FindingControl

type FindingControlHistory added in v0.43.3

type FindingControlHistory struct {
	ent.Schema
}

FindingControlHistory holds the schema definition for the FindingControlHistory entity.

func (FindingControlHistory) Annotations added in v0.43.3

func (FindingControlHistory) Annotations() []schema.Annotation

Annotations of the FindingControlHistory.

func (FindingControlHistory) Fields added in v0.43.3

func (FindingControlHistory) Fields() []ent.Field

Fields of the FindingControlHistory.

func (FindingControlHistory) Indexes added in v0.43.3

func (FindingControlHistory) Indexes() []ent.Index

Indexes of the FindingControlHistory

func (FindingControlHistory) Interceptors added in v0.43.3

func (FindingControlHistory) Interceptors() []ent.Interceptor

Interceptors of the FindingControlHistory

func (FindingControlHistory) Policy added in v0.43.3

func (FindingControlHistory) Policy() ent.Policy

Policy of the FindingControlHistory. ensure history.AllowIfHistoryRequest() is already added to the base policy

type FindingHistory added in v0.43.3

type FindingHistory struct {
	ent.Schema
}

FindingHistory holds the schema definition for the FindingHistory entity.

func (FindingHistory) Annotations added in v0.43.3

func (FindingHistory) Annotations() []schema.Annotation

Annotations of the FindingHistory.

func (FindingHistory) Fields added in v0.43.3

func (FindingHistory) Fields() []ent.Field

Fields of the FindingHistory.

func (FindingHistory) Indexes added in v0.43.3

func (FindingHistory) Indexes() []ent.Index

Indexes of the FindingHistory

func (FindingHistory) Interceptors added in v0.43.3

func (FindingHistory) Interceptors() []ent.Interceptor

Interceptors of the FindingHistory

func (FindingHistory) Policy added in v0.43.3

func (FindingHistory) Policy() ent.Policy

Policy of the FindingHistory. ensure history.AllowIfHistoryRequest() is already added to the base policy

type Group

type Group struct {
	SchemaFuncs

	ent.Schema
}

Group holds the schema definition for the Group entity

func (Group) Annotations

func (g Group) Annotations() []schema.Annotation

Annotations of the Group

func (Group) Edges

func (g Group) Edges() []ent.Edge

Edges of the Group

func (Group) Fields

func (Group) Fields() []ent.Field

Fields of the Group

func (Group) GetType added in v0.8.2

func (Group) GetType() any

GetType returns the type of the Group schema.

func (Group) Hooks

func (Group) Hooks() []ent.Hook

Hooks of the Group

func (Group) Indexes

func (Group) Indexes() []ent.Index

Indexes of the Group

func (Group) Interceptors

func (g Group) Interceptors() []ent.Interceptor

Interceptors of the Group

func (Group) Mixin

func (g Group) Mixin() []ent.Mixin

Mixin of the Group

func (Group) Modules added in v0.28.0

func (Group) Modules() []models.OrgModule

func (Group) Name added in v0.8.2

func (Group) Name() string

Name returns the name of the Group schema.

func (Group) PluralName added in v0.8.2

func (Group) PluralName() string

PluralName returns the plural name of the Group schema.

func (Group) Policy

func (g Group) Policy() ent.Policy

Policy of the Group

type GroupBasedCreateAccessMixin added in v0.5.0

type GroupBasedCreateAccessMixin struct {
	mixin.Schema
}

GroupBasedCreateAccessMixin is a mixin for group permissions for creation of an entity that should be added to both the to schema (Group) and the from schema (Organization) the object type must be included in the fga model for this to work:

#     define [object]_creator: [group#member]
#     define can_create_[object]: can_edit or [object]_creator

once these exist in the model, the object type can be added to the createObjectTypes list above and the mixin will automatically add the edges and hooks to the schema that will create the tuples upon association with the organization

func NewGroupBasedCreateAccessMixin added in v0.5.0

func NewGroupBasedCreateAccessMixin() GroupBasedCreateAccessMixin

NewGroupBasedCreateAccessMixin creates a new GroupBasedCreateAccessMixin with the specified edges

func (GroupBasedCreateAccessMixin) Edges added in v0.5.0

func (c GroupBasedCreateAccessMixin) Edges() []ent.Edge

Edges of the GroupBasedCreateAccessMixin

func (GroupBasedCreateAccessMixin) Hooks added in v0.5.0

func (c GroupBasedCreateAccessMixin) Hooks() []ent.Hook

Hooks of the GroupBasedCreateAccessMixin

type GroupHistory

type GroupHistory struct {
	ent.Schema
}

GroupHistory holds the schema definition for the GroupHistory entity.

func (GroupHistory) Annotations

func (GroupHistory) Annotations() []schema.Annotation

Annotations of the GroupHistory.

func (GroupHistory) Fields

func (GroupHistory) Fields() []ent.Field

Fields of the GroupHistory.

func (GroupHistory) Indexes

func (GroupHistory) Indexes() []ent.Index

Indexes of the GroupHistory

func (GroupHistory) Interceptors

func (GroupHistory) Interceptors() []ent.Interceptor

Interceptors of the GroupHistory

func (GroupHistory) Policy

func (GroupHistory) Policy() ent.Policy

Policy of the GroupHistory. ensure history.AllowIfHistoryRequest() is already added to the base policy

type GroupMembership

type GroupMembership struct {
	SchemaFuncs

	ent.Schema
}

GroupMembership holds the schema definition for the GroupMembership entity

func (GroupMembership) Annotations

func (g GroupMembership) Annotations() []schema.Annotation

Annotations of the GroupMembership

func (GroupMembership) Edges

func (g GroupMembership) Edges() []ent.Edge

Edges of the GroupMembership

func (GroupMembership) Fields

func (GroupMembership) Fields() []ent.Field

Fields of the GroupMembership

func (GroupMembership) GetType added in v0.8.2

func (GroupMembership) GetType() any

GetType returns the type of the GroupMembership schema.

func (GroupMembership) Hooks

func (GroupMembership) Hooks() []ent.Hook

Hooks of the GroupMembership

func (GroupMembership) Indexes

func (GroupMembership) Indexes() []ent.Index

Indexes of the GroupMembership

func (GroupMembership) Interceptors added in v0.7.0

func (g GroupMembership) Interceptors() []ent.Interceptor

Interceptors of the GroupMembership

func (GroupMembership) Mixin

func (GroupMembership) Mixin() []ent.Mixin

Mixin of the GroupMembership

func (GroupMembership) Modules added in v0.28.0

func (GroupMembership) Modules() []models.OrgModule

func (GroupMembership) Name added in v0.8.2

func (GroupMembership) Name() string

Name returns the name of the GroupMembership schema.

func (GroupMembership) PluralName added in v0.8.2

func (GroupMembership) PluralName() string

PluralName returns the plural name of the GroupMembership schema.

func (GroupMembership) Policy

func (GroupMembership) Policy() ent.Policy

Policy of the GroupMembership

type GroupMembershipHistory

type GroupMembershipHistory struct {
	ent.Schema
}

GroupMembershipHistory holds the schema definition for the GroupMembershipHistory entity.

func (GroupMembershipHistory) Annotations

func (GroupMembershipHistory) Annotations() []schema.Annotation

Annotations of the GroupMembershipHistory.

func (GroupMembershipHistory) Fields

func (GroupMembershipHistory) Fields() []ent.Field

Fields of the GroupMembershipHistory.

func (GroupMembershipHistory) Indexes

func (GroupMembershipHistory) Indexes() []ent.Index

Indexes of the GroupMembershipHistory

func (GroupMembershipHistory) Interceptors

func (GroupMembershipHistory) Interceptors() []ent.Interceptor

Interceptors of the GroupMembershipHistory

func (GroupMembershipHistory) Policy

Policy of the GroupMembershipHistory. ensure history.AllowIfHistoryRequest() is already added to the base policy

type GroupPermissionsEdgesMixin added in v0.5.0

type GroupPermissionsEdgesMixin struct {
	mixin.Schema

	EdgeInfo []EdgeInfo
}

GroupPermissionsEdgesMixin is a mixin for the reverse edges on the group schema this should be used in conjunction with the GroupPermissionsMixin on the entity schema

func (GroupPermissionsEdgesMixin) Edges added in v0.5.0

func (g GroupPermissionsEdgesMixin) Edges() []ent.Edge

Edges of the GroupPermissionsEdgesMixin

func (GroupPermissionsEdgesMixin) Hooks added in v0.6.21

func (g GroupPermissionsEdgesMixin) Hooks() []ent.Hook

Hooks of the GroupPermissionsEdgesMixin

type GroupPermissionsMixin added in v0.4.4

type GroupPermissionsMixin struct {
	mixin.Schema

	// ViewPermissions adds view permission for a group
	ViewPermissions bool
	// IncludeInterceptorFilter is used to skip the interceptor filter
	// this is used for more complex view permissions that are not solely based
	// on the group membership
	IncludeInterceptorFilter bool
}

GroupPermissionsMixin is a mixin for group permissions on an entity This allows for editor + blocked_groups, and optionally viewer groups to be added as edges to the entity. The hooks are added to create the tuples in FGA for the groups After adding this mixin to a schema, you must also update the EdgeInfo to include the reverse edges on the group schema

func (GroupPermissionsMixin) Edges added in v0.4.4

func (g GroupPermissionsMixin) Edges() []ent.Edge

Edges of the GroupPermissionsMixin

func (GroupPermissionsMixin) Hooks added in v0.4.4

func (g GroupPermissionsMixin) Hooks() (hooks []ent.Hook)

Hooks of the GroupPermissionsMixin

func (GroupPermissionsMixin) Interceptors added in v0.26.0

func (g GroupPermissionsMixin) Interceptors() []ent.Interceptor

Interceptors of the GroupPermissionsMixin

type GroupSetting

type GroupSetting struct {
	SchemaFuncs

	ent.Schema
}

GroupSetting holds the schema definition for the GroupSetting entity

func (GroupSetting) Annotations

func (g GroupSetting) Annotations() []schema.Annotation

Annotations of the GroupSetting

func (GroupSetting) Edges

func (g GroupSetting) Edges() []ent.Edge

Edges of the GroupSetting

func (GroupSetting) Fields

func (GroupSetting) Fields() []ent.Field

Fields of the GroupSetting.

func (GroupSetting) GetType added in v0.8.2

func (GroupSetting) GetType() any

func (GroupSetting) Hooks added in v0.7.0

func (GroupSetting) Hooks() []ent.Hook

Hooks of the GroupSetting

func (GroupSetting) Interceptors added in v0.7.0

func (g GroupSetting) Interceptors() []ent.Interceptor

Interceptors of the GroupSetting

func (GroupSetting) Mixin

func (GroupSetting) Mixin() []ent.Mixin

Mixin of the GroupSetting

func (GroupSetting) Modules added in v0.28.0

func (GroupSetting) Modules() []models.OrgModule

func (GroupSetting) Name added in v0.8.2

func (GroupSetting) Name() string

func (GroupSetting) PluralName added in v0.8.2

func (GroupSetting) PluralName() string

type GroupSettingHistory

type GroupSettingHistory struct {
	ent.Schema
}

GroupSettingHistory holds the schema definition for the GroupSettingHistory entity.

func (GroupSettingHistory) Annotations

func (GroupSettingHistory) Annotations() []schema.Annotation

Annotations of the GroupSettingHistory.

func (GroupSettingHistory) Fields

func (GroupSettingHistory) Fields() []ent.Field

Fields of the GroupSettingHistory.

func (GroupSettingHistory) Indexes

func (GroupSettingHistory) Indexes() []ent.Index

Indexes of the GroupSettingHistory

func (GroupSettingHistory) Interceptors

func (GroupSettingHistory) Interceptors() []ent.Interceptor

Interceptors of the GroupSettingHistory

func (GroupSettingHistory) Policy

func (GroupSettingHistory) Policy() ent.Policy

Policy of the GroupSettingHistory. ensure history.AllowIfHistoryRequest() is already added to the base policy

type HookFunc added in v0.3.1

type HookFunc func(o ObjectOwnedMixin) ent.Hook

type Hush

type Hush struct {
	SchemaFuncs

	ent.Schema
}

Hush maps configured integrations (github, slack, etc.) to organizations

func (Hush) Edges

func (h Hush) Edges() []ent.Edge

Edges of the Hush

func (Hush) Fields

func (Hush) Fields() []ent.Field

Fields of the Hush

func (Hush) GetType added in v0.8.2

func (Hush) GetType() any

GetType returns the type of the Hush schema.

func (Hush) Mixin

func (h Hush) Mixin() []ent.Mixin

Mixin of the Hush shhhh

func (Hush) Modules added in v0.28.0

func (Hush) Modules() []models.OrgModule

func (Hush) Name added in v0.8.2

func (Hush) Name() string

Name returns the name of the Hush schema.

func (Hush) PluralName added in v0.8.2

func (Hush) PluralName() string

PluralName returns the plural name of the Hush schema.

func (Hush) Policy added in v0.24.1

func (Hush) Policy() ent.Policy

Policy of the Hush - restricts access to organization members with write access

type HushHistory

type HushHistory struct {
	ent.Schema
}

HushHistory holds the schema definition for the HushHistory entity.

func (HushHistory) Annotations

func (HushHistory) Annotations() []schema.Annotation

Annotations of the HushHistory.

func (HushHistory) Fields

func (HushHistory) Fields() []ent.Field

Fields of the HushHistory.

func (HushHistory) Indexes

func (HushHistory) Indexes() []ent.Index

Indexes of the HushHistory

func (HushHistory) Interceptors added in v0.24.1

func (HushHistory) Interceptors() []ent.Interceptor

Interceptors of the HushHistory

func (HushHistory) Policy added in v0.24.1

func (HushHistory) Policy() ent.Policy

Policy of the HushHistory. ensure history.AllowIfHistoryRequest() is already added to the base policy

type HushMixin added in v0.24.1

type HushMixin struct {
	mixin.Schema
	// contains filtered or unexported fields
}

HushMixin automatically detects fields annotated with hush.EncryptField() and adds the necessary hooks and interceptors to handle encryption/decryption.

This mixin should be added to any schema that has encrypted fields. It will automatically scan for hush.EncryptField() annotations and set up encryption without requiring manual field specification.

Usage:

func (MySchema) Mixin() []ent.Mixin {
    return []ent.Mixin{
        HushMixin{},
    }
}

Or even simpler, this could be automatically injected during code generation for any schema that has hush.EncryptField() annotations.

func NewHushMixin added in v0.24.1

func NewHushMixin(schema ent.Interface) HushMixin

NewHushMixin creates a new automatic encryption mixin for a schema.

func (HushMixin) Fields added in v0.24.1

func (m HushMixin) Fields() []ent.Field

Fields returns no additional fields - we only add behavior, not fields.

func (HushMixin) Hooks added in v0.24.1

func (m HushMixin) Hooks() []ent.Hook

Hooks returns automatically generated encryption hooks for all annotated fields.

func (HushMixin) Interceptors added in v0.24.1

func (m HushMixin) Interceptors() []ent.Interceptor

Interceptors returns automatically generated decryption interceptors for all annotated fields.

type ImpersonationEvent added in v0.38.1

type ImpersonationEvent struct {
	SchemaFuncs
	ent.Schema
}

ImpersonationEvent holds the schema definition for the ImpersonationEvent entity

func (ImpersonationEvent) Annotations added in v0.38.1

func (ImpersonationEvent) Annotations() []schema.Annotation

Annotations of the ImpersonationEvent

func (ImpersonationEvent) Edges added in v0.38.1

func (i ImpersonationEvent) Edges() []ent.Edge

Edges of the ImpersonationEvent

func (ImpersonationEvent) Fields added in v0.38.1

func (ImpersonationEvent) Fields() []ent.Field

Fields of the ImpersonationEvent

func (ImpersonationEvent) GetType added in v0.38.1

func (ImpersonationEvent) GetType() any

GetType returns the type of the schema

func (ImpersonationEvent) Hooks added in v0.38.1

func (ImpersonationEvent) Hooks() []ent.Hook

Hooks of the ImpersonationEvent

func (ImpersonationEvent) Indexes added in v0.38.1

func (ImpersonationEvent) Indexes() []ent.Index

Indexes of the ImpersonationEvent

func (ImpersonationEvent) Interceptors added in v0.38.1

func (ImpersonationEvent) Interceptors() []ent.Interceptor

Interceptors of the ImpersonationEvent

func (ImpersonationEvent) Mixin added in v0.38.1

func (i ImpersonationEvent) Mixin() []ent.Mixin

Mixin of the ImpersonationEvent

func (ImpersonationEvent) Modules added in v0.38.1

func (ImpersonationEvent) Modules() []models.OrgModule

Modules this schema has access to

func (ImpersonationEvent) Name added in v0.38.1

func (ImpersonationEvent) Name() string

Name is the name of the schema in snake case

func (ImpersonationEvent) PluralName added in v0.38.1

func (ImpersonationEvent) PluralName() string

PluralName returns the plural name of the schema

type Integration

type Integration struct {
	SchemaFuncs

	ent.Schema
}

Integration maps configured integrations (github, slack, etc.) to organizations

func (Integration) Annotations

func (Integration) Annotations() []schema.Annotation

Annotations of the Integration

func (Integration) Edges

func (i Integration) Edges() []ent.Edge

Edges of the Integration

func (Integration) Fields

func (Integration) Fields() []ent.Field

Fields of the Integration

func (Integration) GetType added in v0.8.2

func (Integration) GetType() any

GetType returns the type of the Integration schema.

func (Integration) Mixin

func (i Integration) Mixin() []ent.Mixin

Mixin of the Integration

func (Integration) Modules added in v0.28.0

func (Integration) Modules() []models.OrgModule

func (Integration) Name added in v0.8.2

func (Integration) Name() string

Name returns the name of the Integration schema.

func (Integration) PluralName added in v0.8.2

func (Integration) PluralName() string

PluralName returns the plural name of the Integration schema.

func (Integration) Policy

func (i Integration) Policy() ent.Policy

Policy of the Integration

type IntegrationHistory

type IntegrationHistory struct {
	ent.Schema
}

IntegrationHistory holds the schema definition for the IntegrationHistory entity.

func (IntegrationHistory) Annotations

func (IntegrationHistory) Annotations() []schema.Annotation

Annotations of the IntegrationHistory.

func (IntegrationHistory) Fields

func (IntegrationHistory) Fields() []ent.Field

Fields of the IntegrationHistory.

func (IntegrationHistory) Indexes

func (IntegrationHistory) Indexes() []ent.Index

Indexes of the IntegrationHistory

func (IntegrationHistory) Interceptors

func (IntegrationHistory) Interceptors() []ent.Interceptor

Interceptors of the IntegrationHistory

func (IntegrationHistory) Policy

func (IntegrationHistory) Policy() ent.Policy

Policy of the IntegrationHistory. ensure history.AllowIfHistoryRequest() is already added to the base policy

type InterceptorFunc added in v0.3.1

type InterceptorFunc func(o ObjectOwnedMixin) ent.Interceptor

type InternalPolicy added in v0.3.3

type InternalPolicy struct {
	SchemaFuncs

	ent.Schema
}

InternalPolicy defines the policy schema.

func (InternalPolicy) Annotations added in v0.3.3

func (i InternalPolicy) Annotations() []schema.Annotation

Annotations of the InternalPolicy

func (InternalPolicy) Edges added in v0.3.3

func (i InternalPolicy) Edges() []ent.Edge

Edges of the InternalPolicy

func (InternalPolicy) Fields added in v0.3.3

func (InternalPolicy) Fields() []ent.Field

Fields returns policy fields.

func (InternalPolicy) GetType added in v0.8.2

func (InternalPolicy) GetType() any

GetType returns the type of the internal policy schema.

func (InternalPolicy) Hooks added in v0.4.2

func (InternalPolicy) Hooks() []ent.Hook

Hooks of the InternalPolicy

func (InternalPolicy) Interceptors added in v0.4.2

func (InternalPolicy) Interceptors() []ent.Interceptor

Interceptors of the InternalPolicy

func (InternalPolicy) Mixin added in v0.3.3

func (i InternalPolicy) Mixin() []ent.Mixin

Mixin of the InternalPolicy

func (InternalPolicy) Modules added in v0.28.0

func (InternalPolicy) Modules() []models.OrgModule

func (InternalPolicy) Name added in v0.8.2

func (InternalPolicy) Name() string

Name returns the name of the internal policy schema.

func (InternalPolicy) PluralName added in v0.8.2

func (InternalPolicy) PluralName() string

PluralName returns the plural name of the internal policy schema.

func (InternalPolicy) Policy added in v0.4.2

func (i InternalPolicy) Policy() ent.Policy

Policy of the InternalPolicy

type InternalPolicyHistory added in v0.3.3

type InternalPolicyHistory struct {
	ent.Schema
}

InternalPolicyHistory holds the schema definition for the InternalPolicyHistory entity.

func (InternalPolicyHistory) Annotations added in v0.3.3

func (InternalPolicyHistory) Annotations() []schema.Annotation

Annotations of the InternalPolicyHistory.

func (InternalPolicyHistory) Fields added in v0.3.3

func (InternalPolicyHistory) Fields() []ent.Field

Fields of the InternalPolicyHistory.

func (InternalPolicyHistory) Indexes added in v0.3.3

func (InternalPolicyHistory) Indexes() []ent.Index

Indexes of the InternalPolicyHistory

func (InternalPolicyHistory) Interceptors added in v0.4.2

func (InternalPolicyHistory) Interceptors() []ent.Interceptor

Interceptors of the InternalPolicyHistory

func (InternalPolicyHistory) Policy added in v0.4.2

func (InternalPolicyHistory) Policy() ent.Policy

Policy of the InternalPolicyHistory. ensure history.AllowIfHistoryRequest() is already added to the base policy

type Invite

type Invite struct {
	SchemaFuncs

	ent.Schema
}

Invite holds the schema definition for the Invite entity

func (Invite) Annotations

func (i Invite) Annotations() []schema.Annotation

Annotations of the Invite

func (Invite) Edges

func (i Invite) Edges() []ent.Edge

Edges of the Invite

func (Invite) Fields

func (Invite) Fields() []ent.Field

Fields of the Invite

func (Invite) GetType added in v0.8.2

func (Invite) GetType() any

func (Invite) Hooks

func (Invite) Hooks() []ent.Hook

Hooks of the Invite

func (Invite) Indexes

func (Invite) Indexes() []ent.Index

Indexes of the Invite

func (Invite) Mixin

func (i Invite) Mixin() []ent.Mixin

Mixin of the Invite

func (Invite) Modules added in v0.28.0

func (Invite) Modules() []models.OrgModule

func (Invite) Name added in v0.8.2

func (Invite) Name() string

func (Invite) PluralName added in v0.8.2

func (Invite) PluralName() string

func (Invite) Policy

func (i Invite) Policy() ent.Policy

Policy of the Invite

type JobResult added in v0.15.0

type JobResult struct {
	SchemaFuncs

	ent.Schema
}

JobResult holds the schema definition for the JobResult entity

func (JobResult) Annotations added in v0.15.0

func (j JobResult) Annotations() []schema.Annotation

Annotations of the JobResult

func (JobResult) Edges added in v0.15.0

func (j JobResult) Edges() []ent.Edge

Edges of the JobResult

func (JobResult) Fields added in v0.15.0

func (JobResult) Fields() []ent.Field

Fields of the JobResult

func (JobResult) GetType added in v0.15.0

func (JobResult) GetType() any

GetType returns the type of the schema

func (JobResult) Hooks added in v0.15.0

func (JobResult) Hooks() []ent.Hook

Hooks of the JobResult

func (JobResult) Indexes added in v0.15.0

func (JobResult) Indexes() []ent.Index

Indexes of the JobResult

func (JobResult) Interceptors added in v0.15.0

func (JobResult) Interceptors() []ent.Interceptor

Interceptors of the JobResult

func (JobResult) Mixin added in v0.15.0

func (j JobResult) Mixin() []ent.Mixin

Mixin of the JobResult

func (JobResult) Modules added in v0.28.0

func (JobResult) Modules() []models.OrgModule

func (JobResult) Name added in v0.15.0

func (JobResult) Name() string

Name is the name of the schema in snake case

func (JobResult) PluralName added in v0.15.0

func (JobResult) PluralName() string

PluralName returns the plural name of the schema

func (JobResult) Policy added in v0.15.0

func (JobResult) Policy() ent.Policy

Policy of the JobResult

type JobRunner added in v0.14.1

type JobRunner struct {
	SchemaFuncs

	ent.Schema
}

JobRunner holds the schema definition for the JobRunner entity

func (JobRunner) Annotations added in v0.14.1

func (j JobRunner) Annotations() []schema.Annotation

Annotations of the JobRunner

func (JobRunner) Edges added in v0.14.1

func (j JobRunner) Edges() []ent.Edge

Edges of the JobRunner

func (JobRunner) Fields added in v0.14.1

func (JobRunner) Fields() []ent.Field

Fields of the JobRunner

func (JobRunner) GetType added in v0.14.1

func (JobRunner) GetType() any

GetType returns the type of the schema

func (JobRunner) Hooks added in v0.14.1

func (JobRunner) Hooks() []ent.Hook

Hooks of the JobRunner

func (JobRunner) Indexes added in v0.14.1

func (JobRunner) Indexes() []ent.Index

Indexes of the JobRunner

func (JobRunner) Interceptors added in v0.14.1

func (j JobRunner) Interceptors() []ent.Interceptor

Interceptors of the JobRunner

func (JobRunner) Mixin added in v0.14.1

func (j JobRunner) Mixin() []ent.Mixin

Mixin of the JobRunner

func (JobRunner) Modules added in v0.28.0

func (JobRunner) Modules() []models.OrgModule

func (JobRunner) Name added in v0.14.1

func (JobRunner) Name() string

Name is the name of the schema in snake case

func (JobRunner) PluralName added in v0.14.1

func (JobRunner) PluralName() string

PluralName returns the plural name of the schema

func (JobRunner) Policy added in v0.14.1

func (j JobRunner) Policy() ent.Policy

Policy of the JobRunner

type JobRunnerRegistrationToken added in v0.14.1

type JobRunnerRegistrationToken struct {
	SchemaFuncs

	ent.Schema
}

JobRunnerRegistrationToken holds the schema definition for the JobRunnerRegistrationToken entity

func (JobRunnerRegistrationToken) Annotations added in v0.14.1

func (j JobRunnerRegistrationToken) Annotations() []schema.Annotation

Annotations of the JobRunnerRegistrationToken

func (JobRunnerRegistrationToken) Edges added in v0.14.1

func (j JobRunnerRegistrationToken) Edges() []ent.Edge

Edges of the JobRunnerRegistrationToken

func (JobRunnerRegistrationToken) Fields added in v0.14.1

Fields of the JobRunnerRegistrationToken

func (JobRunnerRegistrationToken) GetType added in v0.14.1

func (JobRunnerRegistrationToken) GetType() any

GetType returns the type of the schema

func (JobRunnerRegistrationToken) Hooks added in v0.14.1

Hooks of the JobRunnerRegistrationToken

func (JobRunnerRegistrationToken) Indexes added in v0.14.1

func (JobRunnerRegistrationToken) Indexes() []ent.Index

Indexes of the JobRunnerRegistrationToken

func (JobRunnerRegistrationToken) Interceptors added in v0.14.1

func (j JobRunnerRegistrationToken) Interceptors() []ent.Interceptor

Interceptors of the JobRunnerRegistrationToken

func (JobRunnerRegistrationToken) Mixin added in v0.14.1

func (j JobRunnerRegistrationToken) Mixin() []ent.Mixin

Mixin of the JobRunnerRegistrationToken

func (JobRunnerRegistrationToken) Modules added in v0.28.0

func (JobRunnerRegistrationToken) Name added in v0.14.1

Name is the name of the schema in snake case

func (JobRunnerRegistrationToken) PluralName added in v0.14.1

func (JobRunnerRegistrationToken) PluralName() string

PluralName returns the plural name of the schema

func (JobRunnerRegistrationToken) Policy added in v0.14.1

Policy of the JobRunnerRegistrationToken

type JobRunnerToken added in v0.14.1

type JobRunnerToken struct {
	SchemaFuncs

	ent.Schema
}

JobRunnerToken holds the schema definition for the JobRunnerToken entity

func (JobRunnerToken) Annotations added in v0.14.1

func (j JobRunnerToken) Annotations() []schema.Annotation

Annotations of the JobRunnerToken

func (JobRunnerToken) Edges added in v0.14.1

func (j JobRunnerToken) Edges() []ent.Edge

Edges of the JobRunnerToken

func (JobRunnerToken) Fields added in v0.14.1

func (JobRunnerToken) Fields() []ent.Field

Fields of the JobRunnerToken

func (JobRunnerToken) GetType added in v0.14.1

func (JobRunnerToken) GetType() any

GetType returns the type of the schema

func (JobRunnerToken) Hooks added in v0.14.1

func (JobRunnerToken) Hooks() []ent.Hook

Hooks of the JobRunnerToken

func (JobRunnerToken) Indexes added in v0.14.1

func (JobRunnerToken) Indexes() []ent.Index

Indexes of the JobRunnerToken

func (JobRunnerToken) Interceptors added in v0.14.1

func (JobRunnerToken) Interceptors() []ent.Interceptor

Interceptors of the JobRunnerToken

func (JobRunnerToken) Mixin added in v0.14.1

func (j JobRunnerToken) Mixin() []ent.Mixin

Mixin of the JobRunnerToken

func (JobRunnerToken) Modules added in v0.28.0

func (JobRunnerToken) Modules() []models.OrgModule

func (JobRunnerToken) Name added in v0.14.1

func (JobRunnerToken) Name() string

Name is the name of the schema in snake case

func (JobRunnerToken) PluralName added in v0.14.1

func (JobRunnerToken) PluralName() string

PluralName returns the plural name of the schema

func (JobRunnerToken) Policy added in v0.14.1

func (j JobRunnerToken) Policy() ent.Policy

Policy of the JobRunnerToken

type JobTemplate added in v0.24.0

type JobTemplate struct {
	SchemaFuncs

	ent.Schema
}

JobTemplate holds the schema definition for the JobTemplate entity

func (JobTemplate) Annotations added in v0.24.0

func (JobTemplate) Annotations() []schema.Annotation

Annotations of the JobTemplate

func (JobTemplate) Edges added in v0.24.0

func (j JobTemplate) Edges() []ent.Edge

Edges of the JobTemplate

func (JobTemplate) Fields added in v0.24.0

func (JobTemplate) Fields() []ent.Field

Fields of the JobTemplate

func (JobTemplate) GetType added in v0.24.0

func (JobTemplate) GetType() any

func (JobTemplate) Hooks added in v0.24.0

func (JobTemplate) Hooks() []ent.Hook

Hooks of the JobTemplate

func (JobTemplate) Mixin added in v0.24.0

func (j JobTemplate) Mixin() []ent.Mixin

Mixin of the JobTemplate

func (JobTemplate) Modules added in v0.28.0

func (JobTemplate) Modules() []models.OrgModule

func (JobTemplate) Name added in v0.24.0

func (JobTemplate) Name() string

func (JobTemplate) PluralName added in v0.24.0

func (JobTemplate) PluralName() string

func (JobTemplate) Policy added in v0.24.0

func (JobTemplate) Policy() ent.Policy

Policy of the JobTemplate

type JobTemplateHistory added in v0.24.0

type JobTemplateHistory struct {
	ent.Schema
}

JobTemplateHistory holds the schema definition for the JobTemplateHistory entity.

func (JobTemplateHistory) Annotations added in v0.24.0

func (JobTemplateHistory) Annotations() []schema.Annotation

Annotations of the JobTemplateHistory.

func (JobTemplateHistory) Fields added in v0.24.0

func (JobTemplateHistory) Fields() []ent.Field

Fields of the JobTemplateHistory.

func (JobTemplateHistory) Indexes added in v0.24.0

func (JobTemplateHistory) Indexes() []ent.Index

Indexes of the JobTemplateHistory

func (JobTemplateHistory) Interceptors added in v0.24.0

func (JobTemplateHistory) Interceptors() []ent.Interceptor

Interceptors of the JobTemplateHistory

func (JobTemplateHistory) Policy added in v0.24.0

func (JobTemplateHistory) Policy() ent.Policy

Policy of the JobTemplateHistory. ensure history.AllowIfHistoryRequest() is already added to the base policy

type MappableDomain added in v0.12.1

type MappableDomain struct {
	SchemaFuncs

	ent.Schema
}

MappableDomain holds the schema definition for the MappableDomain entity

func (MappableDomain) Edges added in v0.12.1

func (e MappableDomain) Edges() []ent.Edge

Edges of the MappableDomain

func (MappableDomain) Fields added in v0.12.1

func (MappableDomain) Fields() []ent.Field

Fields of the MappableDomain

func (MappableDomain) GetType added in v0.12.1

func (MappableDomain) GetType() any

GetType returns the type of the schema

func (MappableDomain) Hooks added in v0.12.1

func (MappableDomain) Hooks() []ent.Hook

Hooks of the MappableDomain

func (MappableDomain) Indexes added in v0.12.1

func (MappableDomain) Indexes() []ent.Index

Indexes of the MappableDomain

func (MappableDomain) Mixin added in v0.12.1

func (e MappableDomain) Mixin() []ent.Mixin

Mixin of the MappableDomain

func (MappableDomain) Modules added in v0.28.0

func (MappableDomain) Modules() []models.OrgModule

func (MappableDomain) Name added in v0.12.1

func (MappableDomain) Name() string

Name returns the name of the schema

func (MappableDomain) PluralName added in v0.12.1

func (MappableDomain) PluralName() string

PluralName returns the plural name of the schema

func (MappableDomain) Policy added in v0.12.1

func (e MappableDomain) Policy() ent.Policy

Policy of the MappableDomain

type MappableDomainHistory added in v0.12.1

type MappableDomainHistory struct {
	ent.Schema
}

MappableDomainHistory holds the schema definition for the MappableDomainHistory entity.

func (MappableDomainHistory) Annotations added in v0.12.1

func (MappableDomainHistory) Annotations() []schema.Annotation

Annotations of the MappableDomainHistory.

func (MappableDomainHistory) Fields added in v0.12.1

func (MappableDomainHistory) Fields() []ent.Field

Fields of the MappableDomainHistory.

func (MappableDomainHistory) Indexes added in v0.12.1

func (MappableDomainHistory) Indexes() []ent.Index

Indexes of the MappableDomainHistory

func (MappableDomainHistory) Interceptors added in v0.12.1

func (MappableDomainHistory) Interceptors() []ent.Interceptor

Interceptors of the MappableDomainHistory

func (MappableDomainHistory) Policy added in v0.23.1

func (MappableDomainHistory) Policy() ent.Policy

Policy of the MappableDomainHistory. ensure history.AllowIfHistoryRequest() is already added to the base policy

type MappedControl added in v0.7.3

type MappedControl struct {
	SchemaFuncs

	ent.Schema
}

MappedControl holds the schema definition for the MappedControl entity

func (MappedControl) Annotations added in v0.7.3

func (MappedControl) Annotations() []schema.Annotation

Annotations of the MappedControl

func (MappedControl) Edges added in v0.7.3

func (m MappedControl) Edges() []ent.Edge

Edges of the MappedControl

func (MappedControl) Fields added in v0.7.3

func (MappedControl) Fields() []ent.Field

Fields of the MappedControl

func (MappedControl) GetType added in v0.8.2

func (MappedControl) GetType() any

func (MappedControl) Hooks added in v0.7.3

func (MappedControl) Hooks() []ent.Hook

Hooks of the MappedControl

func (MappedControl) Mixin added in v0.7.3

func (m MappedControl) Mixin() []ent.Mixin

Mixin of the MappedControl

func (MappedControl) Modules added in v0.28.0

func (MappedControl) Modules() []models.OrgModule

func (MappedControl) Name added in v0.8.2

func (MappedControl) Name() string

func (MappedControl) PluralName added in v0.8.2

func (MappedControl) PluralName() string

func (MappedControl) Policy added in v0.7.3

func (MappedControl) Policy() ent.Policy

Policy of the MappedControl

type MappedControlHistory added in v0.7.3

type MappedControlHistory struct {
	ent.Schema
}

MappedControlHistory holds the schema definition for the MappedControlHistory entity.

func (MappedControlHistory) Annotations added in v0.7.3

func (MappedControlHistory) Annotations() []schema.Annotation

Annotations of the MappedControlHistory.

func (MappedControlHistory) Fields added in v0.7.3

func (MappedControlHistory) Fields() []ent.Field

Fields of the MappedControlHistory.

func (MappedControlHistory) Indexes added in v0.7.3

func (MappedControlHistory) Indexes() []ent.Index

Indexes of the MappedControlHistory

func (MappedControlHistory) Interceptors added in v0.7.3

func (MappedControlHistory) Interceptors() []ent.Interceptor

Interceptors of the MappedControlHistory

func (MappedControlHistory) Policy added in v0.23.1

func (MappedControlHistory) Policy() ent.Policy

Policy of the MappedControlHistory. ensure history.AllowIfHistoryRequest() is already added to the base policy

type Narrative added in v0.3.3

type Narrative struct {
	SchemaFuncs

	ent.Schema
}

Narrative defines the narrative schema

func (Narrative) Annotations added in v0.3.3

func (n Narrative) Annotations() []schema.Annotation

Annotations of the Narrative

func (Narrative) Edges added in v0.3.3

func (n Narrative) Edges() []ent.Edge

Edges of the Narrative

func (Narrative) Fields added in v0.3.3

func (Narrative) Fields() []ent.Field

Fields returns narrative fields

func (Narrative) GetType added in v0.8.2

func (Narrative) GetType() any

func (Narrative) Mixin added in v0.3.3

func (n Narrative) Mixin() []ent.Mixin

Mixin of the Narrative

func (Narrative) Modules added in v0.28.0

func (Narrative) Modules() []models.OrgModule

func (Narrative) Name added in v0.8.2

func (Narrative) Name() string

func (Narrative) PluralName added in v0.8.2

func (Narrative) PluralName() string

func (Narrative) Policy added in v0.4.4

func (n Narrative) Policy() ent.Policy

Policy of the Narrative

type NarrativeHistory added in v0.3.3

type NarrativeHistory struct {
	ent.Schema
}

NarrativeHistory holds the schema definition for the NarrativeHistory entity.

func (NarrativeHistory) Annotations added in v0.3.3

func (NarrativeHistory) Annotations() []schema.Annotation

Annotations of the NarrativeHistory.

func (NarrativeHistory) Fields added in v0.3.3

func (NarrativeHistory) Fields() []ent.Field

Fields of the NarrativeHistory.

func (NarrativeHistory) Indexes added in v0.3.3

func (NarrativeHistory) Indexes() []ent.Index

Indexes of the NarrativeHistory

func (NarrativeHistory) Interceptors added in v0.4.4

func (NarrativeHistory) Interceptors() []ent.Interceptor

Interceptors of the NarrativeHistory

func (NarrativeHistory) Policy added in v0.4.4

func (NarrativeHistory) Policy() ent.Policy

Policy of the NarrativeHistory. ensure history.AllowIfHistoryRequest() is already added to the base policy

type Note

type Note struct {
	SchemaFuncs

	ent.Schema
}

Note holds the schema definition for the Note entity

func (Note) Annotations

func (n Note) Annotations() []schema.Annotation

Annotations of the Note

func (Note) Edges

func (n Note) Edges() []ent.Edge

Edges of the Note

func (Note) Fields

func (Note) Fields() []ent.Field

Fields of the Note

func (Note) GetType added in v0.8.2

func (Note) GetType() any

func (Note) Hooks

func (Note) Hooks() []ent.Hook

Hooks of the Note

func (Note) Mixin

func (n Note) Mixin() []ent.Mixin

Mixin of the Note

func (Note) Modules added in v0.28.0

func (Note) Modules() []models.OrgModule

func (Note) Name added in v0.8.2

func (Note) Name() string

func (Note) PluralName added in v0.8.2

func (Note) PluralName() string

func (Note) Policy

func (n Note) Policy() ent.Policy

Policy of the Note

type NoteHistory

type NoteHistory struct {
	ent.Schema
}

NoteHistory holds the schema definition for the NoteHistory entity.

func (NoteHistory) Annotations

func (NoteHistory) Annotations() []schema.Annotation

Annotations of the NoteHistory.

func (NoteHistory) Fields

func (NoteHistory) Fields() []ent.Field

Fields of the NoteHistory.

func (NoteHistory) Indexes

func (NoteHistory) Indexes() []ent.Index

Indexes of the NoteHistory

func (NoteHistory) Interceptors

func (NoteHistory) Interceptors() []ent.Interceptor

Interceptors of the NoteHistory

func (NoteHistory) Policy

func (NoteHistory) Policy() ent.Policy

Policy of the NoteHistory. ensure history.AllowIfHistoryRequest() is already added to the base policy

type Notification added in v0.45.13

type Notification struct {
	SchemaFuncs

	ent.Schema
}

Notification holds the schema definition for the Notification entity

func (Notification) Annotations added in v0.45.13

func (Notification) Annotations() []schema.Annotation

Annotations of the Notification

func (Notification) Edges added in v0.45.13

func (n Notification) Edges() []ent.Edge

Edges of the Notification

func (Notification) Fields added in v0.45.13

func (Notification) Fields() []ent.Field

Fields of the Notification

func (Notification) GetType added in v0.45.13

func (Notification) GetType() any

func (Notification) Hooks added in v0.45.13

func (Notification) Hooks() []ent.Hook

Hooks of the Notification

func (Notification) Indexes added in v0.45.13

func (Notification) Indexes() []ent.Index

Indexes of the Notification

func (Notification) Mixin added in v0.45.13

func (n Notification) Mixin() []ent.Mixin

Mixin of the Notification

func (Notification) Modules added in v0.45.13

func (Notification) Modules() []models.OrgModule

Modules of the Notification

func (Notification) Name added in v0.45.13

func (Notification) Name() string

func (Notification) PluralName added in v0.45.13

func (Notification) PluralName() string

func (Notification) Policy added in v0.45.13

func (Notification) Policy() ent.Policy

Policy of the Notification

type ObjectOwnedMixin added in v0.3.1

type ObjectOwnedMixin struct {
	mixin.Schema
	// Ref table for the id
	Ref string
	// Kind of the object, only used for Organization owned flavors, its set by default either
	// with the OrgOwnedMixin or using the withOrganizationOwner option
	Kind any
	// FieldNames are the name of the field in the schema that can own / controls permissions of the object, e.g. "owner_id" or "program_id"
	FieldNames []string
	// OwnerRelation is the relation of the owner (user or service) that created the object, defaults to "parent"
	OwnerRelation string
	// AllowEmptyForSystemAdmin allows the owner id field to be empty for system admins
	AllowEmptyForSystemAdmin bool
	// SkipOrgInterceptorType skips the org interceptor for that schema for all queries, or specific types,
	// this is useful for tokens, etc
	SkipOrgInterceptorType interceptors.SkipMode
	// SkipListFilterInterceptor skips the the filter for list queries, this can be used to bypass fga checks
	// when permissions can be determined solely based on the organization filter and group permissions
	SkipListFilterInterceptor interceptors.SkipMode
	// SkipListFilterInterceptorSkipperFunc is a custom function to determine if the list filter interceptor should be skipped
	SkipListFilterInterceptorSkipperFunc func(ctx context.Context) bool
	// SkipTokenType skips the traverser or hook if the token type is found in the context
	SkipTokenType []token.PrivacyToken
	// IncludeOrganizationOwner adds the organization owner_id field and hooks to the schema
	IncludeOrganizationOwner bool
	// HookFuncs is the hook functions for the object owned mixin
	// that will be called on all mutations
	HookFuncs []HookFunc
	// InterceptorFunc is the interceptor function for the object owned mixin
	// that will be called on all queries
	InterceptorFuncs []InterceptorFunc
	// AllowAnonymousTrustCenterAccess allows anonymous users from the trust center to access the object
	AllowAnonymousTrustCenterAccess bool
	// UseListObjectsFilter allows to use the list objects filter for the object owned mixin instead of batch checks
	// use sparingly, as list objects can be expensive
	UseListObjectsFilter bool
	// OwnerFieldName is the field name for the owner, defaults to "owner_id"
	OwnerFieldName string
}

ObjectOwnedMixin is a mixin for object owned entities

func (ObjectOwnedMixin) Edges added in v0.3.1

func (o ObjectOwnedMixin) Edges() []ent.Edge

Edges of the ObjectOwnedMixin

func (ObjectOwnedMixin) Fields added in v0.3.1

func (o ObjectOwnedMixin) Fields() []ent.Field

Fields of the ObjectOwnedMixin

func (ObjectOwnedMixin) Hooks added in v0.3.1

func (o ObjectOwnedMixin) Hooks() []ent.Hook

Hooks of the ObjectOwnedMixin

func (ObjectOwnedMixin) Indexes added in v0.18.3

func (o ObjectOwnedMixin) Indexes() []ent.Index

Indexes of the ObjectOwnedMixin

func (ObjectOwnedMixin) Interceptors added in v0.3.1

func (o ObjectOwnedMixin) Interceptors() []ent.Interceptor

Interceptors of the ObjectOwnedMixin

func (ObjectOwnedMixin) P added in v0.3.1

func (o ObjectOwnedMixin) P(w interface{ WhereP(...func(*sql.Selector)) }, objectIDs []string)

P adds the predicate to the queries, using the "id" field

func (ObjectOwnedMixin) PWithField added in v0.7.5

func (o ObjectOwnedMixin) PWithField(w interface{ WhereP(...func(*sql.Selector)) }, fieldName string, objectIDs []string)

P adds a storage-level predicate to the queries and mutations for the provided field name

type Onboarding added in v0.6.24

type Onboarding struct {
	SchemaFuncs

	ent.Schema
}

Onboarding holds the schema definition for the Onboarding entity

func (Onboarding) Annotations added in v0.6.24

func (o Onboarding) Annotations() []schema.Annotation

Annotations of the Onboarding

func (Onboarding) Edges added in v0.6.24

func (o Onboarding) Edges() []ent.Edge

Edges of the Onboarding

func (Onboarding) Fields added in v0.6.24

func (Onboarding) Fields() []ent.Field

Fields of the Onboarding

func (Onboarding) GetType added in v0.8.2

func (Onboarding) GetType() any

GetType returns the type of the Onboarding schema.

func (Onboarding) Hooks added in v0.6.24

func (Onboarding) Hooks() []ent.Hook

Hooks of the Onboarding

func (Onboarding) Mixin added in v0.6.24

func (Onboarding) Mixin() []ent.Mixin

Mixin of the Onboarding

func (Onboarding) Modules added in v0.28.0

func (Onboarding) Modules() []models.OrgModule

func (Onboarding) Name added in v0.8.2

func (Onboarding) Name() string

Name returns the name of the Onboarding schema.

func (Onboarding) PluralName added in v0.8.2

func (Onboarding) PluralName() string

PluralName returns the plural name of the Onboarding schema.

func (Onboarding) Policy added in v0.6.24

func (o Onboarding) Policy() ent.Policy

Policy of the Onboarding

type OrgMembership

type OrgMembership struct {
	SchemaFuncs

	ent.Schema
}

OrgMembership holds the schema definition for the OrgMembership entity

func (OrgMembership) Annotations

func (OrgMembership) Annotations() []schema.Annotation

Annotations of the OrgMembership

func (OrgMembership) Edges

func (o OrgMembership) Edges() []ent.Edge

Edges of the OrgMembership

func (OrgMembership) Fields

func (OrgMembership) Fields() []ent.Field

Fields of the OrgMembership

func (OrgMembership) GetType added in v0.8.2

func (OrgMembership) GetType() any

func (OrgMembership) Hooks

func (OrgMembership) Hooks() []ent.Hook

Hooks of the OrgMembership

func (OrgMembership) Indexes

func (OrgMembership) Indexes() []ent.Index

func (OrgMembership) Interceptors

func (OrgMembership) Interceptors() []ent.Interceptor

Interceptors of the OrgMembership

func (OrgMembership) Mixin

func (OrgMembership) Mixin() []ent.Mixin

Mixin of the OrgMembership

func (OrgMembership) Modules added in v0.28.0

func (OrgMembership) Modules() []models.OrgModule

func (OrgMembership) Name added in v0.8.2

func (OrgMembership) Name() string

func (OrgMembership) PluralName added in v0.8.2

func (OrgMembership) PluralName() string

func (OrgMembership) Policy

func (OrgMembership) Policy() ent.Policy

Policy of the OrgMembership

type OrgMembershipHistory

type OrgMembershipHistory struct {
	ent.Schema
}

OrgMembershipHistory holds the schema definition for the OrgMembershipHistory entity.

func (OrgMembershipHistory) Annotations

func (OrgMembershipHistory) Annotations() []schema.Annotation

Annotations of the OrgMembershipHistory.

func (OrgMembershipHistory) Fields

func (OrgMembershipHistory) Fields() []ent.Field

Fields of the OrgMembershipHistory.

func (OrgMembershipHistory) Indexes

func (OrgMembershipHistory) Indexes() []ent.Index

Indexes of the OrgMembershipHistory

func (OrgMembershipHistory) Interceptors

func (OrgMembershipHistory) Interceptors() []ent.Interceptor

Interceptors of the OrgMembershipHistory

func (OrgMembershipHistory) Policy

func (OrgMembershipHistory) Policy() ent.Policy

Policy of the OrgMembershipHistory. ensure history.AllowIfHistoryRequest() is already added to the base policy

type OrgModule added in v0.18.4

type OrgModule struct {
	SchemaFuncs

	ent.Schema
}

OrgModule holds module subscription info for an organization each enabled module is stored as a separate row

func (OrgModule) Annotations added in v0.18.4

func (OrgModule) Annotations() []schema.Annotation

Annotations returns the annotations for the OrgModule schema

func (OrgModule) Edges added in v0.18.4

func (o OrgModule) Edges() []ent.Edge

Edges of the OrgModule

func (OrgModule) Fields added in v0.18.4

func (OrgModule) Fields() []ent.Field

Fields of the OrgModule

func (OrgModule) GetType added in v0.18.4

func (OrgModule) GetType() any

GetType returns the type of the OrgModule schema

func (OrgModule) Hooks added in v0.28.0

func (OrgModule) Hooks() []ent.Hook

Hooks of the OrgModule

func (OrgModule) Mixin added in v0.18.4

func (o OrgModule) Mixin() []ent.Mixin

Mixin returns the mixins for the OrgModule schema

func (OrgModule) Name added in v0.18.4

func (OrgModule) Name() string

Name returns the name of the OrgModule schema

func (OrgModule) PluralName added in v0.18.4

func (OrgModule) PluralName() string

PluralName returns the plural name of the OrgModule schema

type OrgPrice added in v0.18.4

type OrgPrice struct {
	SchemaFuncs

	ent.Schema
}

OrgPrice represents a price attached to a subscription product

func (OrgPrice) Annotations added in v0.18.4

func (OrgPrice) Annotations() []schema.Annotation

Annotations returns the annotations for the OrgPrice schema

func (OrgPrice) Edges added in v0.18.4

func (o OrgPrice) Edges() []ent.Edge

Edges of the OrgPrice

func (OrgPrice) Fields added in v0.18.4

func (OrgPrice) Fields() []ent.Field

Fields of the OrgPrice

func (OrgPrice) GetType added in v0.18.4

func (OrgPrice) GetType() any

GetType returns the type of the OrgPrice schema

func (OrgPrice) Mixin added in v0.18.4

func (o OrgPrice) Mixin() []ent.Mixin

Mixin returns the mixins for the OrgPrice schema

func (OrgPrice) Modules added in v0.28.0

func (OrgPrice) Modules() []models.OrgModule

func (OrgPrice) Name added in v0.18.4

func (OrgPrice) Name() string

Name returns the name of the OrgPrice schema

func (OrgPrice) PluralName added in v0.18.4

func (OrgPrice) PluralName() string

PluralName returns the plural name of the OrgPrice schema

type OrgProduct added in v0.18.4

type OrgProduct struct {
	SchemaFuncs

	ent.Schema
}

OrgProduct represents a module product linked to a subscription.

func (OrgProduct) Annotations added in v0.18.4

func (OrgProduct) Annotations() []schema.Annotation

Annotations returns the annotations for the OrgProduct schema

func (OrgProduct) Edges added in v0.18.4

func (o OrgProduct) Edges() []ent.Edge

Edges returns the edges for the OrgProduct schema

func (OrgProduct) Fields added in v0.18.4

func (OrgProduct) Fields() []ent.Field

Fields returns the fields for the OrgProduct schema

func (OrgProduct) GetType added in v0.18.4

func (OrgProduct) GetType() any

GetType returns the type of the OrgProduct schema

func (OrgProduct) Mixin added in v0.18.4

func (o OrgProduct) Mixin() []ent.Mixin

Mixin returns the mixins for the OrgProduct schema

func (OrgProduct) Modules added in v0.28.0

func (OrgProduct) Modules() []models.OrgModule

func (OrgProduct) Name added in v0.18.4

func (OrgProduct) Name() string

Name returns the name of the OrgProduct schema

func (OrgProduct) PluralName added in v0.18.4

func (OrgProduct) PluralName() string

PluralName returns the plural name of the OrgProduct schema

type OrgSubscription added in v0.5.1

type OrgSubscription struct {
	SchemaFuncs

	ent.Schema
}

OrgSubscription holds the schema definition for the OrgSubscription entity

func (OrgSubscription) Annotations added in v0.5.1

func (o OrgSubscription) Annotations() []schema.Annotation

Annotations of the OrgSubscription

func (OrgSubscription) Edges added in v0.5.1

func (o OrgSubscription) Edges() []ent.Edge

Edges of the OrgSubscription

func (OrgSubscription) Fields added in v0.5.1

func (OrgSubscription) Fields() []ent.Field

Fields of the OrgSubscription

func (OrgSubscription) GetType added in v0.8.2

func (OrgSubscription) GetType() any

GetType returns the type of the OrgSubscription schema.

func (OrgSubscription) Interceptors added in v0.5.1

func (o OrgSubscription) Interceptors() []ent.Interceptor

Interceptors of the OrgSubscription

func (OrgSubscription) Mixin added in v0.5.1

func (o OrgSubscription) Mixin() []ent.Mixin

Mixin of the OrgSubscription

func (OrgSubscription) Name added in v0.8.2

func (OrgSubscription) Name() string

Name returns the name of the OrgSubscription schema.

func (OrgSubscription) PluralName added in v0.8.2

func (OrgSubscription) PluralName() string

PluralName returns the plural name of the OrgSubscription schema.

type OrgSubscriptionHistory added in v0.5.1

type OrgSubscriptionHistory struct {
	ent.Schema
}

OrgSubscriptionHistory holds the schema definition for the OrgSubscriptionHistory entity.

func (OrgSubscriptionHistory) Annotations added in v0.5.1

func (OrgSubscriptionHistory) Annotations() []schema.Annotation

Annotations of the OrgSubscriptionHistory.

func (OrgSubscriptionHistory) Fields added in v0.5.1

func (OrgSubscriptionHistory) Fields() []ent.Field

Fields of the OrgSubscriptionHistory.

func (OrgSubscriptionHistory) Indexes added in v0.5.1

func (OrgSubscriptionHistory) Indexes() []ent.Index

Indexes of the OrgSubscriptionHistory

type Organization

type Organization struct {
	SchemaFuncs

	ent.Schema
}

Organization holds the schema definition for the Organization entity - organizations are the top level tenancy construct in the system

func (Organization) Annotations

func (o Organization) Annotations() []schema.Annotation

Annotations of the Organization

func (Organization) Edges

func (o Organization) Edges() []ent.Edge

Edges of the Organization

func (Organization) Fields

func (Organization) Fields() []ent.Field

Fields of the Organization

func (Organization) GetType added in v0.8.2

func (Organization) GetType() any

func (Organization) Hooks

func (Organization) Hooks() []ent.Hook

Hooks of the Organization

func (Organization) Indexes

func (Organization) Indexes() []ent.Index

func (Organization) Interceptors

func (o Organization) Interceptors() []ent.Interceptor

Interceptors of the Organization

func (Organization) Mixin

func (Organization) Mixin() []ent.Mixin

Mixin of the Organization

func (Organization) Name added in v0.8.2

func (Organization) Name() string

func (Organization) PluralName added in v0.8.2

func (Organization) PluralName() string

func (Organization) Policy

func (Organization) Policy() ent.Policy

Policy defines the privacy policy of the Organization.

type OrganizationHistory

type OrganizationHistory struct {
	ent.Schema
}

OrganizationHistory holds the schema definition for the OrganizationHistory entity.

func (OrganizationHistory) Annotations

func (OrganizationHistory) Annotations() []schema.Annotation

Annotations of the OrganizationHistory.

func (OrganizationHistory) Fields

func (OrganizationHistory) Fields() []ent.Field

Fields of the OrganizationHistory.

func (OrganizationHistory) Indexes

func (OrganizationHistory) Indexes() []ent.Index

Indexes of the OrganizationHistory

func (OrganizationHistory) Interceptors

func (OrganizationHistory) Interceptors() []ent.Interceptor

Interceptors of the OrganizationHistory

func (OrganizationHistory) Policy

func (OrganizationHistory) Policy() ent.Policy

Policy of the OrganizationHistory. ensure history.AllowIfHistoryRequest() is already added to the base policy

type OrganizationSetting

type OrganizationSetting struct {
	SchemaFuncs

	ent.Schema
}

OrganizationSetting holds the schema definition for the OrganizationSetting entity

func (OrganizationSetting) Annotations

func (o OrganizationSetting) Annotations() []schema.Annotation

Annotations of the OrganizationSetting

func (OrganizationSetting) Edges

func (o OrganizationSetting) Edges() []ent.Edge

Edges of the OrganizationSetting

func (OrganizationSetting) Fields

func (OrganizationSetting) Fields() []ent.Field

Fields of the OrganizationSetting

func (OrganizationSetting) GetType added in v0.8.2

func (OrganizationSetting) GetType() any

GetType returns the type of the OrganizationSetting schema.

func (OrganizationSetting) Hooks added in v0.7.0

func (OrganizationSetting) Hooks() []ent.Hook

Hooks of the OrganizationSetting

func (OrganizationSetting) Interceptors

func (o OrganizationSetting) Interceptors() []ent.Interceptor

Interceptors of the OrganizationSetting

func (OrganizationSetting) Mixin

func (OrganizationSetting) Mixin() []ent.Mixin

Mixin of the OrganizationSetting

func (OrganizationSetting) Modules added in v0.28.0

func (OrganizationSetting) Modules() []models.OrgModule

func (OrganizationSetting) Name added in v0.8.2

func (OrganizationSetting) Name() string

Name returns the name of the OrganizationSetting schema.

func (OrganizationSetting) PluralName added in v0.8.2

func (OrganizationSetting) PluralName() string

PluralName returns the plural name of the OrganizationSetting schema.

func (OrganizationSetting) Policy

func (OrganizationSetting) Policy() ent.Policy

Policy defines the privacy policy of the OrganizationSetting

type OrganizationSettingHistory

type OrganizationSettingHistory struct {
	ent.Schema
}

OrganizationSettingHistory holds the schema definition for the OrganizationSettingHistory entity.

func (OrganizationSettingHistory) Annotations

Annotations of the OrganizationSettingHistory.

func (OrganizationSettingHistory) Fields

Fields of the OrganizationSettingHistory.

func (OrganizationSettingHistory) Indexes

func (OrganizationSettingHistory) Indexes() []ent.Index

Indexes of the OrganizationSettingHistory

func (OrganizationSettingHistory) Interceptors

func (OrganizationSettingHistory) Interceptors() []ent.Interceptor

Interceptors of the OrganizationSettingHistory

func (OrganizationSettingHistory) Policy

Policy of the OrganizationSettingHistory. ensure history.AllowIfHistoryRequest() is already added to the base policy

type PasswordResetToken

type PasswordResetToken struct {
	SchemaFuncs

	ent.Schema
}

PasswordResetToken holds the schema definition for the PasswordResetToken entity

func (PasswordResetToken) Annotations

func (p PasswordResetToken) Annotations() []schema.Annotation

Annotations of the PasswordResetToken

func (PasswordResetToken) Fields

func (PasswordResetToken) Fields() []ent.Field

Fields of the PasswordResetToken

func (PasswordResetToken) GetType added in v0.8.2

func (PasswordResetToken) GetType() any

GetType returns the type of the PasswordResetToken schema.

func (PasswordResetToken) Hooks

func (PasswordResetToken) Hooks() []ent.Hook

Hooks of the PasswordResetToken

func (PasswordResetToken) Indexes

func (PasswordResetToken) Indexes() []ent.Index

Indexes of the PasswordResetToken

func (PasswordResetToken) Mixin

func (p PasswordResetToken) Mixin() []ent.Mixin

Mixin of the PasswordResetToken

func (PasswordResetToken) Name added in v0.8.2

func (PasswordResetToken) Name() string

Name returns the name of the PasswordResetToken schema.

func (PasswordResetToken) PluralName added in v0.8.2

func (PasswordResetToken) PluralName() string

PluralName returns the plural name of the PasswordResetToken schema.

func (PasswordResetToken) Policy

func (p PasswordResetToken) Policy() ent.Policy

Policy of the PasswordResetToken

type PersonalAccessToken

type PersonalAccessToken struct {
	SchemaFuncs

	ent.Schema
}

PersonalAccessToken holds the schema definition for the PersonalAccessToken entity.

func (PersonalAccessToken) Annotations

func (p PersonalAccessToken) Annotations() []schema.Annotation

Annotations of the PersonalAccessToken

func (PersonalAccessToken) Edges

func (p PersonalAccessToken) Edges() []ent.Edge

Edges of the PersonalAccessToken

func (PersonalAccessToken) Fields

func (PersonalAccessToken) Fields() []ent.Field

Fields of the PersonalAccessToken

func (PersonalAccessToken) GetType added in v0.8.2

func (PersonalAccessToken) GetType() any

GetType returns the type of the PersonalAccessToken schema.

func (PersonalAccessToken) Hooks

func (PersonalAccessToken) Hooks() []ent.Hook

Hooks of the PersonalAccessToken

func (PersonalAccessToken) Indexes

func (PersonalAccessToken) Indexes() []ent.Index

Indexes of the PersonalAccessToken

func (PersonalAccessToken) Interceptors

func (p PersonalAccessToken) Interceptors() []ent.Interceptor

Interceptors of the PersonalAccessToken

func (PersonalAccessToken) Mixin

func (p PersonalAccessToken) Mixin() []ent.Mixin

Mixin of the PersonalAccessToken

func (PersonalAccessToken) Modules added in v0.28.0

func (p PersonalAccessToken) Modules() []models.OrgModule

func (PersonalAccessToken) Name added in v0.8.2

func (PersonalAccessToken) Name() string

Name returns the name of the PersonalAccessToken schema.

func (PersonalAccessToken) PluralName added in v0.8.2

func (PersonalAccessToken) PluralName() string

PluralName returns the plural name of the PersonalAccessToken schema.

func (PersonalAccessToken) Policy

func (p PersonalAccessToken) Policy() ent.Policy

Policy of the PersonalAccessToken

type Procedure added in v0.3.3

type Procedure struct {
	SchemaFuncs

	ent.Schema
}

Procedure defines the procedure schema.

func (Procedure) Annotations added in v0.3.3

func (p Procedure) Annotations() []schema.Annotation

Annotations of the Procedure

func (Procedure) Edges added in v0.3.3

func (p Procedure) Edges() []ent.Edge

Edges of the Procedure

func (Procedure) Fields added in v0.3.3

func (Procedure) Fields() []ent.Field

Fields returns procedure fields.

func (Procedure) GetType added in v0.8.2

func (Procedure) GetType() any

GetType returns the type of the procedure schema.

func (Procedure) Hooks added in v0.4.2

func (Procedure) Hooks() []ent.Hook

Hooks of the Procedure

func (Procedure) Interceptors added in v0.4.2

func (p Procedure) Interceptors() []ent.Interceptor

Interceptors of the Procedure

func (Procedure) Mixin added in v0.3.3

func (p Procedure) Mixin() []ent.Mixin

Mixin of the Procedure

func (Procedure) Modules added in v0.28.0

func (Procedure) Modules() []models.OrgModule

func (Procedure) Name added in v0.8.2

func (Procedure) Name() string

Name returns the name of the procedure schema.

func (Procedure) PluralName added in v0.8.2

func (Procedure) PluralName() string

PluralName returns the plural name of the procedure schema.

func (Procedure) Policy added in v0.4.2

func (p Procedure) Policy() ent.Policy

Policy of the Procedure

type ProcedureHistory added in v0.3.3

type ProcedureHistory struct {
	ent.Schema
}

ProcedureHistory holds the schema definition for the ProcedureHistory entity.

func (ProcedureHistory) Annotations added in v0.3.3

func (ProcedureHistory) Annotations() []schema.Annotation

Annotations of the ProcedureHistory.

func (ProcedureHistory) Fields added in v0.3.3

func (ProcedureHistory) Fields() []ent.Field

Fields of the ProcedureHistory.

func (ProcedureHistory) Indexes added in v0.3.3

func (ProcedureHistory) Indexes() []ent.Index

Indexes of the ProcedureHistory

func (ProcedureHistory) Interceptors added in v0.4.2

func (ProcedureHistory) Interceptors() []ent.Interceptor

Interceptors of the ProcedureHistory

func (ProcedureHistory) Policy added in v0.4.2

func (ProcedureHistory) Policy() ent.Policy

Policy of the ProcedureHistory. ensure history.AllowIfHistoryRequest() is already added to the base policy

type Program added in v0.3.5

type Program struct {
	SchemaFuncs

	ent.Schema
}

Program holds the schema definition for the Program entity

func (Program) Annotations added in v0.3.5

func (p Program) Annotations() []schema.Annotation

Annotations of the Program

func (Program) Edges added in v0.3.5

func (p Program) Edges() []ent.Edge

Edges of the Program

func (Program) Fields added in v0.3.5

func (Program) Fields() []ent.Field

Fields of the Program

func (Program) GetType added in v0.8.2

func (Program) GetType() any

GetType returns the type of the Program schema.

func (Program) Hooks added in v0.3.5

func (Program) Hooks() []ent.Hook

Hooks of the Program

func (Program) Interceptors added in v0.3.5

func (p Program) Interceptors() []ent.Interceptor

Interceptors of the Program

func (Program) Mixin added in v0.3.5

func (p Program) Mixin() []ent.Mixin

Mixin of the Program

func (Program) Modules added in v0.28.0

func (Program) Modules() []models.OrgModule

func (Program) Name added in v0.8.2

func (Program) Name() string

Name returns the name of the Program schema.

func (Program) PluralName added in v0.8.2

func (Program) PluralName() string

PluralName returns the plural name of the Program schema.

func (Program) Policy added in v0.3.5

func (p Program) Policy() ent.Policy

Policy of the Program

type ProgramHistory added in v0.3.5

type ProgramHistory struct {
	ent.Schema
}

ProgramHistory holds the schema definition for the ProgramHistory entity.

func (ProgramHistory) Annotations added in v0.3.5

func (ProgramHistory) Annotations() []schema.Annotation

Annotations of the ProgramHistory.

func (ProgramHistory) Fields added in v0.3.5

func (ProgramHistory) Fields() []ent.Field

Fields of the ProgramHistory.

func (ProgramHistory) Indexes added in v0.3.5

func (ProgramHistory) Indexes() []ent.Index

Indexes of the ProgramHistory

func (ProgramHistory) Interceptors added in v0.3.5

func (ProgramHistory) Interceptors() []ent.Interceptor

Interceptors of the ProgramHistory

func (ProgramHistory) Policy added in v0.3.5

func (ProgramHistory) Policy() ent.Policy

Policy of the ProgramHistory. ensure history.AllowIfHistoryRequest() is already added to the base policy

type ProgramMembership added in v0.3.5

type ProgramMembership struct {
	SchemaFuncs

	ent.Schema
}

ProgramMembership holds the schema definition for the ProgramMembership entity

func (ProgramMembership) Annotations added in v0.3.5

func (ProgramMembership) Annotations() []schema.Annotation

Annotations of the ProgramMembership

func (ProgramMembership) Edges added in v0.3.5

func (p ProgramMembership) Edges() []ent.Edge

Edges of the ProgramMembership

func (ProgramMembership) Fields added in v0.3.5

func (ProgramMembership) Fields() []ent.Field

Fields of the ProgramMembership

func (ProgramMembership) GetType added in v0.8.2

func (ProgramMembership) GetType() any

GetType returns the type of the ProgramMembership schema.

func (ProgramMembership) Hooks added in v0.3.5

func (ProgramMembership) Hooks() []ent.Hook

Hooks of the ProgramMembership

func (ProgramMembership) Indexes added in v0.3.5

func (ProgramMembership) Indexes() []ent.Index

Indexes of the ProgramMembership

func (ProgramMembership) Interceptors added in v0.7.0

func (ProgramMembership) Interceptors() []ent.Interceptor

Interceptors of the ProgramMembership

func (ProgramMembership) Mixin added in v0.3.5

func (ProgramMembership) Mixin() []ent.Mixin

Mixin of the ProgramMembership

func (ProgramMembership) Modules added in v0.28.0

func (ProgramMembership) Modules() []models.OrgModule

func (ProgramMembership) Name added in v0.8.2

func (ProgramMembership) Name() string

Name returns the name of the ProgramMembership schema.

func (ProgramMembership) PluralName added in v0.8.2

func (ProgramMembership) PluralName() string

PluralName returns the plural name of the ProgramMembership schema.

func (ProgramMembership) Policy added in v0.3.5

func (ProgramMembership) Policy() ent.Policy

// Policy of the ProgramMembership

type ProgramMembershipHistory added in v0.3.5

type ProgramMembershipHistory struct {
	ent.Schema
}

ProgramMembershipHistory holds the schema definition for the ProgramMembershipHistory entity.

func (ProgramMembershipHistory) Annotations added in v0.3.5

func (ProgramMembershipHistory) Annotations() []schema.Annotation

Annotations of the ProgramMembershipHistory.

func (ProgramMembershipHistory) Fields added in v0.3.5

func (ProgramMembershipHistory) Fields() []ent.Field

Fields of the ProgramMembershipHistory.

func (ProgramMembershipHistory) Indexes added in v0.3.5

func (ProgramMembershipHistory) Indexes() []ent.Index

Indexes of the ProgramMembershipHistory

func (ProgramMembershipHistory) Interceptors added in v0.3.5

func (ProgramMembershipHistory) Interceptors() []ent.Interceptor

Interceptors of the ProgramMembershipHistory

func (ProgramMembershipHistory) Policy added in v0.3.5

Policy of the ProgramMembershipHistory. ensure history.AllowIfHistoryRequest() is already added to the base policy

type Remediation added in v0.43.3

type Remediation struct {
	SchemaFuncs

	ent.Schema
}

Remediation defines the remediation schema.

func (Remediation) Annotations added in v0.43.3

func (Remediation) Annotations() []schema.Annotation

Annotations of the Remediation

func (Remediation) Edges added in v0.43.3

func (r Remediation) Edges() []ent.Edge

Edges of the Remediation

func (Remediation) Fields added in v0.43.3

func (Remediation) Fields() []ent.Field

Fields returns remediation fields.

func (Remediation) GetType added in v0.43.3

func (Remediation) GetType() any

GetType returns the type of the remediation schema.

func (Remediation) Indexes added in v0.43.3

func (Remediation) Indexes() []ent.Index

Indexes of the Remediation

func (Remediation) Mixin added in v0.43.3

func (r Remediation) Mixin() []ent.Mixin

Mixin of the Remediation

func (Remediation) Modules added in v0.43.3

func (Remediation) Modules() []models.OrgModule

func (Remediation) Name added in v0.43.3

func (Remediation) Name() string

Name returns the name of the remediation schema.

func (Remediation) PluralName added in v0.43.3

func (Remediation) PluralName() string

PluralName returns the plural name of the remediation schema.

func (Remediation) Policy added in v0.43.3

func (r Remediation) Policy() ent.Policy

Policy of the Remediation

type RemediationHistory added in v0.43.3

type RemediationHistory struct {
	ent.Schema
}

RemediationHistory holds the schema definition for the RemediationHistory entity.

func (RemediationHistory) Annotations added in v0.43.3

func (RemediationHistory) Annotations() []schema.Annotation

Annotations of the RemediationHistory.

func (RemediationHistory) Fields added in v0.43.3

func (RemediationHistory) Fields() []ent.Field

Fields of the RemediationHistory.

func (RemediationHistory) Indexes added in v0.43.3

func (RemediationHistory) Indexes() []ent.Index

Indexes of the RemediationHistory

func (RemediationHistory) Interceptors added in v0.43.3

func (RemediationHistory) Interceptors() []ent.Interceptor

Interceptors of the RemediationHistory

func (RemediationHistory) Policy added in v0.43.3

func (RemediationHistory) Policy() ent.Policy

Policy of the RemediationHistory. ensure history.AllowIfHistoryRequest() is already added to the base policy

type Review added in v0.43.3

type Review struct {
	SchemaFuncs

	ent.Schema
}

Review defines the review schema.

func (Review) Annotations added in v0.43.3

func (Review) Annotations() []schema.Annotation

Annotations of the Review

func (Review) Edges added in v0.43.3

func (r Review) Edges() []ent.Edge

Edges of the Review

func (Review) Fields added in v0.43.3

func (Review) Fields() []ent.Field

Fields returns review fields.

func (Review) GetType added in v0.43.3

func (Review) GetType() any

GetType returns the type of the review schema.

func (Review) Indexes added in v0.43.3

func (Review) Indexes() []ent.Index

Indexes of the Review

func (Review) Mixin added in v0.43.3

func (r Review) Mixin() []ent.Mixin

Mixin of the Review

func (Review) Modules added in v0.43.3

func (Review) Modules() []models.OrgModule

func (Review) Name added in v0.43.3

func (Review) Name() string

Name returns the name of the review schema.

func (Review) PluralName added in v0.43.3

func (Review) PluralName() string

PluralName returns the plural name of the review schema.

func (Review) Policy added in v0.43.3

func (r Review) Policy() ent.Policy

Policy of the Review

type ReviewHistory added in v0.43.3

type ReviewHistory struct {
	ent.Schema
}

ReviewHistory holds the schema definition for the ReviewHistory entity.

func (ReviewHistory) Annotations added in v0.43.3

func (ReviewHistory) Annotations() []schema.Annotation

Annotations of the ReviewHistory.

func (ReviewHistory) Fields added in v0.43.3

func (ReviewHistory) Fields() []ent.Field

Fields of the ReviewHistory.

func (ReviewHistory) Indexes added in v0.43.3

func (ReviewHistory) Indexes() []ent.Index

Indexes of the ReviewHistory

func (ReviewHistory) Interceptors added in v0.43.3

func (ReviewHistory) Interceptors() []ent.Interceptor

Interceptors of the ReviewHistory

func (ReviewHistory) Policy added in v0.43.3

func (ReviewHistory) Policy() ent.Policy

Policy of the ReviewHistory. ensure history.AllowIfHistoryRequest() is already added to the base policy

type Risk added in v0.3.3

type Risk struct {
	SchemaFuncs

	ent.Schema
}

Risk defines the risk schema.

func (Risk) Annotations added in v0.3.3

func (r Risk) Annotations() []schema.Annotation

Annotations of the Risk

func (Risk) Edges added in v0.3.3

func (r Risk) Edges() []ent.Edge

Edges of the Risk

func (Risk) Fields added in v0.3.3

func (Risk) Fields() []ent.Field

Fields returns risk fields.

func (Risk) GetType added in v0.8.2

func (Risk) GetType() any

GetType returns the type of the risk schema.

func (Risk) Hooks added in v0.4.3

func (Risk) Hooks() []ent.Hook

Hooks of the Risk

func (Risk) Mixin added in v0.3.3

func (r Risk) Mixin() []ent.Mixin

Mixin of the Risk

func (Risk) Modules added in v0.28.0

func (Risk) Modules() []models.OrgModule

func (Risk) Name added in v0.8.2

func (Risk) Name() string

Name returns the name of the risk schema.

func (Risk) PluralName added in v0.8.2

func (Risk) PluralName() string

PluralName returns the plural name of the risk schema.

func (Risk) Policy added in v0.4.3

func (r Risk) Policy() ent.Policy

Policy of the Risk

type RiskHistory added in v0.3.3

type RiskHistory struct {
	ent.Schema
}

RiskHistory holds the schema definition for the RiskHistory entity.

func (RiskHistory) Annotations added in v0.3.3

func (RiskHistory) Annotations() []schema.Annotation

Annotations of the RiskHistory.

func (RiskHistory) Fields added in v0.3.3

func (RiskHistory) Fields() []ent.Field

Fields of the RiskHistory.

func (RiskHistory) Indexes added in v0.3.3

func (RiskHistory) Indexes() []ent.Index

Indexes of the RiskHistory

func (RiskHistory) Interceptors added in v0.4.3

func (RiskHistory) Interceptors() []ent.Interceptor

Interceptors of the RiskHistory

func (RiskHistory) Policy added in v0.4.3

func (RiskHistory) Policy() ent.Policy

Policy of the RiskHistory. ensure history.AllowIfHistoryRequest() is already added to the base policy

type Scan added in v0.19.0

type Scan struct {
	SchemaFuncs
	ent.Schema
}

Scan holds the schema definition for scan records used for domain, vulnerability, or provider scans.

func (Scan) Annotations added in v0.19.0

func (Scan) Annotations() []schema.Annotation

Annotations of the Scan

func (Scan) Edges added in v0.19.0

func (s Scan) Edges() []ent.Edge

func (Scan) Fields added in v0.19.0

func (Scan) Fields() []ent.Field

func (Scan) GetType added in v0.19.0

func (Scan) GetType() any

func (Scan) Mixin added in v0.19.0

func (s Scan) Mixin() []ent.Mixin

func (Scan) Modules added in v0.28.0

func (Scan) Modules() []models.OrgModule

func (Scan) Name added in v0.19.0

func (Scan) Name() string

func (Scan) PluralName added in v0.19.0

func (Scan) PluralName() string

func (Scan) Policy added in v0.19.0

func (s Scan) Policy() ent.Policy

Policy of the Scan

type ScanHistory added in v0.19.0

type ScanHistory struct {
	ent.Schema
}

ScanHistory holds the schema definition for the ScanHistory entity.

func (ScanHistory) Annotations added in v0.19.0

func (ScanHistory) Annotations() []schema.Annotation

Annotations of the ScanHistory.

func (ScanHistory) Fields added in v0.19.0

func (ScanHistory) Fields() []ent.Field

Fields of the ScanHistory.

func (ScanHistory) Indexes added in v0.19.0

func (ScanHistory) Indexes() []ent.Index

Indexes of the ScanHistory

func (ScanHistory) Interceptors added in v0.19.0

func (ScanHistory) Interceptors() []ent.Interceptor

Interceptors of the ScanHistory

func (ScanHistory) Policy added in v0.23.1

func (ScanHistory) Policy() ent.Policy

Policy of the ScanHistory. ensure history.AllowIfHistoryRequest() is already added to the base policy

type ScheduledJob added in v0.15.0

type ScheduledJob struct {
	SchemaFuncs

	ent.Schema
}

ScheduledJob holds the schema definition for the ScheduledJob entity

func (ScheduledJob) Annotations added in v0.15.0

func (ScheduledJob) Annotations() []schema.Annotation

Annotations of the ScheduledJob

func (ScheduledJob) Edges added in v0.15.0

func (c ScheduledJob) Edges() []ent.Edge

Edges of the ScheduledJob

func (ScheduledJob) Fields added in v0.15.0

func (ScheduledJob) Fields() []ent.Field

Fields of the ScheduledJob

func (ScheduledJob) GetType added in v0.15.0

func (ScheduledJob) GetType() any

func (ScheduledJob) Hooks added in v0.15.0

func (ScheduledJob) Hooks() []ent.Hook

Hooks of the ScheduledJob

func (ScheduledJob) Indexes added in v0.15.0

func (ScheduledJob) Indexes() []ent.Index

Indexes of the ScheduledJob

func (ScheduledJob) Interceptors added in v0.15.0

func (ScheduledJob) Interceptors() []ent.Interceptor

Interceptors of the ScheduledJob

func (ScheduledJob) Mixin added in v0.15.0

func (c ScheduledJob) Mixin() []ent.Mixin

Mixin of the ScheduledJob

func (ScheduledJob) Modules added in v0.28.0

func (ScheduledJob) Modules() []models.OrgModule

func (ScheduledJob) Name added in v0.15.0

func (ScheduledJob) Name() string

func (ScheduledJob) PluralName added in v0.15.0

func (ScheduledJob) PluralName() string

func (ScheduledJob) Policy added in v0.15.0

func (ScheduledJob) Policy() ent.Policy

Policy of the ScheduledJob

type ScheduledJobHistory added in v0.15.0

type ScheduledJobHistory struct {
	ent.Schema
}

ScheduledJobHistory holds the schema definition for the ScheduledJobHistory entity.

func (ScheduledJobHistory) Annotations added in v0.15.0

func (ScheduledJobHistory) Annotations() []schema.Annotation

Annotations of the ScheduledJobHistory.

func (ScheduledJobHistory) Fields added in v0.15.0

func (ScheduledJobHistory) Fields() []ent.Field

Fields of the ScheduledJobHistory.

func (ScheduledJobHistory) Indexes added in v0.15.0

func (ScheduledJobHistory) Indexes() []ent.Index

Indexes of the ScheduledJobHistory

func (ScheduledJobHistory) Interceptors added in v0.15.0

func (ScheduledJobHistory) Interceptors() []ent.Interceptor

Interceptors of the ScheduledJobHistory

func (ScheduledJobHistory) Policy added in v0.23.1

func (ScheduledJobHistory) Policy() ent.Policy

Policy of the ScheduledJobHistory. ensure history.AllowIfHistoryRequest() is already added to the base policy

type ScheduledJobRun added in v0.15.0

type ScheduledJobRun struct {
	SchemaFuncs

	ent.Schema
}

ScheduledJobRun holds the schema definition for the ScheduledJobRun entity

func (ScheduledJobRun) Annotations added in v0.15.0

func (s ScheduledJobRun) Annotations() []schema.Annotation

Annotations of the ScheduledJobRun

func (ScheduledJobRun) Edges added in v0.15.0

func (s ScheduledJobRun) Edges() []ent.Edge

Edges of the ScheduledJobRun

func (ScheduledJobRun) Fields added in v0.15.0

func (ScheduledJobRun) Fields() []ent.Field

Fields of the ScheduledJobRun

func (ScheduledJobRun) GetType added in v0.15.0

func (ScheduledJobRun) GetType() any

GetType returns the type of the schema

func (ScheduledJobRun) Hooks added in v0.15.0

func (ScheduledJobRun) Hooks() []ent.Hook

Hooks of the ScheduledJobRun

func (ScheduledJobRun) Indexes added in v0.15.0

func (ScheduledJobRun) Indexes() []ent.Index

Indexes of the ScheduledJobRun

func (ScheduledJobRun) Mixin added in v0.15.0

func (s ScheduledJobRun) Mixin() []ent.Mixin

Mixin of the ScheduledJobRun

func (ScheduledJobRun) Modules added in v0.28.0

func (ScheduledJobRun) Modules() []models.OrgModule

func (ScheduledJobRun) Name added in v0.15.0

func (ScheduledJobRun) Name() string

Name is the name of the schema in snake case

func (ScheduledJobRun) PluralName added in v0.15.0

func (ScheduledJobRun) PluralName() string

PluralName returns the plural name of the schema

func (ScheduledJobRun) Policy added in v0.15.0

func (s ScheduledJobRun) Policy() ent.Policy

Policy of the ScheduledJobRun

type SchemaFuncs added in v0.8.2

type SchemaFuncs interface {
	Name() string
	PluralName() string
	GetType() any
}

SchemaFuncs defines the methods that a custom schema must implement in order to use the helper functions provided by this file including Name(), PluralName(), and GetType()

type Standard added in v0.3.3

type Standard struct {
	SchemaFuncs

	ent.Schema
}

Standard defines the standard schema.

func (Standard) Edges added in v0.3.3

func (s Standard) Edges() []ent.Edge

Edges of the Standard

func (Standard) Fields added in v0.3.3

func (Standard) Fields() []ent.Field

Fields returns standard fields.

func (Standard) GetType added in v0.8.2

func (Standard) GetType() any

GetType returns the type of the standard schema.

func (Standard) Hooks added in v0.7.3

func (Standard) Hooks() []ent.Hook

Hooks of the Standard

func (Standard) Interceptors added in v0.7.3

func (s Standard) Interceptors() []ent.Interceptor

Interceptors of the Standard

func (Standard) Mixin added in v0.3.3

func (s Standard) Mixin() []ent.Mixin

Mixin of the Standard

func (Standard) Modules added in v0.28.0

func (Standard) Modules() []models.OrgModule

func (Standard) Name added in v0.8.2

func (Standard) Name() string

Name returns the name of the standard schema.

func (Standard) PluralName added in v0.8.2

func (Standard) PluralName() string

PluralName returns the plural name of the standard schema.

func (Standard) Policy added in v0.7.3

func (s Standard) Policy() ent.Policy

Policy of the Standard

type StandardHistory added in v0.3.3

type StandardHistory struct {
	ent.Schema
}

StandardHistory holds the schema definition for the StandardHistory entity.

func (StandardHistory) Annotations added in v0.3.3

func (StandardHistory) Annotations() []schema.Annotation

Annotations of the StandardHistory.

func (StandardHistory) Fields added in v0.3.3

func (StandardHistory) Fields() []ent.Field

Fields of the StandardHistory.

func (StandardHistory) Indexes added in v0.3.3

func (StandardHistory) Indexes() []ent.Index

Indexes of the StandardHistory

func (StandardHistory) Interceptors added in v0.7.3

func (StandardHistory) Interceptors() []ent.Interceptor

Interceptors of the StandardHistory

func (StandardHistory) Policy added in v0.23.1

func (StandardHistory) Policy() ent.Policy

Policy of the StandardHistory. ensure history.AllowIfHistoryRequest() is already added to the base policy

type Subcontrol added in v0.3.3

type Subcontrol struct {
	SchemaFuncs

	ent.Schema
}

Subcontrol defines the file schema.

func (Subcontrol) Edges added in v0.3.3

func (s Subcontrol) Edges() []ent.Edge

Edges of the Subcontrol

func (Subcontrol) Fields added in v0.3.3

func (Subcontrol) Fields() []ent.Field

Fields returns file fields.

func (Subcontrol) GetType added in v0.8.2

func (Subcontrol) GetType() any

GetType returns the type of the Subcontrol schema.

func (Subcontrol) Hooks added in v0.5.0

func (Subcontrol) Hooks() []ent.Hook

Hooks of the Subcontrol

func (Subcontrol) Indexes added in v0.7.3

func (Subcontrol) Indexes() []ent.Index

Indexes of the Subcontrol

func (Subcontrol) Mixin added in v0.3.3

func (s Subcontrol) Mixin() []ent.Mixin

Mixin of the Subcontrol

func (Subcontrol) Modules added in v0.28.0

func (Subcontrol) Modules() []models.OrgModule

Annotations of the Standard

func (Subcontrol) Name added in v0.8.2

func (Subcontrol) Name() string

Name returns the name of the Subcontrol schema.

func (Subcontrol) PluralName added in v0.8.2

func (Subcontrol) PluralName() string

PluralName returns the plural name of the Subcontrol schema.

func (Subcontrol) Policy added in v0.5.0

func (s Subcontrol) Policy() ent.Policy

Policy of the Subcontrol

type SubcontrolHistory added in v0.3.3

type SubcontrolHistory struct {
	ent.Schema
}

SubcontrolHistory holds the schema definition for the SubcontrolHistory entity.

func (SubcontrolHistory) Annotations added in v0.3.3

func (SubcontrolHistory) Annotations() []schema.Annotation

Annotations of the SubcontrolHistory.

func (SubcontrolHistory) Fields added in v0.3.3

func (SubcontrolHistory) Fields() []ent.Field

Fields of the SubcontrolHistory.

func (SubcontrolHistory) Indexes added in v0.3.3

func (SubcontrolHistory) Indexes() []ent.Index

Indexes of the SubcontrolHistory

func (SubcontrolHistory) Interceptors added in v0.5.0

func (SubcontrolHistory) Interceptors() []ent.Interceptor

Interceptors of the SubcontrolHistory

func (SubcontrolHistory) Policy added in v0.5.0

func (SubcontrolHistory) Policy() ent.Policy

Policy of the SubcontrolHistory. ensure history.AllowIfHistoryRequest() is already added to the base policy

type Subprocessor added in v0.22.2

type Subprocessor struct {
	SchemaFuncs

	ent.Schema
}

Subprocessor holds the schema definition for the Subprocessor entity

func (Subprocessor) Edges added in v0.22.2

func (t Subprocessor) Edges() []ent.Edge

Edges of the Subprocessor

func (Subprocessor) Fields added in v0.22.2

func (Subprocessor) Fields() []ent.Field

Fields of the Subprocessor

func (Subprocessor) GetType added in v0.22.2

func (Subprocessor) GetType() any

GetType returns the type of the Subprocessor schema.

func (Subprocessor) Hooks added in v0.22.2

func (Subprocessor) Hooks() []ent.Hook

Hooks of the Subprocessor

func (Subprocessor) Indexes added in v0.22.2

func (Subprocessor) Indexes() []ent.Index

Indexes of the Subprocessor

func (Subprocessor) Interceptors added in v0.22.2

func (t Subprocessor) Interceptors() []ent.Interceptor

Interceptors of the Subprocessor

func (Subprocessor) Mixin added in v0.22.2

func (t Subprocessor) Mixin() []ent.Mixin

Mixin of the Subprocessor

func (Subprocessor) Modules added in v0.28.0

func (Subprocessor) Modules() []models.OrgModule

func (Subprocessor) Name added in v0.22.2

func (Subprocessor) Name() string

Name returns the name of the Subprocessor schema.

func (Subprocessor) PluralName added in v0.22.2

func (Subprocessor) PluralName() string

PluralName returns the plural name of the Subprocessor schema.

func (Subprocessor) Policy added in v0.22.2

func (t Subprocessor) Policy() ent.Policy

Policy of the Subprocessor

type SubprocessorHistory added in v0.22.2

type SubprocessorHistory struct {
	ent.Schema
}

SubprocessorHistory holds the schema definition for the SubprocessorHistory entity.

func (SubprocessorHistory) Annotations added in v0.22.2

func (SubprocessorHistory) Annotations() []schema.Annotation

Annotations of the SubprocessorHistory.

func (SubprocessorHistory) Fields added in v0.22.2

func (SubprocessorHistory) Fields() []ent.Field

Fields of the SubprocessorHistory.

func (SubprocessorHistory) Indexes added in v0.22.2

func (SubprocessorHistory) Indexes() []ent.Index

Indexes of the SubprocessorHistory

func (SubprocessorHistory) Interceptors added in v0.22.2

func (SubprocessorHistory) Interceptors() []ent.Interceptor

Interceptors of the SubprocessorHistory

func (SubprocessorHistory) Policy added in v0.23.1

func (SubprocessorHistory) Policy() ent.Policy

Policy of the SubprocessorHistory. ensure history.AllowIfHistoryRequest() is already added to the base policy

type Subscriber

type Subscriber struct {
	SchemaFuncs

	ent.Schema
}

Subscriber holds the schema definition for the Subscriber entity

func (Subscriber) Annotations

func (Subscriber) Annotations() []schema.Annotation

Annotations of the Subscriber

func (Subscriber) Edges

func (s Subscriber) Edges() []ent.Edge

Edges of the Subscriber

func (Subscriber) Fields

func (Subscriber) Fields() []ent.Field

Fields of the Subscriber

func (Subscriber) GetType added in v0.8.2

func (Subscriber) GetType() any

GetType returns the type of the Subscriber schema.

func (Subscriber) Hooks

func (Subscriber) Hooks() []ent.Hook

func (Subscriber) Indexes

func (Subscriber) Indexes() []ent.Index

Indexes of the Subscriber

func (Subscriber) Mixin

func (s Subscriber) Mixin() []ent.Mixin

Mixin of the Subscriber

func (Subscriber) Modules added in v0.28.0

func (Subscriber) Modules() []models.OrgModule

func (Subscriber) Name added in v0.8.2

func (Subscriber) Name() string

Name returns the name of the Subscriber schema.

func (Subscriber) PluralName added in v0.8.2

func (Subscriber) PluralName() string

PluralName returns the plural name of the Subscriber schema.

func (Subscriber) Policy

func (Subscriber) Policy() ent.Policy

Policy of the Subscriber

type TFASetting

type TFASetting struct {
	SchemaFuncs

	ent.Schema
}

TFASetting holds the schema definition for the TFASetting entity

func (TFASetting) Annotations

func (t TFASetting) Annotations() []schema.Annotation

Annotations of the TFASetting

func (TFASetting) Fields

func (TFASetting) Fields() []ent.Field

Fields of the TFASetting

func (TFASetting) GetType added in v0.8.2

func (TFASetting) GetType() any

GetType returns the type of the TFASetting schema.

func (TFASetting) Hooks

func (TFASetting) Hooks() []ent.Hook

Hooks of the TFASetting

func (TFASetting) Mixin

func (t TFASetting) Mixin() []ent.Mixin

Mixin of the TFASetting

func (TFASetting) Modules added in v0.28.0

func (TFASetting) Modules() []models.OrgModule

func (TFASetting) Name added in v0.8.2

func (TFASetting) Name() string

Name returns the name of the TFASetting schema.

func (TFASetting) PluralName added in v0.8.2

func (TFASetting) PluralName() string

PluralName returns the plural name of the TFASetting schema.

func (TFASetting) Policy added in v0.6.11

func (t TFASetting) Policy() ent.Policy

Policy of the TFASetting

type TagDefinition added in v0.43.0

type TagDefinition struct {
	SchemaFuncs

	ent.Schema
}

TagDefinition holds the schema definition for the TagDefinition entity

func (TagDefinition) Annotations added in v0.43.0

func (TagDefinition) Annotations() []schema.Annotation

Annotations of the TagDefinition

func (TagDefinition) Edges added in v0.43.0

func (t TagDefinition) Edges() []ent.Edge

Edges of the TagDefinition

func (TagDefinition) Fields added in v0.43.0

func (TagDefinition) Fields() []ent.Field

Fields of the TagDefinition

func (TagDefinition) GetType added in v0.43.0

func (TagDefinition) GetType() any

GetType returns the type of the schema

func (TagDefinition) Hooks added in v0.43.0

func (TagDefinition) Hooks() []ent.Hook

Hooks of the TagDefinition

func (TagDefinition) Indexes added in v0.43.0

func (TagDefinition) Indexes() []ent.Index

Indexes of the TagDefinition

func (TagDefinition) Interceptors added in v0.43.0

func (TagDefinition) Interceptors() []ent.Interceptor

Interceptors of the TagDefinition

func (TagDefinition) Mixin added in v0.43.0

func (t TagDefinition) Mixin() []ent.Mixin

Mixin of the TagDefinition

func (TagDefinition) Modules added in v0.43.0

func (TagDefinition) Modules() []models.OrgModule

Modules this schema has access to

func (TagDefinition) Name added in v0.43.0

func (TagDefinition) Name() string

Name is the name of the schema in snake case

func (TagDefinition) PluralName added in v0.43.0

func (TagDefinition) PluralName() string

PluralName returns the plural name of the schema

func (TagDefinition) Policy added in v0.43.0

func (TagDefinition) Policy() ent.Policy

Policy of the TagDefinition

type Task added in v0.3.4

type Task struct {
	SchemaFuncs

	ent.Schema
}

Task holds the schema definition for the Task entity

func (Task) Annotations added in v0.3.4

func (Task) Annotations() []schema.Annotation

Annotations of the Task

func (Task) Edges added in v0.3.4

func (t Task) Edges() []ent.Edge

Edges of the Task

func (Task) Fields added in v0.3.4

func (Task) Fields() []ent.Field

Fields of the Task

func (Task) GetType added in v0.8.2

func (Task) GetType() any

GetType returns the type of the Task schema.

func (Task) Hooks added in v0.3.4

func (Task) Hooks() []ent.Hook

Hooks of the Task

func (Task) Mixin added in v0.3.4

func (t Task) Mixin() []ent.Mixin

Mixin of the Task

func (Task) Modules added in v0.28.0

func (Task) Modules() []models.OrgModule

func (Task) Name added in v0.8.2

func (Task) Name() string

Name returns the name of the Task schema.

func (Task) PluralName added in v0.8.2

func (Task) PluralName() string

PluralName returns the plural name of the Task schema.

func (Task) Policy added in v0.3.4

func (Task) Policy() ent.Policy

Policy of the Task

type TaskHistory added in v0.3.4

type TaskHistory struct {
	ent.Schema
}

TaskHistory holds the schema definition for the TaskHistory entity.

func (TaskHistory) Annotations added in v0.3.4

func (TaskHistory) Annotations() []schema.Annotation

Annotations of the TaskHistory.

func (TaskHistory) Fields added in v0.3.4

func (TaskHistory) Fields() []ent.Field

Fields of the TaskHistory.

func (TaskHistory) Indexes added in v0.3.4

func (TaskHistory) Indexes() []ent.Index

Indexes of the TaskHistory

func (TaskHistory) Interceptors added in v0.3.4

func (TaskHistory) Interceptors() []ent.Interceptor

Interceptors of the TaskHistory

func (TaskHistory) Policy added in v0.3.4

func (TaskHistory) Policy() ent.Policy

Policy of the TaskHistory. ensure history.AllowIfHistoryRequest() is already added to the base policy

type Template

type Template struct {
	SchemaFuncs

	ent.Schema
}

Template holds the schema definition for the Template entity

func (Template) Annotations

func (Template) Annotations() []schema.Annotation

func (Template) Edges

func (t Template) Edges() []ent.Edge

Edges of the Template

func (Template) Fields

func (Template) Fields() []ent.Field

Fields of the Template

func (Template) GetType added in v0.8.2

func (Template) GetType() any

GetType returns the type of the Template schema.

func (Template) Hooks added in v0.32.0

func (Template) Hooks() []ent.Hook

Hooks of the Template

func (Template) Indexes

func (Template) Indexes() []ent.Index

Indexes of the Template

func (Template) Mixin

func (t Template) Mixin() []ent.Mixin

Mixin of the Template

func (Template) Name added in v0.8.2

func (Template) Name() string

SchemaTemplate is the name of the Template schema.

func (Template) PluralName added in v0.8.2

func (Template) PluralName() string

PluralName returns the plural name of the Template schema.

func (Template) Policy

func (Template) Policy() ent.Policy

Policy of the Template

type TemplateHistory

type TemplateHistory struct {
	ent.Schema
}

TemplateHistory holds the schema definition for the TemplateHistory entity.

func (TemplateHistory) Annotations

func (TemplateHistory) Annotations() []schema.Annotation

Annotations of the TemplateHistory.

func (TemplateHistory) Fields

func (TemplateHistory) Fields() []ent.Field

Fields of the TemplateHistory.

func (TemplateHistory) Indexes

func (TemplateHistory) Indexes() []ent.Index

Indexes of the TemplateHistory

func (TemplateHistory) Interceptors

func (TemplateHistory) Interceptors() []ent.Interceptor

Interceptors of the TemplateHistory

func (TemplateHistory) Policy

func (TemplateHistory) Policy() ent.Policy

Policy of the TemplateHistory. ensure history.AllowIfHistoryRequest() is already added to the base policy

type TrustCenter added in v0.19.0

type TrustCenter struct {
	SchemaFuncs

	ent.Schema
}

TrustCenter holds the schema definition for the TrustCenter entity

func (TrustCenter) Annotations added in v0.20.1

func (t TrustCenter) Annotations() []schema.Annotation

Annotations of the TrustCenter

func (TrustCenter) Edges added in v0.19.0

func (t TrustCenter) Edges() []ent.Edge

Edges of the TrustCenter

func (TrustCenter) Fields added in v0.19.0

func (TrustCenter) Fields() []ent.Field

Fields of the TrustCenter

func (TrustCenter) GetType added in v0.19.0

func (TrustCenter) GetType() any

GetType returns the type of the TrustCenter schema.

func (TrustCenter) Hooks added in v0.19.0

func (TrustCenter) Hooks() []ent.Hook

Hooks of the TrustCenter

func (TrustCenter) Indexes added in v0.19.0

func (TrustCenter) Indexes() []ent.Index

Indexes of the TrustCenter

func (TrustCenter) Interceptors added in v0.20.5

func (t TrustCenter) Interceptors() []ent.Interceptor

Interceptors of the TrustCenter

func (TrustCenter) Mixin added in v0.19.0

func (t TrustCenter) Mixin() []ent.Mixin

Mixin of the TrustCenter

func (TrustCenter) Modules added in v0.28.0

func (TrustCenter) Modules() []models.OrgModule

func (TrustCenter) Name added in v0.19.0

func (TrustCenter) Name() string

Name returns the name of the TrustCenter schema.

func (TrustCenter) PluralName added in v0.19.0

func (TrustCenter) PluralName() string

PluralName returns the plural name of the TrustCenter schema.

func (TrustCenter) Policy added in v0.19.0

func (t TrustCenter) Policy() ent.Policy

Policy of the TrustCenter

type TrustCenterCompliance added in v0.23.1

type TrustCenterCompliance struct {
	SchemaFuncs

	ent.Schema
}

TrustCenterCompliance holds the schema definition for the TrustCenterCompliance entity

func (TrustCenterCompliance) Annotations added in v0.23.1

func (TrustCenterCompliance) Annotations() []schema.Annotation

Annotations of the TrustCenterCompliance

func (TrustCenterCompliance) Edges added in v0.23.1

func (t TrustCenterCompliance) Edges() []ent.Edge

Edges of the TrustCenterCompliance

func (TrustCenterCompliance) Fields added in v0.23.1

func (TrustCenterCompliance) Fields() []ent.Field

Fields of the TrustCenterCompliance

func (TrustCenterCompliance) GetType added in v0.23.1

func (TrustCenterCompliance) GetType() any

GetType returns the type of the TrustCenterCompliance schema.

func (TrustCenterCompliance) Hooks added in v0.23.1

func (TrustCenterCompliance) Hooks() []ent.Hook

Hooks of the TrustCenterCompliance

func (TrustCenterCompliance) Indexes added in v0.23.1

func (TrustCenterCompliance) Indexes() []ent.Index

Indexes of the TrustCenterCompliance

func (TrustCenterCompliance) Interceptors added in v0.23.1

func (TrustCenterCompliance) Interceptors() []ent.Interceptor

Interceptors of the TrustCenterCompliance

func (TrustCenterCompliance) Mixin added in v0.23.1

func (t TrustCenterCompliance) Mixin() []ent.Mixin

Mixin of the TrustCenterCompliance

func (TrustCenterCompliance) Name added in v0.23.1

Name returns the name of the TrustCenterCompliance schema.

func (TrustCenterCompliance) PluralName added in v0.23.1

func (TrustCenterCompliance) PluralName() string

PluralName returns the plural name of the TrustCenterCompliance schema.

func (TrustCenterCompliance) Policy added in v0.23.1

func (TrustCenterCompliance) Policy() ent.Policy

Policy of the TrustCenterCompliance

type TrustCenterComplianceHistory added in v0.23.1

type TrustCenterComplianceHistory struct {
	ent.Schema
}

TrustCenterComplianceHistory holds the schema definition for the TrustCenterComplianceHistory entity.

func (TrustCenterComplianceHistory) Annotations added in v0.23.1

Annotations of the TrustCenterComplianceHistory.

func (TrustCenterComplianceHistory) Fields added in v0.23.1

Fields of the TrustCenterComplianceHistory.

func (TrustCenterComplianceHistory) Indexes added in v0.23.1

Indexes of the TrustCenterComplianceHistory

func (TrustCenterComplianceHistory) Interceptors added in v0.23.1

func (TrustCenterComplianceHistory) Interceptors() []ent.Interceptor

Interceptors of the TrustCenterComplianceHistory

func (TrustCenterComplianceHistory) Policy added in v0.23.1

Policy of the TrustCenterComplianceHistory. ensure history.AllowIfHistoryRequest() is already added to the base policy

type TrustCenterDoc added in v0.33.6

type TrustCenterDoc struct {
	SchemaFuncs

	ent.Schema
}

TrustCenterDoc holds the schema definition for the TrustCenterDoc entity

func (TrustCenterDoc) Annotations added in v0.33.6

func (TrustCenterDoc) Annotations() []schema.Annotation

Annotations of the TrustCenterDoc

func (TrustCenterDoc) Edges added in v0.33.6

func (t TrustCenterDoc) Edges() []ent.Edge

Edges of the TrustCenterDoc

func (TrustCenterDoc) Fields added in v0.33.6

func (TrustCenterDoc) Fields() []ent.Field

Fields of the TrustCenterDoc

func (TrustCenterDoc) GetType added in v0.33.6

func (TrustCenterDoc) GetType() any

GetType returns the type of the TrustCenterDoc schema.

func (TrustCenterDoc) Hooks added in v0.33.6

func (TrustCenterDoc) Hooks() []ent.Hook

Hooks of the TrustCenterDoc

func (TrustCenterDoc) Indexes added in v0.33.6

func (TrustCenterDoc) Indexes() []ent.Index

Indexes of the TrustCenterDoc

func (TrustCenterDoc) Interceptors added in v0.33.6

func (TrustCenterDoc) Interceptors() []ent.Interceptor

Interceptors of the TrustCenterDoc

func (TrustCenterDoc) Mixin added in v0.33.6

func (t TrustCenterDoc) Mixin() []ent.Mixin

Mixin of the TrustCenterDoc

func (TrustCenterDoc) Modules added in v0.34.0

func (TrustCenterDoc) Modules() []models.OrgModule

func (TrustCenterDoc) Name added in v0.33.6

func (TrustCenterDoc) Name() string

Name returns the name of the TrustCenterDoc schema.

func (TrustCenterDoc) PluralName added in v0.33.6

func (TrustCenterDoc) PluralName() string

PluralName returns the plural name of the TrustCenterDoc schema.

func (TrustCenterDoc) Policy added in v0.33.6

func (TrustCenterDoc) Policy() ent.Policy

Policy of the TrustCenterDoc

type TrustCenterDocHistory added in v0.33.6

type TrustCenterDocHistory struct {
	ent.Schema
}

TrustCenterDocHistory holds the schema definition for the TrustCenterDocHistory entity.

func (TrustCenterDocHistory) Annotations added in v0.33.6

func (TrustCenterDocHistory) Annotations() []schema.Annotation

Annotations of the TrustCenterDocHistory.

func (TrustCenterDocHistory) Fields added in v0.33.6

func (TrustCenterDocHistory) Fields() []ent.Field

Fields of the TrustCenterDocHistory.

func (TrustCenterDocHistory) Indexes added in v0.33.6

func (TrustCenterDocHistory) Indexes() []ent.Index

Indexes of the TrustCenterDocHistory

func (TrustCenterDocHistory) Interceptors added in v0.33.6

func (TrustCenterDocHistory) Interceptors() []ent.Interceptor

Interceptors of the TrustCenterDocHistory

func (TrustCenterDocHistory) Policy added in v0.33.6

func (TrustCenterDocHistory) Policy() ent.Policy

Policy of the TrustCenterDocHistory. ensure history.AllowIfHistoryRequest() is already added to the base policy

type TrustCenterHistory added in v0.19.0

type TrustCenterHistory struct {
	ent.Schema
}

TrustCenterHistory holds the schema definition for the TrustCenterHistory entity.

func (TrustCenterHistory) Annotations added in v0.19.0

func (TrustCenterHistory) Annotations() []schema.Annotation

Annotations of the TrustCenterHistory.

func (TrustCenterHistory) Fields added in v0.19.0

func (TrustCenterHistory) Fields() []ent.Field

Fields of the TrustCenterHistory.

func (TrustCenterHistory) Indexes added in v0.19.0

func (TrustCenterHistory) Indexes() []ent.Index

Indexes of the TrustCenterHistory

func (TrustCenterHistory) Interceptors added in v0.19.0

func (TrustCenterHistory) Interceptors() []ent.Interceptor

Interceptors of the TrustCenterHistory

func (TrustCenterHistory) Policy added in v0.23.1

func (TrustCenterHistory) Policy() ent.Policy

Policy of the TrustCenterHistory. ensure history.AllowIfHistoryRequest() is already added to the base policy

type TrustCenterSetting added in v0.19.0

type TrustCenterSetting struct {
	SchemaFuncs

	ent.Schema
}

TrustCenterSetting holds the schema definition for the TrustCenterSetting entity

func (TrustCenterSetting) Annotations added in v0.19.0

func (t TrustCenterSetting) Annotations() []schema.Annotation

func (TrustCenterSetting) Edges added in v0.19.0

func (t TrustCenterSetting) Edges() []ent.Edge

Edges of the TrustCenterSetting

func (TrustCenterSetting) Fields added in v0.19.0

func (TrustCenterSetting) Fields() []ent.Field

Fields of the TrustCenterSetting

func (TrustCenterSetting) GetType added in v0.19.0

func (TrustCenterSetting) GetType() any

func (TrustCenterSetting) Hooks added in v0.19.0

func (TrustCenterSetting) Hooks() []ent.Hook

Hooks of the TrustCenterSetting

func (TrustCenterSetting) Indexes added in v0.19.0

func (TrustCenterSetting) Indexes() []ent.Index

func (TrustCenterSetting) Interceptors added in v0.19.0

func (t TrustCenterSetting) Interceptors() []ent.Interceptor

Interceptors of the TrustCenterSetting

func (TrustCenterSetting) Mixin added in v0.19.0

func (t TrustCenterSetting) Mixin() []ent.Mixin

Mixin of the TrustCenterSetting

func (TrustCenterSetting) Modules added in v0.28.0

func (TrustCenterSetting) Modules() []models.OrgModule

func (TrustCenterSetting) Name added in v0.19.0

func (TrustCenterSetting) Name() string

func (TrustCenterSetting) PluralName added in v0.19.0

func (TrustCenterSetting) PluralName() string

func (TrustCenterSetting) Policy added in v0.19.0

func (t TrustCenterSetting) Policy() ent.Policy

Policy of the TrustCenterSetting

type TrustCenterSettingHistory added in v0.19.0

type TrustCenterSettingHistory struct {
	ent.Schema
}

TrustCenterSettingHistory holds the schema definition for the TrustCenterSettingHistory entity.

func (TrustCenterSettingHistory) Annotations added in v0.19.0

Annotations of the TrustCenterSettingHistory.

func (TrustCenterSettingHistory) Fields added in v0.19.0

func (TrustCenterSettingHistory) Fields() []ent.Field

Fields of the TrustCenterSettingHistory.

func (TrustCenterSettingHistory) Indexes added in v0.19.0

func (TrustCenterSettingHistory) Indexes() []ent.Index

Indexes of the TrustCenterSettingHistory

func (TrustCenterSettingHistory) Interceptors added in v0.19.0

func (TrustCenterSettingHistory) Interceptors() []ent.Interceptor

Interceptors of the TrustCenterSettingHistory

func (TrustCenterSettingHistory) Policy added in v0.23.1

Policy of the TrustCenterSettingHistory. ensure history.AllowIfHistoryRequest() is already added to the base policy

type TrustCenterSubprocessor added in v0.22.2

type TrustCenterSubprocessor struct {
	SchemaFuncs

	ent.Schema
}

TrustCenterSubprocessor holds the schema definition for the TrustCenterSubprocessor entity

func (TrustCenterSubprocessor) Annotations added in v0.22.2

func (t TrustCenterSubprocessor) Annotations() []schema.Annotation

Annotations of the TrustCenterSubprocessor

func (TrustCenterSubprocessor) Edges added in v0.22.2

func (t TrustCenterSubprocessor) Edges() []ent.Edge

Edges of the TrustCenterSubprocessor

func (TrustCenterSubprocessor) Fields added in v0.22.2

func (TrustCenterSubprocessor) Fields() []ent.Field

Fields of the TrustCenterSubprocessor

func (TrustCenterSubprocessor) GetType added in v0.22.2

func (TrustCenterSubprocessor) GetType() any

GetType returns the type of the TrustCenterSubprocessor schema.

func (TrustCenterSubprocessor) Hooks added in v0.22.2

func (TrustCenterSubprocessor) Hooks() []ent.Hook

Hooks of the TrustCenterSubprocessor

func (TrustCenterSubprocessor) Indexes added in v0.22.2

func (TrustCenterSubprocessor) Indexes() []ent.Index

Indexes of the TrustCenterSubprocessor

func (TrustCenterSubprocessor) Interceptors added in v0.22.2

func (t TrustCenterSubprocessor) Interceptors() []ent.Interceptor

Interceptors of the TrustCenterSubprocessor

func (TrustCenterSubprocessor) Mixin added in v0.22.2

func (t TrustCenterSubprocessor) Mixin() []ent.Mixin

Mixin of the TrustCenterSubprocessor

func (TrustCenterSubprocessor) Modules added in v0.28.0

func (TrustCenterSubprocessor) Name added in v0.22.2

Name returns the name of the TrustCenterSubprocessor schema.

func (TrustCenterSubprocessor) PluralName added in v0.22.2

func (TrustCenterSubprocessor) PluralName() string

PluralName returns the plural name of the TrustCenterSubprocessor schema.

func (TrustCenterSubprocessor) Policy added in v0.22.2

func (t TrustCenterSubprocessor) Policy() ent.Policy

Policy of the TrustCenterSubprocessor

type TrustCenterSubprocessorHistory added in v0.22.2

type TrustCenterSubprocessorHistory struct {
	ent.Schema
}

TrustCenterSubprocessorHistory holds the schema definition for the TrustCenterSubprocessorHistory entity.

func (TrustCenterSubprocessorHistory) Annotations added in v0.22.2

Annotations of the TrustCenterSubprocessorHistory.

func (TrustCenterSubprocessorHistory) Fields added in v0.22.2

Fields of the TrustCenterSubprocessorHistory.

func (TrustCenterSubprocessorHistory) Indexes added in v0.22.2

Indexes of the TrustCenterSubprocessorHistory

func (TrustCenterSubprocessorHistory) Interceptors added in v0.22.2

Interceptors of the TrustCenterSubprocessorHistory

func (TrustCenterSubprocessorHistory) Policy added in v0.23.1

Policy of the TrustCenterSubprocessorHistory. ensure history.AllowIfHistoryRequest() is already added to the base policy

type TrustCenterWatermarkConfig added in v0.34.5

type TrustCenterWatermarkConfig struct {
	SchemaFuncs

	ent.Schema
}

TrustCenterWatermarkConfig holds the schema definition for the TrustCenterWatermarkConfig entity

func (TrustCenterWatermarkConfig) Annotations added in v0.34.5

Annotations of the TrustCenterWatermarkConfig

func (TrustCenterWatermarkConfig) Edges added in v0.34.5

func (t TrustCenterWatermarkConfig) Edges() []ent.Edge

Edges of the TrustCenterWatermarkConfig

func (TrustCenterWatermarkConfig) Fields added in v0.34.5

Fields of the TrustCenterWatermarkConfig

func (TrustCenterWatermarkConfig) GetType added in v0.34.5

func (TrustCenterWatermarkConfig) GetType() any

GetType returns the type of the TrustCenterWatermarkConfig schema.

func (TrustCenterWatermarkConfig) Hooks added in v0.34.5

Hooks of the TrustCenterWatermarkConfig

func (TrustCenterWatermarkConfig) Indexes added in v0.34.5

func (TrustCenterWatermarkConfig) Indexes() []ent.Index

Indexes of the TrustCenterWatermarkConfig

func (TrustCenterWatermarkConfig) Interceptors added in v0.34.5

func (TrustCenterWatermarkConfig) Interceptors() []ent.Interceptor

Interceptors of the TrustCenterWatermarkConfig

func (TrustCenterWatermarkConfig) Mixin added in v0.34.5

func (t TrustCenterWatermarkConfig) Mixin() []ent.Mixin

Mixin of the TrustCenterWatermarkConfig

func (TrustCenterWatermarkConfig) Modules added in v0.34.5

func (TrustCenterWatermarkConfig) Name added in v0.34.5

Name returns the name of the TrustCenterWatermarkConfig schema.

func (TrustCenterWatermarkConfig) PluralName added in v0.34.5

func (TrustCenterWatermarkConfig) PluralName() string

PluralName returns the plural name of the TrustCenterWatermarkConfig schema.

func (TrustCenterWatermarkConfig) Policy added in v0.34.5

Policy of the TrustCenterWatermarkConfig

type TrustCenterWatermarkConfigHistory added in v0.34.5

type TrustCenterWatermarkConfigHistory struct {
	ent.Schema
}

TrustCenterWatermarkConfigHistory holds the schema definition for the TrustCenterWatermarkConfigHistory entity.

func (TrustCenterWatermarkConfigHistory) Annotations added in v0.34.5

Annotations of the TrustCenterWatermarkConfigHistory.

func (TrustCenterWatermarkConfigHistory) Fields added in v0.34.5

Fields of the TrustCenterWatermarkConfigHistory.

func (TrustCenterWatermarkConfigHistory) Indexes added in v0.34.5

Indexes of the TrustCenterWatermarkConfigHistory

func (TrustCenterWatermarkConfigHistory) Interceptors added in v0.34.5

Interceptors of the TrustCenterWatermarkConfigHistory

func (TrustCenterWatermarkConfigHistory) Policy added in v0.34.5

Policy of the TrustCenterWatermarkConfigHistory. ensure history.AllowIfHistoryRequest() is already added to the base policy

type User

type User struct {
	SchemaFuncs

	ent.Schema
}

User holds the schema definition for the User entity.

func (User) Annotations

func (u User) Annotations() []schema.Annotation

Annotations of the User

func (User) Edges

func (u User) Edges() []ent.Edge

Edges of the User

func (User) Fields

func (User) Fields() []ent.Field

Fields of the User.

func (User) GetType added in v0.8.2

func (User) GetType() any

GetType returns the type of the User schema.

func (User) Hooks

func (User) Hooks() []ent.Hook

func (User) Indexes

func (User) Indexes() []ent.Index

Indexes of the User

func (User) Interceptors

func (u User) Interceptors() []ent.Interceptor

Interceptors of the User.

func (User) Mixin

func (User) Mixin() []ent.Mixin

Mixin of the User

func (User) Name added in v0.8.2

func (User) Name() string

Name returns the name of the User schema.

func (User) PluralName added in v0.8.2

func (User) PluralName() string

PluralName returns the plural name of the User schema.

func (User) Policy

func (User) Policy() ent.Policy

Policy of the User

type UserHistory

type UserHistory struct {
	ent.Schema
}

UserHistory holds the schema definition for the UserHistory entity.

func (UserHistory) Annotations

func (UserHistory) Annotations() []schema.Annotation

Annotations of the UserHistory.

func (UserHistory) Fields

func (UserHistory) Fields() []ent.Field

Fields of the UserHistory.

func (UserHistory) Indexes

func (UserHistory) Indexes() []ent.Index

Indexes of the UserHistory

func (UserHistory) Interceptors

func (UserHistory) Interceptors() []ent.Interceptor

Interceptors of the UserHistory

func (UserHistory) Policy added in v0.23.1

func (UserHistory) Policy() ent.Policy

Policy of the UserHistory. ensure history.AllowIfHistoryRequest() is already added to the base policy

type UserOwnedMixin

type UserOwnedMixin struct {
	mixin.Schema
	// Ref table for the id
	Ref string
	// Optional makes the owner id field not required
	Optional bool
	// SoftDeleteIndex creates a unique index on the owner id field where deleted_at is null
	SoftDeleteIndex bool
	// SkipInterceptor skips the interceptor for that schema for all queries, or specific types,
	// this is useful for tokens, etc
	SkipInterceptor interceptors.SkipMode
	// SkipTokenType skips the traverser or hook if the token type is found in the context
	SkipTokenType []token.PrivacyToken
}

UserOwnedMixin defines a mixin for user-owned entities.

func (UserOwnedMixin) Edges

func (userOwned UserOwnedMixin) Edges() []ent.Edge

Edges of the UserOwnedMixin

func (UserOwnedMixin) Fields

func (userOwned UserOwnedMixin) Fields() []ent.Field

Fields of the UserOwnedMixin

func (UserOwnedMixin) Hooks

func (userOwned UserOwnedMixin) Hooks() []ent.Hook

Hooks of the UserOwnedMixin

func (UserOwnedMixin) Indexes

func (userOwned UserOwnedMixin) Indexes() []ent.Index

Indexes of the UserOwnedMixin

func (UserOwnedMixin) Interceptors

func (userOwned UserOwnedMixin) Interceptors() []ent.Interceptor

Interceptors of the UserOwnedMixin

func (UserOwnedMixin) P

func (userOwned UserOwnedMixin) P(w interface{ WhereP(...func(*sql.Selector)) }, userID string)

P adds a storage-level predicate to the queries and mutations.

type UserSetting

type UserSetting struct {
	SchemaFuncs

	ent.Schema
}

UserSetting holds the schema definition for the User entity.

func (UserSetting) Edges

func (u UserSetting) Edges() []ent.Edge

Edges of the UserSetting

func (UserSetting) Fields

func (UserSetting) Fields() []ent.Field

Fields of the UserSetting

func (UserSetting) GetType added in v0.8.2

func (UserSetting) GetType() any

GetType returns the type of the UserSetting schema.

func (UserSetting) Hooks

func (UserSetting) Hooks() []ent.Hook

Hooks of the UserSetting.

func (UserSetting) Interceptors

func (UserSetting) Interceptors() []ent.Interceptor

Interceptors of the UserSetting.

func (UserSetting) Mixin

func (UserSetting) Mixin() []ent.Mixin

Mixin of the UserSetting

func (UserSetting) Name added in v0.8.2

func (UserSetting) Name() string

Name returns the name of the UserSetting schema.

func (UserSetting) PluralName added in v0.8.2

func (UserSetting) PluralName() string

PluralName returns the plural name of the UserSetting schema.

func (UserSetting) Policy

func (UserSetting) Policy() ent.Policy

type UserSettingHistory

type UserSettingHistory struct {
	ent.Schema
}

UserSettingHistory holds the schema definition for the UserSettingHistory entity.

func (UserSettingHistory) Annotations

func (UserSettingHistory) Annotations() []schema.Annotation

Annotations of the UserSettingHistory.

func (UserSettingHistory) Fields

func (UserSettingHistory) Fields() []ent.Field

Fields of the UserSettingHistory.

func (UserSettingHistory) Indexes

func (UserSettingHistory) Indexes() []ent.Index

Indexes of the UserSettingHistory

func (UserSettingHistory) Interceptors

func (UserSettingHistory) Interceptors() []ent.Interceptor

Interceptors of the UserSettingHistory

func (UserSettingHistory) Policy added in v0.23.1

func (UserSettingHistory) Policy() ent.Policy

Policy of the UserSettingHistory. ensure history.AllowIfHistoryRequest() is already added to the base policy

type Vulnerability added in v0.43.3

type Vulnerability struct {
	SchemaFuncs

	ent.Schema
}

Vulnerability defines the vulnerability schema.

func (Vulnerability) Annotations added in v0.43.3

func (Vulnerability) Annotations() []schema.Annotation

Annotations of the Vulnerability

func (Vulnerability) Edges added in v0.43.3

func (v Vulnerability) Edges() []ent.Edge

Edges of the Vulnerability

func (Vulnerability) Fields added in v0.43.3

func (Vulnerability) Fields() []ent.Field

Fields returns vulnerability fields.

func (Vulnerability) GetType added in v0.43.3

func (Vulnerability) GetType() any

GetType returns the type of the vulnerability schema.

func (Vulnerability) Indexes added in v0.43.3

func (Vulnerability) Indexes() []ent.Index

Indexes of the Vulnerability

func (Vulnerability) Mixin added in v0.43.3

func (v Vulnerability) Mixin() []ent.Mixin

Mixin of the Vulnerability

func (Vulnerability) Modules added in v0.43.3

func (Vulnerability) Modules() []models.OrgModule

func (Vulnerability) Name added in v0.43.3

func (Vulnerability) Name() string

Name returns the name of the vulnerability schema.

func (Vulnerability) PluralName added in v0.43.3

func (Vulnerability) PluralName() string

PluralName returns the plural name of the vulnerability schema.

func (Vulnerability) Policy added in v0.43.3

func (v Vulnerability) Policy() ent.Policy

Policy of the Vulnerability

type VulnerabilityHistory added in v0.43.3

type VulnerabilityHistory struct {
	ent.Schema
}

VulnerabilityHistory holds the schema definition for the VulnerabilityHistory entity.

func (VulnerabilityHistory) Annotations added in v0.43.3

func (VulnerabilityHistory) Annotations() []schema.Annotation

Annotations of the VulnerabilityHistory.

func (VulnerabilityHistory) Fields added in v0.43.3

func (VulnerabilityHistory) Fields() []ent.Field

Fields of the VulnerabilityHistory.

func (VulnerabilityHistory) Indexes added in v0.43.3

func (VulnerabilityHistory) Indexes() []ent.Index

Indexes of the VulnerabilityHistory

func (VulnerabilityHistory) Interceptors added in v0.43.3

func (VulnerabilityHistory) Interceptors() []ent.Interceptor

Interceptors of the VulnerabilityHistory

func (VulnerabilityHistory) Policy added in v0.43.3

func (VulnerabilityHistory) Policy() ent.Policy

Policy of the VulnerabilityHistory. ensure history.AllowIfHistoryRequest() is already added to the base policy

type Webauthn

type Webauthn struct {
	SchemaFuncs

	ent.Schema
}

Webauthn holds the schema definition for the Webauthn entity

func (Webauthn) Annotations

func (w Webauthn) Annotations() []schema.Annotation

Annotations of the Webauthn

func (Webauthn) Fields

func (Webauthn) Fields() []ent.Field

Fields of the Webauthn

func (Webauthn) GetType added in v0.8.2

func (Webauthn) GetType() any

GetType returns the type of the Webauthn schema.

func (Webauthn) Hooks added in v0.10.9

func (Webauthn) Hooks() []ent.Hook

func (Webauthn) Mixin

func (w Webauthn) Mixin() []ent.Mixin

Mixin of the Webauthn

func (Webauthn) Modules added in v0.28.0

func (Webauthn) Modules() []models.OrgModule

func (Webauthn) Name added in v0.8.2

func (Webauthn) Name() string

Name returns the name of the Webauthn schema.

func (Webauthn) PluralName added in v0.8.2

func (Webauthn) PluralName() string

PluralName returns the plural name of the Webauthn schema.

func (Webauthn) Policy added in v0.28.0

func (w Webauthn) Policy() ent.Policy

Policy of the Webauthn

Source Files

Jump to

Keyboard shortcuts

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