workflowgenerated

package
v1.2.13 Latest Latest
Warning

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

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

Documentation

Overview

Code generated by ent. DO NOT EDIT. This should be above the package name declaration for go tooling to treat this as generated. This file is generated to detect edge mutations for workflow triggers.

Code generated by ent. DO NOT EDIT. This file is generated to keep workflow registries in sync with ent schemas.

Index

Constants

This section is empty.

Variables

View Source
var WorkflowEligibleEdges = map[string][]string{
	generated.TypeActionPlan: edgeList(
		"approver",
		"delegate",
		"workflow_object_refs",
	),
	generated.TypeControl: edgeList(
		"evidence",
		"control_objectives",
		"tasks",
		"narratives",
		"risks",
		"action_plans",
		"procedures",
		"internal_policies",
		"comments",
		"discussions",
		"control_owner",
		"delegate",
		"responsible_party",
		"workflow_object_refs",
	),
	generated.TypeEvidence: edgeList(
		"workflow_object_refs",
	),
	generated.TypeInternalPolicy: edgeList(
		"approver",
		"delegate",
		"file",
		"comments",
		"discussions",
		"workflow_object_refs",
	),
	generated.TypeProcedure: edgeList(
		"approver",
		"delegate",
		"controls",
		"subcontrols",
		"internal_policies",
		"programs",
		"narratives",
		"risks",
		"tasks",
		"comments",
		"discussions",
		"file",
		"workflow_object_refs",
	),
	generated.TypeSubcontrol: edgeList(
		"evidence",
		"control_objectives",
		"tasks",
		"narratives",
		"risks",
		"action_plans",
		"procedures",
		"internal_policies",
		"comments",
		"discussions",
		"control_owner",
		"delegate",
		"responsible_party",
		"control",
		"control_implementations",
		"mapped_to_subcontrols",
		"mapped_from_subcontrols",
		"workflow_object_refs",
	),
}

Functions

func ExtractChangedEdges

func ExtractChangedEdges(m ent.Mutation) ([]string, map[string][]string, map[string][]string)

ExtractChangedEdges inspects the mutation to determine which edge relationships were modified. It returns: edge names, added IDs per edge, removed IDs per edge.

Types

This section is empty.

Jump to

Keyboard shortcuts

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