internal

package
v0.6.10 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSchemaConfigContext

func NewSchemaConfigContext(parent context.Context, config SchemaConfig) context.Context

NewSchemaConfigContext returns a new context with the given SchemaConfig attached.

Types

type SchemaConfig

type SchemaConfig struct {
	APIToken                             string // APIToken table.
	ActionPlan                           string // ActionPlan table.
	ActionPlanHistory                    string // ActionPlanHistory table.
	Contact                              string // Contact table.
	ContactFiles                         string // Contact-files->File table.
	ContactHistory                       string // ContactHistory table.
	Control                              string // Control table.
	ControlBlockedGroups                 string // Control-blocked_groups->Group table.
	ControlEditors                       string // Control-editors->Group table.
	ControlViewers                       string // Control-viewers->Group table.
	ControlProcedures                    string // Control-procedures->Procedure table.
	ControlSubcontrols                   string // Control-subcontrols->Subcontrol table.
	ControlNarratives                    string // Control-narratives->Narrative table.
	ControlRisks                         string // Control-risks->Risk table.
	ControlActionPlans                   string // Control-action_plans->ActionPlan table.
	ControlTasks                         string // Control-tasks->Task table.
	ControlHistory                       string // ControlHistory table.
	ControlObjective                     string // ControlObjective table.
	ControlObjectiveBlockedGroups        string // ControlObjective-blocked_groups->Group table.
	ControlObjectiveEditors              string // ControlObjective-editors->Group table.
	ControlObjectiveViewers              string // ControlObjective-viewers->Group table.
	ControlObjectiveNarratives           string // ControlObjective-narratives->Narrative table.
	ControlObjectiveTasks                string // ControlObjective-tasks->Task table.
	ControlObjectiveHistory              string // ControlObjectiveHistory table.
	DocumentData                         string // DocumentData table.
	DocumentDataFiles                    string // DocumentData-files->File table.
	DocumentDataHistory                  string // DocumentDataHistory table.
	EmailVerificationToken               string // EmailVerificationToken table.
	Entity                               string // Entity table.
	EntityContacts                       string // Entity-contacts->Contact table.
	EntityDocuments                      string // Entity-documents->DocumentData table.
	EntityFiles                          string // Entity-files->File table.
	EntityHistory                        string // EntityHistory table.
	EntityType                           string // EntityType table.
	EntityTypeHistory                    string // EntityTypeHistory table.
	Event                                string // Event table.
	EventHistory                         string // EventHistory table.
	File                                 string // File table.
	FileEvents                           string // File-events->Event table.
	FileHistory                          string // FileHistory table.
	Group                                string // Group table.
	GroupEvents                          string // Group-events->Event table.
	GroupFiles                           string // Group-files->File table.
	GroupTasks                           string // Group-tasks->Task table.
	GroupHistory                         string // GroupHistory table.
	GroupMembership                      string // GroupMembership table.
	GroupMembershipEvents                string // GroupMembership-events->Event table.
	GroupMembershipHistory               string // GroupMembershipHistory table.
	GroupSetting                         string // GroupSetting table.
	GroupSettingHistory                  string // GroupSettingHistory table.
	Hush                                 string // Hush table.
	HushEvents                           string // Hush-events->Event table.
	HushHistory                          string // HushHistory table.
	Integration                          string // Integration table.
	IntegrationSecrets                   string // Integration-secrets->Hush table.
	IntegrationEvents                    string // Integration-events->Event table.
	IntegrationHistory                   string // IntegrationHistory table.
	InternalPolicy                       string // InternalPolicy table.
	InternalPolicyBlockedGroups          string // InternalPolicy-blocked_groups->Group table.
	InternalPolicyEditors                string // InternalPolicy-editors->Group table.
	InternalPolicyControlObjectives      string // InternalPolicy-control_objectives->ControlObjective table.
	InternalPolicyProcedures             string // InternalPolicy-procedures->Procedure table.
	InternalPolicyNarratives             string // InternalPolicy-narratives->Narrative table.
	InternalPolicyTasks                  string // InternalPolicy-tasks->Task table.
	InternalPolicyHistory                string // InternalPolicyHistory table.
	Invite                               string // Invite table.
	InviteEvents                         string // Invite-events->Event table.
	Narrative                            string // Narrative table.
	NarrativeBlockedGroups               string // Narrative-blocked_groups->Group table.
	NarrativeEditors                     string // Narrative-editors->Group table.
	NarrativeViewers                     string // Narrative-viewers->Group table.
	NarrativeHistory                     string // NarrativeHistory table.
	Note                                 string // Note table.
	NoteHistory                          string // NoteHistory table.
	OrgMembership                        string // OrgMembership table.
	OrgMembershipEvents                  string // OrgMembership-events->Event table.
	OrgMembershipHistory                 string // OrgMembershipHistory table.
	OrgSubscription                      string // OrgSubscription table.
	OrgSubscriptionHistory               string // OrgSubscriptionHistory table.
	Organization                         string // Organization table.
	OrganizationControlCreators          string // Organization-control_creators->Group table.
	OrganizationControlObjectiveCreators string // Organization-control_objective_creators->Group table.
	OrganizationGroupCreators            string // Organization-group_creators->Group table.
	OrganizationInternalPolicyCreators   string // Organization-internal_policy_creators->Group table.
	OrganizationNarrativeCreators        string // Organization-narrative_creators->Group table.
	OrganizationProcedureCreators        string // Organization-procedure_creators->Group table.
	OrganizationProgramCreators          string // Organization-program_creators->Group table.
	OrganizationRiskCreators             string // Organization-risk_creators->Group table.
	OrganizationTemplateCreators         string // Organization-template_creators->Group table.
	OrganizationPersonalAccessTokens     string // Organization-personal_access_tokens->PersonalAccessToken table.
	OrganizationEvents                   string // Organization-events->Event table.
	OrganizationSecrets                  string // Organization-secrets->Hush table.
	OrganizationFiles                    string // Organization-files->File table.
	OrganizationTasks                    string // Organization-tasks->Task table.
	OrganizationHistory                  string // OrganizationHistory table.
	OrganizationSetting                  string // OrganizationSetting table.
	OrganizationSettingFiles             string // OrganizationSetting-files->File table.
	OrganizationSettingHistory           string // OrganizationSettingHistory table.
	PasswordResetToken                   string // PasswordResetToken table.
	PersonalAccessToken                  string // PersonalAccessToken table.
	PersonalAccessTokenEvents            string // PersonalAccessToken-events->Event table.
	Procedure                            string // Procedure table.
	ProcedureBlockedGroups               string // Procedure-blocked_groups->Group table.
	ProcedureEditors                     string // Procedure-editors->Group table.
	ProcedureNarratives                  string // Procedure-narratives->Narrative table.
	ProcedureRisks                       string // Procedure-risks->Risk table.
	ProcedureTasks                       string // Procedure-tasks->Task table.
	ProcedureHistory                     string // ProcedureHistory table.
	Program                              string // Program table.
	ProgramBlockedGroups                 string // Program-blocked_groups->Group table.
	ProgramEditors                       string // Program-editors->Group table.
	ProgramViewers                       string // Program-viewers->Group table.
	ProgramControls                      string // Program-controls->Control table.
	ProgramSubcontrols                   string // Program-subcontrols->Subcontrol table.
	ProgramControlObjectives             string // Program-control_objectives->ControlObjective table.
	ProgramInternalPolicies              string // Program-internal_policies->InternalPolicy table.
	ProgramProcedures                    string // Program-procedures->Procedure table.
	ProgramRisks                         string // Program-risks->Risk table.
	ProgramTasks                         string // Program-tasks->Task table.
	ProgramNotes                         string // Program-notes->Note table.
	ProgramFiles                         string // Program-files->File table.
	ProgramNarratives                    string // Program-narratives->Narrative table.
	ProgramActionPlans                   string // Program-action_plans->ActionPlan table.
	ProgramHistory                       string // ProgramHistory table.
	ProgramMembership                    string // ProgramMembership table.
	ProgramMembershipHistory             string // ProgramMembershipHistory table.
	Risk                                 string // Risk table.
	RiskBlockedGroups                    string // Risk-blocked_groups->Group table.
	RiskEditors                          string // Risk-editors->Group table.
	RiskViewers                          string // Risk-viewers->Group table.
	RiskActionPlans                      string // Risk-action_plans->ActionPlan table.
	RiskHistory                          string // RiskHistory table.
	Standard                             string // Standard table.
	StandardControlObjectives            string // Standard-control_objectives->ControlObjective table.
	StandardControls                     string // Standard-controls->Control table.
	StandardActionPlans                  string // Standard-action_plans->ActionPlan table.
	StandardPrograms                     string // Standard-programs->Program table.
	StandardHistory                      string // StandardHistory table.
	Subcontrol                           string // Subcontrol table.
	SubcontrolTasks                      string // Subcontrol-tasks->Task table.
	SubcontrolHistory                    string // SubcontrolHistory table.
	Subscriber                           string // Subscriber table.
	SubscriberEvents                     string // Subscriber-events->Event table.
	TFASetting                           string // TFASetting table.
	Task                                 string // Task table.
	TaskHistory                          string // TaskHistory table.
	Template                             string // Template table.
	TemplateFiles                        string // Template-files->File table.
	TemplateHistory                      string // TemplateHistory table.
	User                                 string // User table.
	UserFiles                            string // User-files->File table.
	UserEvents                           string // User-events->Event table.
	UserActionPlans                      string // User-action_plans->ActionPlan table.
	UserSubcontrols                      string // User-subcontrols->Subcontrol table.
	UserHistory                          string // UserHistory table.
	UserSetting                          string // UserSetting table.
	UserSettingFiles                     string // UserSetting-files->File table.
	UserSettingHistory                   string // UserSettingHistory table.
	Webauthn                             string // Webauthn table.
}

SchemaConfig represents alternative schema names for all tables that can be passed at runtime.

func SchemaConfigFromContext

func SchemaConfigFromContext(ctx context.Context) SchemaConfig

SchemaConfigFromContext returns a SchemaConfig stored inside a context, or empty if there isn't one.

Jump to

Keyboard shortcuts

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