# Functions
NewGroupBasedCreateAccessMixin creates a new GroupBasedCreateAccessMixin with the specified edges.
NewGroupPermissionsMixin creates a new GroupPermissionsMixin with optional viewer permissions.
NewObjectOwnedMixin creates a new ObjectOwnedMixin with the given ObjectOwnedMixin and sets the HookFunc to defaultOrgHookFunc.
NewObjectOwnMixinWithRef creates a new ObjectOwnedMixin with the given ref and sets the defaults.
NewOrgOwnedMixin creates a new OrgOwnedMixin with the given ObjectOwnedMixin and sets the Kind to ownerFieldName and the HookFunc to defaultOrgHookFunc.
NewOrgOwnMixinWithRef creates a new OrgOwnedMixin with the given ref and sets the defaults.
# Variables
ErrContainsSpaces is returned when field contains spaces.
ErrInvalidTokenSize is returned when session token size is invalid.
ErrUnexpectedMutationType is returned when an unexpected mutation type is encountered.
# Structs
ActionPlan defines the actionplan schema.
ActionPlanHistory holds the schema definition for the ActionPlanHistory entity.
APIToken holds the schema definition for the APIToken entity.
Contact holds the schema definition for the Contact entity.
ContactHistory holds the schema definition for the ContactHistory entity.
Control defines the control schema.
ControlHistory holds the schema definition for the ControlHistory entity.
ControlObjective defines the controlobjective schema.
ControlObjectiveHistory holds the schema definition for the ControlObjectiveHistory entity.
DocumentData holds the schema definition for the DocumentData entity.
DocumentDataHistory holds the schema definition for the DocumentDataHistory entity.
EdgeInfo is used to define the edge information for the reverse edges (group schema).
EmailVerificationToken holds the schema definition for the EmailVerificationToken entity.
Entity holds the schema definition for the Entity entity.
EntityHistory holds the schema definition for the EntityHistory entity.
EntityType holds the schema definition for the EntityType entity.
EntityTypeHistory holds the schema definition for the EntityTypeHistory entity.
No description provided by the author
EventHistory holds the schema definition for the EventHistory entity.
File defines the file schema.
FileHistory holds the schema definition for the FileHistory entity.
Group holds the schema definition for the Group entity.
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.
GroupHistory holds the schema definition for the GroupHistory entity.
GroupMembership holds the schema definition for the GroupMembership entity.
GroupMembershipHistory holds the schema definition for the GroupMembershipHistory entity.
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.
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.
GroupSetting holds the schema definition for the GroupSetting entity.
GroupSettingHistory holds the schema definition for the GroupSettingHistory entity.
Hush maps configured integrations (github, slack, etc.) to organizations.
HushHistory holds the schema definition for the HushHistory entity.
Integration maps configured integrations (github, slack, etc.) to organizations.
IntegrationHistory holds the schema definition for the IntegrationHistory entity.
InternalPolicy defines the policy schema.
InternalPolicyHistory holds the schema definition for the InternalPolicyHistory entity.
Invite holds the schema definition for the Invite entity.
Narrative defines the narrative schema.
NarrativeHistory holds the schema definition for the NarrativeHistory entity.
Note holds the schema definition for the Note entity.
NoteHistory holds the schema definition for the NoteHistory entity.
ObjectOwnedMixin is a mixin for object owned entities.
Organization holds the schema definition for the Organization entity - organizations are the top level tenancy construct in the system.
OrganizationHistory holds the schema definition for the OrganizationHistory entity.
OrganizationSetting holds the schema definition for the OrganizationSetting entity.
OrganizationSettingHistory holds the schema definition for the OrganizationSettingHistory entity.
OrgMembership holds the schema definition for the OrgMembership entity.
OrgMembershipHistory holds the schema definition for the OrgMembershipHistory entity.
OrgSubscription holds the schema definition for the OrgSubscription entity.
OrgSubscriptionHistory holds the schema definition for the OrgSubscriptionHistory entity.
PasswordResetToken holds the schema definition for the PasswordResetToken entity.
PersonalAccessToken holds the schema definition for the PersonalAccessToken entity.
Procedure defines the procedure schema.
ProcedureHistory holds the schema definition for the ProcedureHistory entity.
Program holds the schema definition for the Program entity.
ProgramHistory holds the schema definition for the ProgramHistory entity.
ProgramMembership holds the schema definition for the ProgramMembership entity.
ProgramMembershipHistory holds the schema definition for the ProgramMembershipHistory entity.
Risk defines the risk schema.
RiskHistory holds the schema definition for the RiskHistory entity.
Standard defines the standard schema.
StandardHistory holds the schema definition for the StandardHistory entity.
Subcontrol defines the file schema.
SubcontrolHistory holds the schema definition for the SubcontrolHistory entity.
Subscriber holds the schema definition for the Subscriber entity.
Task holds the schema definition for the Task entity.
TaskHistory holds the schema definition for the TaskHistory entity.
Template holds the schema definition for the Template entity.
TemplateHistory holds the schema definition for the TemplateHistory entity.
TFASetting holds the schema definition for the TFASetting entity.
User holds the schema definition for the User entity.
UserHistory holds the schema definition for the UserHistory entity.
No description provided by the author
UserSetting holds the schema definition for the User entity.
UserSettingHistory holds the schema definition for the UserSettingHistory entity.
Webauthn holds the schema definition for the Webauthn entity.