Documentation
¶
Index ¶
Constants ¶
const ( // PackGovernance exposes the governance metadata schema as a domain pack. PackGovernance = "governance" // PackResearchProvenance exposes the research provenance schema as a domain pack. PackResearchProvenance = "research_provenance" // PackEntity exposes the entity and source graph schema as a domain pack. PackEntity = "entity" )
const PackAssessmentDrift = "assessment_drift"
PackAssessmentDrift is the ID of the assessment drift audit pack.
const PackPolicyProcess = "policy_process"
PackPolicyProcess is the ID of the policy/process drift audit pack.
Variables ¶
This section is empty.
Functions ¶
func FieldColumnMap ¶
FieldColumnMap returns metadata-key to projection-column mapping for a pack.
Types ¶
type Field ¶
type Field struct {
Key string
Column string
ValueType string
Required bool
Aliases []string
Description string
}
Field describes one metadata key owned by a domain schema pack.
type Pack ¶
type Pack struct {
ID string
Name string
Version string
Domain string
Description string
Status string
BuiltIn bool
EnabledByDefault bool
MinSchemaVersion int
Fields []Field
}
Pack is a declarative schema pack. Packs define metadata fields and optional typed projection columns without owning core schema migrations directly.
func BuiltinAssessmentDriftPack ¶
func BuiltinAssessmentDriftPack() Pack
BuiltinAssessmentDriftPack returns the assessment drift audit schema as a bundled optional pack. EnabledByDefault is false — users opt in per project.
func BuiltinEntityPack ¶
func BuiltinEntityPack() Pack
BuiltinEntityPack returns the entity and source graph schema as a pack.
func BuiltinGovernancePack ¶
func BuiltinGovernancePack() Pack
BuiltinGovernancePack returns the current governance schema as a pack.
func BuiltinPolicyProcessPack ¶
func BuiltinPolicyProcessPack() Pack
BuiltinPolicyProcessPack returns the policy/process drift audit schema as a bundled optional pack. EnabledByDefault is false — users opt in per project.
func BuiltinResearchProvenancePack ¶
func BuiltinResearchProvenancePack() Pack
BuiltinResearchProvenancePack returns the current research schema as a pack.
func EnabledPacks ¶
func EnabledPacks() []Pack
EnabledPacks returns process-wide packs enabled by default, sorted by ID.
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
Registry stores pack definitions contributed by core or optional packages.
func (*Registry) EnabledPacks ¶
EnabledPacks returns packs whose default state is enabled.
func (*Registry) FieldColumnMap ¶
FieldColumnMap returns a copy of the projection mapping for packID.