internal

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 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.
	ControlControlImplementations    string // Control-control_implementations->ControlImplementation 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.
	ControlHistory                   string // ControlHistory table.
	ControlImplementation            string // ControlImplementation 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.
	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.
	Evidence                         string // Evidence table.
	EvidenceControlObjectives        string // Evidence-control_objectives->ControlObjective table.
	EvidenceControls                 string // Evidence-controls->Control table.
	EvidenceSubcontrols              string // Evidence-subcontrols->Subcontrol table.
	EvidenceFiles                    string // Evidence-files->File table.
	EvidenceHistory                  string // EvidenceHistory 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.
	InternalPolicyTasks              string // InternalPolicy-tasks->Task table.
	InternalPolicyHistory            string // InternalPolicyHistory table.
	Invite                           string // Invite table.
	InviteEvents                     string // Invite-events->Event table.
	MappedControl                    string // MappedControl table.
	MappedControlControls            string // MappedControl-controls->Control table.
	MappedControlSubcontrols         string // MappedControl-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.
	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.
	OrganizationSecrets              string // Organization-secrets->Hush 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.
	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.
	RiskHistory                      string // RiskHistory 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.
	SubcontrolHistory                string // SubcontrolHistory table.
	Subscriber                       string // Subscriber table.
	SubscriberEvents                 string // Subscriber-events->Event table.
	TFASetting                       string // TFASetting 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.
	User                             string // User table.
	UserFiles                        string // User-files->File table.
	UserEvents                       string // User-events->Event table.
	UserActionPlans                  string // User-action_plans->ActionPlan 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