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.
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.
Index ¶
- Variables
- type APIToken
- func (APIToken) Annotations() []schema.Annotation
- func (APIToken) Edges() []ent.Edge
- func (APIToken) Fields() []ent.Field
- func (APIToken) Hooks() []ent.Hook
- func (APIToken) Indexes() []ent.Index
- func (APIToken) Interceptors() []ent.Interceptor
- func (APIToken) Mixin() []ent.Mixin
- func (APIToken) Policy() ent.Policy
- type ActionPlan
- type ActionPlanHistory
- type Contact
- func (Contact) Annotations() []schema.Annotation
- func (Contact) Edges() []ent.Edge
- func (Contact) Fields() []ent.Field
- func (Contact) Hooks() []ent.Hook
- func (Contact) Indexes() []ent.Index
- func (Contact) Interceptors() []ent.Interceptor
- func (Contact) Mixin() []ent.Mixin
- func (Contact) Policy() ent.Policy
- type ContactHistory
- type Control
- type ControlHistory
- type ControlObjective
- type ControlObjectiveHistory
- type DocumentData
- type DocumentDataHistory
- type EdgeInfo
- type EmailVerificationToken
- func (EmailVerificationToken) Annotations() []schema.Annotation
- func (EmailVerificationToken) Edges() []ent.Edge
- func (EmailVerificationToken) Fields() []ent.Field
- func (EmailVerificationToken) Hooks() []ent.Hook
- func (EmailVerificationToken) Indexes() []ent.Index
- func (EmailVerificationToken) Mixin() []ent.Mixin
- func (EmailVerificationToken) Policy() ent.Policy
- type Entity
- type EntityHistory
- type EntityType
- func (EntityType) Annotations() []schema.Annotation
- func (EntityType) Edges() []ent.Edge
- func (EntityType) Fields() []ent.Field
- func (EntityType) Hooks() []ent.Hook
- func (EntityType) Indexes() []ent.Index
- func (EntityType) Interceptors() []ent.Interceptor
- func (EntityType) Mixin() []ent.Mixin
- func (EntityType) Policy() ent.Policy
- type EntityTypeHistory
- type Event
- type EventHistory
- type File
- type FileHistory
- type Group
- type GroupBasedCreateAccessMixin
- type GroupHistory
- type GroupMembership
- func (GroupMembership) Annotations() []schema.Annotation
- func (GroupMembership) Edges() []ent.Edge
- func (GroupMembership) Fields() []ent.Field
- func (GroupMembership) Hooks() []ent.Hook
- func (GroupMembership) Indexes() []ent.Index
- func (GroupMembership) Mixin() []ent.Mixin
- func (GroupMembership) Policy() ent.Policy
- type GroupMembershipHistory
- type GroupPermissionsEdgesMixin
- type GroupPermissionsMixin
- type GroupSetting
- type GroupSettingHistory
- type HookFunc
- type Hush
- type HushHistory
- type Integration
- type IntegrationHistory
- type InterceptorFunc
- type InternalPolicy
- func (InternalPolicy) Annotations() []schema.Annotation
- func (InternalPolicy) Edges() []ent.Edge
- func (InternalPolicy) Fields() []ent.Field
- func (InternalPolicy) Hooks() []ent.Hook
- func (InternalPolicy) Interceptors() []ent.Interceptor
- func (InternalPolicy) Mixin() []ent.Mixin
- func (InternalPolicy) Policy() ent.Policy
- type InternalPolicyHistory
- type Invite
- type Narrative
- type NarrativeHistory
- type Note
- type NoteHistory
- type ObjectOwnedMixin
- type OrgMembership
- func (OrgMembership) Annotations() []schema.Annotation
- func (OrgMembership) Edges() []ent.Edge
- func (OrgMembership) Fields() []ent.Field
- func (OrgMembership) Hooks() []ent.Hook
- func (OrgMembership) Indexes() []ent.Index
- func (OrgMembership) Interceptors() []ent.Interceptor
- func (OrgMembership) Mixin() []ent.Mixin
- func (OrgMembership) Policy() ent.Policy
- type OrgMembershipHistory
- type OrgSubscription
- func (OrgSubscription) Annotations() []schema.Annotation
- func (OrgSubscription) Edges() []ent.Edge
- func (OrgSubscription) Fields() []ent.Field
- func (OrgSubscription) Hooks() []ent.Hook
- func (OrgSubscription) Indexes() []ent.Index
- func (OrgSubscription) Interceptors() []ent.Interceptor
- func (OrgSubscription) Mixin() []ent.Mixin
- type OrgSubscriptionHistory
- type Organization
- func (Organization) Annotations() []schema.Annotation
- func (Organization) Edges() []ent.Edge
- func (Organization) Fields() []ent.Field
- func (Organization) Hooks() []ent.Hook
- func (Organization) Indexes() []ent.Index
- func (Organization) Interceptors() []ent.Interceptor
- func (Organization) Mixin() []ent.Mixin
- func (Organization) Policy() ent.Policy
- type OrganizationHistory
- type OrganizationSetting
- func (OrganizationSetting) Annotations() []schema.Annotation
- func (OrganizationSetting) Edges() []ent.Edge
- func (OrganizationSetting) Fields() []ent.Field
- func (OrganizationSetting) Interceptors() []ent.Interceptor
- func (OrganizationSetting) Mixin() []ent.Mixin
- func (OrganizationSetting) Policy() ent.Policy
- type OrganizationSettingHistory
- type PasswordResetToken
- func (PasswordResetToken) Annotations() []schema.Annotation
- func (PasswordResetToken) Edges() []ent.Edge
- func (PasswordResetToken) Fields() []ent.Field
- func (PasswordResetToken) Hooks() []ent.Hook
- func (PasswordResetToken) Indexes() []ent.Index
- func (PasswordResetToken) Mixin() []ent.Mixin
- func (PasswordResetToken) Policy() ent.Policy
- type PersonalAccessToken
- func (PersonalAccessToken) Annotations() []schema.Annotation
- func (PersonalAccessToken) Edges() []ent.Edge
- func (PersonalAccessToken) Fields() []ent.Field
- func (PersonalAccessToken) Hooks() []ent.Hook
- func (PersonalAccessToken) Indexes() []ent.Index
- func (PersonalAccessToken) Interceptors() []ent.Interceptor
- func (PersonalAccessToken) Mixin() []ent.Mixin
- func (PersonalAccessToken) Policy() ent.Policy
- type Procedure
- type ProcedureHistory
- type Program
- func (Program) Annotations() []schema.Annotation
- func (Program) Edges() []ent.Edge
- func (Program) Fields() []ent.Field
- func (Program) Hooks() []ent.Hook
- func (Program) Indexes() []ent.Index
- func (Program) Interceptors() []ent.Interceptor
- func (Program) Mixin() []ent.Mixin
- func (Program) Policy() ent.Policy
- type ProgramHistory
- type ProgramMembership
- func (ProgramMembership) Annotations() []schema.Annotation
- func (ProgramMembership) Edges() []ent.Edge
- func (ProgramMembership) Fields() []ent.Field
- func (ProgramMembership) Hooks() []ent.Hook
- func (ProgramMembership) Indexes() []ent.Index
- func (ProgramMembership) Mixin() []ent.Mixin
- func (ProgramMembership) Policy() ent.Policy
- type ProgramMembershipHistory
- type Risk
- type RiskHistory
- type Standard
- type StandardHistory
- type Subcontrol
- type SubcontrolHistory
- type Subscriber
- type TFASetting
- type Task
- type TaskHistory
- type Template
- type TemplateHistory
- type User
- type UserHistory
- type UserOwnedMixin
- func (userOwned UserOwnedMixin) Edges() []ent.Edge
- func (userOwned UserOwnedMixin) Fields() []ent.Field
- func (userOwned UserOwnedMixin) Hooks() []ent.Hook
- func (userOwned UserOwnedMixin) Indexes() []ent.Index
- func (userOwned UserOwnedMixin) Interceptors() []ent.Interceptor
- func (userOwned UserOwnedMixin) P(w interface{ ... }, userID string)
- type UserSetting
- func (UserSetting) Annotations() []schema.Annotation
- func (UserSetting) Edges() []ent.Edge
- func (UserSetting) Fields() []ent.Field
- func (UserSetting) Hooks() []ent.Hook
- func (d UserSetting) Interceptors() []ent.Interceptor
- func (UserSetting) Mixin() []ent.Mixin
- func (UserSetting) Policy() ent.Policy
- type UserSettingHistory
- type Webauthn
Constants ¶
This section is empty.
Variables ¶
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 ¶
APIToken holds the schema definition for the APIToken entity.
func (APIToken) Annotations ¶
func (APIToken) Annotations() []schema.Annotation
Annotations of the APIToken
func (APIToken) Interceptors ¶
func (APIToken) Interceptors() []ent.Interceptor
Interceptors of the APIToken
type ActionPlan ¶ added in v0.3.3
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 (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) Mixin ¶ added in v0.3.3
func (ActionPlan) Mixin() []ent.Mixin
Mixin of the ActionPlan
type ActionPlanHistory ¶ added in v0.3.3
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
type Contact ¶
Contact holds the schema definition for the Contact entity
func (Contact) Annotations ¶
func (Contact) Annotations() []schema.Annotation
Annotations of the Contact
func (Contact) Interceptors ¶
func (Contact) Interceptors() []ent.Interceptor
Interceptors of the Contact
type ContactHistory ¶
ContactHistory holds the schema definition for the ContactHistory entity.
func (ContactHistory) Annotations ¶
func (ContactHistory) Annotations() []schema.Annotation
Annotations of the ContactHistory.
func (ContactHistory) Fields ¶
func (ContactHistory) Fields() []ent.Field
Fields of the ContactHistory.
func (ContactHistory) Indexes ¶
func (ContactHistory) Indexes() []ent.Index
Indexes of the ContactHistory
func (ContactHistory) Interceptors ¶
func (ContactHistory) Interceptors() []ent.Interceptor
Interceptors of the ContactHistory
func (ContactHistory) Policy ¶
func (ContactHistory) Policy() ent.Policy
Policy of the ContactHistory
type Control ¶ added in v0.3.3
Control defines the control schema.
func (Control) Annotations ¶ added in v0.3.3
func (Control) Annotations() []schema.Annotation
Annotations of the Control
type ControlHistory ¶ added in v0.3.3
ControlHistory holds the schema definition for the ControlHistory entity.
func (ControlHistory) Annotations ¶ added in v0.3.3
func (ControlHistory) Annotations() []schema.Annotation
Annotations of the ControlHistory.
func (ControlHistory) Fields ¶ added in v0.3.3
func (ControlHistory) Fields() []ent.Field
Fields of the ControlHistory.
func (ControlHistory) Indexes ¶ added in v0.3.3
func (ControlHistory) Indexes() []ent.Index
Indexes of the ControlHistory
func (ControlHistory) Interceptors ¶ added in v0.5.0
func (ControlHistory) Interceptors() []ent.Interceptor
Interceptors of the ControlHistory
func (ControlHistory) Policy ¶ added in v0.5.0
func (ControlHistory) Policy() ent.Policy
Policy of the ControlHistory
type ControlObjective ¶ added in v0.3.3
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 (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) Mixin ¶ added in v0.3.3
func (ControlObjective) Mixin() []ent.Mixin
Mixin of the ControlObjective
func (ControlObjective) Policy ¶ added in v0.4.4
func (ControlObjective) Policy() ent.Policy
Policy of the ControlObjective
type ControlObjectiveHistory ¶ added in v0.3.3
ControlObjectiveHistory holds the schema definition for the ControlObjectiveHistory entity.
func (ControlObjectiveHistory) Annotations ¶ added in v0.3.3
func (ControlObjectiveHistory) Annotations() []schema.Annotation
Annotations of the ControlObjectiveHistory.
func (ControlObjectiveHistory) Fields ¶ added in v0.3.3
func (ControlObjectiveHistory) Fields() []ent.Field
Fields of the ControlObjectiveHistory.
func (ControlObjectiveHistory) Indexes ¶ added in v0.3.3
func (ControlObjectiveHistory) Indexes() []ent.Index
Indexes of the ControlObjectiveHistory
func (ControlObjectiveHistory) Interceptors ¶ added in v0.4.4
func (ControlObjectiveHistory) Interceptors() []ent.Interceptor
Interceptors of the ControlObjectiveHistory
func (ControlObjectiveHistory) Policy ¶ added in v0.4.4
func (ControlObjectiveHistory) Policy() ent.Policy
Policy of the ControlObjectiveHistory
type DocumentData ¶
DocumentData holds the schema definition for the DocumentData entity
func (DocumentData) Annotations ¶
func (DocumentData) Annotations() []schema.Annotation
Annotations of the DocumentData
type DocumentDataHistory ¶
DocumentDataHistory holds the schema definition for the DocumentDataHistory entity.
func (DocumentDataHistory) Annotations ¶
func (DocumentDataHistory) Annotations() []schema.Annotation
Annotations of the DocumentDataHistory.
func (DocumentDataHistory) Fields ¶
func (DocumentDataHistory) Fields() []ent.Field
Fields of the DocumentDataHistory.
func (DocumentDataHistory) Indexes ¶
func (DocumentDataHistory) Indexes() []ent.Index
Indexes of the DocumentDataHistory
func (DocumentDataHistory) Interceptors ¶
func (DocumentDataHistory) Interceptors() []ent.Interceptor
Interceptors of the DocumentDataHistory
func (DocumentDataHistory) Policy ¶
func (DocumentDataHistory) Policy() ent.Policy
Policy of the DocumentDataHistory
type EdgeInfo ¶ added in v0.5.0
EdgeInfo is used to define the edge information for the reverse edges (group schema)
type EmailVerificationToken ¶
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) 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 (EmailVerificationToken) Mixin() []ent.Mixin
Mixin of the EmailVerificationToken
func (EmailVerificationToken) Policy ¶
func (EmailVerificationToken) Policy() ent.Policy
Policy of the EmailVerificationToken
type Entity ¶
Entity holds the schema definition for the Entity entity
func (Entity) Annotations ¶
func (Entity) Annotations() []schema.Annotation
Annotations of the Entity
func (Entity) Interceptors ¶
func (Entity) Interceptors() []ent.Interceptor
Interceptors of the Entity
type EntityHistory ¶
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 ¶
EntityType holds the schema definition for the EntityType entity
func (EntityType) Annotations ¶
func (EntityType) Annotations() []schema.Annotation
Annotations of the EntityType
func (EntityType) Interceptors ¶
func (EntityType) Interceptors() []ent.Interceptor
Interceptors of the EntityType
type EntityTypeHistory ¶
EntityTypeHistory holds the schema definition for the EntityTypeHistory entity.
func (EntityTypeHistory) Annotations ¶
func (EntityTypeHistory) Annotations() []schema.Annotation
Annotations of the EntityTypeHistory.
func (EntityTypeHistory) Fields ¶
func (EntityTypeHistory) Fields() []ent.Field
Fields of the EntityTypeHistory.
func (EntityTypeHistory) Indexes ¶
func (EntityTypeHistory) Indexes() []ent.Index
Indexes of the EntityTypeHistory
func (EntityTypeHistory) Interceptors ¶
func (EntityTypeHistory) Interceptors() []ent.Interceptor
Interceptors of the EntityTypeHistory
func (EntityTypeHistory) Policy ¶
func (EntityTypeHistory) Policy() ent.Policy
Policy of the EntityTypeHistory
type EventHistory ¶
EventHistory holds the schema definition for the EventHistory entity.
func (EventHistory) Annotations ¶
func (EventHistory) Annotations() []schema.Annotation
Annotations of the EventHistory.
type FileHistory ¶
FileHistory holds the schema definition for the FileHistory entity.
func (FileHistory) Annotations ¶
func (FileHistory) Annotations() []schema.Annotation
Annotations of the FileHistory.
func (FileHistory) Interceptors ¶ added in v0.3.1
func (FileHistory) Interceptors() []ent.Interceptor
Interceptors of the FileHistory
func (FileHistory) Policy ¶ added in v0.3.1
func (FileHistory) Policy() ent.Policy
Policy of the FileHistory
type GroupBasedCreateAccessMixin ¶ added in v0.5.0
type GroupBasedCreateAccessMixin struct { mixin.Schema // ToEdges will add the To edges to the schema as well as the hooks ToEdges bool // FromEdges will add the From edges to the schema to create the m:m relationship FromEdges bool }
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(isToEdge bool) 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 ¶
GroupHistory holds the schema definition for the GroupHistory entity.
func (GroupHistory) Annotations ¶
func (GroupHistory) Annotations() []schema.Annotation
Annotations of the GroupHistory.
func (GroupHistory) Interceptors ¶
func (GroupHistory) Interceptors() []ent.Interceptor
Interceptors of the GroupHistory
type GroupMembership ¶
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 (GroupMembership) Edges() []ent.Edge
Edges of the GroupMembership
func (GroupMembership) Fields ¶
func (GroupMembership) Fields() []ent.Field
Fields of the GroupMembership
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) Mixin ¶
func (GroupMembership) Mixin() []ent.Mixin
Mixin of the GroupMembership
func (GroupMembership) Policy ¶
func (GroupMembership) Policy() ent.Policy
Policy of the GroupMembership
type GroupMembershipHistory ¶
GroupMembershipHistory holds the schema definition for the GroupMembershipHistory entity.
func (GroupMembershipHistory) Annotations ¶
func (GroupMembershipHistory) Annotations() []schema.Annotation
Annotations of the GroupMembershipHistory.
func (GroupMembershipHistory) Fields ¶
func (GroupMembershipHistory) Fields() []ent.Field
Fields of the GroupMembershipHistory.
func (GroupMembershipHistory) Indexes ¶
func (GroupMembershipHistory) Indexes() []ent.Index
Indexes of the GroupMembershipHistory
func (GroupMembershipHistory) Interceptors ¶
func (GroupMembershipHistory) Interceptors() []ent.Interceptor
Interceptors of the GroupMembershipHistory
func (GroupMembershipHistory) Policy ¶
func (GroupMembershipHistory) Policy() ent.Policy
Policy of the GroupMembershipHistory
type GroupPermissionsEdgesMixin ¶ added in v0.5.0
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
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 NewGroupPermissionsMixin ¶ added in v0.4.4
func NewGroupPermissionsMixin(viewPermissions bool) GroupPermissionsMixin
NewGroupPermissionsMixin creates a new GroupPermissionsMixin with optional viewer permissions
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 ¶
GroupSetting holds the schema definition for the GroupSetting entity
func (GroupSetting) Annotations ¶
func (GroupSetting) Annotations() []schema.Annotation
Annotations of the GroupSetting
func (GroupSetting) Policy ¶
func (GroupSetting) Policy() ent.Policy
Policy defines the privacy policy of the GroupSetting
type GroupSettingHistory ¶
GroupSettingHistory holds the schema definition for the GroupSettingHistory entity.
func (GroupSettingHistory) Annotations ¶
func (GroupSettingHistory) Annotations() []schema.Annotation
Annotations of the GroupSettingHistory.
func (GroupSettingHistory) Fields ¶
func (GroupSettingHistory) Fields() []ent.Field
Fields of the GroupSettingHistory.
func (GroupSettingHistory) Indexes ¶
func (GroupSettingHistory) Indexes() []ent.Index
Indexes of the GroupSettingHistory
func (GroupSettingHistory) Interceptors ¶
func (GroupSettingHistory) Interceptors() []ent.Interceptor
Interceptors of the GroupSettingHistory
func (GroupSettingHistory) Policy ¶
func (GroupSettingHistory) Policy() ent.Policy
Policy of the GroupSettingHistory
type HookFunc ¶ added in v0.3.1
type HookFunc func(o ObjectOwnedMixin) ent.Hook
type HushHistory ¶
HushHistory holds the schema definition for the HushHistory entity.
func (HushHistory) Annotations ¶
func (HushHistory) Annotations() []schema.Annotation
Annotations of the HushHistory.
type Integration ¶
Integration maps configured integrations (github, slack, etc.) to organizations
func (Integration) Annotations ¶
func (Integration) Annotations() []schema.Annotation
Annotations of the Integration
type IntegrationHistory ¶
IntegrationHistory holds the schema definition for the IntegrationHistory entity.
func (IntegrationHistory) Annotations ¶
func (IntegrationHistory) Annotations() []schema.Annotation
Annotations of the IntegrationHistory.
func (IntegrationHistory) Fields ¶
func (IntegrationHistory) Fields() []ent.Field
Fields of the IntegrationHistory.
func (IntegrationHistory) Indexes ¶
func (IntegrationHistory) Indexes() []ent.Index
Indexes of the IntegrationHistory
func (IntegrationHistory) Interceptors ¶
func (IntegrationHistory) Interceptors() []ent.Interceptor
Interceptors of the IntegrationHistory
func (IntegrationHistory) Policy ¶
func (IntegrationHistory) Policy() ent.Policy
Policy of the IntegrationHistory
type InterceptorFunc ¶ added in v0.3.1
type InterceptorFunc func(o ObjectOwnedMixin) ent.Interceptor
type InternalPolicy ¶ added in v0.3.3
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 (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) 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 (InternalPolicy) Mixin() []ent.Mixin
Mixin of the InternalPolicy
func (InternalPolicy) Policy ¶ added in v0.4.2
func (InternalPolicy) Policy() ent.Policy
Policy of the InternalPolicy
type InternalPolicyHistory ¶ added in v0.3.3
InternalPolicyHistory holds the schema definition for the InternalPolicyHistory entity.
func (InternalPolicyHistory) Annotations ¶ added in v0.3.3
func (InternalPolicyHistory) Annotations() []schema.Annotation
Annotations of the InternalPolicyHistory.
func (InternalPolicyHistory) Fields ¶ added in v0.3.3
func (InternalPolicyHistory) Fields() []ent.Field
Fields of the InternalPolicyHistory.
func (InternalPolicyHistory) Indexes ¶ added in v0.3.3
func (InternalPolicyHistory) Indexes() []ent.Index
Indexes of the InternalPolicyHistory
func (InternalPolicyHistory) Interceptors ¶ added in v0.4.2
func (InternalPolicyHistory) Interceptors() []ent.Interceptor
Interceptors of the InternalPolicyHistory
func (InternalPolicyHistory) Policy ¶ added in v0.4.2
func (InternalPolicyHistory) Policy() ent.Policy
Policy of the InternalPolicyHistory
type Invite ¶
Invite holds the schema definition for the Invite entity
func (Invite) Annotations ¶
func (Invite) Annotations() []schema.Annotation
Annotations of the Invite
type Narrative ¶ added in v0.3.3
Narrative defines the narrative schema
func (Narrative) Annotations ¶ added in v0.3.3
func (Narrative) Annotations() []schema.Annotation
Annotations of the Narrative
type NarrativeHistory ¶ added in v0.3.3
NarrativeHistory holds the schema definition for the NarrativeHistory entity.
func (NarrativeHistory) Annotations ¶ added in v0.3.3
func (NarrativeHistory) Annotations() []schema.Annotation
Annotations of the NarrativeHistory.
func (NarrativeHistory) Fields ¶ added in v0.3.3
func (NarrativeHistory) Fields() []ent.Field
Fields of the NarrativeHistory.
func (NarrativeHistory) Indexes ¶ added in v0.3.3
func (NarrativeHistory) Indexes() []ent.Index
Indexes of the NarrativeHistory
func (NarrativeHistory) Interceptors ¶ added in v0.4.4
func (NarrativeHistory) Interceptors() []ent.Interceptor
Interceptors of the NarrativeHistory
func (NarrativeHistory) Policy ¶ added in v0.4.4
func (NarrativeHistory) Policy() ent.Policy
Policy of the NarrativeHistory
type NoteHistory ¶
NoteHistory holds the schema definition for the NoteHistory entity.
func (NoteHistory) Annotations ¶
func (NoteHistory) Annotations() []schema.Annotation
Annotations 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 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 // SkipUserTuple skips the user tuple creation for the object owned mixin SkipUserTuple bool // Required makes the owner id field required as input Required bool // AllowEmpty allows the owner id field to be empty AllowEmpty bool // SkipOASGeneration skips open api spec generation for the field SkipOASGeneration 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 // WithOrganizationOwner adds the organization owner_id field and hooks to the schema WithOrganizationOwner 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 InterceptorFunc InterceptorFunc }
ObjectOwnedMixin is a mixin for object owned entities
func NewObjectOwnMixinWithRef ¶ added in v0.3.1
func NewObjectOwnMixinWithRef(ref string) ObjectOwnedMixin
NewObjectOwnMixinWithRef creates a new ObjectOwnedMixin with the given ref and sets the defaults
func NewObjectOwnedMixin ¶ added in v0.3.1
func NewObjectOwnedMixin(o ObjectOwnedMixin) ObjectOwnedMixin
NewObjectOwnedMixin creates a new ObjectOwnedMixin with the given ObjectOwnedMixin and sets the HookFunc to defaultOrgHookFunc
func NewOrgOwnMixinWithRef ¶ added in v0.3.1
func NewOrgOwnMixinWithRef(ref string) ObjectOwnedMixin
NewOrgOwnMixinWithRef creates a new OrgOwnedMixin with the given ref and sets the defaults
func NewOrgOwnedMixin ¶ added in v0.3.1
func NewOrgOwnedMixin(o ObjectOwnedMixin) ObjectOwnedMixin
NewOrgOwnedMixin creates a new OrgOwnedMixin with the given ObjectOwnedMixin and sets the Kind to ownerFieldName and the HookFunc to defaultOrgHookFunc
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
type OrgMembership ¶
OrgMembership holds the schema definition for the OrgMembership entity
func (OrgMembership) Annotations ¶
func (OrgMembership) Annotations() []schema.Annotation
Annotations of the OrgMembership
func (OrgMembership) Indexes ¶
func (OrgMembership) Indexes() []ent.Index
func (OrgMembership) Interceptors ¶
func (OrgMembership) Interceptors() []ent.Interceptor
Interceptors of the OrgMembership
type OrgMembershipHistory ¶
OrgMembershipHistory holds the schema definition for the OrgMembershipHistory entity.
func (OrgMembershipHistory) Annotations ¶
func (OrgMembershipHistory) Annotations() []schema.Annotation
Annotations of the OrgMembershipHistory.
func (OrgMembershipHistory) Fields ¶
func (OrgMembershipHistory) Fields() []ent.Field
Fields of the OrgMembershipHistory.
func (OrgMembershipHistory) Indexes ¶
func (OrgMembershipHistory) Indexes() []ent.Index
Indexes of the OrgMembershipHistory
func (OrgMembershipHistory) Interceptors ¶
func (OrgMembershipHistory) Interceptors() []ent.Interceptor
Interceptors of the OrgMembershipHistory
func (OrgMembershipHistory) Policy ¶
func (OrgMembershipHistory) Policy() ent.Policy
Policy of the OrgMembershipHistory
type OrgSubscription ¶ added in v0.5.1
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 (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) Hooks ¶ added in v0.5.1
func (OrgSubscription) Hooks() []ent.Hook
Hooks of the OrgSubscription
func (OrgSubscription) Indexes ¶ added in v0.5.1
func (OrgSubscription) Indexes() []ent.Index
Indexes of the OrgSubscription
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 (OrgSubscription) Mixin() []ent.Mixin
Mixin of the OrgSubscription
type OrgSubscriptionHistory ¶ added in v0.5.1
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 ¶
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) Indexes ¶
func (Organization) Indexes() []ent.Index
func (Organization) Interceptors ¶
func (Organization) Interceptors() []ent.Interceptor
Interceptors of the Organization
func (Organization) Policy ¶
func (Organization) Policy() ent.Policy
Policy defines the privacy policy of the Organization.
type OrganizationHistory ¶
OrganizationHistory holds the schema definition for the OrganizationHistory entity.
func (OrganizationHistory) Annotations ¶
func (OrganizationHistory) Annotations() []schema.Annotation
Annotations of the OrganizationHistory.
func (OrganizationHistory) Fields ¶
func (OrganizationHistory) Fields() []ent.Field
Fields of the OrganizationHistory.
func (OrganizationHistory) Indexes ¶
func (OrganizationHistory) Indexes() []ent.Index
Indexes of the OrganizationHistory
func (OrganizationHistory) Interceptors ¶
func (OrganizationHistory) Interceptors() []ent.Interceptor
Interceptors of the OrganizationHistory
func (OrganizationHistory) Policy ¶
func (OrganizationHistory) Policy() ent.Policy
Policy of the OrganizationHistory
type OrganizationSetting ¶
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 (OrganizationSetting) Edges() []ent.Edge
Edges of the OrganizationSetting
func (OrganizationSetting) Fields ¶
func (OrganizationSetting) Fields() []ent.Field
Fields 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) Policy ¶
func (OrganizationSetting) Policy() ent.Policy
Policy defines the privacy policy of the OrganizationSetting
type OrganizationSettingHistory ¶
OrganizationSettingHistory holds the schema definition for the OrganizationSettingHistory entity.
func (OrganizationSettingHistory) Annotations ¶
func (OrganizationSettingHistory) Annotations() []schema.Annotation
Annotations of the OrganizationSettingHistory.
func (OrganizationSettingHistory) Fields ¶
func (OrganizationSettingHistory) Fields() []ent.Field
Fields of the OrganizationSettingHistory.
func (OrganizationSettingHistory) Indexes ¶
func (OrganizationSettingHistory) Indexes() []ent.Index
Indexes of the OrganizationSettingHistory
func (OrganizationSettingHistory) Interceptors ¶
func (OrganizationSettingHistory) Interceptors() []ent.Interceptor
Interceptors of the OrganizationSettingHistory
func (OrganizationSettingHistory) Policy ¶
func (OrganizationSettingHistory) Policy() ent.Policy
Policy of the OrganizationSettingHistory
type PasswordResetToken ¶
PasswordResetToken holds the schema definition for the PasswordResetToken entity
func (PasswordResetToken) Annotations ¶
func (PasswordResetToken) Annotations() []schema.Annotation
Annotations of the PasswordResetToken
func (PasswordResetToken) Edges ¶
func (PasswordResetToken) Edges() []ent.Edge
Edges of the PasswordResetToken
func (PasswordResetToken) Fields ¶
func (PasswordResetToken) Fields() []ent.Field
Fields of the PasswordResetToken
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 (PasswordResetToken) Mixin() []ent.Mixin
Mixin of the PasswordResetToken
func (PasswordResetToken) Policy ¶
func (PasswordResetToken) Policy() ent.Policy
Policy of the PasswordResetToken
type PersonalAccessToken ¶
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 (PersonalAccessToken) Edges() []ent.Edge
Edges of the PersonalAccessToken
func (PersonalAccessToken) Fields ¶
func (PersonalAccessToken) Fields() []ent.Field
Fields of the PersonalAccessToken
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 (PersonalAccessToken) Mixin() []ent.Mixin
Mixin of the PersonalAccessToken
func (PersonalAccessToken) Policy ¶
func (PersonalAccessToken) Policy() ent.Policy
Policy of the PersonalAccessToken
type Procedure ¶ added in v0.3.3
Procedure defines the procedure schema.
func (Procedure) Annotations ¶ added in v0.3.3
func (Procedure) Annotations() []schema.Annotation
Annotations of the Procedure
func (Procedure) Interceptors ¶ added in v0.4.2
func (Procedure) Interceptors() []ent.Interceptor
Interceptors of the Procedure
type ProcedureHistory ¶ added in v0.3.3
ProcedureHistory holds the schema definition for the ProcedureHistory entity.
func (ProcedureHistory) Annotations ¶ added in v0.3.3
func (ProcedureHistory) Annotations() []schema.Annotation
Annotations of the ProcedureHistory.
func (ProcedureHistory) Fields ¶ added in v0.3.3
func (ProcedureHistory) Fields() []ent.Field
Fields of the ProcedureHistory.
func (ProcedureHistory) Indexes ¶ added in v0.3.3
func (ProcedureHistory) Indexes() []ent.Index
Indexes of the ProcedureHistory
func (ProcedureHistory) Interceptors ¶ added in v0.4.2
func (ProcedureHistory) Interceptors() []ent.Interceptor
Interceptors of the ProcedureHistory
func (ProcedureHistory) Policy ¶ added in v0.4.2
func (ProcedureHistory) Policy() ent.Policy
Policy of the ProcedureHistory
type Program ¶ added in v0.3.5
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) Interceptors ¶ added in v0.3.5
func (Program) Interceptors() []ent.Interceptor
Interceptors of the Program
type ProgramHistory ¶ added in v0.3.5
ProgramHistory holds the schema definition for the ProgramHistory entity.
func (ProgramHistory) Annotations ¶ added in v0.3.5
func (ProgramHistory) Annotations() []schema.Annotation
Annotations of the ProgramHistory.
func (ProgramHistory) Fields ¶ added in v0.3.5
func (ProgramHistory) Fields() []ent.Field
Fields of the ProgramHistory.
func (ProgramHistory) Indexes ¶ added in v0.3.5
func (ProgramHistory) Indexes() []ent.Index
Indexes of the ProgramHistory
func (ProgramHistory) Interceptors ¶ added in v0.3.5
func (ProgramHistory) Interceptors() []ent.Interceptor
Interceptors of the ProgramHistory
func (ProgramHistory) Policy ¶ added in v0.3.5
func (ProgramHistory) Policy() ent.Policy
Policy of the ProgramHistory
type ProgramMembership ¶ added in v0.3.5
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 (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) 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) Mixin ¶ added in v0.3.5
func (ProgramMembership) Mixin() []ent.Mixin
Mixin of the ProgramMembership
func (ProgramMembership) Policy ¶ added in v0.3.5
func (ProgramMembership) Policy() ent.Policy
// Policy of the ProgramMembership
type ProgramMembershipHistory ¶ added in v0.3.5
ProgramMembershipHistory holds the schema definition for the ProgramMembershipHistory entity.
func (ProgramMembershipHistory) Annotations ¶ added in v0.3.5
func (ProgramMembershipHistory) Annotations() []schema.Annotation
Annotations of the ProgramMembershipHistory.
func (ProgramMembershipHistory) Fields ¶ added in v0.3.5
func (ProgramMembershipHistory) Fields() []ent.Field
Fields of the ProgramMembershipHistory.
func (ProgramMembershipHistory) Indexes ¶ added in v0.3.5
func (ProgramMembershipHistory) Indexes() []ent.Index
Indexes of the ProgramMembershipHistory
func (ProgramMembershipHistory) Interceptors ¶ added in v0.3.5
func (ProgramMembershipHistory) Interceptors() []ent.Interceptor
Interceptors of the ProgramMembershipHistory
func (ProgramMembershipHistory) Policy ¶ added in v0.3.5
func (ProgramMembershipHistory) Policy() ent.Policy
Policy of the ProgramMembershipHistory
type Risk ¶ added in v0.3.3
Risk defines the risk schema.
func (Risk) Annotations ¶ added in v0.3.3
func (Risk) Annotations() []schema.Annotation
Annotations of the Risk
type RiskHistory ¶ added in v0.3.3
RiskHistory holds the schema definition for the RiskHistory entity.
func (RiskHistory) Annotations ¶ added in v0.3.3
func (RiskHistory) Annotations() []schema.Annotation
Annotations of the RiskHistory.
func (RiskHistory) Fields ¶ added in v0.3.3
func (RiskHistory) Fields() []ent.Field
Fields of the RiskHistory.
func (RiskHistory) Indexes ¶ added in v0.3.3
func (RiskHistory) Indexes() []ent.Index
Indexes of the RiskHistory
func (RiskHistory) Interceptors ¶ added in v0.4.3
func (RiskHistory) Interceptors() []ent.Interceptor
Interceptors of the RiskHistory
func (RiskHistory) Policy ¶ added in v0.4.3
func (RiskHistory) Policy() ent.Policy
Policy of the RiskHistory
type Standard ¶ added in v0.3.3
Standard defines the standard schema.
func (Standard) Annotations ¶ added in v0.3.3
func (Standard) Annotations() []schema.Annotation
Annotations of the Standard
type StandardHistory ¶ added in v0.3.3
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
type Subcontrol ¶ added in v0.3.3
Subcontrol defines the file schema.
func (Subcontrol) Annotations ¶ added in v0.3.3
func (Subcontrol) Annotations() []schema.Annotation
Annotations of the Subcontrol
func (Subcontrol) Edges ¶ added in v0.3.3
func (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) Hooks ¶ added in v0.5.0
func (Subcontrol) Hooks() []ent.Hook
Hooks of the Subcontrol
func (Subcontrol) Mixin ¶ added in v0.3.3
func (Subcontrol) Mixin() []ent.Mixin
Mixin of the Subcontrol
func (Subcontrol) Policy ¶ added in v0.5.0
func (Subcontrol) Policy() ent.Policy
Policy of the Subcontrol
type SubcontrolHistory ¶ added in v0.3.3
SubcontrolHistory holds the schema definition for the SubcontrolHistory entity.
func (SubcontrolHistory) Annotations ¶ added in v0.3.3
func (SubcontrolHistory) Annotations() []schema.Annotation
Annotations of the SubcontrolHistory.
func (SubcontrolHistory) Fields ¶ added in v0.3.3
func (SubcontrolHistory) Fields() []ent.Field
Fields of the SubcontrolHistory.
func (SubcontrolHistory) Indexes ¶ added in v0.3.3
func (SubcontrolHistory) Indexes() []ent.Index
Indexes of the SubcontrolHistory
func (SubcontrolHistory) Interceptors ¶ added in v0.5.0
func (SubcontrolHistory) Interceptors() []ent.Interceptor
Interceptors of the SubcontrolHistory
func (SubcontrolHistory) Policy ¶ added in v0.5.0
func (SubcontrolHistory) Policy() ent.Policy
Policy of the SubcontrolHistory
type Subscriber ¶
Subscriber holds the schema definition for the Subscriber entity
func (Subscriber) Annotations ¶
func (Subscriber) Annotations() []schema.Annotation
Annotations of the Subscriber
func (Subscriber) Hooks ¶
func (Subscriber) Hooks() []ent.Hook
type TFASetting ¶
TFASetting holds the schema definition for the TFASetting entity
func (TFASetting) Annotations ¶
func (TFASetting) Annotations() []schema.Annotation
Annotations of the TFASetting
type Task ¶ added in v0.3.4
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) Interceptors ¶ added in v0.3.4
func (Task) Interceptors() []ent.Interceptor
Interceptors of the Task
type TaskHistory ¶ added in v0.3.4
TaskHistory holds the schema definition for the TaskHistory entity.
func (TaskHistory) Annotations ¶ added in v0.3.4
func (TaskHistory) Annotations() []schema.Annotation
Annotations of the TaskHistory.
func (TaskHistory) Fields ¶ added in v0.3.4
func (TaskHistory) Fields() []ent.Field
Fields of the TaskHistory.
func (TaskHistory) Indexes ¶ added in v0.3.4
func (TaskHistory) Indexes() []ent.Index
Indexes of the TaskHistory
func (TaskHistory) Interceptors ¶ added in v0.3.4
func (TaskHistory) Interceptors() []ent.Interceptor
Interceptors of the TaskHistory
func (TaskHistory) Policy ¶ added in v0.3.4
func (TaskHistory) Policy() ent.Policy
Policy of the TaskHistory
type Template ¶
Template holds the schema definition for the Template entity
func (Template) Annotations ¶
func (Template) Annotations() []schema.Annotation
Annotations of the Template
type TemplateHistory ¶
TemplateHistory holds the schema definition for the TemplateHistory entity.
func (TemplateHistory) Annotations ¶
func (TemplateHistory) Annotations() []schema.Annotation
Annotations of the TemplateHistory.
func (TemplateHistory) Fields ¶
func (TemplateHistory) Fields() []ent.Field
Fields of the TemplateHistory.
func (TemplateHistory) Indexes ¶
func (TemplateHistory) Indexes() []ent.Index
Indexes of the TemplateHistory
func (TemplateHistory) Interceptors ¶
func (TemplateHistory) Interceptors() []ent.Interceptor
Interceptors of the TemplateHistory
func (TemplateHistory) Policy ¶
func (TemplateHistory) Policy() ent.Policy
Policy of the TemplateHistory
type UserHistory ¶
UserHistory holds the schema definition for the UserHistory entity.
func (UserHistory) Annotations ¶
func (UserHistory) Annotations() []schema.Annotation
Annotations 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 // AllowUpdate allows the owner id field to be updated AllowUpdate bool // SkipOASGeneration skips open api spec generation for the field SkipOASGeneration bool // SoftDeleteIndex creates a unique index on the owner id field where deleted_at is null SoftDeleteIndex bool // AllowWhere includes the owner_id field in gql generated fields AllowWhere 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 }
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
type UserSetting ¶
UserSetting holds the schema definition for the User entity.
func (UserSetting) Annotations ¶
func (UserSetting) Annotations() []schema.Annotation
Annotations of the UserSetting
func (UserSetting) Interceptors ¶
func (d UserSetting) Interceptors() []ent.Interceptor
Interceptors of the UserSetting.
func (UserSetting) Policy ¶
func (UserSetting) Policy() ent.Policy
type UserSettingHistory ¶
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 ¶
Webauthn holds the schema definition for the Webauthn entity
func (Webauthn) Annotations ¶
func (Webauthn) Annotations() []schema.Annotation
Annotations of the Webauthn
Source Files ¶
- actionplan.go
- actionplan_history.go
- apitoken.go
- contact.go
- contact_history.go
- control.go
- control_history.go
- controlobjective.go
- controlobjective_history.go
- doc.go
- documentdata.go
- documentdata_history.go
- emailverificationtoken.go
- entity.go
- entity_history.go
- entitytype.go
- entitytype_history.go
- errors.go
- event.go
- event_history.go
- file.go
- file_history.go
- group.go
- group_history.go
- groupmembership.go
- groupmembership_history.go
- groupsetting.go
- groupsetting_history.go
- hush.go
- hush_history.go
- integration.go
- integration_history.go
- internalpolicy.go
- internalpolicy_history.go
- invite.go
- mixin_createacess.go
- mixin_grouppermissions.go
- mixin_objectowned.go
- mixin_orgowned.go
- mixin_userowned.go
- narrative.go
- narrative_history.go
- note.go
- note_history.go
- organization.go
- organization_history.go
- organizationsetting.go
- organizationsetting_history.go
- orgmembership.go
- orgmembership_history.go
- orgsubscription.go
- orgsubscription_history.go
- passwordresettoken.go
- personalaccesstoken.go
- procedure.go
- procedure_history.go
- program.go
- program_history.go
- programmembership.go
- programmembership_history.go
- risk.go
- risk_history.go
- standard.go
- standard_history.go
- subcontrol.go
- subcontrol_history.go
- subscriber.go
- task.go
- task_history.go
- template.go
- template_history.go
- tfasetting.go
- user.go
- user_history.go
- usersetting.go
- usersetting_history.go
- webauthn.go