schema

package
v0.10.13 Latest Latest
Warning

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

Go to latest
Published: May 2, 2025 License: Apache-2.0 Imports: 44 Imported by: 0

Documentation

Overview

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Package schema contains the ent schema

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Code generated by entx.history, DO NOT EDIT.

Index

Constants

View Source
const SchemaAPIToken = "api_token"
View Source
const SchemaActionPlan = "action_plan"
View Source
const SchemaContact = "contact"
View Source
const SchemaControl = "control"
View Source
const SchemaControlObjective = "control_objective"
View Source
const SchemaDocumentData = "document"
View Source
const SchemaEmailVerificationToken = "email_verification_token"
View Source
const SchemaEntity = "entity"
View Source
const SchemaEntityType = "entity_type"
View Source
const SchemaEvent = "event"
View Source
const SchemaEvidence = "evidence"
View Source
const SchemaFile = "file"
View Source
const SchemaGroup = "group"
View Source
const SchemaGroupMembership = "groupmembership"
View Source
const SchemaGroupSetting = "group_setting"
View Source
const SchemaHush = "secret"
View Source
const SchemaImplementation = "control_implementation"
View Source
const SchemaIntegration = "integration"
View Source
const SchemaInternalPolicy = "internal_policy"
View Source
const SchemaInvite = "invite"
View Source
const SchemaMappedControl = "mapped_control"
View Source
const SchemaNarrative = "narrative"
View Source
const SchemaNote = "note"
View Source
const SchemaOnboarding = "onboarding"
View Source
const SchemaOrgMembership = "orgmembership"
View Source
const SchemaOrgSubscription = "org_subscription"
View Source
const SchemaOrganization = "organization"
View Source
const SchemaOrganizationSetting = "organization_setting"
View Source
const SchemaPasswordResetToken = "password_reset_token"
View Source
const SchemaPersonalAccessToken = "personal_access_token"
View Source
const SchemaProcedure = "procedure"
View Source
const SchemaProgram = "program"
View Source
const SchemaProgramMembership = "programmembership"
View Source
const SchemaRisk = "risk"
View Source
const SchemaStandard = "standard"
View Source
const SchemaSubcontrol = "subcontrol"
View Source
const SchemaSubscriber = "subscriber"
View Source
const SchemaTFASetting = "tfa_setting"
View Source
const SchemaTask = "task"
View Source
const SchemaTemplate = "template"
View Source
const SchemaUser = "user"
View Source
const SchemaUserSetting = "user_setting"
View Source
const SchemaWebauthn = "webauthn"

Variables

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

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

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

Functions

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 (APIToken) Annotations() []schema.Annotation

Annotations of the APIToken

func (APIToken) Fields

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

Fields of the APIToken

func (APIToken) GetType added in v0.8.2

func (APIToken) GetType() any

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 (APIToken) Interceptors() []ent.Interceptor

Interceptors of the APIToken

func (APIToken) Mixin

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

Mixin of the APIToken

func (APIToken) Name added in v0.8.2

func (APIToken) Name() string

func (APIToken) PluralName added in v0.8.2

func (APIToken) PluralName() string

func (APIToken) Policy

func (APIToken) Policy() ent.Policy

Policy of the APIToken

type ActionPlan added in v0.3.3

type ActionPlan struct {
	SchemaFuncs

	ent.Schema
}

ActionPlan defines the actionplan schema.

func (ActionPlan) Annotations added in v0.3.3

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

Annotations of the ActionPlan

func (ActionPlan) Edges added in v0.3.3

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

Edges of the ActionPlan

func (ActionPlan) Fields added in v0.3.3

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

Fields returns actionplan fields.

func (ActionPlan) GetType added in v0.8.2

func (ActionPlan) GetType() any

func (ActionPlan) Mixin added in v0.3.3

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

Mixin of the ActionPlan

func (ActionPlan) Name added in v0.8.2

func (ActionPlan) Name() string

func (ActionPlan) PluralName added in v0.8.2

func (ActionPlan) PluralName() string

func (ActionPlan) Policy added in v0.7.5

func (ActionPlan) Policy() ent.Policy

Policy of the ActionPlan

type ActionPlanHistory added in v0.3.3

type ActionPlanHistory struct {
	ent.Schema
}

ActionPlanHistory holds the schema definition for the ActionPlanHistory entity.

func (ActionPlanHistory) Annotations added in v0.3.3

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

Annotations of the ActionPlanHistory.

func (ActionPlanHistory) Fields added in v0.3.3

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

Fields of the ActionPlanHistory.

func (ActionPlanHistory) Indexes added in v0.3.3

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

Indexes of the ActionPlanHistory

func (ActionPlanHistory) Interceptors added in v0.7.5

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

Interceptors of the ActionPlanHistory

type Contact

type Contact struct {
	SchemaFuncs

	ent.Schema
}

Contact holds the schema definition for the Contact entity

func (Contact) Edges

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

Edges of the Contact

func (Contact) Fields

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

Fields of the Contact

func (Contact) GetType added in v0.8.2

func (Contact) GetType() any

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) Name added in v0.8.2

func (Contact) Name() string

func (Contact) PluralName added in v0.8.2

func (Contact) PluralName() string

func (Contact) Policy

func (Contact) Policy() ent.Policy

Policy of the Contact

type ContactHistory

type ContactHistory struct {
	ent.Schema
}

ContactHistory holds the schema definition for the ContactHistory entity.

func (ContactHistory) Annotations

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

Annotations of the ContactHistory.

func (ContactHistory) Fields

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

Fields of the ContactHistory.

func (ContactHistory) Indexes

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

Indexes of the ContactHistory

func (ContactHistory) Interceptors

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

Interceptors of the ContactHistory

type Control added in v0.3.3

type Control struct {
	SchemaFuncs

	ent.Schema
}

Control defines the control schema.

func (Control) Edges added in v0.3.3

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

Edges of the Control

func (Control) Fields added in v0.3.3

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

Fields returns control fields.

func (Control) GetType added in v0.8.2

func (Control) GetType() any

func (Control) Indexes added in v0.7.3

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

func (Control) Mixin added in v0.3.3

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

Mixin of the Control

func (Control) Name added in v0.8.2

func (Control) Name() string

func (Control) PluralName added in v0.8.2

func (Control) PluralName() string

func (Control) Policy added in v0.5.0

func (Control) Policy() ent.Policy

Policy of the Control

type ControlHistory added in v0.3.3

type ControlHistory struct {
	ent.Schema
}

ControlHistory holds the schema definition for the ControlHistory entity.

func (ControlHistory) Annotations added in v0.3.3

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

Annotations of the ControlHistory.

func (ControlHistory) Fields added in v0.3.3

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

Fields of the ControlHistory.

func (ControlHistory) Indexes added in v0.3.3

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

Indexes of the ControlHistory

func (ControlHistory) Interceptors added in v0.5.0

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

Interceptors of the ControlHistory

type ControlImplementation added in v0.7.3

type ControlImplementation struct {
	SchemaFuncs

	ent.Schema
}

ControlImplementation holds the schema definition for the ControlImplementation entity

func (ControlImplementation) Annotations added in v0.7.3

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

Annotations of the ControlImplementation

func (ControlImplementation) Edges added in v0.7.3

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

Edges of the ControlImplementation

func (ControlImplementation) Fields added in v0.7.3

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

Fields of the ControlImplementation

func (ControlImplementation) GetType added in v0.8.2

func (ControlImplementation) GetType() any

func (ControlImplementation) Hooks added in v0.8.10

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

Hooks of the ControlImplementation

func (ControlImplementation) Mixin added in v0.7.3

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

Mixin of the ControlImplementation

func (ControlImplementation) Name added in v0.8.2

func (ControlImplementation) PluralName added in v0.8.2

func (ControlImplementation) PluralName() string

func (ControlImplementation) Policy added in v0.7.3

func (ControlImplementation) Policy() ent.Policy

Policy of the ControlImplementation

type ControlImplementationHistory added in v0.7.3

type ControlImplementationHistory struct {
	ent.Schema
}

ControlImplementationHistory holds the schema definition for the ControlImplementationHistory entity.

func (ControlImplementationHistory) Annotations added in v0.7.3

Annotations of the ControlImplementationHistory.

func (ControlImplementationHistory) Fields added in v0.7.3

Fields of the ControlImplementationHistory.

func (ControlImplementationHistory) Indexes added in v0.7.3

Indexes of the ControlImplementationHistory

func (ControlImplementationHistory) Interceptors added in v0.7.3

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

Interceptors of the ControlImplementationHistory

type ControlMixin added in v0.8.9

type ControlMixin struct {
	mixin.Schema

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

ControlMixin implements the control pattern fields for different schemas.

func (ControlMixin) Annotations added in v0.8.9

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

Annotations of the Control

func (ControlMixin) Edges added in v0.8.9

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

Edges of the ControlMixin.

func (ControlMixin) Fields added in v0.8.9

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

Fields of the ControlMixin.

func (ControlMixin) Hooks added in v0.8.9

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

type ControlObjective added in v0.3.3

type ControlObjective struct {
	SchemaFuncs

	ent.Schema
}

ControlObjective defines the controlobjective schema.

func (ControlObjective) Annotations added in v0.3.3

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

Annotations of the ControlObjective

func (ControlObjective) Edges added in v0.3.3

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

Edges of the ControlObjective

func (ControlObjective) Fields added in v0.3.3

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

Fields returns controlobjective fields.

func (ControlObjective) GetType added in v0.8.2

func (ControlObjective) GetType() any

func (ControlObjective) Mixin added in v0.3.3

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

Mixin of the ControlObjective

func (ControlObjective) Name added in v0.8.2

func (ControlObjective) Name() string

func (ControlObjective) PluralName added in v0.8.2

func (ControlObjective) PluralName() string

func (ControlObjective) Policy added in v0.4.4

func (ControlObjective) Policy() ent.Policy

Policy of the ControlObjective

type ControlObjectiveHistory added in v0.3.3

type ControlObjectiveHistory struct {
	ent.Schema
}

ControlObjectiveHistory holds the schema definition for the ControlObjectiveHistory entity.

func (ControlObjectiveHistory) Annotations added in v0.3.3

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

Annotations of the ControlObjectiveHistory.

func (ControlObjectiveHistory) Fields added in v0.3.3

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

Fields of the ControlObjectiveHistory.

func (ControlObjectiveHistory) Indexes added in v0.3.3

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

Indexes of the ControlObjectiveHistory

func (ControlObjectiveHistory) Interceptors added in v0.4.4

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

Interceptors of the ControlObjectiveHistory

type DocumentData

type DocumentData struct {
	SchemaFuncs

	ent.Schema
}

DocumentData holds the schema definition for the DocumentData entity

func (DocumentData) Annotations

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

Annotations of the DocumentData

func (DocumentData) Edges

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

Edges of the DocumentData

func (DocumentData) Fields

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

Fields of the DocumentData

func (DocumentData) GetType added in v0.8.2

func (DocumentData) GetType() any

func (DocumentData) Mixin

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

Mixin of the DocumentData

func (DocumentData) Name added in v0.8.2

func (DocumentData) Name() string

func (DocumentData) PluralName added in v0.8.2

func (DocumentData) PluralName() string

func (DocumentData) Policy

func (DocumentData) Policy() ent.Policy

Policy of the DocumentData

type DocumentDataHistory

type DocumentDataHistory struct {
	ent.Schema
}

DocumentDataHistory holds the schema definition for the DocumentDataHistory entity.

func (DocumentDataHistory) Annotations

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

Annotations of the DocumentDataHistory.

func (DocumentDataHistory) Fields

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

Fields of the DocumentDataHistory.

func (DocumentDataHistory) Indexes

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

Indexes of the DocumentDataHistory

func (DocumentDataHistory) Interceptors

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

Interceptors of the DocumentDataHistory

type DocumentMixin added in v0.7.5

type DocumentMixin struct {
	mixin.Schema

	DocumentType string
}

DocumentMixin implements the document pattern with approver for schemas.

func NewDocumentMixin added in v0.8.3

func NewDocumentMixin(schema any) DocumentMixin

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

func (DocumentMixin) Edges added in v0.7.5

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

Edges of the DocumentMixin.

func (DocumentMixin) Fields added in v0.7.5

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

Fields of the DocumentMixin.

func (DocumentMixin) Hooks added in v0.7.5

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

Hooks of the DocumentMixin.

type EdgeInfo added in v0.5.0

type EdgeInfo struct {
	Schema          any
	ViewPermissions bool
}

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

type EmailVerificationToken

type EmailVerificationToken struct {
	SchemaFuncs

	ent.Schema
}

EmailVerificationToken holds the schema definition for the EmailVerificationToken entity

func (EmailVerificationToken) Annotations

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

Annotations of the EmailVerificationToken

func (EmailVerificationToken) Edges

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

Edges of the EmailVerificationToken

func (EmailVerificationToken) Fields

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

Fields of the EmailVerificationToken

func (EmailVerificationToken) GetType added in v0.8.2

func (EmailVerificationToken) GetType() any

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) Name added in v0.8.2

func (EmailVerificationToken) PluralName added in v0.8.2

func (EmailVerificationToken) PluralName() string

func (EmailVerificationToken) Policy

Policy of the EmailVerificationToken

type Entity

type Entity struct {
	SchemaFuncs

	ent.Schema
}

Entity holds the schema definition for the Entity entity

func (Entity) Edges

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

Edges of the Entity

func (Entity) Fields

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

Fields of the Entity

func (Entity) GetType added in v0.8.2

func (Entity) GetType() any

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) Name added in v0.8.2

func (Entity) Name() string

func (Entity) PluralName added in v0.8.2

func (Entity) PluralName() string

func (Entity) Policy

func (Entity) Policy() ent.Policy

Policy of the Entity

type EntityHistory

type EntityHistory struct {
	ent.Schema
}

EntityHistory holds the schema definition for the EntityHistory entity.

func (EntityHistory) Annotations

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

Annotations of the EntityHistory.

func (EntityHistory) Fields

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

Fields of the EntityHistory.

func (EntityHistory) Indexes

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

Indexes of the EntityHistory

func (EntityHistory) Interceptors

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

Interceptors of the EntityHistory

type EntityType

type EntityType struct {
	SchemaFuncs

	ent.Schema
}

EntityType holds the schema definition for the EntityType entity

func (EntityType) Edges

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

Edges of the EntityType

func (EntityType) Fields

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

Fields of the EntityType

func (EntityType) GetType added in v0.8.2

func (EntityType) GetType() any

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) Name added in v0.8.2

func (EntityType) Name() string

func (EntityType) PluralName added in v0.8.2

func (EntityType) PluralName() string

func (EntityType) Policy

func (EntityType) Policy() ent.Policy

Policy of the EntityType

type EntityTypeHistory

type EntityTypeHistory struct {
	ent.Schema
}

EntityTypeHistory holds the schema definition for the EntityTypeHistory entity.

func (EntityTypeHistory) Annotations

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

Annotations of the EntityTypeHistory.

func (EntityTypeHistory) Fields

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

Fields of the EntityTypeHistory.

func (EntityTypeHistory) Indexes

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

Indexes of the EntityTypeHistory

func (EntityTypeHistory) Interceptors

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

Interceptors of the EntityTypeHistory

type Event

type Event struct {
	SchemaFuncs

	ent.Schema
}

Event holds the schema definition for the Event entity

func (Event) Annotations

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

Annotations of the Event

func (Event) Edges

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

Edges of the Event

func (Event) Fields

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

Fields of the Event

func (Event) GetType added in v0.8.2

func (Event) GetType() any

func (Event) Mixin

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

Mixin of the Event

func (Event) Name added in v0.8.2

func (Event) Name() string

func (Event) PluralName added in v0.8.2

func (Event) PluralName() string

type EventHistory

type EventHistory struct {
	ent.Schema
}

EventHistory holds the schema definition for the EventHistory entity.

func (EventHistory) Annotations

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

Annotations of the EventHistory.

func (EventHistory) Fields

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

Fields of the EventHistory.

func (EventHistory) Indexes

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

Indexes of the EventHistory

type Evidence added in v0.6.19

type Evidence struct {
	SchemaFuncs

	ent.Schema
}

Evidence holds the schema definition for the Evidence entity

func (Evidence) Annotations added in v0.6.19

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

Annotations of the Evidence

func (Evidence) Edges added in v0.6.19

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

Edges of the Evidence

func (Evidence) Fields added in v0.6.19

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

Fields of the Evidence

func (Evidence) GetType added in v0.8.2

func (Evidence) GetType() any

func (Evidence) Hooks added in v0.6.19

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

Hooks of the Evidence

func (Evidence) Mixin added in v0.6.19

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

Mixin of the Evidence

func (Evidence) Name added in v0.8.2

func (Evidence) Name() string

func (Evidence) PluralName added in v0.8.2

func (Evidence) PluralName() string

func (Evidence) Policy added in v0.6.19

func (Evidence) Policy() ent.Policy

Policy of the Evidence

type EvidenceHistory added in v0.6.19

type EvidenceHistory struct {
	ent.Schema
}

EvidenceHistory holds the schema definition for the EvidenceHistory entity.

func (EvidenceHistory) Annotations added in v0.6.19

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

Annotations of the EvidenceHistory.

func (EvidenceHistory) Fields added in v0.6.19

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

Fields of the EvidenceHistory.

func (EvidenceHistory) Indexes added in v0.6.19

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

Indexes of the EvidenceHistory

func (EvidenceHistory) Interceptors added in v0.6.19

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

Interceptors of the EvidenceHistory

type File

type File struct {
	SchemaFuncs

	ent.Schema
}

File defines the file schema.

func (File) Annotations

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

Annotations of the File

func (File) Edges

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

Edges of the File

func (File) Fields

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

Fields returns file fields.

func (File) GetType added in v0.8.2

func (File) GetType() any

func (File) Interceptors added in v0.6.10

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

Interceptors of the File

func (File) Mixin

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

Mixin of the File

func (File) Name added in v0.8.2

func (File) Name() string

func (File) PluralName added in v0.8.2

func (File) PluralName() string

func (File) Policy added in v0.3.1

func (File) Policy() ent.Policy

Policy of the File

type FileHistory

type FileHistory struct {
	ent.Schema
}

FileHistory holds the schema definition for the FileHistory entity.

func (FileHistory) Annotations

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

Annotations of the FileHistory.

func (FileHistory) Fields

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

Fields of the FileHistory.

func (FileHistory) Indexes

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

Indexes of the FileHistory

func (FileHistory) Interceptors added in v0.3.1

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

Interceptors of the FileHistory

type Group

type Group struct {
	SchemaFuncs

	ent.Schema
}

Group holds the schema definition for the Group entity

func (Group) Annotations

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

Annotations of the Group

func (Group) Edges

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

Edges of the Group

func (Group) Fields

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

Fields of the Group

func (Group) GetType added in v0.8.2

func (Group) GetType() any

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 (Group) Interceptors() []ent.Interceptor

Interceptors of the Group

func (Group) Mixin

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

Mixin of the Group

func (Group) Name added in v0.8.2

func (Group) Name() string

func (Group) PluralName added in v0.8.2

func (Group) PluralName() string

func (Group) Policy

func (Group) Policy() ent.Policy

Policy of the group

type GroupBasedCreateAccessMixin added in v0.5.0

type GroupBasedCreateAccessMixin struct {
	mixin.Schema
}

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

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

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

func NewGroupBasedCreateAccessMixin added in v0.5.0

func NewGroupBasedCreateAccessMixin() GroupBasedCreateAccessMixin

NewGroupBasedCreateAccessMixin creates a new GroupBasedCreateAccessMixin with the specified edges

func (GroupBasedCreateAccessMixin) Edges added in v0.5.0

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

Edges of the GroupBasedCreateAccessMixin

func (GroupBasedCreateAccessMixin) Hooks added in v0.5.0

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

Hooks of the GroupBasedCreateAccessMixin

type GroupHistory

type GroupHistory struct {
	ent.Schema
}

GroupHistory holds the schema definition for the GroupHistory entity.

func (GroupHistory) Annotations

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

Annotations of the GroupHistory.

func (GroupHistory) Fields

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

Fields of the GroupHistory.

func (GroupHistory) Indexes

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

Indexes of the GroupHistory

func (GroupHistory) Interceptors

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

Interceptors of the GroupHistory

type GroupMembership

type GroupMembership struct {
	SchemaFuncs

	ent.Schema
}

GroupMembership holds the schema definition for the GroupMembership entity

func (GroupMembership) Annotations

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

Annotations of the GroupMembership

func (GroupMembership) Edges

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

Edges of the GroupMembership

func (GroupMembership) Fields

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

Fields of the GroupMembership

func (GroupMembership) GetType added in v0.8.2

func (GroupMembership) GetType() any

func (GroupMembership) Hooks

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

Hooks of the GroupMembership

func (GroupMembership) Indexes

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

Indexes of the GroupMembership

func (GroupMembership) Interceptors added in v0.7.0

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

Interceptors of the GroupMembership

func (GroupMembership) Mixin

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

Mixin of the GroupMembership

func (GroupMembership) Name added in v0.8.2

func (GroupMembership) Name() string

func (GroupMembership) PluralName added in v0.8.2

func (GroupMembership) PluralName() string

func (GroupMembership) Policy

func (GroupMembership) Policy() ent.Policy

Policy of the GroupMembership

type GroupMembershipHistory

type GroupMembershipHistory struct {
	ent.Schema
}

GroupMembershipHistory holds the schema definition for the GroupMembershipHistory entity.

func (GroupMembershipHistory) Annotations

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

Annotations of the GroupMembershipHistory.

func (GroupMembershipHistory) Fields

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

Fields of the GroupMembershipHistory.

func (GroupMembershipHistory) Indexes

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

Indexes of the GroupMembershipHistory

func (GroupMembershipHistory) Interceptors

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

Interceptors of the GroupMembershipHistory

type GroupPermissionsEdgesMixin added in v0.5.0

type GroupPermissionsEdgesMixin struct {
	mixin.Schema

	EdgeInfo []EdgeInfo
}

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

func (GroupPermissionsEdgesMixin) Edges added in v0.5.0

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

Edges of the GroupPermissionsEdgesMixin

func (GroupPermissionsEdgesMixin) Hooks added in v0.6.21

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

Hooks of the GroupPermissionsEdgesMixin

type GroupPermissionsMixin added in v0.4.4

type GroupPermissionsMixin struct {
	mixin.Schema

	// ViewPermissions adds view permission for a group
	ViewPermissions bool
}

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

func (GroupPermissionsMixin) Edges added in v0.4.4

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

Edges of the GroupPermissionsMixin

func (GroupPermissionsMixin) Hooks added in v0.4.4

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

Hooks of the GroupPermissionsMixin

type GroupSetting

type GroupSetting struct {
	SchemaFuncs

	ent.Schema
}

GroupSetting holds the schema definition for the GroupSetting entity

func (GroupSetting) Annotations

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

Annotations of the GroupSetting

func (GroupSetting) Edges

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

Edges of the GroupSetting

func (GroupSetting) Fields

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

Fields of the GroupSetting.

func (GroupSetting) GetType added in v0.8.2

func (GroupSetting) GetType() any

func (GroupSetting) Hooks added in v0.7.0

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

Hooks of the GroupSetting

func (GroupSetting) Interceptors added in v0.7.0

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

Interceptors of the GroupSetting

func (GroupSetting) Mixin

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

Mixin of the GroupSetting

func (GroupSetting) Name added in v0.8.2

func (GroupSetting) Name() string

func (GroupSetting) PluralName added in v0.8.2

func (GroupSetting) PluralName() string

func (GroupSetting) Policy

func (GroupSetting) Policy() ent.Policy

Policy defines the privacy policy of the GroupSetting

type GroupSettingHistory

type GroupSettingHistory struct {
	ent.Schema
}

GroupSettingHistory holds the schema definition for the GroupSettingHistory entity.

func (GroupSettingHistory) Annotations

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

Annotations of the GroupSettingHistory.

func (GroupSettingHistory) Fields

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

Fields of the GroupSettingHistory.

func (GroupSettingHistory) Indexes

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

Indexes of the GroupSettingHistory

func (GroupSettingHistory) Interceptors

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

Interceptors of the GroupSettingHistory

type HookFunc added in v0.3.1

type HookFunc func(o ObjectOwnedMixin) ent.Hook

type Hush

type Hush struct {
	SchemaFuncs

	ent.Schema
}

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

func (Hush) Annotations

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

Annotations of the Hushhh

func (Hush) Edges

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

Edges of the Hush

func (Hush) Fields

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

Fields of the Hush

func (Hush) GetType added in v0.8.2

func (Hush) GetType() any

func (Hush) Hooks

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

Hooks of the Hush

func (Hush) Interceptors

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

Interceptors of the Hush

func (Hush) Mixin

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

Mixin of the Hush shhhh

func (Hush) Name added in v0.8.2

func (Hush) Name() string

func (Hush) PluralName added in v0.8.2

func (Hush) PluralName() string

type HushHistory

type HushHistory struct {
	ent.Schema
}

HushHistory holds the schema definition for the HushHistory entity.

func (HushHistory) Annotations

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

Annotations of the HushHistory.

func (HushHistory) Fields

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

Fields of the HushHistory.

func (HushHistory) Indexes

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

Indexes of the HushHistory

type Integration

type Integration struct {
	SchemaFuncs

	ent.Schema
}

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

func (Integration) Edges

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

Edges of the Integration

func (Integration) Fields

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

Fields of the Integration

func (Integration) GetType added in v0.8.2

func (Integration) GetType() any

func (Integration) Mixin

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

Mixin of the Integration

func (Integration) Name added in v0.8.2

func (Integration) Name() string

func (Integration) PluralName added in v0.8.2

func (Integration) PluralName() string

func (Integration) Policy

func (Integration) Policy() ent.Policy

Policy of the Integration

type IntegrationHistory

type IntegrationHistory struct {
	ent.Schema
}

IntegrationHistory holds the schema definition for the IntegrationHistory entity.

func (IntegrationHistory) Annotations

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

Annotations of the IntegrationHistory.

func (IntegrationHistory) Fields

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

Fields of the IntegrationHistory.

func (IntegrationHistory) Indexes

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

Indexes of the IntegrationHistory

func (IntegrationHistory) Interceptors

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

Interceptors of the IntegrationHistory

type InterceptorFunc added in v0.3.1

type InterceptorFunc func(o ObjectOwnedMixin) ent.Interceptor

type InternalPolicy added in v0.3.3

type InternalPolicy struct {
	SchemaFuncs

	ent.Schema
}

InternalPolicy defines the policy schema.

func (InternalPolicy) Annotations added in v0.3.3

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

Annotations of the InternalPolicy

func (InternalPolicy) Edges added in v0.3.3

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

Edges of the InternalPolicy

func (InternalPolicy) Fields added in v0.3.3

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

Fields returns policy fields.

func (InternalPolicy) GetType added in v0.8.2

func (InternalPolicy) GetType() any

func (InternalPolicy) Hooks added in v0.4.2

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

Hooks of the InternalPolicy

func (InternalPolicy) Interceptors added in v0.4.2

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

Interceptors of the InternalPolicy

func (InternalPolicy) Mixin added in v0.3.3

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

Mixin of the InternalPolicy

func (InternalPolicy) Name added in v0.8.2

func (InternalPolicy) Name() string

func (InternalPolicy) PluralName added in v0.8.2

func (InternalPolicy) PluralName() string

func (InternalPolicy) Policy added in v0.4.2

func (InternalPolicy) Policy() ent.Policy

Policy of the InternalPolicy

type InternalPolicyHistory added in v0.3.3

type InternalPolicyHistory struct {
	ent.Schema
}

InternalPolicyHistory holds the schema definition for the InternalPolicyHistory entity.

func (InternalPolicyHistory) Annotations added in v0.3.3

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

Annotations of the InternalPolicyHistory.

func (InternalPolicyHistory) Fields added in v0.3.3

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

Fields of the InternalPolicyHistory.

func (InternalPolicyHistory) Indexes added in v0.3.3

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

Indexes of the InternalPolicyHistory

func (InternalPolicyHistory) Interceptors added in v0.4.2

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

Interceptors of the InternalPolicyHistory

type Invite

type Invite struct {
	SchemaFuncs

	ent.Schema
}

Invite holds the schema definition for the Invite entity

func (Invite) Annotations

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

Annotations of the Invite

func (Invite) Edges

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

Edges of the Invite

func (Invite) Fields

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

Fields of the Invite

func (Invite) GetType added in v0.8.2

func (Invite) GetType() any

func (Invite) Hooks

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

Hooks of the Invite

func (Invite) Indexes

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

Indexes of the Invite

func (Invite) Mixin

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

Mixin of the Invite

func (Invite) Name added in v0.8.2

func (Invite) Name() string

func (Invite) PluralName added in v0.8.2

func (Invite) PluralName() string

func (Invite) Policy

func (Invite) Policy() ent.Policy

Policy of the Invite

type MappedControl added in v0.7.3

type MappedControl struct {
	SchemaFuncs

	ent.Schema
}

MappedControl holds the schema definition for the MappedControl entity

func (MappedControl) Annotations added in v0.7.3

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

Annotations of the MappedControl

func (MappedControl) Edges added in v0.7.3

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

Edges of the MappedControl

func (MappedControl) Fields added in v0.7.3

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

Fields of the MappedControl

func (MappedControl) GetType added in v0.8.2

func (MappedControl) GetType() any

func (MappedControl) Hooks added in v0.7.3

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

Hooks of the MappedControl

func (MappedControl) Interceptors added in v0.7.3

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

Interceptors of the MappedControl

func (MappedControl) Mixin added in v0.7.3

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

Mixin of the MappedControl

func (MappedControl) Name added in v0.8.2

func (MappedControl) Name() string

func (MappedControl) PluralName added in v0.8.2

func (MappedControl) PluralName() string

func (MappedControl) Policy added in v0.7.3

func (MappedControl) Policy() ent.Policy

Policy of the MappedControl

type MappedControlHistory added in v0.7.3

type MappedControlHistory struct {
	ent.Schema
}

MappedControlHistory holds the schema definition for the MappedControlHistory entity.

func (MappedControlHistory) Annotations added in v0.7.3

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

Annotations of the MappedControlHistory.

func (MappedControlHistory) Fields added in v0.7.3

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

Fields of the MappedControlHistory.

func (MappedControlHistory) Indexes added in v0.7.3

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

Indexes of the MappedControlHistory

func (MappedControlHistory) Interceptors added in v0.7.3

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

Interceptors of the MappedControlHistory

type Narrative added in v0.3.3

type Narrative struct {
	SchemaFuncs

	ent.Schema
}

Narrative defines the narrative schema

func (Narrative) Annotations added in v0.3.3

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

Annotations of the Narrative

func (Narrative) Edges added in v0.3.3

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

Edges of the Narrative

func (Narrative) Fields added in v0.3.3

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

Fields returns narrative fields

func (Narrative) GetType added in v0.8.2

func (Narrative) GetType() any

func (Narrative) Mixin added in v0.3.3

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

Mixin of the Narrative

func (Narrative) Name added in v0.8.2

func (Narrative) Name() string

func (Narrative) PluralName added in v0.8.2

func (Narrative) PluralName() string

func (Narrative) Policy added in v0.4.4

func (Narrative) Policy() ent.Policy

Policy of the Narrative

type NarrativeHistory added in v0.3.3

type NarrativeHistory struct {
	ent.Schema
}

NarrativeHistory holds the schema definition for the NarrativeHistory entity.

func (NarrativeHistory) Annotations added in v0.3.3

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

Annotations of the NarrativeHistory.

func (NarrativeHistory) Fields added in v0.3.3

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

Fields of the NarrativeHistory.

func (NarrativeHistory) Indexes added in v0.3.3

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

Indexes of the NarrativeHistory

func (NarrativeHistory) Interceptors added in v0.4.4

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

Interceptors of the NarrativeHistory

type Note

type Note struct {
	SchemaFuncs

	ent.Schema
}

Note holds the schema definition for the Note entity

func (Note) Annotations

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

Annotations of the Note

func (Note) Edges

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

Edges of the Note

func (Note) Fields

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

Fields of the Note

func (Note) GetType added in v0.8.2

func (Note) GetType() any

func (Note) Hooks

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

Hooks of the Note

func (Note) Mixin

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

Mixin of the Note

func (Note) Name added in v0.8.2

func (Note) Name() string

func (Note) PluralName added in v0.8.2

func (Note) PluralName() string

func (Note) Policy

func (Note) Policy() ent.Policy

Policy of the Note

type NoteHistory

type NoteHistory struct {
	ent.Schema
}

NoteHistory holds the schema definition for the NoteHistory entity.

func (NoteHistory) Annotations

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

Annotations of the NoteHistory.

func (NoteHistory) Fields

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

Fields of the NoteHistory.

func (NoteHistory) Indexes

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

Indexes of the NoteHistory

func (NoteHistory) Interceptors

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

Interceptors of the NoteHistory

type ObjectOwnedMixin added in v0.3.1

type ObjectOwnedMixin struct {
	mixin.Schema
	// Ref table for the id
	Ref string
	// Kind of the object, only used for Organization owned flavors, its set by default either
	// with the OrgOwnedMixin or using the withOrganizationOwner option
	Kind any
	// FieldNames are the name of the field in the schema that can own / controls permissions of the object, e.g. "owner_id" or "program_id"
	FieldNames []string
	// OwnerRelation is the relation of the owner (user or service) that created the object, defaults to "parent"
	OwnerRelation string
	// AllowEmptyForSystemAdmin allows the owner id field to be empty for system admins
	AllowEmptyForSystemAdmin bool
	// 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
	// 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
}

ObjectOwnedMixin is a mixin for object owned entities

func (ObjectOwnedMixin) Edges added in v0.3.1

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

Edges of the ObjectOwnedMixin

func (ObjectOwnedMixin) Fields added in v0.3.1

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

Fields of the ObjectOwnedMixin

func (ObjectOwnedMixin) Hooks added in v0.3.1

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

Hooks of the ObjectOwnedMixin

func (ObjectOwnedMixin) Interceptors added in v0.3.1

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

Interceptors of the ObjectOwnedMixin

func (ObjectOwnedMixin) P added in v0.3.1

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

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

func (ObjectOwnedMixin) PWithField added in v0.7.5

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

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

type Onboarding added in v0.6.24

type Onboarding struct {
	SchemaFuncs

	ent.Schema
}

Onboarding holds the schema definition for the Onboarding entity

func (Onboarding) Annotations added in v0.6.24

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

Annotations of the Onboarding

func (Onboarding) Edges added in v0.6.24

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

Edges of the Onboarding

func (Onboarding) Fields added in v0.6.24

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

Fields of the Onboarding

func (Onboarding) GetType added in v0.8.2

func (Onboarding) GetType() any

func (Onboarding) Hooks added in v0.6.24

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

Hooks of the Onboarding

func (Onboarding) Mixin added in v0.6.24

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

Mixin of the Onboarding

func (Onboarding) Name added in v0.8.2

func (Onboarding) Name() string

func (Onboarding) PluralName added in v0.8.2

func (Onboarding) PluralName() string

func (Onboarding) Policy added in v0.6.24

func (Onboarding) Policy() ent.Policy

Policy of the Onboarding

type OrgMembership

type OrgMembership struct {
	SchemaFuncs

	ent.Schema
}

OrgMembership holds the schema definition for the OrgMembership entity

func (OrgMembership) Annotations

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

Annotations of the OrgMembership

func (OrgMembership) Edges

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

Edges of the OrgMembership

func (OrgMembership) Fields

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

Fields of the OrgMembership

func (OrgMembership) GetType added in v0.8.2

func (OrgMembership) GetType() any

func (OrgMembership) Hooks

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

Hooks of the OrgMembership

func (OrgMembership) Indexes

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

func (OrgMembership) Interceptors

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

Interceptors of the OrgMembership

func (OrgMembership) Mixin

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

Mixin of the OrgMembership

func (OrgMembership) Name added in v0.8.2

func (OrgMembership) Name() string

func (OrgMembership) PluralName added in v0.8.2

func (OrgMembership) PluralName() string

func (OrgMembership) Policy

func (OrgMembership) Policy() ent.Policy

Policy of the OrgMembership

type OrgMembershipHistory

type OrgMembershipHistory struct {
	ent.Schema
}

OrgMembershipHistory holds the schema definition for the OrgMembershipHistory entity.

func (OrgMembershipHistory) Annotations

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

Annotations of the OrgMembershipHistory.

func (OrgMembershipHistory) Fields

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

Fields of the OrgMembershipHistory.

func (OrgMembershipHistory) Indexes

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

Indexes of the OrgMembershipHistory

func (OrgMembershipHistory) Interceptors

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

Interceptors of the OrgMembershipHistory

type OrgSubscription added in v0.5.1

type OrgSubscription struct {
	SchemaFuncs

	ent.Schema
}

OrgSubscription holds the schema definition for the OrgSubscription entity

func (OrgSubscription) Annotations added in v0.5.1

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

Annotations of the OrgSubscription

func (OrgSubscription) Edges added in v0.5.1

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

Edges of the OrgSubscription

func (OrgSubscription) Fields added in v0.5.1

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

Fields of the OrgSubscription

func (OrgSubscription) GetType added in v0.8.2

func (OrgSubscription) GetType() any

func (OrgSubscription) Interceptors added in v0.5.1

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

Interceptors of the OrgSubscription

func (OrgSubscription) Mixin added in v0.5.1

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

Mixin of the OrgSubscription

func (OrgSubscription) Name added in v0.8.2

func (OrgSubscription) Name() string

func (OrgSubscription) PluralName added in v0.8.2

func (OrgSubscription) PluralName() string

type OrgSubscriptionHistory added in v0.5.1

type OrgSubscriptionHistory struct {
	ent.Schema
}

OrgSubscriptionHistory holds the schema definition for the OrgSubscriptionHistory entity.

func (OrgSubscriptionHistory) Annotations added in v0.5.1

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

Annotations of the OrgSubscriptionHistory.

func (OrgSubscriptionHistory) Fields added in v0.5.1

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

Fields of the OrgSubscriptionHistory.

func (OrgSubscriptionHistory) Indexes added in v0.5.1

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

Indexes of the OrgSubscriptionHistory

type Organization

type Organization struct {
	SchemaFuncs

	ent.Schema
}

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

func (Organization) Annotations

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

Annotations of the Organization

func (Organization) Edges

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

Edges of the Organization

func (Organization) Fields

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

Fields of the Organization

func (Organization) GetType added in v0.8.2

func (Organization) GetType() any

func (Organization) Hooks

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

Hooks of the Organization

func (Organization) Indexes

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

func (Organization) Interceptors

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

Interceptors of the Organization

func (Organization) Mixin

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

Mixin of the Organization

func (Organization) Name added in v0.8.2

func (Organization) Name() string

func (Organization) PluralName added in v0.8.2

func (Organization) PluralName() string

func (Organization) Policy

func (Organization) Policy() ent.Policy

Policy defines the privacy policy of the Organization.

type OrganizationHistory

type OrganizationHistory struct {
	ent.Schema
}

OrganizationHistory holds the schema definition for the OrganizationHistory entity.

func (OrganizationHistory) Annotations

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

Annotations of the OrganizationHistory.

func (OrganizationHistory) Fields

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

Fields of the OrganizationHistory.

func (OrganizationHistory) Indexes

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

Indexes of the OrganizationHistory

func (OrganizationHistory) Interceptors

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

Interceptors of the OrganizationHistory

type OrganizationSetting

type OrganizationSetting struct {
	SchemaFuncs

	ent.Schema
}

OrganizationSetting holds the schema definition for the OrganizationSetting entity

func (OrganizationSetting) Annotations

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

Annotations of the OrganizationSetting

func (OrganizationSetting) Edges

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

Edges of the OrganizationSetting

func (OrganizationSetting) Fields

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

Fields of the OrganizationSetting

func (OrganizationSetting) GetType added in v0.8.2

func (OrganizationSetting) GetType() any

func (OrganizationSetting) Hooks added in v0.7.0

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

Hooks of the OrganizationSetting

func (OrganizationSetting) Interceptors

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

Interceptors of the OrganizationSetting

func (OrganizationSetting) Mixin

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

Mixin of the OrganizationSetting

func (OrganizationSetting) Name added in v0.8.2

func (OrganizationSetting) Name() string

func (OrganizationSetting) PluralName added in v0.8.2

func (OrganizationSetting) PluralName() string

func (OrganizationSetting) Policy

func (OrganizationSetting) Policy() ent.Policy

Policy defines the privacy policy of the OrganizationSetting

type OrganizationSettingHistory

type OrganizationSettingHistory struct {
	ent.Schema
}

OrganizationSettingHistory holds the schema definition for the OrganizationSettingHistory entity.

func (OrganizationSettingHistory) Annotations

Annotations of the OrganizationSettingHistory.

func (OrganizationSettingHistory) Fields

Fields of the OrganizationSettingHistory.

func (OrganizationSettingHistory) Indexes

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

Indexes of the OrganizationSettingHistory

func (OrganizationSettingHistory) Interceptors

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

Interceptors of the OrganizationSettingHistory

type PasswordResetToken

type PasswordResetToken struct {
	SchemaFuncs

	ent.Schema
}

PasswordResetToken holds the schema definition for the PasswordResetToken entity

func (PasswordResetToken) Annotations

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

Annotations of the PasswordResetToken

func (PasswordResetToken) Fields

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

Fields of the PasswordResetToken

func (PasswordResetToken) GetType added in v0.8.2

func (PasswordResetToken) GetType() any

func (PasswordResetToken) Hooks

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

Hooks of the PasswordResetToken

func (PasswordResetToken) Indexes

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

Indexes of the PasswordResetToken

func (PasswordResetToken) Mixin

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

Mixin of the PasswordResetToken

func (PasswordResetToken) Name added in v0.8.2

func (PasswordResetToken) Name() string

func (PasswordResetToken) PluralName added in v0.8.2

func (PasswordResetToken) PluralName() string

func (PasswordResetToken) Policy

func (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 (PersonalAccessToken) Annotations() []schema.Annotation

Annotations of the PersonalAccessToken

func (PersonalAccessToken) Edges

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

Edges of the PersonalAccessToken

func (PersonalAccessToken) Fields

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

Fields of the PersonalAccessToken

func (PersonalAccessToken) GetType added in v0.8.2

func (PersonalAccessToken) GetType() any

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 (PersonalAccessToken) Interceptors() []ent.Interceptor

Interceptors of the PersonalAccessToken

func (PersonalAccessToken) Mixin

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

Mixin of the PersonalAccessToken

func (PersonalAccessToken) Name added in v0.8.2

func (PersonalAccessToken) Name() string

func (PersonalAccessToken) PluralName added in v0.8.2

func (PersonalAccessToken) PluralName() string

func (PersonalAccessToken) Policy

func (PersonalAccessToken) Policy() ent.Policy

Policy of the PersonalAccessToken

type Procedure added in v0.3.3

type Procedure struct {
	SchemaFuncs

	ent.Schema
}

Procedure defines the procedure schema.

func (Procedure) Annotations added in v0.3.3

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

Annotations of the Procedure

func (Procedure) Edges added in v0.3.3

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

Edges of the Procedure

func (Procedure) Fields added in v0.3.3

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

Fields returns procedure fields.

func (Procedure) GetType added in v0.8.2

func (Procedure) GetType() any

func (Procedure) Hooks added in v0.4.2

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

Hooks of the Procedure

func (Procedure) Interceptors added in v0.4.2

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

Interceptors of the Procedure

func (Procedure) Mixin added in v0.3.3

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

Mixin of the Procedure

func (Procedure) Name added in v0.8.2

func (Procedure) Name() string

func (Procedure) PluralName added in v0.8.2

func (Procedure) PluralName() string

func (Procedure) Policy added in v0.4.2

func (Procedure) Policy() ent.Policy

Policy of the Procedure

type ProcedureHistory added in v0.3.3

type ProcedureHistory struct {
	ent.Schema
}

ProcedureHistory holds the schema definition for the ProcedureHistory entity.

func (ProcedureHistory) Annotations added in v0.3.3

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

Annotations of the ProcedureHistory.

func (ProcedureHistory) Fields added in v0.3.3

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

Fields of the ProcedureHistory.

func (ProcedureHistory) Indexes added in v0.3.3

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

Indexes of the ProcedureHistory

func (ProcedureHistory) Interceptors added in v0.4.2

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

Interceptors of the ProcedureHistory

type Program added in v0.3.5

type Program struct {
	SchemaFuncs

	ent.Schema
}

Program holds the schema definition for the Program entity

func (Program) Annotations added in v0.3.5

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

Annotations of the Program

func (Program) Edges added in v0.3.5

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

Edges of the Program

func (Program) Fields added in v0.3.5

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

Fields of the Program

func (Program) GetType added in v0.8.2

func (Program) GetType() any

func (Program) Hooks added in v0.3.5

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

Hooks of the Program

func (Program) Interceptors added in v0.3.5

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

Interceptors of the Program

func (Program) Mixin added in v0.3.5

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

Mixin of the Program

func (Program) Name added in v0.8.2

func (Program) Name() string

func (Program) PluralName added in v0.8.2

func (Program) PluralName() string

func (Program) Policy added in v0.3.5

func (Program) Policy() ent.Policy

Policy of the program

type ProgramHistory added in v0.3.5

type ProgramHistory struct {
	ent.Schema
}

ProgramHistory holds the schema definition for the ProgramHistory entity.

func (ProgramHistory) Annotations added in v0.3.5

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

Annotations of the ProgramHistory.

func (ProgramHistory) Fields added in v0.3.5

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

Fields of the ProgramHistory.

func (ProgramHistory) Indexes added in v0.3.5

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

Indexes of the ProgramHistory

func (ProgramHistory) Interceptors added in v0.3.5

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

Interceptors of the ProgramHistory

type ProgramMembership added in v0.3.5

type ProgramMembership struct {
	SchemaFuncs

	ent.Schema
}

ProgramMembership holds the schema definition for the ProgramMembership entity

func (ProgramMembership) Annotations added in v0.3.5

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

Annotations of the ProgramMembership

func (ProgramMembership) Edges added in v0.3.5

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

Edges of the ProgramMembership

func (ProgramMembership) Fields added in v0.3.5

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

Fields of the ProgramMembership

func (ProgramMembership) GetType added in v0.8.2

func (ProgramMembership) GetType() any

func (ProgramMembership) Hooks added in v0.3.5

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

Hooks of the ProgramMembership

func (ProgramMembership) Indexes added in v0.3.5

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

Indexes of the ProgramMembership

func (ProgramMembership) Interceptors added in v0.7.0

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

Interceptors of the ProgramMembership

func (ProgramMembership) Mixin added in v0.3.5

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

Mixin of the ProgramMembership

func (ProgramMembership) Name added in v0.8.2

func (ProgramMembership) Name() string

func (ProgramMembership) PluralName added in v0.8.2

func (ProgramMembership) PluralName() string

func (ProgramMembership) Policy added in v0.3.5

func (ProgramMembership) Policy() ent.Policy

// Policy of the ProgramMembership

type ProgramMembershipHistory added in v0.3.5

type ProgramMembershipHistory struct {
	ent.Schema
}

ProgramMembershipHistory holds the schema definition for the ProgramMembershipHistory entity.

func (ProgramMembershipHistory) Annotations added in v0.3.5

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

Annotations of the ProgramMembershipHistory.

func (ProgramMembershipHistory) Fields added in v0.3.5

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

Fields of the ProgramMembershipHistory.

func (ProgramMembershipHistory) Indexes added in v0.3.5

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

Indexes of the ProgramMembershipHistory

func (ProgramMembershipHistory) Interceptors added in v0.3.5

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

Interceptors of the ProgramMembershipHistory

type Risk added in v0.3.3

type Risk struct {
	SchemaFuncs

	ent.Schema
}

Risk defines the risk schema.

func (Risk) Annotations added in v0.3.3

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

Annotations of the Risk

func (Risk) Edges added in v0.3.3

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

Edges of the Risk

func (Risk) Fields added in v0.3.3

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

Fields returns risk fields.

func (Risk) GetType added in v0.8.2

func (Risk) GetType() any

func (Risk) Hooks added in v0.4.3

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

Hooks of the Risk

func (Risk) Mixin added in v0.3.3

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

Mixin of the Risk

func (Risk) Name added in v0.8.2

func (Risk) Name() string

func (Risk) PluralName added in v0.8.2

func (Risk) PluralName() string

func (Risk) Policy added in v0.4.3

func (Risk) Policy() ent.Policy

Policy of the Risk

type RiskHistory added in v0.3.3

type RiskHistory struct {
	ent.Schema
}

RiskHistory holds the schema definition for the RiskHistory entity.

func (RiskHistory) Annotations added in v0.3.3

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

Annotations of the RiskHistory.

func (RiskHistory) Fields added in v0.3.3

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

Fields of the RiskHistory.

func (RiskHistory) Indexes added in v0.3.3

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

Indexes of the RiskHistory

func (RiskHistory) Interceptors added in v0.4.3

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

Interceptors of the RiskHistory

type SchemaFuncs added in v0.8.2

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

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

type Standard added in v0.3.3

type Standard struct {
	SchemaFuncs

	ent.Schema
}

Standard defines the standard schema.

func (Standard) Edges added in v0.3.3

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

Edges of the Standard

func (Standard) Fields added in v0.3.3

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

Fields returns standard fields.

func (Standard) GetType added in v0.8.2

func (Standard) GetType() any

func (Standard) Hooks added in v0.7.3

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

Hooks of the Standard

func (Standard) Interceptors added in v0.7.3

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

Interceptors of the Standard

func (Standard) Mixin added in v0.3.3

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

Mixin of the Standard

func (Standard) Name added in v0.8.2

func (Standard) Name() string

func (Standard) PluralName added in v0.8.2

func (Standard) PluralName() string

func (Standard) Policy added in v0.7.3

func (Standard) Policy() ent.Policy

Policy of the Standard

type StandardHistory added in v0.3.3

type StandardHistory struct {
	ent.Schema
}

StandardHistory holds the schema definition for the StandardHistory entity.

func (StandardHistory) Annotations added in v0.3.3

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

Annotations of the StandardHistory.

func (StandardHistory) Fields added in v0.3.3

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

Fields of the StandardHistory.

func (StandardHistory) Indexes added in v0.3.3

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

Indexes of the StandardHistory

func (StandardHistory) Interceptors added in v0.7.3

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

Interceptors of the StandardHistory

type Subcontrol added in v0.3.3

type Subcontrol struct {
	SchemaFuncs

	ent.Schema
}

Subcontrol defines the file schema.

func (Subcontrol) Edges added in v0.3.3

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

Edges of the Subcontrol

func (Subcontrol) Fields added in v0.3.3

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

Fields returns file fields.

func (Subcontrol) GetType added in v0.8.2

func (Subcontrol) GetType() any

func (Subcontrol) Hooks added in v0.5.0

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

Hooks of the Subcontrol

func (Subcontrol) Indexes added in v0.7.3

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

Indexes of the Subcontrol

func (Subcontrol) Mixin added in v0.3.3

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

Mixin of the Subcontrol

func (Subcontrol) Name added in v0.8.2

func (Subcontrol) Name() string

func (Subcontrol) PluralName added in v0.8.2

func (Subcontrol) PluralName() string

func (Subcontrol) Policy added in v0.5.0

func (Subcontrol) Policy() ent.Policy

Policy of the Subcontrol

type SubcontrolHistory added in v0.3.3

type SubcontrolHistory struct {
	ent.Schema
}

SubcontrolHistory holds the schema definition for the SubcontrolHistory entity.

func (SubcontrolHistory) Annotations added in v0.3.3

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

Annotations of the SubcontrolHistory.

func (SubcontrolHistory) Fields added in v0.3.3

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

Fields of the SubcontrolHistory.

func (SubcontrolHistory) Indexes added in v0.3.3

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

Indexes of the SubcontrolHistory

func (SubcontrolHistory) Interceptors added in v0.5.0

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

Interceptors of the SubcontrolHistory

type Subscriber

type Subscriber struct {
	SchemaFuncs

	ent.Schema
}

Subscriber holds the schema definition for the Subscriber entity

func (Subscriber) Annotations

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

Annotations of the Subscriber

func (Subscriber) Edges

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

Edges of the Subscriber

func (Subscriber) Fields

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

Fields of the Subscriber

func (Subscriber) GetType added in v0.8.2

func (Subscriber) GetType() any

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) Name added in v0.8.2

func (Subscriber) Name() string

func (Subscriber) PluralName added in v0.8.2

func (Subscriber) PluralName() string

func (Subscriber) Policy

func (Subscriber) Policy() ent.Policy

Policy of the Subscriber

type TFASetting

type TFASetting struct {
	SchemaFuncs

	ent.Schema
}

TFASetting holds the schema definition for the TFASetting entity

func (TFASetting) Annotations

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

Annotations of the TFASetting

func (TFASetting) Fields

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

Fields of the TFASetting

func (TFASetting) GetType added in v0.8.2

func (TFASetting) GetType() any

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) Name added in v0.8.2

func (TFASetting) Name() string

func (TFASetting) PluralName added in v0.8.2

func (TFASetting) PluralName() string

func (TFASetting) Policy added in v0.6.11

func (TFASetting) Policy() ent.Policy

Policy of the TFASetting

type Task added in v0.3.4

type Task struct {
	SchemaFuncs

	ent.Schema
}

Task holds the schema definition for the Task entity

func (Task) Annotations added in v0.3.4

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

Annotations of the Task

func (Task) Edges added in v0.3.4

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

Edges of the Task

func (Task) Fields added in v0.3.4

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

Fields of the Task

func (Task) GetType added in v0.8.2

func (Task) GetType() any

func (Task) Hooks added in v0.3.4

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

Hooks of the Task

func (Task) Mixin added in v0.3.4

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

Mixin of the Task

func (Task) Name added in v0.8.2

func (Task) Name() string

func (Task) PluralName added in v0.8.2

func (Task) PluralName() string

func (Task) Policy added in v0.3.4

func (Task) Policy() ent.Policy

Policy of the Task

type TaskHistory added in v0.3.4

type TaskHistory struct {
	ent.Schema
}

TaskHistory holds the schema definition for the TaskHistory entity.

func (TaskHistory) Annotations added in v0.3.4

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

Annotations of the TaskHistory.

func (TaskHistory) Fields added in v0.3.4

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

Fields of the TaskHistory.

func (TaskHistory) Indexes added in v0.3.4

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

Indexes of the TaskHistory

func (TaskHistory) Interceptors added in v0.3.4

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

Interceptors of the TaskHistory

type Template

type Template struct {
	SchemaFuncs

	ent.Schema
}

Template holds the schema definition for the Template entity

func (Template) Edges

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

Edges of the Template

func (Template) Fields

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

Fields of the Template

func (Template) GetType added in v0.8.2

func (Template) GetType() any

func (Template) Indexes

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

Indexes of the Template

func (Template) Mixin

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

Mixin of the Template

func (Template) Name added in v0.8.2

func (Template) Name() string

func (Template) PluralName added in v0.8.2

func (Template) PluralName() string

func (Template) Policy

func (Template) Policy() ent.Policy

Policy of the Template

type TemplateHistory

type TemplateHistory struct {
	ent.Schema
}

TemplateHistory holds the schema definition for the TemplateHistory entity.

func (TemplateHistory) Annotations

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

Annotations of the TemplateHistory.

func (TemplateHistory) Fields

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

Fields of the TemplateHistory.

func (TemplateHistory) Indexes

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

Indexes of the TemplateHistory

func (TemplateHistory) Interceptors

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

Interceptors of the TemplateHistory

type User

type User struct {
	SchemaFuncs

	ent.Schema
}

User holds the schema definition for the User entity.

func (User) Annotations

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

Annotations of the User

func (User) Edges

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

Edges of the User

func (User) Fields

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

Fields of the User.

func (User) GetType added in v0.8.2

func (User) GetType() any

func (User) Hooks

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

func (User) Indexes

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

Indexes of the User

func (User) Interceptors

func (d User) Interceptors() []ent.Interceptor

Interceptors of the User.

func (User) Mixin

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

Mixin of the User

func (User) Name added in v0.8.2

func (User) Name() string

func (User) PluralName added in v0.8.2

func (User) PluralName() string

func (User) Policy

func (User) Policy() ent.Policy

Policy of the User

type UserHistory

type UserHistory struct {
	ent.Schema
}

UserHistory holds the schema definition for the UserHistory entity.

func (UserHistory) Annotations

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

Annotations of the UserHistory.

func (UserHistory) Fields

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

Fields of the UserHistory.

func (UserHistory) Indexes

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

Indexes of the UserHistory

func (UserHistory) Interceptors

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

Interceptors of the UserHistory

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 (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 added in v0.8.2

func (UserSetting) GetType() any

func (UserSetting) Hooks

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

Hooks of the UserSetting.

func (UserSetting) Interceptors

func (d UserSetting) Interceptors() []ent.Interceptor

Interceptors of the UserSetting.

func (UserSetting) Mixin

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

Mixin of the UserSetting

func (UserSetting) Name added in v0.8.2

func (UserSetting) Name() string

func (UserSetting) PluralName added in v0.8.2

func (UserSetting) PluralName() string

func (UserSetting) Policy

func (UserSetting) Policy() ent.Policy

type UserSettingHistory

type UserSettingHistory struct {
	ent.Schema
}

UserSettingHistory holds the schema definition for the UserSettingHistory entity.

func (UserSettingHistory) Annotations

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

Annotations of the UserSettingHistory.

func (UserSettingHistory) Fields

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

Fields of the UserSettingHistory.

func (UserSettingHistory) Indexes

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

Indexes of the UserSettingHistory

func (UserSettingHistory) Interceptors

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

Interceptors of the UserSettingHistory

type Webauthn

type Webauthn struct {
	SchemaFuncs

	ent.Schema
}

Webauthn holds the schema definition for the Webauthn entity

func (Webauthn) Annotations

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

Annotations of the Webauthn

func (Webauthn) Edges

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

func (Webauthn) Fields

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

Fields of the Webauthn

func (Webauthn) GetType added in v0.8.2

func (Webauthn) GetType() any

func (Webauthn) Hooks added in v0.10.9

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

func (Webauthn) Mixin

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

Mixin of the Webauthn

func (Webauthn) Name added in v0.8.2

func (Webauthn) Name() string

func (Webauthn) PluralName added in v0.8.2

func (Webauthn) PluralName() string

Jump to

Keyboard shortcuts

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