schema

package
v2.4.2 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2026 License: Apache-2.0 Imports: 57 Imported by: 0

Documentation

Overview

Package schema contains the ent schema

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"

SchemaAssessmentResponse is the stable schema name for assessment responses.

View Source
const SchemaAsset = "asset"

SchemaAsset is the name of the Asset schema

View Source
const SchemaCampaign = "campaign"

SchemaCampaign is the name of the Campaign schema

View Source
const SchemaCampaignTarget = "campaign_target"

SchemaCampaignTarget is the name of the CampaignTarget schema

View Source
const SchemaCheckResult = "check_result"

SchemaCheckResult is the name of the schema in snake case

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 SchemaDirectoryAccount = "directory_account"

SchemaDirectoryAccount is the canonical schema name

View Source
const SchemaDirectoryGroup = "directory_group"

SchemaDirectoryGroup is the canonical schema name

View Source
const SchemaDirectoryMembership = "directory_membership"

SchemaDirectoryMembership is the canonical schema name

View Source
const SchemaDirectorySyncRun = "directory_sync_run"

SchemaDirectorySyncRun is the canonical schema name

View Source
const SchemaDiscussion = "discussion"

SchemaDiscussionis the name of the schema in snake case

View Source
const SchemaDocumentData = "document"

SchemaDocumentData is the name of the DocumentData schema.

View Source
const SchemaEmailTemplate = "email_template"

SchemaEmailTemplate is the name of the EmailTemplate 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 SchemaIdentityHolder = "identity_holder"

SchemaIdentityHolder is the name of the IdentityHolder 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 SchemaIntegrationRun = "integration_run"

SchemaIntegrationRun is the name of the IntegrationRun schema.

View Source
const SchemaIntegrationWebhook = "integration_webhook"

SchemaIntegrationWebhook is the name of the IntegrationWebhook schema.

View Source
const SchemaInternalPolicy = "internal_policy"

SchemaInternalPolicy is the name of the internal policy schema.

View Source
const SchemaInvite = "invite"
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 SchemaNotificationPreference = "notification_preference"

SchemaNotificationPreference is the name of the NotificationPreference schema.

View Source
const SchemaNotificationTemplate = "notification_template"

SchemaNotificationTemplate is the name of the NotificationTemplate schema.

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 SchemaPlatform = "platform"

SchemaPlatform is the name of the Platform 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 SchemaSLADefinition = "sla_definition"

SchemaSLADefinition is the name of the SLA definition schema.

View Source
const SchemaScan = "scan"

SchemaScan is the name of the Scan schema

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 SchemaSystemDetail = "system_detail"

SchemaSystemDetail is the canonical schema name

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 SchemaTrustCenterEntity = "trust_center_entity"

SchemaTrustCenterEntity is the name of the schema in snake case

View Source
const SchemaTrustCenterFAQ = "trust_center_faq"

SchemaTrustCenterFAQ is the name of the TrustCenterFAQ schema.

View Source
const SchemaTrustCenterNDARequest = "trust_center_nda_request"

SchemaTrustCenterNDARequest is the name of the TrustCenterNDARequest 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 SchemaVendorRiskScore = "vendor_risk_score"

SchemaVendorRiskScore is the name of the VendorRiskScore schema

View Source
const SchemaVendorScoringConfig = "vendor_scoring_config"

SchemaVendorScoringConfig is the name of the VendorScoringConfig 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.

View Source
const SkipFGAOverfetchAnnotationName = "OPENLANE_SKIP_FGA_OVERFETCH"

SkipFGAOverfetchAnnotationName is the annotation key used to signal that list queries use SQL-level filtering (blocked groups) instead of per-object FGA BatchCheck, so pagination should not apply the 10x overfetch multiplier

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")

	// ErrInternalServerError is returned when an error occurs that should not be exposed to the user and is not the user's fault, such as an error writing to the database or authz system
	ErrInternalServerError = errors.New("internal server error")
)

Functions

This section is empty.

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

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

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

func (APIToken) Name

func (APIToken) Name() string

Name returns the name of the APIToken schema.

func (APIToken) PluralName

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

type ActionPlan struct {
	SchemaFuncs

	ent.Schema
}

ActionPlan defines the action plan schema.

func (ActionPlan) Annotations

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

Annotations of the ActionPlan

func (ActionPlan) Edges

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

Edges of the ActionPlan

func (ActionPlan) Fields

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

Fields returns action plan fields.

func (ActionPlan) GetType

func (ActionPlan) GetType() any

GetType returns the type of the action plan schema.

func (ActionPlan) Mixin

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

Mixin of the ActionPlan

func (ActionPlan) Modules

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

func (ActionPlan) Name

func (ActionPlan) Name() string

Name returns the name of the action plan schema.

func (ActionPlan) PluralName

func (ActionPlan) PluralName() string

PluralName returns the plural name of the action plan schema.

func (ActionPlan) Policy

func (a ActionPlan) Policy() ent.Policy

Policy of the ActionPlan

type Assessment

type Assessment struct {
	SchemaFuncs
	ent.Schema
}

Assessment stores information about an questionnaire filled out

func (Assessment) Annotations

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

Annotations of the Assessment

func (Assessment) Edges

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

func (Assessment) Fields

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

func (Assessment) GetType

func (Assessment) GetType() any

func (Assessment) Hooks

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

func (Assessment) Indexes

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

Indexes of the Assessment

func (Assessment) Interceptors

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

Interceptors of the Assessment

func (Assessment) Mixin

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

func (Assessment) Modules

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

func (Assessment) Name

func (Assessment) Name() string

func (Assessment) PluralName

func (Assessment) PluralName() string

func (Assessment) Policy

func (Assessment) Policy() ent.Policy

type AssessmentResponse

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

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

Annotations of the AssessmentResponse

func (AssessmentResponse) Edges

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

Edges defines the AssessmentResponse relationships.

func (AssessmentResponse) Fields

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

Fields defines the AssessmentResponse fields.

func (AssessmentResponse) GetType

func (AssessmentResponse) GetType() any

GetType returns the schema's Type reference.

func (AssessmentResponse) Hooks

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

Hooks configures the AssessmentResponse hooks.

func (AssessmentResponse) Indexes

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

Indexes of the AssessmentResponse

func (AssessmentResponse) Mixin

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

Mixin configures shared mixins for AssessmentResponse.

func (AssessmentResponse) Modules

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

Modules declares the modules required for AssessmentResponse.

func (AssessmentResponse) Name

func (AssessmentResponse) Name() string

Name returns the schema name for AssessmentResponse.

func (AssessmentResponse) PluralName

func (AssessmentResponse) PluralName() string

PluralName returns the plural schema name for AssessmentResponse.

func (AssessmentResponse) Policy

func (AssessmentResponse) Policy() ent.Policy

Policy configures authorization for AssessmentResponse operations.

type Asset

type Asset struct {
	SchemaFuncs
	ent.Schema
}

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

func (Asset) Annotations

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

Annotations of the Asset

func (Asset) Edges

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

Edges of the Asset

func (Asset) Fields

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

Fields of the Asset

func (Asset) GetType

func (Asset) GetType() any

GetType returns the type of the Asset schema

func (Asset) Hooks

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

func (Asset) Mixin

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

Mixin of the Asset

func (Asset) Modules

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

Modules this schema has access to

func (Asset) Name

func (Asset) Name() string

Name returns the name of the Asset schema

func (Asset) PluralName

func (Asset) PluralName() string

PluralName returns the plural name of the Asset schema

func (Asset) Policy

func (a Asset) Policy() ent.Policy

Policy of the Asset

type Campaign

type Campaign struct {
	SchemaFuncs

	ent.Schema
}

Campaign holds the schema definition for the Campaign entity

func (Campaign) Annotations

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

Annotations of the Campaign

func (Campaign) Edges

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

Edges of the Campaign

func (Campaign) Fields

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

Fields of the Campaign

func (Campaign) GetType

func (Campaign) GetType() any

GetType returns the type of the Campaign schema

func (Campaign) Indexes

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

Indexes of the Campaign

func (Campaign) Mixin

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

Mixin of the Campaign

func (Campaign) Modules

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

Modules this schema has access to

func (Campaign) Name

func (Campaign) Name() string

Name returns the name of the Campaign schema

func (Campaign) PluralName

func (Campaign) PluralName() string

PluralName returns the plural name of the Campaign schema

func (Campaign) Policy

func (Campaign) Policy() ent.Policy

Policy of the Campaign

type CampaignTarget

type CampaignTarget struct {
	SchemaFuncs

	ent.Schema
}

CampaignTarget holds the schema definition for the CampaignTarget entity

func (CampaignTarget) Annotations

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

Annotations of the CampaignTarget

func (CampaignTarget) Edges

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

Edges of the CampaignTarget

func (CampaignTarget) Fields

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

Fields of the CampaignTarget

func (CampaignTarget) GetType

func (CampaignTarget) GetType() any

GetType returns the type of the CampaignTarget schema

func (CampaignTarget) Hooks

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

Hooks of the CampaignTarget

func (CampaignTarget) Indexes

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

Indexes of the CampaignTarget

func (CampaignTarget) Mixin

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

Mixin of the CampaignTarget

func (CampaignTarget) Modules

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

Modules this schema has access to

func (CampaignTarget) Name

func (CampaignTarget) Name() string

Name returns the name of the CampaignTarget schema

func (CampaignTarget) PluralName

func (CampaignTarget) PluralName() string

PluralName returns the plural name of the CampaignTarget schema

func (CampaignTarget) Policy

func (CampaignTarget) Policy() ent.Policy

Policy of the CampaignTarget

type CheckResult

type CheckResult struct {
	SchemaFuncs

	ent.Schema
}

CheckResult holds the schema definition for the CheckResult entity

func (CheckResult) Annotations

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

Annotations of the CheckResult

func (CheckResult) Edges

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

Edges of the CheckResult

func (CheckResult) Fields

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

Fields of the CheckResult

func (CheckResult) GetType

func (CheckResult) GetType() any

GetType returns the type of the schema

func (CheckResult) Hooks

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

Hooks of the CheckResult

func (CheckResult) Indexes

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

Indexes of the CheckResult

func (CheckResult) Interceptors

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

Interceptors of the CheckResult

func (CheckResult) Mixin

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

Mixin of the CheckResult

func (CheckResult) Modules

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

Modules this schema has access to

func (CheckResult) Name

func (CheckResult) Name() string

Name is the name of the schema in snake case

func (CheckResult) PluralName

func (CheckResult) PluralName() string

PluralName returns the plural name of the schema

func (CheckResult) Policy

func (CheckResult) Policy() ent.Policy

Policy of the CheckResult

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

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

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

func (Contact) Name

func (Contact) Name() string

Name returns the name of the Contact schema.

func (Contact) PluralName

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 Control

type Control struct {
	SchemaFuncs

	ent.Schema
}

Control defines the control schema.

func (Control) Annotations

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

Annotations of the Control

func (Control) Edges

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

Edges of the Control

func (Control) Fields

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

Fields returns control fields.

func (Control) GetType

func (Control) GetType() any

GetType returns the type of the control schema.

func (Control) Hooks

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

func (Control) Indexes

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

func (Control) Interceptors

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

Interceptors of the Control

func (Control) Mixin

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

Mixin of the Control

func (Control) Modules

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

func (Control) Name

func (Control) Name() string

Name returns the name of the control schema.

func (Control) PluralName

func (Control) PluralName() string

PluralName returns the plural name of the control schema.

func (Control) Policy

func (c Control) Policy() ent.Policy

Policy of the Control

type ControlImplementation

type ControlImplementation struct {
	SchemaFuncs

	ent.Schema
}

ControlImplementation holds the schema definition for the ControlImplementation entity

func (ControlImplementation) Annotations

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

Annotations of the ControlImplementation

func (ControlImplementation) Edges

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

Edges of the ControlImplementation

func (ControlImplementation) Fields

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

Fields of the ControlImplementation

func (ControlImplementation) GetType

func (ControlImplementation) GetType() any

GetType returns the type of the ControlImplementation schema.

func (ControlImplementation) Hooks

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

Hooks of the ControlImplementation

func (ControlImplementation) Mixin

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

Mixin of the ControlImplementation

func (ControlImplementation) Modules

func (ControlImplementation) Name

Name returns the name of the ControlImplementation schema.

func (ControlImplementation) PluralName

func (ControlImplementation) PluralName() string

PluralName returns the plural name of the ControlImplementation schema.

func (ControlImplementation) Policy

func (c ControlImplementation) Policy() ent.Policy

Policy of the ControlImplementation

type ControlMixin

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

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

Annotations of the Control

func (ControlMixin) Edges

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

Edges of the ControlMixin.

func (ControlMixin) Fields

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

Fields of the ControlMixin.

func (ControlMixin) Hooks

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

Hooks of the ControlMixin

func (ControlMixin) Indexes

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

Indexes of the Control Mixin

func (ControlMixin) Interceptors

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

Interceptors of the ControlMixin

type ControlObjective

type ControlObjective struct {
	SchemaFuncs

	ent.Schema
}

ControlObjective defines the controlobjective schema.

func (ControlObjective) Annotations

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

Annotations of the ControlObjective

func (ControlObjective) Edges

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

Edges of the ControlObjective

func (ControlObjective) Fields

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

Fields returns controlobjective fields.

func (ControlObjective) GetType

func (ControlObjective) GetType() any

GetType returns the type of the controlobjective schema.

func (ControlObjective) Mixin

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

Mixin of the ControlObjective

func (ControlObjective) Modules

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

func (ControlObjective) Name

func (ControlObjective) Name() string

Name returns the name of the controlobjective schema.

func (ControlObjective) PluralName

func (ControlObjective) PluralName() string

PluralName returns the plural name of the controlobjective schema.

func (ControlObjective) Policy

func (c ControlObjective) Policy() ent.Policy

Policy of the ControlObjective

type CustomDomain

type CustomDomain struct {
	SchemaFuncs

	ent.Schema
}

CustomDomain holds the schema definition for the CustomDomain

func (CustomDomain) Edges

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

Edges of the CustomDomain

func (CustomDomain) Fields

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

Fields of the CustomDomain

func (CustomDomain) GetType

func (CustomDomain) GetType() any

GetType returns the type of the CustomDomain schema.

func (CustomDomain) Hooks

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

Hooks of the CustomDomain

func (CustomDomain) Indexes

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

Indexes of the CustomDomain

func (CustomDomain) Mixin

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

Mixin of the CustomDomain

func (CustomDomain) Modules

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

func (CustomDomain) Name

func (CustomDomain) Name() string

Name returns the name of the CustomDomain schema.

func (CustomDomain) PluralName

func (CustomDomain) PluralName() string

PluralName returns the plural name of the CustomDomain schema.

func (CustomDomain) Policy

func (e CustomDomain) Policy() ent.Policy

Policy of the CustomDomain

type CustomEnumMixin

type CustomEnumMixin struct {
	mixin.Schema

	// WorkflowEdgeEligible marks the enum edge as workflow-eligible
	WorkflowEdgeEligible bool
	// GlobalEnum marks the enum as a shared set across schemas
	GlobalEnum bool
	// DisableAutoCreate disables auto-creation of the enum if it doesn't exist
	DisableAutoCreate bool
	// contains filtered or unexported fields
}

CustomEnumMixin holds the schema definition for the custom enums

func (CustomEnumMixin) Edges

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

Edges of the CustomEnumMixin

func (CustomEnumMixin) Fields

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

Fields of the CustomEnumMixin.

func (CustomEnumMixin) Hooks

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

Hooks of the CustomEnumMixin

type CustomTypeEnum

type CustomTypeEnum struct {
	SchemaFuncs

	ent.Schema
}

CustomTypeEnum holds the schema definition for the CustomTypeEnum entity

func (CustomTypeEnum) Annotations

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

Annotations of the CustomTypeEnum

func (CustomTypeEnum) Edges

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

Edges of the CustomTypeEnum

func (CustomTypeEnum) Fields

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

Fields of the CustomTypeEnum

func (CustomTypeEnum) GetType

func (CustomTypeEnum) GetType() any

GetType returns the type of the schema

func (CustomTypeEnum) Hooks

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

Hooks of the CustomTypeEnum

func (CustomTypeEnum) Indexes

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

Indexes of the CustomTypeEnum

func (CustomTypeEnum) Interceptors

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

Interceptors of the CustomTypeEnum

func (CustomTypeEnum) Mixin

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

Mixin of the CustomTypeEnum

func (CustomTypeEnum) Modules

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

Modules this schema has access to

func (CustomTypeEnum) Name

func (CustomTypeEnum) Name() string

Name is the name of the schema in snake case

func (CustomTypeEnum) PluralName

func (CustomTypeEnum) PluralName() string

PluralName returns the plural name of the schema

func (CustomTypeEnum) Policy

func (CustomTypeEnum) Policy() ent.Policy

Policy of the CustomTypeEnum

type DNSVerification

type DNSVerification struct {
	SchemaFuncs

	ent.Schema
}

DNSVerification holds the schema definition for the DNSVerification

func (DNSVerification) Annotations

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

Annotations of the DNSVerification

func (DNSVerification) Edges

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

Edges of the DNSVerification

func (DNSVerification) Fields

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

Fields of the DNSVerification

func (DNSVerification) GetType

func (DNSVerification) GetType() any

GetType returns the type of the DNSVerification schema.

func (DNSVerification) Hooks

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

Hooks of the DNSVerification

func (DNSVerification) Indexes

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

Indexes of the DNSVerification

func (DNSVerification) Mixin

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

Mixin of the DNSVerification

func (DNSVerification) Modules

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

Modules of the DNSVerification

func (DNSVerification) Name

func (DNSVerification) Name() string

Name returns the name of the DNSVerification schema.

func (DNSVerification) PluralName

func (DNSVerification) PluralName() string

PluralName returns the plural name of the DNSVerification schema.

func (DNSVerification) Policy

func (DNSVerification) Policy() ent.Policy

Policy of the DNSVerification

type DirectoryAccount

type DirectoryAccount struct {
	SchemaFuncs

	ent.Schema
}

DirectoryAccount captures one normalized identity fetched from an external directory provider

func (DirectoryAccount) Annotations

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

Annotations of the DirectoryAccount

func (DirectoryAccount) Edges

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

Edges of the DirectoryAccount

func (DirectoryAccount) Fields

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

Fields of the DirectoryAccount

func (DirectoryAccount) GetType

func (DirectoryAccount) GetType() any

GetType returns the ent type for DirectoryAccount

func (DirectoryAccount) Hooks

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

Hooks of the DirectoryAccount

func (DirectoryAccount) Indexes

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

Indexes of the DirectoryAccount

func (DirectoryAccount) Mixin

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

Mixin of the DirectoryAccount

func (DirectoryAccount) Name

func (DirectoryAccount) Name() string

Name returns the schema name.

func (DirectoryAccount) PluralName

func (DirectoryAccount) PluralName() string

PluralName returns the pluralized schema name

func (DirectoryAccount) Policy

func (d DirectoryAccount) Policy() ent.Policy

Policy of the DirectoryAccount

type DirectoryGroup

type DirectoryGroup struct {
	SchemaFuncs

	ent.Schema
}

DirectoryGroup mirrors group metadata from an external directory provider

func (DirectoryGroup) Annotations

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

Annotations of the DirectoryGroup

func (DirectoryGroup) Edges

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

Edges of the DirectoryGroup

func (DirectoryGroup) Fields

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

Fields of the DirectoryGroup

func (DirectoryGroup) GetType

func (DirectoryGroup) GetType() any

GetType returns the ent type

func (DirectoryGroup) Indexes

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

Indexes of the DirectoryGroup

func (DirectoryGroup) Mixin

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

Mixin of the DirectoryGroup

func (DirectoryGroup) Name

func (DirectoryGroup) Name() string

Name returns the schema name

func (DirectoryGroup) PluralName

func (DirectoryGroup) PluralName() string

PluralName returns the pluralized name

func (DirectoryGroup) Policy

func (g DirectoryGroup) Policy() ent.Policy

Policy of the DirectoryGroup

type DirectoryMembership

type DirectoryMembership struct {
	SchemaFuncs

	ent.Schema
}

DirectoryMembership associates a DirectoryAccount with a DirectoryGroup snapshot

func (DirectoryMembership) Annotations

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

Annotations of the DirectoryMembership

func (DirectoryMembership) Edges

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

Edges of the DirectoryMembership

func (DirectoryMembership) Fields

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

Fields of the DirectoryMembership

func (DirectoryMembership) GetType

func (DirectoryMembership) GetType() any

GetType returns the ent type

func (DirectoryMembership) Indexes

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

Indexes of the DirectoryMembership

func (DirectoryMembership) Mixin

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

Mixin of the DirectoryMembership

func (DirectoryMembership) Name

func (DirectoryMembership) Name() string

Name returns the schema name

func (DirectoryMembership) PluralName

func (DirectoryMembership) PluralName() string

PluralName returns the pluralized schema name

func (DirectoryMembership) Policy

func (m DirectoryMembership) Policy() ent.Policy

Policy of the DirectoryMembership

type DirectorySyncRun

type DirectorySyncRun struct {
	SchemaFuncs

	ent.Schema
}

DirectorySyncRun captures the execution metadata for a directory ingestion job

func (DirectorySyncRun) Annotations

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

Annotations of the DirectorySyncRun

func (DirectorySyncRun) Edges

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

Edges of the DirectorySyncRun

func (DirectorySyncRun) Fields

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

Fields defines the DirectorySyncRun attributes

func (DirectorySyncRun) GetType

func (DirectorySyncRun) GetType() any

GetType returns the ent type

func (DirectorySyncRun) Indexes

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

Indexes of the DirectorySyncRun

func (DirectorySyncRun) Mixin

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

Mixin of the DirectorySyncRun

func (DirectorySyncRun) Name

func (DirectorySyncRun) Name() string

Name returns the schema name

func (DirectorySyncRun) PluralName

func (DirectorySyncRun) PluralName() string

PluralName returns the pluralized name

func (DirectorySyncRun) Policy

func (r DirectorySyncRun) Policy() ent.Policy

Policy constrains access to DirectorySyncRun

type Discussion

type Discussion struct {
	SchemaFuncs

	ent.Schema
}

Discussion holds the schema definition for the Discussion entity

func (Discussion) Annotations

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

Annotations of the Discussion

func (Discussion) Edges

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

Edges of the Discussion

func (Discussion) Fields

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

Fields of the Discussion

func (Discussion) GetType

func (Discussion) GetType() any

GetType returns the type of the schema

func (Discussion) Hooks

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

Hooks of the Discussion

func (Discussion) Indexes

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

Indexes of the Discussion

func (Discussion) Interceptors

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

Interceptors of the Discussion

func (Discussion) Mixin

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

Mixin of the Discussion

func (Discussion) Modules

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

Modules this schema has access to

func (Discussion) Name

func (Discussion) Name() string

Name is the name of the schema in snake case

func (Discussion) PluralName

func (Discussion) PluralName() string

PluralName returns the plural name of the schema

func (Discussion) Policy

func (Discussion) Policy() ent.Policy

Policy of the Discussion

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

func (DocumentData) GetType() any

GetType returns the type of the DocumentData schema.

func (DocumentData) Hooks

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

func (DocumentData) Mixin

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

Mixin of the DocumentData

func (DocumentData) Modules

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

func (DocumentData) Name

func (DocumentData) Name() string

Name returns the name of the DocumentData schema.

func (DocumentData) PluralName

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 DocumentMixin

type DocumentMixin struct {
	mixin.Schema

	DocumentType string
}

DocumentMixin implements the document pattern with approver for schemas.

func NewDocumentMixin

func NewDocumentMixin(schema any) DocumentMixin

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

func (DocumentMixin) Edges

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

Edges of the DocumentMixin.

func (DocumentMixin) Fields

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

Fields of the DocumentMixin.

func (DocumentMixin) Hooks

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

Hooks of the DocumentMixin.

type EdgeIndexMixin

type EdgeIndexMixin struct {
	entmixin.Schema
	// contains filtered or unexported fields
}

EdgeIndexMixin adds an index for every edge on a schema that holds its foreign key in a field on the schema's own table Without one, postgres has to scan the table to enforce the constraint whenever the referenced row is deleted or re-keyed, and traversing the edge in reverse scans it as well

func (EdgeIndexMixin) Indexes

func (m EdgeIndexMixin) Indexes() []ent.Index

Indexes of the EdgeIndexMixin

type EdgeInfo

type EdgeInfo struct {
	Schema          any
	ViewPermissions bool
}

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

type EmailTemplate

type EmailTemplate struct {
	SchemaFuncs

	ent.Schema
}

EmailTemplate holds the schema definition for email templates.

func (EmailTemplate) Annotations

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

Annotations of the EmailTemplate

func (EmailTemplate) Edges

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

Edges of the EmailTemplate.

func (EmailTemplate) Fields

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

Fields of the EmailTemplate.

func (EmailTemplate) GetType

func (EmailTemplate) GetType() any

GetType returns the type of the EmailTemplate schema.

func (EmailTemplate) Hooks

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

Hooks of the EmailTemplate.

func (EmailTemplate) Indexes

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

Indexes of the EmailTemplate.

func (EmailTemplate) Mixin

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

Mixin of the EmailTemplate.

func (EmailTemplate) Modules

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

Modules of the EmailTemplate.

func (EmailTemplate) Name

func (EmailTemplate) Name() string

Name returns the name of the EmailTemplate schema.

func (EmailTemplate) PluralName

func (EmailTemplate) PluralName() string

PluralName returns the plural name of the EmailTemplate schema.

func (EmailTemplate) Policy

func (EmailTemplate) Policy() ent.Policy

Policy of the EmailTemplate.

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

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

func (EmailVerificationToken) Name

Name returns the name of the EmailVerificationToken schema.

func (EmailVerificationToken) PluralName

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) Annotations

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

Annotations of the 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

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

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

func (Entity) Name

func (Entity) Name() string

Name returns the name of the Entity schema.

func (Entity) PluralName

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

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

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

func (EntityType) Name

func (EntityType) Name() string

Name returns the name of the EntityType schema.

func (EntityType) PluralName

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

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

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

func (Event) Name

func (Event) Name() string

Name returns the name of the Event schema.

func (Event) PluralName

func (Event) PluralName() string

PluralName returns the plural name of the Event schema.

func (Event) Policy

func (e Event) Policy() ent.Policy

Policy of the Event

type Evidence

type Evidence struct {
	SchemaFuncs

	ent.Schema
}

Evidence holds the schema definition for the Evidence entity

func (Evidence) Annotations

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

Annotations of the Evidence

func (Evidence) Edges

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

Edges of the Evidence

func (Evidence) Fields

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

Fields of the Evidence

func (Evidence) GetType

func (Evidence) GetType() any

GetType returns the type of the Evidence schema.

func (Evidence) Hooks

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

Hooks of the Evidence

func (Evidence) Indexes

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

Indexes of the Evidence

func (Evidence) Mixin

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

Mixin of the Evidence

func (Evidence) Modules

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

func (Evidence) Name

func (Evidence) Name() string

Name returns the name of the Evidence schema.

func (Evidence) PluralName

func (Evidence) PluralName() string

PluralName returns the plural name of the Evidence schema.

func (Evidence) Policy

func (Evidence) Policy() ent.Policy

Policy of the Evidence

type Export

type Export struct {
	SchemaFuncs
	ent.Schema
}

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

func (Export) Annotations

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

Annotations of the Export

func (Export) Edges

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

Edges of the Export

func (Export) Fields

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

Fields returns export fields.

func (Export) GetType

func (Export) GetType() any

func (Export) Hooks

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

Hooks of the Export

func (Export) Mixin

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

Mixin of the Export

func (Export) Modules

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

func (Export) Name

func (Export) Name() string

func (Export) PluralName

func (Export) PluralName() string

func (Export) Policy

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

func (File) GetType() any

func (File) Hooks

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

Hooks of the File

func (File) Interceptors

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

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

func (File) Name

func (File) Name() string

func (File) PluralName

func (File) PluralName() string

func (File) Policy

func (f File) Policy() ent.Policy

Policy of the File

type FileDownloadToken

type FileDownloadToken struct {
	SchemaFuncs

	ent.Schema
}

FileDownloadToken holds the schema definition for the FileDownloadToken entity

func (FileDownloadToken) Annotations

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

Annotations of the FileDownloadToken

func (FileDownloadToken) Fields

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

Fields of the FileDownloadToken

func (FileDownloadToken) GetType

func (FileDownloadToken) GetType() any

GetType returns the type of the FileDownloadToken schema.

func (FileDownloadToken) Hooks

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

Hooks of the FileDownloadToken

func (FileDownloadToken) Indexes

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

Indexes of the FileDownloadToken

func (FileDownloadToken) Mixin

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

Mixin of the FileDownloadToken

func (FileDownloadToken) Name

func (FileDownloadToken) Name() string

Name returns the name of the FileDownloadToken schema.

func (FileDownloadToken) PluralName

func (FileDownloadToken) PluralName() string

PluralName returns the plural name of the FileDownloadToken schema.

func (FileDownloadToken) Policy

func (p FileDownloadToken) Policy() ent.Policy

Policy of the FileDownloadToken

type Finding

type Finding struct {
	SchemaFuncs

	ent.Schema
}

Finding defines the finding schema.

func (Finding) Annotations

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

Annotations of the Finding

func (Finding) Edges

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

Edges of the Finding

func (Finding) Fields

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

Fields returns finding fields.

func (Finding) GetType

func (Finding) GetType() any

GetType returns the type of the finding schema.

func (Finding) Hooks

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

Hooks of the Finding

func (Finding) Indexes

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

Indexes of the Finding

func (Finding) Mixin

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

Mixin of the Finding

func (Finding) Modules

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

func (Finding) Name

func (Finding) Name() string

Name returns the name of the finding schema.

func (Finding) PluralName

func (Finding) PluralName() string

PluralName returns the plural name of the finding schema.

func (Finding) Policy

func (f Finding) Policy() ent.Policy

Policy of the Finding

type FindingControl

type FindingControl struct {
	SchemaFuncs

	ent.Schema
}

FindingControl defines the mapping between findings and controls.

func (FindingControl) Edges

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

Edges of the FindingControl

func (FindingControl) Fields

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

Fields returns finding control fields.

func (FindingControl) GetType

func (FindingControl) GetType() any

GetType returns the type of the finding control schema.

func (FindingControl) Indexes

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

Indexes of the FindingControl

func (FindingControl) Mixin

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

Mixin of the FindingControl

func (FindingControl) Modules

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

Modules of the FindingControl

func (FindingControl) Name

func (FindingControl) Name() string

Name returns the name of the finding control schema.

func (FindingControl) PluralName

func (FindingControl) PluralName() string

PluralName returns the plural name of the finding control schema.

func (FindingControl) Policy

func (FindingControl) Policy() ent.Policy

Policy of the FindingControl

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

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

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

func (Group) Name

func (Group) Name() string

Name returns the name of the Group schema.

func (Group) PluralName

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

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

func NewGroupBasedCreateAccessMixin() GroupBasedCreateAccessMixin

NewGroupBasedCreateAccessMixin creates a new GroupBasedCreateAccessMixin with the specified edges

func (GroupBasedCreateAccessMixin) Edges

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

Edges of the GroupBasedCreateAccessMixin

func (GroupBasedCreateAccessMixin) Hooks

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

Hooks of the GroupBasedCreateAccessMixin

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

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

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

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

func (GroupMembership) Name

func (GroupMembership) Name() string

Name returns the name of the GroupMembership schema.

func (GroupMembership) PluralName

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 GroupPermissionsEdgesMixin

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) Annotations

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

Annotations of the GroupPermissionsMixin

func (GroupPermissionsEdgesMixin) Edges

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

Edges of the GroupPermissionsEdgesMixin

func (GroupPermissionsEdgesMixin) Hooks

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

Hooks of the GroupPermissionsEdgesMixin

type GroupPermissionsMixin

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
	// WorkflowEdgeEligible marks group permission edges as workflow-eligible.
	WorkflowEdgeEligible 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) Annotations

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

Annotations of the GroupPermissionsMixin

func (GroupPermissionsMixin) Edges

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

Edges of the GroupPermissionsMixin

func (GroupPermissionsMixin) Hooks

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

Hooks of the GroupPermissionsMixin

func (GroupPermissionsMixin) Interceptors

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

func (GroupSetting) GetType() any

func (GroupSetting) Hooks

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

Hooks of the GroupSetting

func (GroupSetting) Interceptors

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

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

func (GroupSetting) Name

func (GroupSetting) Name() string

func (GroupSetting) PluralName

func (GroupSetting) PluralName() string

type HookFunc

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) Annotations

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

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

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

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

func (Hush) Name

func (Hush) Name() string

Name returns the name of the Hush schema.

func (Hush) PluralName

func (Hush) PluralName() string

PluralName returns the plural name of the Hush schema.

func (Hush) Policy

func (Hush) Policy() ent.Policy

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

type IdentityHolder

type IdentityHolder struct {
	SchemaFuncs

	ent.Schema
}

IdentityHolder holds the schema definition for the IdentityHolder entity

func (IdentityHolder) Annotations

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

Annotations of the IdentityHolder

func (IdentityHolder) Edges

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

Edges of the IdentityHolder

func (IdentityHolder) Fields

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

Fields of the IdentityHolder

func (IdentityHolder) GetType

func (IdentityHolder) GetType() any

GetType returns the type of the IdentityHolder schema

func (IdentityHolder) Hooks

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

Hooks of the IdentityHolder

func (IdentityHolder) Indexes

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

Indexes of the IdentityHolder

func (IdentityHolder) Mixin

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

Mixin of the IdentityHolder

func (IdentityHolder) Modules

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

Modules this schema has access to

func (IdentityHolder) Name

func (IdentityHolder) Name() string

Name returns the name of the IdentityHolder schema

func (IdentityHolder) PluralName

func (IdentityHolder) PluralName() string

PluralName returns the plural name of the IdentityHolder schema

func (IdentityHolder) Policy

func (IdentityHolder) Policy() ent.Policy

Policy of the IdentityHolder

type ImpersonationEvent

type ImpersonationEvent struct {
	SchemaFuncs
	ent.Schema
}

ImpersonationEvent holds the schema definition for the ImpersonationEvent entity

func (ImpersonationEvent) Annotations

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

Annotations of the ImpersonationEvent

func (ImpersonationEvent) Edges

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

Edges of the ImpersonationEvent

func (ImpersonationEvent) Fields

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

Fields of the ImpersonationEvent

func (ImpersonationEvent) GetType

func (ImpersonationEvent) GetType() any

GetType returns the type of the schema

func (ImpersonationEvent) Hooks

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

Hooks of the ImpersonationEvent

func (ImpersonationEvent) Indexes

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

Indexes of the ImpersonationEvent

func (ImpersonationEvent) Interceptors

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

Interceptors of the ImpersonationEvent

func (ImpersonationEvent) Mixin

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

Mixin of the ImpersonationEvent

func (ImpersonationEvent) Modules

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

Modules this schema has access to

func (ImpersonationEvent) Name

func (ImpersonationEvent) Name() string

Name is the name of the schema in snake case

func (ImpersonationEvent) PluralName

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

func (Integration) GetType() any

GetType returns the type of the Integration schema.

func (Integration) Hooks

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

Hooks of the Integration

func (Integration) Mixin

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

Mixin of the Integration

func (Integration) Modules

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

func (Integration) Name

func (Integration) Name() string

Name returns the name of the Integration schema.

func (Integration) PluralName

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 IntegrationRun

type IntegrationRun struct {
	SchemaFuncs

	ent.Schema
}

IntegrationRun holds the schema definition for integration execution history.

func (IntegrationRun) Annotations

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

Annotations of the IntegrationRun.

func (IntegrationRun) Edges

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

Edges of the IntegrationRun.

func (IntegrationRun) Fields

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

Fields of the IntegrationRun.

func (IntegrationRun) GetType

func (IntegrationRun) GetType() any

GetType returns the type of the IntegrationRun schema.

func (IntegrationRun) Indexes

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

Indexes of the IntegrationRun.

func (IntegrationRun) Mixin

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

Mixin of the IntegrationRun.

func (IntegrationRun) Modules

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

Modules of the IntegrationRun.

func (IntegrationRun) Name

func (IntegrationRun) Name() string

Name returns the name of the IntegrationRun schema.

func (IntegrationRun) PluralName

func (IntegrationRun) PluralName() string

PluralName returns the plural name of the IntegrationRun schema.

func (IntegrationRun) Policy

func (IntegrationRun) Policy() ent.Policy

Policy of the IntegrationRun.

type IntegrationWebhook

type IntegrationWebhook struct {
	SchemaFuncs

	ent.Schema
}

IntegrationWebhook holds the schema definition for integration webhooks.

func (IntegrationWebhook) Annotations

func (w IntegrationWebhook) Annotations() []schema.Annotation

Annotations of the IntegrationWebhook.

func (IntegrationWebhook) Edges

func (w IntegrationWebhook) Edges() []ent.Edge

Edges of the IntegrationWebhook.

func (IntegrationWebhook) Fields

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

Fields of the IntegrationWebhook.

func (IntegrationWebhook) GetType

func (IntegrationWebhook) GetType() any

GetType returns the type of the IntegrationWebhook schema.

func (IntegrationWebhook) Indexes

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

Indexes of the IntegrationWebhook.

func (IntegrationWebhook) Mixin

func (w IntegrationWebhook) Mixin() []ent.Mixin

Mixin of the IntegrationWebhook.

func (IntegrationWebhook) Modules

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

Modules of the IntegrationWebhook.

func (IntegrationWebhook) Name

func (IntegrationWebhook) Name() string

Name returns the name of the IntegrationWebhook schema.

func (IntegrationWebhook) PluralName

func (IntegrationWebhook) PluralName() string

PluralName returns the plural name of the IntegrationWebhook schema.

func (IntegrationWebhook) Policy

func (IntegrationWebhook) Policy() ent.Policy

Policy of the IntegrationWebhook.

type InterceptorFunc

type InterceptorFunc func(o ObjectOwnedMixin) ent.Interceptor

type InternalPolicy

type InternalPolicy struct {
	SchemaFuncs

	ent.Schema
}

InternalPolicy defines the policy schema.

func (InternalPolicy) Annotations

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

Annotations of the InternalPolicy

func (InternalPolicy) Edges

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

Edges of the InternalPolicy

func (InternalPolicy) Fields

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

Fields returns policy fields.

func (InternalPolicy) GetType

func (InternalPolicy) GetType() any

GetType returns the type of the internal policy schema.

func (InternalPolicy) Hooks

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

Hooks of the InternalPolicy

func (InternalPolicy) Indexes

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

Indexes of the InternalPolicy

func (InternalPolicy) Interceptors

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

Interceptors of the InternalPolicy

func (InternalPolicy) Mixin

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

Mixin of the InternalPolicy

func (InternalPolicy) Modules

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

func (InternalPolicy) Name

func (InternalPolicy) Name() string

Name returns the name of the internal policy schema.

func (InternalPolicy) PluralName

func (InternalPolicy) PluralName() string

PluralName returns the plural name of the internal policy schema.

func (InternalPolicy) Policy

func (i InternalPolicy) Policy() ent.Policy

Policy of the InternalPolicy

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

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

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

func (Invite) Name

func (Invite) Name() string

func (Invite) PluralName

func (Invite) PluralName() string

func (Invite) Policy

func (i Invite) Policy() ent.Policy

Policy of the Invite

type MappableDomain

type MappableDomain struct {
	SchemaFuncs

	ent.Schema
}

MappableDomain holds the schema definition for the MappableDomain entity

func (MappableDomain) Edges

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

Edges of the MappableDomain

func (MappableDomain) Fields

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

Fields of the MappableDomain

func (MappableDomain) GetType

func (MappableDomain) GetType() any

GetType returns the type of the schema

func (MappableDomain) Hooks

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

Hooks of the MappableDomain

func (MappableDomain) Indexes

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

Indexes of the MappableDomain

func (MappableDomain) Mixin

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

Mixin of the MappableDomain

func (MappableDomain) Modules

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

func (MappableDomain) Name

func (MappableDomain) Name() string

Name returns the name of the schema

func (MappableDomain) PluralName

func (MappableDomain) PluralName() string

PluralName returns the plural name of the schema

func (MappableDomain) Policy

func (e MappableDomain) Policy() ent.Policy

Policy of the MappableDomain

type MappedControl

type MappedControl struct {
	SchemaFuncs

	ent.Schema
}

MappedControl holds the schema definition for the MappedControl entity

func (MappedControl) Annotations

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

Annotations of the MappedControl

func (MappedControl) Edges

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

Edges of the MappedControl

func (MappedControl) Fields

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

Fields of the MappedControl

func (MappedControl) GetType

func (MappedControl) GetType() any

func (MappedControl) Hooks

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

Hooks of the MappedControl

func (MappedControl) Mixin

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

Mixin of the MappedControl

func (MappedControl) Modules

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

func (MappedControl) Name

func (MappedControl) Name() string

func (MappedControl) PluralName

func (MappedControl) PluralName() string

func (MappedControl) Policy

func (MappedControl) Policy() ent.Policy

Policy of the MappedControl

type Narrative

type Narrative struct {
	SchemaFuncs

	ent.Schema
}

Narrative defines the narrative schema

func (Narrative) Annotations

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

Annotations of the Narrative

func (Narrative) Edges

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

Edges of the Narrative

func (Narrative) Fields

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

Fields returns narrative fields

func (Narrative) GetType

func (Narrative) GetType() any

func (Narrative) Mixin

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

Mixin of the Narrative

func (Narrative) Modules

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

func (Narrative) Name

func (Narrative) Name() string

func (Narrative) PluralName

func (Narrative) PluralName() string

func (Narrative) Policy

func (n Narrative) Policy() ent.Policy

Policy of the Narrative

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

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

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

func (Note) Name

func (Note) Name() string

func (Note) PluralName

func (Note) PluralName() string

func (Note) Policy

func (n Note) Policy() ent.Policy

Policy of the Note

type Notification

type Notification struct {
	SchemaFuncs

	ent.Schema
}

Notification holds the schema definition for the Notification entity

func (Notification) Annotations

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

Annotations of the Notification

func (Notification) Edges

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

Edges of the Notification

func (Notification) Fields

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

Fields of the Notification

func (Notification) GetType

func (Notification) GetType() any

func (Notification) Hooks

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

Hooks of the Notification

func (Notification) Indexes

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

Indexes of the Notification

func (Notification) Interceptors

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

Interceptors of the Notification

func (Notification) Mixin

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

Mixin of the Notification

func (Notification) Modules

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

Modules of the Notification

func (Notification) Name

func (Notification) Name() string

func (Notification) PluralName

func (Notification) PluralName() string

func (Notification) Policy

func (Notification) Policy() ent.Policy

Policy of the Notification

type NotificationPreference

type NotificationPreference struct {
	SchemaFuncs

	ent.Schema
}

NotificationPreference holds the schema definition for notification preferences.

func (NotificationPreference) Edges

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

Edges of the NotificationPreference.

func (NotificationPreference) Fields

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

Fields of the NotificationPreference.

func (NotificationPreference) GetType

func (NotificationPreference) GetType() any

GetType returns the type of the NotificationPreference schema.

func (NotificationPreference) Indexes

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

Indexes of the NotificationPreference.

func (NotificationPreference) Mixin

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

Mixin of the NotificationPreference.

func (NotificationPreference) Modules

Modules of the NotificationPreference.

func (NotificationPreference) Name

Name returns the name of the NotificationPreference schema.

func (NotificationPreference) PluralName

func (NotificationPreference) PluralName() string

PluralName returns the plural name of the NotificationPreference schema.

func (NotificationPreference) Policy

Policy of the NotificationPreference.

type NotificationTemplate

type NotificationTemplate struct {
	SchemaFuncs

	ent.Schema
}

NotificationTemplate holds the schema definition for notification templates.

func (NotificationTemplate) Edges

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

Edges of the NotificationTemplate.

func (NotificationTemplate) Fields

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

Fields of the NotificationTemplate.

func (NotificationTemplate) GetType

func (NotificationTemplate) GetType() any

GetType returns the type of the NotificationTemplate schema.

func (NotificationTemplate) Hooks

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

Hooks of the NotificationTemplate.

func (NotificationTemplate) Indexes

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

Indexes of the NotificationTemplate.

func (NotificationTemplate) Mixin

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

Mixin of the NotificationTemplate.

func (NotificationTemplate) Modules

Modules of the NotificationTemplate.

func (NotificationTemplate) Name

Name returns the name of the NotificationTemplate schema.

func (NotificationTemplate) PluralName

func (NotificationTemplate) PluralName() string

PluralName returns the plural name of the NotificationTemplate schema.

func (NotificationTemplate) Policy

func (NotificationTemplate) Policy() ent.Policy

Policy of the NotificationTemplate.

type ObjectOwnedMixin

type ObjectOwnedMixin struct {
	mixin.Schema
	// Ref table for the id
	Ref string
	// SchemaName is the singular name of the schema, used to name the indexes
	SchemaName 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
	// ForceFilterFn when set, prevents the scope check from short-circuiting the filter
	// use this for schemas where org-wide scope does not imply access to all objects of this type
	ForceFilterFn 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
	// SkipDeletedAt indicates if the schema has not included the soft delete mixin
	SkipDeletedAt bool
	// WorkflowEdgeEligible marks owner edges as workflow-eligible for trigger detection.
	WorkflowEdgeEligible bool
	// SkipParentContextTuple skips the parent context tuple creation for schemas that have owner_id but permissions
	// are not based on the parent organization, and instead based on other parents
	SkipParentContextTuple bool
}

ObjectOwnedMixin is a mixin for object owned entities

func (ObjectOwnedMixin) Annotations

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

func (ObjectOwnedMixin) Edges

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

Edges of the ObjectOwnedMixin

func (ObjectOwnedMixin) Fields

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

Fields of the ObjectOwnedMixin

func (ObjectOwnedMixin) Hooks

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

Hooks of the ObjectOwnedMixin

func (ObjectOwnedMixin) Indexes

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

Indexes of the ObjectOwnedMixin

func (ObjectOwnedMixin) Interceptors

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

Interceptors of the ObjectOwnedMixin

func (ObjectOwnedMixin) P

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

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

type Onboarding struct {
	SchemaFuncs

	ent.Schema
}

Onboarding holds the schema definition for the Onboarding entity

func (Onboarding) Annotations

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

Annotations of the Onboarding

func (Onboarding) Edges

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

Edges of the Onboarding

func (Onboarding) Fields

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

Fields of the Onboarding

func (Onboarding) GetType

func (Onboarding) GetType() any

GetType returns the type of the Onboarding schema.

func (Onboarding) Hooks

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

Hooks of the Onboarding

func (Onboarding) Mixin

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

Mixin of the Onboarding

func (Onboarding) Modules

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

func (Onboarding) Name

func (Onboarding) Name() string

Name returns the name of the Onboarding schema.

func (Onboarding) PluralName

func (Onboarding) PluralName() string

PluralName returns the plural name of the Onboarding schema.

func (Onboarding) Policy

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

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

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

func (OrgMembership) Name

func (OrgMembership) Name() string

func (OrgMembership) PluralName

func (OrgMembership) PluralName() string

func (OrgMembership) Policy

func (OrgMembership) Policy() ent.Policy

Policy of the OrgMembership

type OrgModule

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

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

Annotations returns the annotations for the OrgModule schema

func (OrgModule) Edges

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

Edges of the OrgModule

func (OrgModule) Fields

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

Fields of the OrgModule

func (OrgModule) GetType

func (OrgModule) GetType() any

GetType returns the type of the OrgModule schema

func (OrgModule) Hooks

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

Hooks of the OrgModule

func (OrgModule) Mixin

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

Mixin returns the mixins for the OrgModule schema

func (OrgModule) Name

func (OrgModule) Name() string

Name returns the name of the OrgModule schema

func (OrgModule) PluralName

func (OrgModule) PluralName() string

PluralName returns the plural name of the OrgModule schema

type OrgPrice

type OrgPrice struct {
	SchemaFuncs

	ent.Schema
}

OrgPrice represents a price attached to a subscription product

func (OrgPrice) Annotations

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

Annotations returns the annotations for the OrgPrice schema

func (OrgPrice) Edges

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

Edges of the OrgPrice

func (OrgPrice) Fields

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

Fields of the OrgPrice

func (OrgPrice) GetType

func (OrgPrice) GetType() any

GetType returns the type of the OrgPrice schema

func (OrgPrice) Mixin

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

Mixin returns the mixins for the OrgPrice schema

func (OrgPrice) Modules

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

func (OrgPrice) Name

func (OrgPrice) Name() string

Name returns the name of the OrgPrice schema

func (OrgPrice) PluralName

func (OrgPrice) PluralName() string

PluralName returns the plural name of the OrgPrice schema

type OrgProduct

type OrgProduct struct {
	SchemaFuncs

	ent.Schema
}

OrgProduct represents a module product linked to a subscription.

func (OrgProduct) Annotations

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

Annotations returns the annotations for the OrgProduct schema

func (OrgProduct) Edges

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

Edges returns the edges for the OrgProduct schema

func (OrgProduct) Fields

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

Fields returns the fields for the OrgProduct schema

func (OrgProduct) GetType

func (OrgProduct) GetType() any

GetType returns the type of the OrgProduct schema

func (OrgProduct) Mixin

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

Mixin returns the mixins for the OrgProduct schema

func (OrgProduct) Modules

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

func (OrgProduct) Name

func (OrgProduct) Name() string

Name returns the name of the OrgProduct schema

func (OrgProduct) PluralName

func (OrgProduct) PluralName() string

PluralName returns the plural name of the OrgProduct schema

type OrgSubscription

type OrgSubscription struct {
	SchemaFuncs

	ent.Schema
}

OrgSubscription holds the schema definition for the OrgSubscription entity

func (OrgSubscription) Annotations

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

Annotations of the OrgSubscription

func (OrgSubscription) Edges

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

Edges of the OrgSubscription

func (OrgSubscription) Fields

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

Fields of the OrgSubscription

func (OrgSubscription) GetType

func (OrgSubscription) GetType() any

GetType returns the type of the OrgSubscription schema.

func (OrgSubscription) Interceptors

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

Interceptors of the OrgSubscription

func (OrgSubscription) Mixin

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

Mixin of the OrgSubscription

func (OrgSubscription) Name

func (OrgSubscription) Name() string

Name returns the name of the OrgSubscription schema.

func (OrgSubscription) PluralName

func (OrgSubscription) PluralName() string

PluralName returns the plural name of the OrgSubscription schema.

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

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

func (Organization) Name() string

func (Organization) PluralName

func (Organization) PluralName() string

func (Organization) Policy

func (Organization) Policy() ent.Policy

Policy defines the privacy policy of the Organization.

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

func (OrganizationSetting) GetType() any

GetType returns the type of the OrganizationSetting schema.

func (OrganizationSetting) Hooks

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

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

func (OrganizationSetting) Name

func (OrganizationSetting) Name() string

Name returns the name of the OrganizationSetting schema.

func (OrganizationSetting) PluralName

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

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

func (PasswordResetToken) Name() string

Name returns the name of the PasswordResetToken schema.

func (PasswordResetToken) PluralName

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

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

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

func (PersonalAccessToken) Name

func (PersonalAccessToken) Name() string

Name returns the name of the PersonalAccessToken schema.

func (PersonalAccessToken) PluralName

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 Platform

type Platform struct {
	SchemaFuncs

	ent.Schema
}

Platform holds the schema definition for the Platform entity

func (Platform) Annotations

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

Annotations of the Platform

func (Platform) Edges

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

Edges of the Platform

func (Platform) Fields

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

Fields of the Platform

func (Platform) GetType

func (Platform) GetType() any

GetType returns the type of the Platform schema

func (Platform) Hooks

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

func (Platform) Indexes

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

Indexes of the Platform

func (Platform) Mixin

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

Mixin of the Platform

func (Platform) Modules

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

Modules this schema has access to

func (Platform) Name

func (Platform) Name() string

Name returns the name of the Platform schema

func (Platform) PluralName

func (Platform) PluralName() string

PluralName returns the plural name of the Platform schema

func (Platform) Policy

func (Platform) Policy() ent.Policy

Policy of the Platform

type Procedure

type Procedure struct {
	SchemaFuncs

	ent.Schema
}

Procedure defines the procedure schema.

func (Procedure) Annotations

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

Annotations of the Procedure

func (Procedure) Edges

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

Edges of the Procedure

func (Procedure) Fields

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

Fields returns procedure fields.

func (Procedure) GetType

func (Procedure) GetType() any

GetType returns the type of the procedure schema.

func (Procedure) Hooks

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

Hooks of the Procedure

func (Procedure) Interceptors

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

Interceptors of the Procedure

func (Procedure) Mixin

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

Mixin of the Procedure

func (Procedure) Modules

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

func (Procedure) Name

func (Procedure) Name() string

Name returns the name of the procedure schema.

func (Procedure) PluralName

func (Procedure) PluralName() string

PluralName returns the plural name of the procedure schema.

func (Procedure) Policy

func (p Procedure) Policy() ent.Policy

Policy of the Procedure

type Program

type Program struct {
	SchemaFuncs

	ent.Schema
}

Program holds the schema definition for the Program entity

func (Program) Annotations

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

Annotations of the Program

func (Program) Edges

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

Edges of the Program

func (Program) Fields

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

Fields of the Program

func (Program) GetType

func (Program) GetType() any

GetType returns the type of the Program schema.

func (Program) Hooks

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

Hooks of the Program

func (Program) Indexes

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

Indexes of the Program

func (Program) Interceptors

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

Interceptors of the Program

func (Program) Mixin

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

Mixin of the Program

func (Program) Modules

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

func (Program) Name

func (Program) Name() string

Name returns the name of the Program schema.

func (Program) PluralName

func (Program) PluralName() string

PluralName returns the plural name of the Program schema.

func (Program) Policy

func (p Program) Policy() ent.Policy

Policy of the Program

type ProgramMembership

type ProgramMembership struct {
	SchemaFuncs

	ent.Schema
}

ProgramMembership holds the schema definition for the ProgramMembership entity

func (ProgramMembership) Annotations

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

Annotations of the ProgramMembership

func (ProgramMembership) Edges

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

Edges of the ProgramMembership

func (ProgramMembership) Fields

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

Fields of the ProgramMembership

func (ProgramMembership) GetType

func (ProgramMembership) GetType() any

GetType returns the type of the ProgramMembership schema.

func (ProgramMembership) Hooks

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

Hooks of the ProgramMembership

func (ProgramMembership) Indexes

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

Indexes of the ProgramMembership

func (ProgramMembership) Interceptors

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

Interceptors of the ProgramMembership

func (ProgramMembership) Mixin

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

Mixin of the ProgramMembership

func (ProgramMembership) Modules

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

func (ProgramMembership) Name

func (ProgramMembership) Name() string

Name returns the name of the ProgramMembership schema.

func (ProgramMembership) PluralName

func (ProgramMembership) PluralName() string

PluralName returns the plural name of the ProgramMembership schema.

func (ProgramMembership) Policy

func (ProgramMembership) Policy() ent.Policy

// Policy of the ProgramMembership

type Remediation

type Remediation struct {
	SchemaFuncs

	ent.Schema
}

Remediation defines the remediation schema.

func (Remediation) Annotations

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

Annotations of the Remediation

func (Remediation) Edges

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

Edges of the Remediation

func (Remediation) Fields

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

Fields returns remediation fields.

func (Remediation) GetType

func (Remediation) GetType() any

GetType returns the type of the remediation schema.

func (Remediation) Indexes

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

Indexes of the Remediation

func (Remediation) Mixin

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

Mixin of the Remediation

func (Remediation) Modules

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

func (Remediation) Name

func (Remediation) Name() string

Name returns the name of the remediation schema.

func (Remediation) PluralName

func (Remediation) PluralName() string

PluralName returns the plural name of the remediation schema.

func (Remediation) Policy

func (r Remediation) Policy() ent.Policy

Policy of the Remediation

type ResponsibilityMixin

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

ResponsibilityMixin provides ownership, assignment, review, and delegation fields for schemas

func (ResponsibilityMixin) Edges

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

Edges of the ResponsibilityMixin.

func (ResponsibilityMixin) Fields

func (r ResponsibilityMixin) Fields() []ent.Field

Fields of the ResponsibilityMixin.

type Review

type Review struct {
	SchemaFuncs

	ent.Schema
}

Review defines the review schema.

func (Review) Annotations

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

Annotations of the Review

func (Review) Edges

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

Edges of the Review

func (Review) Fields

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

Fields returns review fields.

func (Review) GetType

func (Review) GetType() any

GetType returns the type of the review schema.

func (Review) Hooks

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

func (Review) Indexes

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

Indexes of the Review

func (Review) Mixin

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

Mixin of the Review

func (Review) Modules

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

func (Review) Name

func (Review) Name() string

Name returns the name of the review schema.

func (Review) PluralName

func (Review) PluralName() string

PluralName returns the plural name of the review schema.

func (Review) Policy

func (r Review) Policy() ent.Policy

Policy of the Review

type Risk

type Risk struct {
	SchemaFuncs

	ent.Schema
}

Risk defines the risk schema.

func (Risk) Annotations

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

Annotations of the Risk

func (Risk) Edges

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

Edges of the Risk

func (Risk) Fields

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

Fields returns risk fields.

func (Risk) GetType

func (Risk) GetType() any

GetType returns the type of the risk schema.

func (Risk) Hooks

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

Hooks of the Risk

func (Risk) Indexes

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

Indexes of the Risk

func (Risk) Mixin

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

Mixin of the Risk

func (Risk) Modules

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

func (Risk) Name

func (Risk) Name() string

Name returns the name of the risk schema.

func (Risk) PluralName

func (Risk) PluralName() string

PluralName returns the plural name of the risk schema.

func (Risk) Policy

func (r Risk) Policy() ent.Policy

Policy of the Risk

type SLADefinition

type SLADefinition struct {
	SchemaFuncs

	ent.Schema
}

SLADefinition defines the SLA definition schema.

func (SLADefinition) Annotations

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

Annotations of the SLADefinition

func (SLADefinition) Edges

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

Edges of the SLADefinition

func (SLADefinition) Fields

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

Fields returns SLA definition fields.

func (SLADefinition) GetType

func (SLADefinition) GetType() any

GetType returns the type of the SLA definition schema.

func (SLADefinition) Indexes

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

Indexes of the SLADefinition

func (SLADefinition) Mixin

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

Mixin of the SLADefinition

func (SLADefinition) Modules

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

func (SLADefinition) Name

func (SLADefinition) Name() string

Name returns the name of the SLA definition schema.

func (SLADefinition) PluralName

func (SLADefinition) PluralName() string

PluralName returns the plural name of the SLA definition schema.

func (SLADefinition) Policy

func (SLADefinition) Policy() ent.Policy

Policy of the SLADefinition

type Scan

type Scan struct {
	SchemaFuncs
	ent.Schema
}

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

func (Scan) Annotations

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

Annotations of the Scan

func (Scan) Edges

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

Edges of the Scan

func (Scan) Fields

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

Fields of the Scan

func (Scan) GetType

func (Scan) GetType() any

GetType returns the type of the Scan schema

func (Scan) Mixin

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

Mixin of the Scan

func (Scan) Modules

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

Modules this schema has access to

func (Scan) Name

func (Scan) Name() string

Name returns the name of the Scan schema

func (Scan) PluralName

func (Scan) PluralName() string

PluralName returns the plural name of the Scan schema

func (Scan) Policy

func (s Scan) Policy() ent.Policy

Policy of the Scan

type SchemaFuncs

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 SkipFGAOverfetch

type SkipFGAOverfetch struct {
	Enabled bool `json:"enabled"`
}

SkipFGAOverfetch marks a schema as not needing the FGA overfetch multiplier because SQL-level filtering handles result restriction at query time

func (SkipFGAOverfetch) Name

func (SkipFGAOverfetch) Name() string

Name returns the annotation name

type Standard

type Standard struct {
	SchemaFuncs

	ent.Schema
}

Standard defines the standard schema.

func (Standard) Annotations

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

func (Standard) Edges

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

Edges of the Standard

func (Standard) Fields

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

Fields returns standard fields.

func (Standard) GetType

func (Standard) GetType() any

GetType returns the type of the standard schema.

func (Standard) Hooks

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

Hooks of the Standard

func (Standard) Interceptors

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

Interceptors of the Standard

func (Standard) Mixin

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

Mixin of the Standard

func (Standard) Modules

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

func (Standard) Name

func (Standard) Name() string

Name returns the name of the standard schema.

func (Standard) PluralName

func (Standard) PluralName() string

PluralName returns the plural name of the standard schema.

func (Standard) Policy

func (s Standard) Policy() ent.Policy

Policy of the Standard

type Subcontrol

type Subcontrol struct {
	SchemaFuncs

	ent.Schema
}

Subcontrol defines the file schema.

func (Subcontrol) Annotations

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

Annotations of the Subcontrol

func (Subcontrol) Edges

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

Edges of the Subcontrol

func (Subcontrol) Fields

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

Fields returns file fields.

func (Subcontrol) GetType

func (Subcontrol) GetType() any

GetType returns the type of the Subcontrol schema.

func (Subcontrol) Hooks

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

Hooks of the Subcontrol

func (Subcontrol) Indexes

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

Indexes of the Subcontrol

func (Subcontrol) Interceptors

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

Interceptors of the Subcontrol

func (Subcontrol) Mixin

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

Mixin of the Subcontrol

func (Subcontrol) Modules

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

Annotations of the Standard

func (Subcontrol) Name

func (Subcontrol) Name() string

Name returns the name of the Subcontrol schema.

func (Subcontrol) PluralName

func (Subcontrol) PluralName() string

PluralName returns the plural name of the Subcontrol schema.

func (Subcontrol) Policy

func (s Subcontrol) Policy() ent.Policy

Policy of the Subcontrol

type Subprocessor

type Subprocessor struct {
	SchemaFuncs

	ent.Schema
}

Subprocessor holds the schema definition for the Subprocessor entity

func (Subprocessor) Annotations

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

Annotations of the Subprocessor

func (Subprocessor) Edges

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

Edges of the Subprocessor

func (Subprocessor) Fields

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

Fields of the Subprocessor

func (Subprocessor) GetType

func (Subprocessor) GetType() any

GetType returns the type of the Subprocessor schema.

func (Subprocessor) Hooks

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

Hooks of the Subprocessor

func (Subprocessor) Indexes

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

Indexes of the Subprocessor

func (Subprocessor) Interceptors

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

Interceptors of the Subprocessor

func (Subprocessor) Mixin

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

Mixin of the Subprocessor

func (Subprocessor) Modules

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

func (Subprocessor) Name

func (Subprocessor) Name() string

Name returns the name of the Subprocessor schema.

func (Subprocessor) PluralName

func (Subprocessor) PluralName() string

PluralName returns the plural name of the Subprocessor schema.

func (Subprocessor) Policy

func (t Subprocessor) Policy() ent.Policy

Policy of the Subprocessor

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

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

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

func (Subscriber) Name

func (Subscriber) Name() string

Name returns the name of the Subscriber schema.

func (Subscriber) PluralName

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 SystemDetail

type SystemDetail struct {
	SchemaFuncs

	ent.Schema
}

SystemDetail defines OSCAL-centric system metadata anchors

func (SystemDetail) Annotations

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

Annotations of the SystemDetail

func (SystemDetail) Edges

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

Edges of the SystemDetail

func (SystemDetail) Fields

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

Fields of the SystemDetail

func (SystemDetail) GetType

func (SystemDetail) GetType() any

GetType returns the ent type

func (SystemDetail) Indexes

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

Indexes of the SystemDetail

func (SystemDetail) Mixin

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

Mixin of the SystemDetail

func (SystemDetail) Modules

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

Modules returns modules required for this schema

func (SystemDetail) Name

func (SystemDetail) Name() string

Name returns the schema name

func (SystemDetail) PluralName

func (SystemDetail) PluralName() string

PluralName returns the plural schema name

func (SystemDetail) Policy

func (s SystemDetail) Policy() ent.Policy

Policy of the SystemDetail

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

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

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

func (TFASetting) Name

func (TFASetting) Name() string

Name returns the name of the TFASetting schema.

func (TFASetting) PluralName

func (TFASetting) PluralName() string

PluralName returns the plural name of the TFASetting schema.

func (TFASetting) Policy

func (t TFASetting) Policy() ent.Policy

Policy of the TFASetting

type TagDefinition

type TagDefinition struct {
	SchemaFuncs

	ent.Schema
}

TagDefinition holds the schema definition for the TagDefinition entity

func (TagDefinition) Annotations

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

Annotations of the TagDefinition

func (TagDefinition) Edges

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

Edges of the TagDefinition

func (TagDefinition) Fields

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

Fields of the TagDefinition

func (TagDefinition) GetType

func (TagDefinition) GetType() any

GetType returns the type of the schema

func (TagDefinition) Hooks

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

Hooks of the TagDefinition

func (TagDefinition) Indexes

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

Indexes of the TagDefinition

func (TagDefinition) Interceptors

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

Interceptors of the TagDefinition

func (TagDefinition) Mixin

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

Mixin of the TagDefinition

func (TagDefinition) Modules

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

Modules this schema has access to

func (TagDefinition) Name

func (TagDefinition) Name() string

Name is the name of the schema in snake case

func (TagDefinition) PluralName

func (TagDefinition) PluralName() string

PluralName returns the plural name of the schema

func (TagDefinition) Policy

func (TagDefinition) Policy() ent.Policy

Policy of the TagDefinition

type Task

type Task struct {
	SchemaFuncs

	ent.Schema
}

Task holds the schema definition for the Task entity

func (Task) Annotations

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

Annotations of the Task

func (Task) Edges

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

Edges of the Task

func (Task) Fields

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

Fields of the Task

func (Task) GetType

func (Task) GetType() any

GetType returns the type of the Task schema.

func (Task) Hooks

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

Hooks of the Task

func (Task) Indexes

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

Indexes of the Task

func (Task) Mixin

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

Mixin of the Task

func (Task) Modules

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

func (Task) Name

func (Task) Name() string

Name returns the name of the Task schema.

func (Task) PluralName

func (Task) PluralName() string

PluralName returns the plural name of the Task schema.

func (Task) Policy

func (Task) Policy() ent.Policy

Policy of the Task

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

func (Template) GetType() any

GetType returns the type of the Template schema.

func (Template) Hooks

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

Hooks of the Template

func (Template) Indexes

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

Indexes of the Template

func (Template) Interceptors

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

Interceptors of the Template

func (Template) Mixin

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

Mixin of the Template

func (Template) Name

func (Template) Name() string

SchemaTemplate is the name of the Template schema.

func (Template) PluralName

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 TrustCenter

type TrustCenter struct {
	SchemaFuncs

	ent.Schema
}

TrustCenter holds the schema definition for the TrustCenter entity

func (TrustCenter) Annotations

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

Annotations of the TrustCenter

func (TrustCenter) Edges

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

Edges of the TrustCenter

func (TrustCenter) Fields

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

Fields of the TrustCenter

func (TrustCenter) GetType

func (TrustCenter) GetType() any

GetType returns the type of the TrustCenter schema.

func (TrustCenter) Hooks

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

Hooks of the TrustCenter

func (TrustCenter) Indexes

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

Indexes of the TrustCenter

func (TrustCenter) Interceptors

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

Interceptors of the TrustCenter

func (TrustCenter) Mixin

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

Mixin of the TrustCenter

func (TrustCenter) Modules

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

func (TrustCenter) Name

func (TrustCenter) Name() string

Name returns the name of the TrustCenter schema.

func (TrustCenter) PluralName

func (TrustCenter) PluralName() string

PluralName returns the plural name of the TrustCenter schema.

func (TrustCenter) Policy

func (t TrustCenter) Policy() ent.Policy

Policy of the TrustCenter

type TrustCenterCompliance

type TrustCenterCompliance struct {
	SchemaFuncs

	ent.Schema
}

TrustCenterCompliance holds the schema definition for the TrustCenterCompliance entity

func (TrustCenterCompliance) Annotations

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

Annotations of the TrustCenterCompliance

func (TrustCenterCompliance) Edges

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

Edges of the TrustCenterCompliance

func (TrustCenterCompliance) Fields

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

Fields of the TrustCenterCompliance

func (TrustCenterCompliance) GetType

func (TrustCenterCompliance) GetType() any

GetType returns the type of the TrustCenterCompliance schema.

func (TrustCenterCompliance) Hooks

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

Hooks of the TrustCenterCompliance

func (TrustCenterCompliance) Indexes

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

Indexes of the TrustCenterCompliance

func (TrustCenterCompliance) Interceptors

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

Interceptors of the TrustCenterCompliance

func (TrustCenterCompliance) Mixin

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

Mixin of the TrustCenterCompliance

func (TrustCenterCompliance) Modules

Modules this schema has access to

func (TrustCenterCompliance) Name

Name returns the name of the TrustCenterCompliance schema.

func (TrustCenterCompliance) PluralName

func (TrustCenterCompliance) PluralName() string

PluralName returns the plural name of the TrustCenterCompliance schema.

func (TrustCenterCompliance) Policy

func (TrustCenterCompliance) Policy() ent.Policy

Policy of the TrustCenterCompliance

type TrustCenterDoc

type TrustCenterDoc struct {
	SchemaFuncs

	ent.Schema
}

TrustCenterDoc holds the schema definition for the TrustCenterDoc entity

func (TrustCenterDoc) Annotations

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

Annotations of the TrustCenterDoc

func (TrustCenterDoc) Edges

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

Edges of the TrustCenterDoc

func (TrustCenterDoc) Fields

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

Fields of the TrustCenterDoc

func (TrustCenterDoc) GetType

func (TrustCenterDoc) GetType() any

GetType returns the type of the TrustCenterDoc schema.

func (TrustCenterDoc) Hooks

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

Hooks of the TrustCenterDoc

func (TrustCenterDoc) Indexes

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

Indexes of the TrustCenterDoc

func (TrustCenterDoc) Interceptors

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

Interceptors of the TrustCenterDoc

func (TrustCenterDoc) Mixin

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

Mixin of the TrustCenterDoc

func (TrustCenterDoc) Modules

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

func (TrustCenterDoc) Name

func (TrustCenterDoc) Name() string

Name returns the name of the TrustCenterDoc schema.

func (TrustCenterDoc) PluralName

func (TrustCenterDoc) PluralName() string

PluralName returns the plural name of the TrustCenterDoc schema.

func (TrustCenterDoc) Policy

func (TrustCenterDoc) Policy() ent.Policy

Policy of the TrustCenterDoc

type TrustCenterEntity

type TrustCenterEntity struct {
	SchemaFuncs

	ent.Schema
}

TrustCenterEntity holds the schema definition for the TrustCenterEntity entity

func (TrustCenterEntity) Annotations

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

Annotations of the TrustCenterEntity

func (TrustCenterEntity) Edges

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

Edges of the TrustCenterEntity

func (TrustCenterEntity) Fields

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

Fields of the TrustCenterEntity

func (TrustCenterEntity) GetType

func (TrustCenterEntity) GetType() any

GetType returns the type of the schema

func (TrustCenterEntity) Hooks

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

Hooks of the TrustCenterEntity

func (TrustCenterEntity) Indexes

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

Indexes of the TrustCenterEntity

func (TrustCenterEntity) Interceptors

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

Interceptors of the TrustCenterEntity

func (TrustCenterEntity) Mixin

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

Mixin of the TrustCenterEntity

func (TrustCenterEntity) Modules

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

Modules this schema has access to

func (TrustCenterEntity) Name

func (TrustCenterEntity) Name() string

Name is the name of the schema in snake case

func (TrustCenterEntity) PluralName

func (TrustCenterEntity) PluralName() string

PluralName returns the plural name of the schema

func (TrustCenterEntity) Policy

func (TrustCenterEntity) Policy() ent.Policy

Policy of the TrustCenterEntity

type TrustCenterFAQ

type TrustCenterFAQ struct {
	SchemaFuncs

	ent.Schema
}

TrustCenterFAQ holds the schema definition for the TrustCenterFAQ entity

func (TrustCenterFAQ) Annotations

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

Annotations of the TrustCenterFAQ

func (TrustCenterFAQ) Edges

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

Edges of the TrustCenterFAQ

func (TrustCenterFAQ) Fields

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

Fields of the TrustCenterFAQ

func (TrustCenterFAQ) GetType

func (TrustCenterFAQ) GetType() any

GetType returns the type of the TrustCenterFAQ schema.

func (TrustCenterFAQ) Hooks

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

func (TrustCenterFAQ) Indexes

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

Indexes of the TrustCenterFAQ

func (TrustCenterFAQ) Interceptors

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

Interceptors of the TrustCenterFAQ

func (TrustCenterFAQ) Mixin

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

Mixin of the TrustCenterFAQ

func (TrustCenterFAQ) Modules

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

func (TrustCenterFAQ) Name

func (TrustCenterFAQ) Name() string

Name returns the name of the TrustCenterFAQ schema.

func (TrustCenterFAQ) PluralName

func (TrustCenterFAQ) PluralName() string

PluralName returns the plural name of the TrustCenterFAQ schema.

func (TrustCenterFAQ) Policy

func (TrustCenterFAQ) Policy() ent.Policy

Policy of the TrustCenterFAQ

type TrustCenterNDARequest

type TrustCenterNDARequest struct {
	SchemaFuncs

	ent.Schema
}

TrustCenterNDARequest holds the schema definition for the TrustCenterNDARequest entity

func (TrustCenterNDARequest) Annotations

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

Annotations of the TrustCenterNDARequest

func (TrustCenterNDARequest) Edges

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

Edges of the TrustCenterNDARequest

func (TrustCenterNDARequest) Fields

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

Fields of the TrustCenterNDARequest

func (TrustCenterNDARequest) GetType

func (TrustCenterNDARequest) GetType() any

GetType returns the type of the TrustCenterNDARequest schema.

func (TrustCenterNDARequest) Hooks

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

Hooks of the TrustCenterNDARequest

func (TrustCenterNDARequest) Indexes

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

Indexes of the TrustCenterNDARequest

func (TrustCenterNDARequest) Interceptors

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

Interceptors of the TrustCenterNDARequest

func (TrustCenterNDARequest) Mixin

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

Mixin of the TrustCenterNDARequest

func (TrustCenterNDARequest) Modules

func (TrustCenterNDARequest) Name

Name returns the name of the TrustCenterNDARequest schema.

func (TrustCenterNDARequest) PluralName

func (TrustCenterNDARequest) PluralName() string

PluralName returns the plural name of the TrustCenterNDARequest schema.

func (TrustCenterNDARequest) Policy

func (TrustCenterNDARequest) Policy() ent.Policy

Policy of the TrustCenterNDARequest

type TrustCenterSetting

type TrustCenterSetting struct {
	SchemaFuncs

	ent.Schema
}

TrustCenterSetting holds the schema definition for the TrustCenterSetting entity

func (TrustCenterSetting) Annotations

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

func (TrustCenterSetting) Edges

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

Edges of the TrustCenterSetting

func (TrustCenterSetting) Fields

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

Fields of the TrustCenterSetting

func (TrustCenterSetting) GetType

func (TrustCenterSetting) GetType() any

func (TrustCenterSetting) Hooks

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

Hooks of the TrustCenterSetting

func (TrustCenterSetting) Indexes

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

func (TrustCenterSetting) Interceptors

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

Interceptors of the TrustCenterSetting

func (TrustCenterSetting) Mixin

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

Mixin of the TrustCenterSetting

func (TrustCenterSetting) Modules

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

func (TrustCenterSetting) Name

func (TrustCenterSetting) Name() string

func (TrustCenterSetting) PluralName

func (TrustCenterSetting) PluralName() string

func (TrustCenterSetting) Policy

func (t TrustCenterSetting) Policy() ent.Policy

Policy of the TrustCenterSetting

type TrustCenterSubprocessor

type TrustCenterSubprocessor struct {
	SchemaFuncs

	ent.Schema
}

TrustCenterSubprocessor holds the schema definition for the TrustCenterSubprocessor entity

func (TrustCenterSubprocessor) Annotations

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

Annotations of the TrustCenterSubprocessor

func (TrustCenterSubprocessor) Edges

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

Edges of the TrustCenterSubprocessor

func (TrustCenterSubprocessor) Fields

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

Fields of the TrustCenterSubprocessor

func (TrustCenterSubprocessor) GetType

func (TrustCenterSubprocessor) GetType() any

GetType returns the type of the TrustCenterSubprocessor schema.

func (TrustCenterSubprocessor) Hooks

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

Hooks of the TrustCenterSubprocessor

func (TrustCenterSubprocessor) Indexes

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

Indexes of the TrustCenterSubprocessor

func (TrustCenterSubprocessor) Interceptors

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

Interceptors of the TrustCenterSubprocessor

func (TrustCenterSubprocessor) Mixin

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

Mixin of the TrustCenterSubprocessor

func (TrustCenterSubprocessor) Modules

func (TrustCenterSubprocessor) Name

Name returns the name of the TrustCenterSubprocessor schema.

func (TrustCenterSubprocessor) PluralName

func (TrustCenterSubprocessor) PluralName() string

PluralName returns the plural name of the TrustCenterSubprocessor schema.

func (TrustCenterSubprocessor) Policy

func (t TrustCenterSubprocessor) Policy() ent.Policy

Policy of the TrustCenterSubprocessor

type TrustCenterWatermarkConfig

type TrustCenterWatermarkConfig struct {
	SchemaFuncs

	ent.Schema
}

TrustCenterWatermarkConfig holds the schema definition for the TrustCenterWatermarkConfig entity

func (TrustCenterWatermarkConfig) Annotations

Annotations of the TrustCenterWatermarkConfig

func (TrustCenterWatermarkConfig) Edges

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

Edges of the TrustCenterWatermarkConfig

func (TrustCenterWatermarkConfig) Fields

Fields of the TrustCenterWatermarkConfig

func (TrustCenterWatermarkConfig) GetType

func (TrustCenterWatermarkConfig) GetType() any

GetType returns the type of the TrustCenterWatermarkConfig schema.

func (TrustCenterWatermarkConfig) Hooks

Hooks of the TrustCenterWatermarkConfig

func (TrustCenterWatermarkConfig) Indexes

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

Indexes of the TrustCenterWatermarkConfig

func (TrustCenterWatermarkConfig) Interceptors

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

Interceptors of the TrustCenterWatermarkConfig

func (TrustCenterWatermarkConfig) Mixin

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

Mixin of the TrustCenterWatermarkConfig

func (TrustCenterWatermarkConfig) Modules

func (TrustCenterWatermarkConfig) Name

Name returns the name of the TrustCenterWatermarkConfig schema.

func (TrustCenterWatermarkConfig) PluralName

func (TrustCenterWatermarkConfig) PluralName() string

PluralName returns the plural name of the TrustCenterWatermarkConfig schema.

func (TrustCenterWatermarkConfig) Policy

Policy of the TrustCenterWatermarkConfig

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

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

func (User) Name() string

Name returns the name of the User schema.

func (User) PluralName

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 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) Annotations

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

Annotations of the UserSetting

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

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

func (UserSetting) Name() string

Name returns the name of the UserSetting schema.

func (UserSetting) PluralName

func (UserSetting) PluralName() string

PluralName returns the plural name of the UserSetting schema.

func (UserSetting) Policy

func (UserSetting) Policy() ent.Policy

type VendorRiskScore

type VendorRiskScore struct {
	SchemaFuncs

	ent.Schema
}

VendorRiskScore holds the schema definition for a per-vendor per-question risk assessment

func (VendorRiskScore) Annotations

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

Annotations of the VendorRiskScore

func (VendorRiskScore) Edges

func (v VendorRiskScore) Edges() []ent.Edge

Edges of the VendorRiskScore

func (VendorRiskScore) Fields

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

Fields of the VendorRiskScore

func (VendorRiskScore) GetType

func (VendorRiskScore) GetType() any

GetType returns the type of the VendorRiskScore schema

func (VendorRiskScore) Hooks

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

Hooks of the VendorRiskScore

func (VendorRiskScore) Mixin

func (v VendorRiskScore) Mixin() []ent.Mixin

Mixin of the VendorRiskScore

func (VendorRiskScore) Modules

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

Modules of the VendorRiskScore

func (VendorRiskScore) Name

func (VendorRiskScore) Name() string

Name returns the name of the VendorRiskScore schema

func (VendorRiskScore) PluralName

func (VendorRiskScore) PluralName() string

PluralName returns the plural name of the VendorRiskScore schema

func (VendorRiskScore) Policy

func (VendorRiskScore) Policy() ent.Policy

Policy of the VendorRiskScore

type VendorScoringConfig

type VendorScoringConfig struct {
	SchemaFuncs

	ent.Schema
}

VendorScoringConfig holds the schema definition for the VendorScoringConfig entity

func (VendorScoringConfig) Annotations

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

Annotations of the VendorScoringConfig

func (VendorScoringConfig) Edges

func (v VendorScoringConfig) Edges() []ent.Edge

Edges of the VendorScoringConfig

func (VendorScoringConfig) Fields

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

Fields of the VendorScoringConfig

func (VendorScoringConfig) GetType

func (VendorScoringConfig) GetType() any

GetType returns the type of the VendorScoringConfig schema

func (VendorScoringConfig) Hooks

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

Hooks of the VendorScoringConfig

func (VendorScoringConfig) Mixin

func (v VendorScoringConfig) Mixin() []ent.Mixin

Mixin of the VendorScoringConfig

func (VendorScoringConfig) Modules

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

Modules of the VendorScoringConfig

func (VendorScoringConfig) Name

func (VendorScoringConfig) Name() string

Name returns the name of the VendorScoringConfig schema

func (VendorScoringConfig) PluralName

func (VendorScoringConfig) PluralName() string

PluralName returns the plural name of the VendorScoringConfig schema

func (VendorScoringConfig) Policy

func (VendorScoringConfig) Policy() ent.Policy

Policy of the VendorScoringConfig

type Vulnerability

type Vulnerability struct {
	SchemaFuncs

	ent.Schema
}

Vulnerability defines the vulnerability schema.

func (Vulnerability) Annotations

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

Annotations of the Vulnerability

func (Vulnerability) Edges

func (v Vulnerability) Edges() []ent.Edge

Edges of the Vulnerability

func (Vulnerability) Fields

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

Fields returns vulnerability fields.

func (Vulnerability) GetType

func (Vulnerability) GetType() any

GetType returns the type of the vulnerability schema.

func (Vulnerability) Hooks

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

Hooks of the Vulnerability

func (Vulnerability) Indexes

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

Indexes of the Vulnerability

func (Vulnerability) Mixin

func (v Vulnerability) Mixin() []ent.Mixin

Mixin of the Vulnerability

func (Vulnerability) Modules

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

func (Vulnerability) Name

func (Vulnerability) Name() string

Name returns the name of the vulnerability schema.

func (Vulnerability) PluralName

func (Vulnerability) PluralName() string

PluralName returns the plural name of the vulnerability schema.

func (Vulnerability) Policy

func (v Vulnerability) Policy() ent.Policy

Policy of the Vulnerability

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

func (Webauthn) GetType() any

GetType returns the type of the Webauthn schema.

func (Webauthn) Hooks

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

func (Webauthn) Mixin

func (w Webauthn) Mixin() []ent.Mixin

Mixin of the Webauthn

func (Webauthn) Modules

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

func (Webauthn) Name

func (Webauthn) Name() string

Name returns the name of the Webauthn schema.

func (Webauthn) PluralName

func (Webauthn) PluralName() string

PluralName returns the plural name of the Webauthn schema.

func (Webauthn) Policy

func (w Webauthn) Policy() ent.Policy

Policy of the Webauthn

type WorkflowApprovalMixin

type WorkflowApprovalMixin struct {
	mixin.Schema
}

WorkflowApprovalMixin adds fields for storing proposed changes that require approval. This enables the "proposed changes" pattern where mutations are intercepted and stored for workflow approval before being applied to the actual entity.

func (WorkflowApprovalMixin) Fields

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

Fields of the WorkflowApprovalMixin

func (WorkflowApprovalMixin) Hooks

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

Hooks of the WorkflowApprovalMixin

type WorkflowAssignment

type WorkflowAssignment struct {
	SchemaFuncs
	ent.Schema
}

WorkflowAssignment stores approval assignment records for workflow instances

func (WorkflowAssignment) Annotations

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

Annotations of the WorkflowAssignment

func (WorkflowAssignment) Edges

func (w WorkflowAssignment) Edges() []ent.Edge

Edges of the WorkflowAssignment

func (WorkflowAssignment) Fields

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

Fields of the WorkflowAssignment

func (WorkflowAssignment) GetType

func (WorkflowAssignment) GetType() any

GetType returns the type of the WorkflowAssignment schema

func (WorkflowAssignment) Hooks

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

Hooks of the WorkflowAssignment

func (WorkflowAssignment) Indexes

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

Indexes of the WorkflowAssignment

func (WorkflowAssignment) Mixin

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

Mixin of the WorkflowAssignment

func (WorkflowAssignment) Modules

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

Modules this schema has access to

func (WorkflowAssignment) Name

func (WorkflowAssignment) Name() string

Name returns the name of the WorkflowAssignment schema

func (WorkflowAssignment) PluralName

func (WorkflowAssignment) PluralName() string

PluralName returns the plural name of the WorkflowAssignment schema

func (WorkflowAssignment) Policy

func (WorkflowAssignment) Policy() ent.Policy

Policy of the WorkflowAssignment

type WorkflowAssignmentTarget

type WorkflowAssignmentTarget struct {
	SchemaFuncs
	ent.Schema
}

WorkflowAssignmentTarget links an assignment to specific targets (user/group/resolver)

func (WorkflowAssignmentTarget) Annotations

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

Annotations of the WorkflowAssignmentTarget

func (WorkflowAssignmentTarget) Edges

func (w WorkflowAssignmentTarget) Edges() []ent.Edge

Edges of the WorkflowAssignmentTarget

func (WorkflowAssignmentTarget) Fields

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

Fields of the WorkflowAssignmentTarget

func (WorkflowAssignmentTarget) GetType

func (WorkflowAssignmentTarget) GetType() any

GetType returns the type of the WorkflowAssignmentTarget schema

func (WorkflowAssignmentTarget) Indexes

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

Indexes of the WorkflowAssignmentTarget

func (WorkflowAssignmentTarget) Mixin

Mixin of the WorkflowAssignmentTarget

func (WorkflowAssignmentTarget) Modules

Modules this schema has access to

func (WorkflowAssignmentTarget) Name

Name returns the name of the WorkflowAssignmentTarget schema

func (WorkflowAssignmentTarget) PluralName

func (WorkflowAssignmentTarget) PluralName() string

PluralName returns the plural name of the WorkflowAssignmentTarget schema

func (WorkflowAssignmentTarget) Policy

Policy of the WorkflowAssignmentTarget

type WorkflowDefinition

type WorkflowDefinition struct {
	SchemaFuncs
	ent.Schema
}

WorkflowDefinition stores workflow configurations, both system-provided templates and organization-specific instances

func (WorkflowDefinition) Annotations

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

Annotations of the WorkflowDefinition

func (WorkflowDefinition) Edges

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

Edges of the WorkflowDefinition

func (WorkflowDefinition) Fields

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

Fields of the WorkflowDefinition

func (WorkflowDefinition) GetType

func (WorkflowDefinition) GetType() any

GetType returns the type of the WorkflowDefinition schema

func (WorkflowDefinition) Hooks

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

Hooks of the WorkflowDefinition

func (WorkflowDefinition) Mixin

func (w WorkflowDefinition) Mixin() []ent.Mixin

Mixin of the WorkflowDefinition.

func (WorkflowDefinition) Modules

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

Modules this schema has access to.

func (WorkflowDefinition) Name

func (WorkflowDefinition) Name() string

Name returns the name of the WorkflowDefinition schema

func (WorkflowDefinition) PluralName

func (WorkflowDefinition) PluralName() string

PluralName returns the plural name of the WorkflowDefinition schema

func (WorkflowDefinition) Policy

func (WorkflowDefinition) Policy() ent.Policy

Policy of the WorkflowDefinition.

type WorkflowEvent

type WorkflowEvent struct {
	SchemaFuncs
	ent.Schema
}

WorkflowEvent stores events executed within a workflow instance

func (WorkflowEvent) Annotations

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

Annotations of the WorkflowEvent

func (WorkflowEvent) Edges

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

Edges of the WorkflowEvent

func (WorkflowEvent) Fields

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

Fields of the WorkflowEvent

func (WorkflowEvent) GetType

func (WorkflowEvent) GetType() any

GetType returns the type of the WorkflowEvent schema

func (WorkflowEvent) Mixin

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

Mixin of the WorkflowEvent

func (WorkflowEvent) Modules

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

Modules this schema has access to

func (WorkflowEvent) Name

func (WorkflowEvent) Name() string

Name returns the name of the WorkflowEvent schema

func (WorkflowEvent) PluralName

func (WorkflowEvent) PluralName() string

PluralName returns the plural name of the WorkflowEvent schema

func (WorkflowEvent) Policy

func (WorkflowEvent) Policy() ent.Policy

Policy of the WorkflowEvent

type WorkflowInstance

type WorkflowInstance struct {
	SchemaFuncs
	ent.Schema
}

WorkflowInstance tracks execution of a workflow definition for a specific object

func (WorkflowInstance) Annotations

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

Annotations of the WorkflowInstance

func (WorkflowInstance) Edges

func (w WorkflowInstance) Edges() []ent.Edge

Edges of the WorkflowInstance

func (WorkflowInstance) Fields

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

Fields of the WorkflowInstance

func (WorkflowInstance) GetType

func (WorkflowInstance) GetType() any

GetType returns the type of the WorkflowInstance schema

func (WorkflowInstance) Hooks

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

Hooks of the WorkflowInstance

func (WorkflowInstance) Indexes

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

Indexes of the WorkflowInstance

func (WorkflowInstance) Mixin

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

Mixin of the WorkflowInstance

func (WorkflowInstance) Modules

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

Modules this schema has access to

func (WorkflowInstance) Name

func (WorkflowInstance) Name() string

Name returns the name of the WorkflowInstance schema

func (WorkflowInstance) PluralName

func (WorkflowInstance) PluralName() string

PluralName returns the plural name of the WorkflowInstance schema

func (WorkflowInstance) Policy

func (WorkflowInstance) Policy() ent.Policy

Policy of the WorkflowInstance

type WorkflowObjectRef

type WorkflowObjectRef struct {
	SchemaFuncs
	ent.Schema
}

WorkflowObjectRef is a through table linking workflow instances to workflow-addressable objects.

func (WorkflowObjectRef) Annotations

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

Annotations of the WorkflowObjectRef

func (WorkflowObjectRef) Edges

func (w WorkflowObjectRef) Edges() []ent.Edge

Edges of the WorkflowObjectRef

func (WorkflowObjectRef) Fields

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

Fields of the WorkflowObjectRef

func (WorkflowObjectRef) GetType

func (WorkflowObjectRef) GetType() any

GetType returns the type of the WorkflowObjectRef schema

func (WorkflowObjectRef) Indexes

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

Indexes of the WorkflowObjectRef

func (WorkflowObjectRef) Mixin

func (w WorkflowObjectRef) Mixin() []ent.Mixin

Mixin of the WorkflowObjectRef

func (WorkflowObjectRef) Modules

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

Modules this schema has access to

func (WorkflowObjectRef) Name

func (WorkflowObjectRef) Name() string

Name returns the name of the WorkflowObjectRef schema

func (WorkflowObjectRef) PluralName

func (WorkflowObjectRef) PluralName() string

PluralName returns the plural name of the WorkflowObjectRef schema

func (WorkflowObjectRef) Policy

func (WorkflowObjectRef) Policy() ent.Policy

Policy of the WorkflowObjectRef

type WorkflowProposal

type WorkflowProposal struct {
	SchemaFuncs
	ent.Schema
}

WorkflowProposal stores staged changes for a single object+domain that require approvals.

func (WorkflowProposal) Annotations

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

Annotations returns the annotations for the WorkflowProposal schema

func (WorkflowProposal) Edges

func (w WorkflowProposal) Edges() []ent.Edge

Edges of the WorkflowProposal.

func (WorkflowProposal) Fields

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

Fields of the WorkflowProposal.

func (WorkflowProposal) GetType

func (WorkflowProposal) GetType() any

GetType returns the type of the WorkflowProposal schema.

func (WorkflowProposal) Hooks

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

Hooks returns the hooks for the WorkflowProposal schema

func (WorkflowProposal) Indexes

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

Indexes of the WorkflowProposal.

func (WorkflowProposal) Mixin

func (w WorkflowProposal) Mixin() []ent.Mixin

Mixin of the Integration

func (WorkflowProposal) Modules

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

Modules this schema has access to.

func (WorkflowProposal) Name

func (WorkflowProposal) Name() string

Name returns the name of the WorkflowProposal schema.

func (WorkflowProposal) PluralName

func (WorkflowProposal) PluralName() string

PluralName returns the plural name of the WorkflowProposal schema.

func (WorkflowProposal) Policy

func (WorkflowProposal) Policy() ent.Policy

Policy of the WorkflowProposal

Source Files

Jump to

Keyboard shortcuts

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