internal

package
v0.43.2 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 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.
	Assessment                         string // Assessment table.
	AssessmentHistory                  string // AssessmentHistory table.
	AssessmentResponse                 string // AssessmentResponse table.
	AssessmentResponseHistory          string // AssessmentResponseHistory table.
	Asset                              string // Asset table.
	AssetHistory                       string // AssetHistory table.
	Contact                            string // Contact table.
	ContactFiles                       string // Contact-files->File table.
	ContactHistory                     string // ContactHistory table.
	Control                            string // Control table.
	ControlControlObjectives           string // Control-control_objectives->ControlObjective table.
	ControlTasks                       string // Control-tasks->Task table.
	ControlNarratives                  string // Control-narratives->Narrative table.
	ControlRisks                       string // Control-risks->Risk table.
	ControlActionPlans                 string // Control-action_plans->ActionPlan table.
	ControlProcedures                  string // Control-procedures->Procedure table.
	ControlBlockedGroups               string // Control-blocked_groups->Group table.
	ControlEditors                     string // Control-editors->Group table.
	ControlAssets                      string // Control-assets->Asset table.
	ControlControlImplementations      string // Control-control_implementations->ControlImplementation table.
	ControlHistory                     string // ControlHistory table.
	ControlImplementation              string // ControlImplementation table.
	ControlImplementationBlockedGroups string // ControlImplementation-blocked_groups->Group table.
	ControlImplementationEditors       string // ControlImplementation-editors->Group table.
	ControlImplementationViewers       string // ControlImplementation-viewers->Group table.
	ControlImplementationTasks         string // ControlImplementation-tasks->Task table.
	ControlImplementationHistory       string // ControlImplementationHistory table.
	ControlObjective                   string // ControlObjective table.
	ControlObjectiveBlockedGroups      string // ControlObjective-blocked_groups->Group table.
	ControlObjectiveEditors            string // ControlObjective-editors->Group table.
	ControlObjectiveViewers            string // ControlObjective-viewers->Group table.
	ControlObjectiveTasks              string // ControlObjective-tasks->Task table.
	ControlObjectiveHistory            string // ControlObjectiveHistory table.
	CustomDomain                       string // CustomDomain table.
	CustomDomainHistory                string // CustomDomainHistory table.
	CustomTypeEnum                     string // CustomTypeEnum table.
	DNSVerification                    string // DNSVerification table.
	DNSVerificationHistory             string // DNSVerificationHistory table.
	DocumentData                       string // DocumentData table.
	DocumentDataFiles                  string // DocumentData-files->File table.
	DocumentDataHistory                string // DocumentDataHistory table.
	EmailVerificationToken             string // EmailVerificationToken table.
	Entity                             string // Entity table.
	EntityBlockedGroups                string // Entity-blocked_groups->Group table.
	EntityEditors                      string // Entity-editors->Group table.
	EntityViewers                      string // Entity-viewers->Group table.
	EntityContacts                     string // Entity-contacts->Contact table.
	EntityDocuments                    string // Entity-documents->DocumentData table.
	EntityFiles                        string // Entity-files->File table.
	EntityAssets                       string // Entity-assets->Asset table.
	EntityHistory                      string // EntityHistory table.
	EntityType                         string // EntityType table.
	EntityTypeHistory                  string // EntityTypeHistory table.
	Event                              string // Event table.
	Evidence                           string // Evidence table.
	EvidenceControls                   string // Evidence-controls->Control table.
	EvidenceSubcontrols                string // Evidence-subcontrols->Subcontrol table.
	EvidenceControlObjectives          string // Evidence-control_objectives->ControlObjective table.
	EvidenceFiles                      string // Evidence-files->File table.
	EvidenceHistory                    string // EvidenceHistory table.
	Export                             string // Export table.
	File                               string // File table.
	FileEvents                         string // File-events->Event table.
	FileSecrets                        string // File-secrets->Hush table.
	FileDownloadToken                  string // FileDownloadToken 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.
	ImpersonationEvent                 string // ImpersonationEvent 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.
	InternalPolicyControls             string // InternalPolicy-controls->Control table.
	InternalPolicySubcontrols          string // InternalPolicy-subcontrols->Subcontrol table.
	InternalPolicyProcedures           string // InternalPolicy-procedures->Procedure table.
	InternalPolicyNarratives           string // InternalPolicy-narratives->Narrative table.
	InternalPolicyTasks                string // InternalPolicy-tasks->Task table.
	InternalPolicyRisks                string // InternalPolicy-risks->Risk table.
	InternalPolicyHistory              string // InternalPolicyHistory table.
	Invite                             string // Invite table.
	InviteEvents                       string // Invite-events->Event table.
	InviteGroups                       string // Invite-groups->Group table.
	JobResult                          string // JobResult table.
	JobRunner                          string // JobRunner table.
	JobRunnerJobRunnerTokens           string // JobRunner-job_runner_tokens->JobRunnerToken table.
	JobRunnerRegistrationToken         string // JobRunnerRegistrationToken table.
	JobRunnerToken                     string // JobRunnerToken table.
	JobTemplate                        string // JobTemplate table.
	JobTemplateHistory                 string // JobTemplateHistory table.
	MappableDomain                     string // MappableDomain table.
	MappableDomainHistory              string // MappableDomainHistory table.
	MappedControl                      string // MappedControl table.
	MappedControlBlockedGroups         string // MappedControl-blocked_groups->Group table.
	MappedControlEditors               string // MappedControl-editors->Group table.
	MappedControlFromControls          string // MappedControl-from_controls->Control table.
	MappedControlToControls            string // MappedControl-to_controls->Control table.
	MappedControlFromSubcontrols       string // MappedControl-from_subcontrols->Subcontrol table.
	MappedControlToSubcontrols         string // MappedControl-to_subcontrols->Subcontrol table.
	MappedControlHistory               string // MappedControlHistory 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.
	Onboarding                         string // Onboarding table.
	OrgMembership                      string // OrgMembership table.
	OrgMembershipEvents                string // OrgMembership-events->Event table.
	OrgMembershipHistory               string // OrgMembershipHistory table.
	OrgModule                          string // OrgModule table.
	OrgModuleOrgPrices                 string // OrgModule-org_prices->OrgPrice table.
	OrgPrice                           string // OrgPrice table.
	OrgProduct                         string // OrgProduct table.
	OrgProductOrgPrices                string // OrgProduct-org_prices->OrgPrice table.
	OrgSubscription                    string // OrgSubscription table.
	OrgSubscriptionEvents              string // OrgSubscription-events->Event table.
	OrgSubscriptionHistory             string // OrgSubscriptionHistory table.
	Organization                       string // Organization table.
	OrganizationPersonalAccessTokens   string // Organization-personal_access_tokens->PersonalAccessToken table.
	OrganizationFiles                  string // Organization-files->File table.
	OrganizationEvents                 string // Organization-events->Event 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.
	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.
	ProgramFiles                       string // Program-files->File table.
	ProgramEvidence                    string // Program-evidence->Evidence 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.
	RiskTasks                          string // Risk-tasks->Task table.
	RiskHistory                        string // RiskHistory table.
	Scan                               string // Scan table.
	ScanBlockedGroups                  string // Scan-blocked_groups->Group table.
	ScanEditors                        string // Scan-editors->Group table.
	ScanViewers                        string // Scan-viewers->Group table.
	ScanAssets                         string // Scan-assets->Asset table.
	ScanHistory                        string // ScanHistory table.
	ScheduledJob                       string // ScheduledJob table.
	ScheduledJobControls               string // ScheduledJob-controls->Control table.
	ScheduledJobSubcontrols            string // ScheduledJob-subcontrols->Subcontrol table.
	ScheduledJobHistory                string // ScheduledJobHistory table.
	ScheduledJobRun                    string // ScheduledJobRun table.
	Standard                           string // Standard table.
	StandardHistory                    string // StandardHistory table.
	Subcontrol                         string // Subcontrol table.
	SubcontrolControlObjectives        string // Subcontrol-control_objectives->ControlObjective table.
	SubcontrolTasks                    string // Subcontrol-tasks->Task table.
	SubcontrolRisks                    string // Subcontrol-risks->Risk table.
	SubcontrolProcedures               string // Subcontrol-procedures->Procedure table.
	SubcontrolControlImplementations   string // Subcontrol-control_implementations->ControlImplementation table.
	SubcontrolHistory                  string // SubcontrolHistory table.
	Subprocessor                       string // Subprocessor table.
	SubprocessorFiles                  string // Subprocessor-files->File table.
	SubprocessorHistory                string // SubprocessorHistory table.
	Subscriber                         string // Subscriber table.
	SubscriberEvents                   string // Subscriber-events->Event table.
	TFASetting                         string // TFASetting table.
	TagDefinition                      string // TagDefinition table.
	Task                               string // Task table.
	TaskEvidence                       string // Task-evidence->Evidence table.
	TaskHistory                        string // TaskHistory table.
	Template                           string // Template table.
	TemplateFiles                      string // Template-files->File table.
	TemplateHistory                    string // TemplateHistory table.
	TrustCenter                        string // TrustCenter table.
	TrustCenterCompliance              string // TrustCenterCompliance table.
	TrustCenterComplianceHistory       string // TrustCenterComplianceHistory table.
	TrustCenterDoc                     string // TrustCenterDoc table.
	TrustCenterDocHistory              string // TrustCenterDocHistory table.
	TrustCenterHistory                 string // TrustCenterHistory table.
	TrustCenterSetting                 string // TrustCenterSetting table.
	TrustCenterSettingFiles            string // TrustCenterSetting-files->File table.
	TrustCenterSettingHistory          string // TrustCenterSettingHistory table.
	TrustCenterSubprocessor            string // TrustCenterSubprocessor table.
	TrustCenterSubprocessorHistory     string // TrustCenterSubprocessorHistory table.
	TrustCenterWatermarkConfig         string // TrustCenterWatermarkConfig table.
	TrustCenterWatermarkConfigHistory  string // TrustCenterWatermarkConfigHistory table.
	User                               string // User table.
	UserGroups                         string // User-groups->Group table.
	UserOrganizations                  string // User-organizations->Organization table.
	UserFiles                          string // User-files->File table.
	UserEvents                         string // User-events->Event table.
	UserPrograms                       string // User-programs->Program 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